Skip to content

Commit

Permalink
feat: updated google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsS…
Browse files Browse the repository at this point in the history
…ervice service

Clients can now specify the 'provisioned_resources_parent' for the provisioned projects.
The per compliance regime 'kms_settings' are being deprecated and should now be specified as a top level field of the workload.

PiperOrigin-RevId: 342580339

Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Nov 16 00:27:46 2020 -0800
Source-Repo: googleapis/googleapis
Source-Sha: 8d245ac97e058b541f1477b1a85d676b18e80849
Source-Link: googleapis/googleapis@8d245ac
  • Loading branch information
yoshi-automation authored and jskeet committed Nov 16, 2020
1 parent 77fcd2c commit 342a932
Show file tree
Hide file tree
Showing 3 changed files with 247 additions and 81 deletions.
Expand Up @@ -49,8 +49,10 @@ public void UpdateWorkloadRequestObject()
ComplianceRegime = Workload.Types.ComplianceRegime.FedrampHigh,
CreateTime = new wkt::Timestamp(),
BillingAccount = "billing_account2062abb6",
#pragma warning disable CS0612
Il4Settings = new Workload.Types.IL4Settings(),
CjisSettings = new Workload.Types.CJISSettings(),
#pragma warning restore CS0612
Etag = "etage8ad7218",
Labels =
{
Expand All @@ -59,8 +61,12 @@ public void UpdateWorkloadRequestObject()
"value60c16320"
},
},
#pragma warning disable CS0612
FedrampHighSettings = new Workload.Types.FedrampHighSettings(),
FedrampModerateSettings = new Workload.Types.FedrampModerateSettings(),
#pragma warning restore CS0612
ProvisionedResourcesParent = "provisioned_resources_parent4d000dc9",
KmsSettings = new Workload.Types.KMSSettings(),
};
mockGrpcClient.Setup(x => x.UpdateWorkload(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -90,8 +96,10 @@ public void UpdateWorkloadRequestObject()
ComplianceRegime = Workload.Types.ComplianceRegime.FedrampHigh,
CreateTime = new wkt::Timestamp(),
BillingAccount = "billing_account2062abb6",
#pragma warning disable CS0612
Il4Settings = new Workload.Types.IL4Settings(),
CjisSettings = new Workload.Types.CJISSettings(),
#pragma warning restore CS0612
Etag = "etage8ad7218",
Labels =
{
Expand All @@ -100,8 +108,12 @@ public void UpdateWorkloadRequestObject()
"value60c16320"
},
},
#pragma warning disable CS0612
FedrampHighSettings = new Workload.Types.FedrampHighSettings(),
FedrampModerateSettings = new Workload.Types.FedrampModerateSettings(),
#pragma warning restore CS0612
ProvisionedResourcesParent = "provisioned_resources_parent4d000dc9",
KmsSettings = new Workload.Types.KMSSettings(),
};
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 @@ -133,8 +145,10 @@ public void UpdateWorkload()
ComplianceRegime = Workload.Types.ComplianceRegime.FedrampHigh,
CreateTime = new wkt::Timestamp(),
BillingAccount = "billing_account2062abb6",
#pragma warning disable CS0612
Il4Settings = new Workload.Types.IL4Settings(),
CjisSettings = new Workload.Types.CJISSettings(),
#pragma warning restore CS0612
Etag = "etage8ad7218",
Labels =
{
Expand All @@ -143,8 +157,12 @@ public void UpdateWorkload()
"value60c16320"
},
},
#pragma warning disable CS0612
FedrampHighSettings = new Workload.Types.FedrampHighSettings(),
FedrampModerateSettings = new Workload.Types.FedrampModerateSettings(),
#pragma warning restore CS0612
ProvisionedResourcesParent = "provisioned_resources_parent4d000dc9",
KmsSettings = new Workload.Types.KMSSettings(),
};
mockGrpcClient.Setup(x => x.UpdateWorkload(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -174,8 +192,10 @@ public void UpdateWorkload()
ComplianceRegime = Workload.Types.ComplianceRegime.FedrampHigh,
CreateTime = new wkt::Timestamp(),
BillingAccount = "billing_account2062abb6",
#pragma warning disable CS0612
Il4Settings = new Workload.Types.IL4Settings(),
CjisSettings = new Workload.Types.CJISSettings(),
#pragma warning restore CS0612
Etag = "etage8ad7218",
Labels =
{
Expand All @@ -184,8 +204,12 @@ public void UpdateWorkload()
"value60c16320"
},
},
#pragma warning disable CS0612
FedrampHighSettings = new Workload.Types.FedrampHighSettings(),
FedrampModerateSettings = new Workload.Types.FedrampModerateSettings(),
#pragma warning restore CS0612
ProvisionedResourcesParent = "provisioned_resources_parent4d000dc9",
KmsSettings = new Workload.Types.KMSSettings(),
};
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 @@ -317,8 +341,10 @@ public void GetWorkloadRequestObject()
ComplianceRegime = Workload.Types.ComplianceRegime.FedrampHigh,
CreateTime = new wkt::Timestamp(),
BillingAccount = "billing_account2062abb6",
#pragma warning disable CS0612
Il4Settings = new Workload.Types.IL4Settings(),
CjisSettings = new Workload.Types.CJISSettings(),
#pragma warning restore CS0612
Etag = "etage8ad7218",
Labels =
{
Expand All @@ -327,8 +353,12 @@ public void GetWorkloadRequestObject()
"value60c16320"
},
},
#pragma warning disable CS0612
FedrampHighSettings = new Workload.Types.FedrampHighSettings(),
FedrampModerateSettings = new Workload.Types.FedrampModerateSettings(),
#pragma warning restore CS0612
ProvisionedResourcesParent = "provisioned_resources_parent4d000dc9",
KmsSettings = new Workload.Types.KMSSettings(),
};
mockGrpcClient.Setup(x => x.GetWorkload(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -357,8 +387,10 @@ public void GetWorkloadRequestObject()
ComplianceRegime = Workload.Types.ComplianceRegime.FedrampHigh,
CreateTime = new wkt::Timestamp(),
BillingAccount = "billing_account2062abb6",
#pragma warning disable CS0612
Il4Settings = new Workload.Types.IL4Settings(),
CjisSettings = new Workload.Types.CJISSettings(),
#pragma warning restore CS0612
Etag = "etage8ad7218",
Labels =
{
Expand All @@ -367,8 +399,12 @@ public void GetWorkloadRequestObject()
"value60c16320"
},
},
#pragma warning disable CS0612
FedrampHighSettings = new Workload.Types.FedrampHighSettings(),
FedrampModerateSettings = new Workload.Types.FedrampModerateSettings(),
#pragma warning restore CS0612
ProvisionedResourcesParent = "provisioned_resources_parent4d000dc9",
KmsSettings = new Workload.Types.KMSSettings(),
};
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 @@ -399,8 +435,10 @@ public void GetWorkload()
ComplianceRegime = Workload.Types.ComplianceRegime.FedrampHigh,
CreateTime = new wkt::Timestamp(),
BillingAccount = "billing_account2062abb6",
#pragma warning disable CS0612
Il4Settings = new Workload.Types.IL4Settings(),
CjisSettings = new Workload.Types.CJISSettings(),
#pragma warning restore CS0612
Etag = "etage8ad7218",
Labels =
{
Expand All @@ -409,8 +447,12 @@ public void GetWorkload()
"value60c16320"
},
},
#pragma warning disable CS0612
FedrampHighSettings = new Workload.Types.FedrampHighSettings(),
FedrampModerateSettings = new Workload.Types.FedrampModerateSettings(),
#pragma warning restore CS0612
ProvisionedResourcesParent = "provisioned_resources_parent4d000dc9",
KmsSettings = new Workload.Types.KMSSettings(),
};
mockGrpcClient.Setup(x => x.GetWorkload(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -439,8 +481,10 @@ public void GetWorkload()
ComplianceRegime = Workload.Types.ComplianceRegime.FedrampHigh,
CreateTime = new wkt::Timestamp(),
BillingAccount = "billing_account2062abb6",
#pragma warning disable CS0612
Il4Settings = new Workload.Types.IL4Settings(),
CjisSettings = new Workload.Types.CJISSettings(),
#pragma warning restore CS0612
Etag = "etage8ad7218",
Labels =
{
Expand All @@ -449,8 +493,12 @@ public void GetWorkload()
"value60c16320"
},
},
#pragma warning disable CS0612
FedrampHighSettings = new Workload.Types.FedrampHighSettings(),
FedrampModerateSettings = new Workload.Types.FedrampModerateSettings(),
#pragma warning restore CS0612
ProvisionedResourcesParent = "provisioned_resources_parent4d000dc9",
KmsSettings = new Workload.Types.KMSSettings(),
};
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,8 +529,10 @@ public void GetWorkloadResourceNames()
ComplianceRegime = Workload.Types.ComplianceRegime.FedrampHigh,
CreateTime = new wkt::Timestamp(),
BillingAccount = "billing_account2062abb6",
#pragma warning disable CS0612
Il4Settings = new Workload.Types.IL4Settings(),
CjisSettings = new Workload.Types.CJISSettings(),
#pragma warning restore CS0612
Etag = "etage8ad7218",
Labels =
{
Expand All @@ -491,8 +541,12 @@ public void GetWorkloadResourceNames()
"value60c16320"
},
},
#pragma warning disable CS0612
FedrampHighSettings = new Workload.Types.FedrampHighSettings(),
FedrampModerateSettings = new Workload.Types.FedrampModerateSettings(),
#pragma warning restore CS0612
ProvisionedResourcesParent = "provisioned_resources_parent4d000dc9",
KmsSettings = new Workload.Types.KMSSettings(),
};
mockGrpcClient.Setup(x => x.GetWorkload(request, moq::It.IsAny<grpccore::CallOptions>())).Returns(expectedResponse);
AssuredWorkloadsServiceClient client = new AssuredWorkloadsServiceClientImpl(mockGrpcClient.Object, null);
Expand Down Expand Up @@ -521,8 +575,10 @@ public void GetWorkloadResourceNames()
ComplianceRegime = Workload.Types.ComplianceRegime.FedrampHigh,
CreateTime = new wkt::Timestamp(),
BillingAccount = "billing_account2062abb6",
#pragma warning disable CS0612
Il4Settings = new Workload.Types.IL4Settings(),
CjisSettings = new Workload.Types.CJISSettings(),
#pragma warning restore CS0612
Etag = "etage8ad7218",
Labels =
{
Expand All @@ -531,8 +587,12 @@ public void GetWorkloadResourceNames()
"value60c16320"
},
},
#pragma warning disable CS0612
FedrampHighSettings = new Workload.Types.FedrampHighSettings(),
FedrampModerateSettings = new Workload.Types.FedrampModerateSettings(),
#pragma warning restore CS0612
ProvisionedResourcesParent = "provisioned_resources_parent4d000dc9",
KmsSettings = new Workload.Types.KMSSettings(),
};
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

0 comments on commit 342a932

Please sign in to comment.