Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsVersioningV1mainCreateWorkloadOperationMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/assuredworkloads_v1/classes.rb,
lib/google/apis/assuredworkloads_v1/representations.rb,
lib/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) ⇒ GoogleCloudAssuredworkloadsVersioningV1mainCreateWorkloadOperationMetadata

Returns a new instance of GoogleCloudAssuredworkloadsVersioningV1mainCreateWorkloadOperationMetadata.



757
758
759
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 757

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)


734
735
736
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 734

def compliance_regime
  @compliance_regime
end

#create_timeString

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

Returns:

  • (String)


739
740
741
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 739

def create_time
  @create_time
end

#display_nameString

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

Returns:

  • (String)


744
745
746
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 744

def display_name
  @display_name
end

#parentString

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

Returns:

  • (String)


749
750
751
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 749

def parent
  @parent
end

#resource_settingsArray<Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsVersioningV1mainWorkloadResourceSettings>

Optional. Resource properties in the input that are used for creating/ customizing workload resources. Corresponds to the JSON property resourceSettings



755
756
757
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 755

def resource_settings
  @resource_settings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



762
763
764
765
766
767
768
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 762

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)
  @resource_settings = args[:resource_settings] if args.key?(:resource_settings)
end