Class: Google::Apis::ClouddeployV1::DeliveryPipeline

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 DeliveryPipeline resource in the Google Cloud Deploy API. A DeliveryPipeline defines a pipeline through which a Skaffold configuration can progress.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeliveryPipeline

Returns a new instance of DeliveryPipeline.



466
467
468
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 466

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

Instance Attribute Details

#annotationsHash<String,String>

User annotations. These attributes can only be set and used by the user, and not by Google 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>)


403
404
405
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 403

def annotations
  @annotations
end

#conditionGoogle::Apis::ClouddeployV1::PipelineCondition

PipelineCondition contains all conditions relevant to a Delivery Pipeline. Corresponds to the JSON property condition



408
409
410
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 408

def condition
  @condition
end

#create_timeString

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

Returns:

  • (String)


413
414
415
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 413

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


418
419
420
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 418

def description
  @description
end

#etagString

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)


425
426
427
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 425

def etag
  @etag
end

#labelsHash<String,String>

Labels are attributes that can be set and used by both the user and by Google 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>)


436
437
438
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 436

def labels
  @labels
end

#nameString

Optional. Name of the DeliveryPipeline. Format is projects/project/ locations/location/deliveryPipelines/a-z0,62. Corresponds to the JSON property name

Returns:

  • (String)


442
443
444
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 442

def name
  @name
end

#serial_pipelineGoogle::Apis::ClouddeployV1::SerialPipeline

SerialPipeline defines a sequential set of stages for a DeliveryPipeline. Corresponds to the JSON property serialPipeline



447
448
449
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 447

def serial_pipeline
  @serial_pipeline
end

#suspendedBoolean Also known as: suspended?

When suspended, no new releases or rollouts can be created, but in-progress ones will complete. Corresponds to the JSON property suspended

Returns:

  • (Boolean)


453
454
455
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 453

def suspended
  @suspended
end

#uidString

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

Returns:

  • (String)


459
460
461
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 459

def uid
  @uid
end

#update_timeString

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

Returns:

  • (String)


464
465
466
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 464

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



471
472
473
474
475
476
477
478
479
480
481
482
483
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 471

def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @condition = args[:condition] if args.key?(:condition)
  @create_time = args[:create_time] if args.key?(:create_time)
  @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)
  @serial_pipeline = args[:serial_pipeline] if args.key?(:serial_pipeline)
  @suspended = args[:suspended] if args.key?(:suspended)
  @uid = args[:uid] if args.key?(:uid)
  @update_time = args[:update_time] if args.key?(:update_time)
end