Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Workload
- Inherits:
-
Object
- Object
- Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Workload
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/assuredworkloads_v1/classes.rb,
generated/google/apis/assuredworkloads_v1/representations.rb,
generated/google/apis/assuredworkloads_v1/representations.rb
Overview
An Workload object for managing highly regulated workloads of cloud customers.
Instance Attribute Summary collapse
-
#billing_account ⇒ String
Required.
-
#compliance_regime ⇒ String
Required.
-
#create_time ⇒ String
Output only.
-
#display_name ⇒ String
Required.
-
#etag ⇒ String
Optional.
-
#kms_settings ⇒ Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadKmsSettings
Settings specific to the Key Management Service.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Optional.
-
#provisioned_resources_parent ⇒ String
Input only.
-
#resources ⇒ Array<Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadResourceInfo>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1Workload
constructor
A new instance of GoogleCloudAssuredworkloadsV1Workload.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1Workload
Returns a new instance of GoogleCloudAssuredworkloadsV1Workload.
157 158 159 |
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 157 def initialize(**args) update!(**args) end |
Instance Attribute Details
#billing_account ⇒ String
Required. Input only. The billing account used for the resources which are
direct children of workload. This billing account is initially associated with
the resources created as part of Workload creation. After the initial creation
of these resources, the customer can change the assigned billing account. The
resource name has the form billingAccounts/
billing_account_id`. For example,
billingAccounts/012345-567890-ABCDEF.
Corresponds to the JSON property
billingAccount`
100 101 102 |
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 100 def billing_account @billing_account end |
#compliance_regime ⇒ String
Required. Immutable. Compliance Regime associated with this workload.
Corresponds to the JSON property complianceRegime
105 106 107 |
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 105 def compliance_regime @compliance_regime end |
#create_time ⇒ String
Output only. Immutable. The Workload creation timestamp.
Corresponds to the JSON property createTime
110 111 112 |
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 110 def create_time @create_time end |
#display_name ⇒ String
Required. The user-assigned display name of the Workload. When present it must
be between 4 to 30 characters. Allowed characters are: lowercase and uppercase
letters, numbers, hyphen, and spaces. Example: My Workload
Corresponds to the JSON property displayName
117 118 119 |
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 117 def display_name @display_name end |
#etag ⇒ String
Optional. ETag of the workload, it is calculated on the basis of the Workload
contents. It will be used in Update & Delete operations.
Corresponds to the JSON property etag
123 124 125 |
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 123 def etag @etag end |
#kms_settings ⇒ Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadKmsSettings
Settings specific to the Key Management Service.
Corresponds to the JSON property kmsSettings
128 129 130 |
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 128 def kms_settings @kms_settings end |
#labels ⇒ Hash<String,String>
Optional. Labels applied to the workload.
Corresponds to the JSON property labels
133 134 135 |
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 133 def labels @labels end |
#name ⇒ String
Optional. The resource name of the workload. Format: organizations/
organization
/locations/location
/workloads/workload
Read-only.
Corresponds to the JSON property name
139 140 141 |
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 139 def name @name end |
#provisioned_resources_parent ⇒ String
Input only. The parent resource for the resources managed by this Assured
Workload. May be either an organization or a folder. Must be the same or a
child of the Workload parent. If not specified all resources are created under
the Workload parent. Formats: folders/folder_id
organizations/
organization_id
Corresponds to the JSON property provisionedResourcesParent
148 149 150 |
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 148 def provisioned_resources_parent @provisioned_resources_parent end |
#resources ⇒ Array<Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadResourceInfo>
Output only. The resources associated with this workload. These resources will
be created when creating the workload. If any of the projects already exist,
the workload creation will fail. Always read only.
Corresponds to the JSON property resources
155 156 157 |
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 155 def resources @resources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
162 163 164 165 166 167 168 169 170 171 172 173 |
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 162 def update!(**args) @billing_account = args[:billing_account] if args.key?(:billing_account) @compliance_regime = args[:compliance_regime] if args.key?(:compliance_regime) @create_time = args[:create_time] if args.key?(:create_time) @display_name = args[:display_name] if args.key?(:display_name) @etag = args[:etag] if args.key?(:etag) @kms_settings = args[:kms_settings] if args.key?(:kms_settings) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @provisioned_resources_parent = args[:provisioned_resources_parent] if args.key?(:provisioned_resources_parent) @resources = args[:resources] if args.key?(:resources) end |