Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata

Inherits:
Object
  • Object
show all
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

Operation metadata to give request details of CreateWorkload.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata

Returns a new instance of GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata.



255
256
257
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 255

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#compliance_regimeString

Optional. Compliance controls that should be applied to the resources managed by the workload. Corresponds to the JSON property complianceRegime

Returns:

  • (String)


238
239
240
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 238

def compliance_regime
  @compliance_regime
end

#create_timeString

Optional. Time when the operation was created. Corresponds to the JSON property createTime

Returns:

  • (String)


243
244
245
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 243

def create_time
  @create_time
end

#display_nameString

Optional. The display name of the workload. Corresponds to the JSON property displayName

Returns:

  • (String)


248
249
250
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 248

def display_name
  @display_name
end

#parentString

Optional. The parent of the workload. Corresponds to the JSON property parent

Returns:

  • (String)


253
254
255
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 253

def parent
  @parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



260
261
262
263
264
265
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 260

def update!(**args)
  @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)
  @parent = args[:parent] if args.key?(:parent)
end