Class: Google::Apis::DeploymentmanagerV2::Resource

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

Defined Under Namespace

Classes: Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Resource

Returns a new instance of Resource.

[View source]

1211
1212
1213
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 1211

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


1148
1149
1150
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 1148

def access_control
  @access_control
end

#final_propertiesString

Output only. The evaluated properties of the resource with references expanded. Returned as serialized YAML. Corresponds to the JSON property finalProperties

Returns:

  • (String)

1154
1155
1156
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 1154

def final_properties
  @final_properties
end

#idFixnum

Corresponds to the JSON property id

Returns:

  • (Fixnum)

1159
1160
1161
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 1159

def id
  @id
end

#insert_timeString

Output only. Creation timestamp in RFC3339 text format. Corresponds to the JSON property insertTime

Returns:

  • (String)

1164
1165
1166
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 1164

def insert_time
  @insert_time
end

#manifestString

Output only. URL of the manifest representing the current configuration of this resource. Corresponds to the JSON property manifest

Returns:

  • (String)

1170
1171
1172
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 1170

def manifest
  @manifest
end

#nameString

Output only. The name of the resource as it appears in the YAML config. Corresponds to the JSON property name

Returns:

  • (String)

1175
1176
1177
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 1175

def name
  @name
end

#propertiesString

Output only. The current properties of the resource before any references have been filled in. Returned as serialized YAML. Corresponds to the JSON property properties

Returns:

  • (String)

1181
1182
1183
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 1181

def properties
  @properties
end

#typeString

Output only. The type of the resource, for example compute.v1.instance, or cloudfunctions.v1beta1.function. Corresponds to the JSON property type

Returns:

  • (String)

1187
1188
1189
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 1187

def type
  @type
end

#updateGoogle::Apis::DeploymentmanagerV2::ResourceUpdate

Output only. If Deployment Manager is currently updating or previewing an update to this resource, the updated configuration appears here. Corresponds to the JSON property update


1193
1194
1195
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 1193

def update
  @update
end

#update_timeString

Output only. Update timestamp in RFC3339 text format. Corresponds to the JSON property updateTime

Returns:

  • (String)

1198
1199
1200
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 1198

def update_time
  @update_time
end

#urlString

Output only. The URL of the actual resource. Corresponds to the JSON property url

Returns:

  • (String)

1203
1204
1205
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 1203

def url
  @url
end

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

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


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

def warnings
  @warnings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 1216

def update!(**args)
  @access_control = args[:access_control] if args.key?(:access_control)
  @final_properties = args[:final_properties] if args.key?(:final_properties)
  @id = args[:id] if args.key?(:id)
  @insert_time = args[:insert_time] if args.key?(:insert_time)
  @manifest = args[:manifest] if args.key?(:manifest)
  @name = args[:name] if args.key?(:name)
  @properties = args[:properties] if args.key?(:properties)
  @type = args[:type] if args.key?(:type)
  @update = args[:update] if args.key?(:update)
  @update_time = args[:update_time] if args.key?(:update_time)
  @url = args[:url] if args.key?(:url)
  @warnings = args[:warnings] if args.key?(:warnings)
end