Class: Google::Apis::DeploymentmanagerV2::ResourceUpdate

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/deploymentmanager_v2/classes.rb,
generated/google/apis/deploymentmanager_v2/representations.rb,
generated/google/apis/deploymentmanager_v2/representations.rb

Defined Under Namespace

Classes: Error, Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ResourceUpdate

Returns a new instance of ResourceUpdate



1251
1252
1253
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1251

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

Instance Attribute Details

#access_controlGoogle::Apis::DeploymentmanagerV2::ResourceAccessControl

The access controls set on the resource. Corresponds to the JSON property accessControl



1209
1210
1211
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1209

def access_control
  @access_control
end

#errorGoogle::Apis::DeploymentmanagerV2::ResourceUpdate::Error

[Output Only] If errors are generated during update of the resource, this field will be populated. Corresponds to the JSON property error



1215
1216
1217
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1215

def error
  @error
end

#final_propertiesString

[Output Only] The expanded properties of the resource with reference values expanded. Returned as serialized YAML. Corresponds to the JSON property finalProperties

Returns:

  • (String)


1221
1222
1223
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1221

def final_properties
  @final_properties
end

#intentString

[Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL. Corresponds to the JSON property intent

Returns:

  • (String)


1226
1227
1228
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1226

def intent
  @intent
end

#manifestString

[Output Only] URL of the manifest representing the update configuration of this resource. Corresponds to the JSON property manifest

Returns:

  • (String)


1232
1233
1234
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1232

def manifest
  @manifest
end

#propertiesString

[Output Only] The set of updated properties for this resource, before references are expanded. Returned as serialized YAML. Corresponds to the JSON property properties

Returns:

  • (String)


1238
1239
1240
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1238

def properties
  @properties
end

#stateString

[Output Only] The state of the resource. Corresponds to the JSON property state

Returns:

  • (String)


1243
1244
1245
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1243

def state
  @state
end

#warningsArray<Google::Apis::DeploymentmanagerV2::ResourceUpdate::Warning>

[Output Only] If warning messages are generated during processing of this resource, this field will be populated. Corresponds to the JSON property warnings



1249
1250
1251
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1249

def warnings
  @warnings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1256

def update!(**args)
  @access_control = args[:access_control] if args.key?(:access_control)
  @error = args[:error] if args.key?(:error)
  @final_properties = args[:final_properties] if args.key?(:final_properties)
  @intent = args[:intent] if args.key?(:intent)
  @manifest = args[:manifest] if args.key?(:manifest)
  @properties = args[:properties] if args.key?(:properties)
  @state = args[:state] if args.key?(:state)
  @warnings = args[:warnings] if args.key?(:warnings)
end