Skip to content

Commit

Permalink
feat: EU Regions and Support With Sovereign Controls
Browse files Browse the repository at this point in the history
Committer: @Guisin
PiperOrigin-RevId: 415069787

Source-Link: googleapis/googleapis@85ffeed

Source-Link: googleapis/googleapis-gen@479ca5e
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQXNzdXJlZFdvcmtsb2Fkcy5WMUJldGExLy5Pd2xCb3QueWFtbCIsImgiOiI0NzljYTVlNDc5OGM1MjdjMzUzZTNlYWVlNTYyZGIwZjJkZWE1MDQ0In0=
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Dec 9, 2021
1 parent bc945eb commit 0e8c59f
Show file tree
Hide file tree
Showing 3 changed files with 624 additions and 118 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ public void UpdateWorkloadRequestObject()
{
new Workload.Types.ResourceSettings(),
},
KajEnrollmentState = Workload.Types.KajEnrollmentState.Unspecified,
EnableSovereignControls = true,
SaaEnrollmentResponse = new Workload.Types.SaaEnrollmentResponse(),
};
mockGrpcClient.Setup(x => x.UpdateWorkload(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -122,6 +125,9 @@ public void UpdateWorkloadRequestObject()
{
new Workload.Types.ResourceSettings(),
},
KajEnrollmentState = Workload.Types.KajEnrollmentState.Unspecified,
EnableSovereignControls = true,
SaaEnrollmentResponse = new Workload.Types.SaaEnrollmentResponse(),
};
mockGrpcClient.Setup(x => x.UpdateWorkloadAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Workload>(stt::Task.FromResult(expectedResponse), null, null, null, null));
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -175,6 +181,9 @@ public void UpdateWorkload()
{
new Workload.Types.ResourceSettings(),
},
KajEnrollmentState = Workload.Types.KajEnrollmentState.Unspecified,
EnableSovereignControls = true,
SaaEnrollmentResponse = new Workload.Types.SaaEnrollmentResponse(),
};
mockGrpcClient.Setup(x => x.UpdateWorkload(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -226,6 +235,9 @@ public void UpdateWorkload()
{
new Workload.Types.ResourceSettings(),
},
KajEnrollmentState = Workload.Types.KajEnrollmentState.Unspecified,
EnableSovereignControls = true,
SaaEnrollmentResponse = new Workload.Types.SaaEnrollmentResponse(),
};
mockGrpcClient.Setup(x => x.UpdateWorkloadAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Workload>(stt::Task.FromResult(expectedResponse), null, null, null, null));
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -379,6 +391,9 @@ public void GetWorkloadRequestObject()
{
new Workload.Types.ResourceSettings(),
},
KajEnrollmentState = Workload.Types.KajEnrollmentState.Unspecified,
EnableSovereignControls = true,
SaaEnrollmentResponse = new Workload.Types.SaaEnrollmentResponse(),
};
mockGrpcClient.Setup(x => x.GetWorkload(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -429,6 +444,9 @@ public void GetWorkloadRequestObject()
{
new Workload.Types.ResourceSettings(),
},
KajEnrollmentState = Workload.Types.KajEnrollmentState.Unspecified,
EnableSovereignControls = true,
SaaEnrollmentResponse = new Workload.Types.SaaEnrollmentResponse(),
};
mockGrpcClient.Setup(x => x.GetWorkloadAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Workload>(stt::Task.FromResult(expectedResponse), null, null, null, null));
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -481,6 +499,9 @@ public void GetWorkload()
{
new Workload.Types.ResourceSettings(),
},
KajEnrollmentState = Workload.Types.KajEnrollmentState.Unspecified,
EnableSovereignControls = true,
SaaEnrollmentResponse = new Workload.Types.SaaEnrollmentResponse(),
};
mockGrpcClient.Setup(x => x.GetWorkload(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -531,6 +552,9 @@ public void GetWorkload()
{
new Workload.Types.ResourceSettings(),
},
KajEnrollmentState = Workload.Types.KajEnrollmentState.Unspecified,
EnableSovereignControls = true,
SaaEnrollmentResponse = new Workload.Types.SaaEnrollmentResponse(),
};
mockGrpcClient.Setup(x => x.GetWorkloadAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Workload>(stt::Task.FromResult(expectedResponse), null, null, null, null));
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -583,6 +607,9 @@ public void GetWorkloadResourceNames()
{
new Workload.Types.ResourceSettings(),
},
KajEnrollmentState = Workload.Types.KajEnrollmentState.Unspecified,
EnableSovereignControls = true,
SaaEnrollmentResponse = new Workload.Types.SaaEnrollmentResponse(),
};
mockGrpcClient.Setup(x => x.GetWorkload(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -633,6 +660,9 @@ public void GetWorkloadResourceNames()
{
new Workload.Types.ResourceSettings(),
},
KajEnrollmentState = Workload.Types.KajEnrollmentState.Unspecified,
EnableSovereignControls = true,
SaaEnrollmentResponse = new Workload.Types.SaaEnrollmentResponse(),
};
mockGrpcClient.Setup(x => x.GetWorkloadAsync(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(new grpccore::AsyncUnaryCall<Workload>(stt::Task.FromResult(expectedResponse), null, null, null, null));
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,8 @@ internal static AssuredWorkloadsServiceClient Create(grpccore::CallInvoker callI
/// Gets Assured Workload associated with a CRM Node
/// </summary>
/// <param name="name">
/// Required. The resource name of the Workload to fetch. This is the workloads's
/// relative path in the API, formatted as
/// Required. The resource name of the Workload to fetch. This is the
/// workloads's relative path in the API, formatted as
/// "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
/// For example,
/// "organizations/123/locations/us-east1/workloads/assured-workload-1".
Expand All @@ -770,8 +770,8 @@ internal static AssuredWorkloadsServiceClient Create(grpccore::CallInvoker callI
/// Gets Assured Workload associated with a CRM Node
/// </summary>
/// <param name="name">
/// Required. The resource name of the Workload to fetch. This is the workloads's
/// relative path in the API, formatted as
/// Required. The resource name of the Workload to fetch. This is the
/// workloads's relative path in the API, formatted as
/// "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
/// For example,
/// "organizations/123/locations/us-east1/workloads/assured-workload-1".
Expand All @@ -788,8 +788,8 @@ internal static AssuredWorkloadsServiceClient Create(grpccore::CallInvoker callI
/// Gets Assured Workload associated with a CRM Node
/// </summary>
/// <param name="name">
/// Required. The resource name of the Workload to fetch. This is the workloads's
/// relative path in the API, formatted as
/// Required. The resource name of the Workload to fetch. This is the
/// workloads's relative path in the API, formatted as
/// "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
/// For example,
/// "organizations/123/locations/us-east1/workloads/assured-workload-1".
Expand All @@ -803,8 +803,8 @@ internal static AssuredWorkloadsServiceClient Create(grpccore::CallInvoker callI
/// Gets Assured Workload associated with a CRM Node
/// </summary>
/// <param name="name">
/// Required. The resource name of the Workload to fetch. This is the workloads's
/// relative path in the API, formatted as
/// Required. The resource name of the Workload to fetch. This is the
/// workloads's relative path in the API, formatted as
/// "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
/// For example,
/// "organizations/123/locations/us-east1/workloads/assured-workload-1".
Expand All @@ -821,8 +821,8 @@ internal static AssuredWorkloadsServiceClient Create(grpccore::CallInvoker callI
/// Gets Assured Workload associated with a CRM Node
/// </summary>
/// <param name="name">
/// Required. The resource name of the Workload to fetch. This is the workloads's
/// relative path in the API, formatted as
/// Required. The resource name of the Workload to fetch. This is the
/// workloads's relative path in the API, formatted as
/// "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
/// For example,
/// "organizations/123/locations/us-east1/workloads/assured-workload-1".
Expand All @@ -839,8 +839,8 @@ internal static AssuredWorkloadsServiceClient Create(grpccore::CallInvoker callI
/// Gets Assured Workload associated with a CRM Node
/// </summary>
/// <param name="name">
/// Required. The resource name of the Workload to fetch. This is the workloads's
/// relative path in the API, formatted as
/// Required. The resource name of the Workload to fetch. This is the
/// workloads's relative path in the API, formatted as
/// "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
/// For example,
/// "organizations/123/locations/us-east1/workloads/assured-workload-1".
Expand Down
Loading

0 comments on commit 0e8c59f

Please sign in to comment.