Skip to content

Commit d12b885

Browse files
feat: Add Canada regions and support compliance regime (#73)
- [ ] Regenerate this pull request now. Committer: @ketanbshah PiperOrigin-RevId: 393142547 Source-Link: googleapis/googleapis@4b6bb3d Source-Link: googleapis/googleapis-gen@f70128a fix: ResourceType CONSUMER_PROJECT is deprecated feat: ResourceType CONSUMER_FOLDER and KEYRING are added feat: display_name is added to ResourceSettings fix: billing_account is now optional in Workload feat: resource_settings is added to CreateWorkloadOperationMetadata
1 parent 3cf5ff0 commit d12b885

1 file changed

Lines changed: 25 additions & 11 deletions

File tree

packages/google-cloud-assured-workloads/google/cloud/assuredworkloads_v1beta1/types/assuredworkloads_v1beta1.py

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ class Workload(proto.Message):
181181
Output only. Immutable. The Workload creation
182182
timestamp.
183183
billing_account (str):
184-
Required. Input only. The billing account used for the
185-
resources which are direct children of workload. This
186-
billing account is initially associated with the resources
187-
created as part of Workload creation. After the initial
188-
creation of these resources, the customer can change the
189-
assigned billing account. The resource name has the form
184+
Input only. The billing account used for the resources which
185+
are direct children of workload. This billing account is
186+
initially associated with the resources created as part of
187+
Workload creation. After the initial creation of these
188+
resources, the customer can change the assigned billing
189+
account. The resource name has the form
190190
``billingAccounts/{billing_account_id}``. For example,
191191
``billingAccounts/012345-567890-ABCDEF``.
192192
il4_settings (google.cloud.assuredworkloads_v1beta1.types.Workload.IL4Settings):
@@ -211,11 +211,10 @@ class Workload(proto.Message):
211211
Optional. Labels applied to the workload.
212212
provisioned_resources_parent (str):
213213
Input only. The parent resource for the resources managed by
214-
this Assured Workload. May be either an organization or a
215-
folder. Must be the same or a child of the Workload parent.
216-
If not specified all resources are created under the
217-
Workload parent. Formats: folders/{folder_id}
218-
organizations/{organization_id}
214+
this Assured Workload. May be either empty or a folder
215+
resource which is a child of the Workload parent. If not
216+
specified all resources are created under the parent
217+
organization. Format: folders/{folder_id}
219218
kms_settings (google.cloud.assuredworkloads_v1beta1.types.Workload.KMSSettings):
220219
Input only. Settings used to create a CMEK
221220
crypto key. When set a project with a KMS CMEK
@@ -240,6 +239,7 @@ class ComplianceRegime(proto.Enum):
240239
HIPAA = 6
241240
HITRUST = 7
242241
EU_REGIONS_AND_SUPPORT = 8
242+
CA_REGIONS_AND_SUPPORT = 9
243243

244244
class ResourceInfo(proto.Message):
245245
r"""Represent the resources that are children of this Workload.
@@ -255,7 +255,9 @@ class ResourceType(proto.Enum):
255255
r"""The type of resource."""
256256
RESOURCE_TYPE_UNSPECIFIED = 0
257257
CONSUMER_PROJECT = 1
258+
CONSUMER_FOLDER = 4
258259
ENCRYPTION_KEYS_PROJECT = 2
260+
KEYRING = 3
259261

260262
resource_id = proto.Field(proto.INT64, number=1,)
261263
resource_type = proto.Field(
@@ -345,12 +347,17 @@ class ResourceSettings(proto.Message):
345347
Indicates the type of resource. This field should be
346348
specified to correspond the id to the right project type
347349
(CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT)
350+
display_name (str):
351+
User-assigned resource display name.
352+
If not empty it will be used to create a
353+
resource with the specified name.
348354
"""
349355

350356
resource_id = proto.Field(proto.STRING, number=1,)
351357
resource_type = proto.Field(
352358
proto.ENUM, number=2, enum="Workload.ResourceInfo.ResourceType",
353359
)
360+
display_name = proto.Field(proto.STRING, number=3,)
354361

355362
name = proto.Field(proto.STRING, number=1,)
356363
display_name = proto.Field(proto.STRING, number=2,)
@@ -405,6 +412,10 @@ class CreateWorkloadOperationMetadata(proto.Message):
405412
Optional. Compliance controls that should be
406413
applied to the resources managed by the
407414
workload.
415+
resource_settings (Sequence[google.cloud.assuredworkloads_v1beta1.types.Workload.ResourceSettings]):
416+
Optional. Resource properties in the input
417+
that are used for creating/customizing workload
418+
resources.
408419
"""
409420

410421
create_time = proto.Field(proto.MESSAGE, number=1, message=timestamp_pb2.Timestamp,)
@@ -413,6 +424,9 @@ class CreateWorkloadOperationMetadata(proto.Message):
413424
compliance_regime = proto.Field(
414425
proto.ENUM, number=4, enum="Workload.ComplianceRegime",
415426
)
427+
resource_settings = proto.RepeatedField(
428+
proto.MESSAGE, number=5, message="Workload.ResourceSettings",
429+
)
416430

417431

418432
__all__ = tuple(sorted(__protobuf__.manifest))

0 commit comments

Comments
 (0)