Class: Google::Apis::ClouddeployV1::CustomTargetType

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

Overview

A CustomTargetType resource in the Cloud Deploy API. A CustomTargetType defines a type of custom target that can be referenced in a Target in order to facilitate deploying to a runtime that does not have a 1P integration with Cloud Deploy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomTargetType

Returns a new instance of CustomTargetType.



1415
1416
1417
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1415

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

Instance Attribute Details

#annotationsHash<String,String>

Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations. Corresponds to the JSON property annotations

Returns:

  • (Hash<String,String>)


1358
1359
1360
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1358

def annotations
  @annotations
end

#create_timeString

Output only. Time at which the CustomTargetType was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1363
1364
1365
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1363

def create_time
  @create_time
end

#custom_actionsGoogle::Apis::ClouddeployV1::CustomTargetSkaffoldActions

CustomTargetSkaffoldActions represents the CustomTargetType configuration using Skaffold custom actions. Corresponds to the JSON property customActions



1369
1370
1371
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1369

def custom_actions
  @custom_actions
end

#custom_target_type_idString

Output only. Resource id of the CustomTargetType. Corresponds to the JSON property customTargetTypeId

Returns:

  • (String)


1374
1375
1376
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1374

def custom_target_type_id
  @custom_target_type_id
end

#descriptionString

Optional. Description of the CustomTargetType. Max length is 255 characters. Corresponds to the JSON property description

Returns:

  • (String)


1379
1380
1381
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1379

def description
  @description
end

#etagString

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. Corresponds to the JSON property etag

Returns:

  • (String)


1386
1387
1388
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1386

def etag
  @etag
end

#labelsHash<String,String>

Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1397
1398
1399
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1397

def labels
  @labels
end

#nameString

Optional. Name of the CustomTargetType. Format is projects/project/ locations/location/customTargetTypes/a-z0,62`. Corresponds to the JSON propertyname`

Returns:

  • (String)


1403
1404
1405
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1403

def name
  @name
end

#uidString

Output only. Unique identifier of the CustomTargetType. Corresponds to the JSON property uid

Returns:

  • (String)


1408
1409
1410
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1408

def uid
  @uid
end

#update_timeString

Output only. Most recent time at which the CustomTargetType was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1413
1414
1415
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1413

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1420

def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @create_time = args[:create_time] if args.key?(:create_time)
  @custom_actions = args[:custom_actions] if args.key?(:custom_actions)
  @custom_target_type_id = args[:custom_target_type_id] if args.key?(:custom_target_type_id)
  @description = args[:description] if args.key?(:description)
  @etag = args[:etag] if args.key?(:etag)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @uid = args[:uid] if args.key?(:uid)
  @update_time = args[:update_time] if args.key?(:update_time)
end