Class: Google::Apis::ClouddeployV1::Release

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 Release resource in the Google Cloud Deploy API. A Release defines a specific Skaffold configuration instance that can be deployed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Release

Returns a new instance of Release.



1755
1756
1757
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1755

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

Instance Attribute Details

#abandonedBoolean Also known as: abandoned?

Output only. Indicates whether this is an abandoned release. Corresponds to the JSON property abandoned

Returns:

  • (Boolean)


1645
1646
1647
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1645

def abandoned
  @abandoned
end

#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>)


1653
1654
1655
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1653

def annotations
  @annotations
end

#build_artifactsArray<Google::Apis::ClouddeployV1::BuildArtifact>

List of artifacts to pass through to Skaffold command. Corresponds to the JSON property buildArtifacts



1658
1659
1660
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1658

def build_artifacts
  @build_artifacts
end

#create_timeString

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

Returns:

  • (String)


1663
1664
1665
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1663

def create_time
  @create_time
end

#delivery_pipeline_snapshotGoogle::Apis::ClouddeployV1::DeliveryPipeline

A DeliveryPipeline resource in the Google Cloud Deploy API. A DeliveryPipeline defines a pipeline through which a Skaffold configuration can progress. Corresponds to the JSON property deliveryPipelineSnapshot



1670
1671
1672
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1670

def delivery_pipeline_snapshot
  @delivery_pipeline_snapshot
end

#descriptionString

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

Returns:

  • (String)


1675
1676
1677
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1675

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)


1682
1683
1684
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1682

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>)


1693
1694
1695
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1693

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


1699
1700
1701
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1699

def name
  @name
end

#render_end_timeString

Output only. Time at which the render completed. Corresponds to the JSON property renderEndTime

Returns:

  • (String)


1704
1705
1706
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1704

def render_end_time
  @render_end_time
end

#render_start_timeString

Output only. Time at which the render began. Corresponds to the JSON property renderStartTime

Returns:

  • (String)


1709
1710
1711
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1709

def render_start_time
  @render_start_time
end

#render_stateString

Output only. Current state of the render operation. Corresponds to the JSON property renderState

Returns:

  • (String)


1714
1715
1716
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1714

def render_state
  @render_state
end

#skaffold_config_pathString

Filepath of the Skaffold config inside of the config URI. Corresponds to the JSON property skaffoldConfigPath

Returns:

  • (String)


1719
1720
1721
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1719

def skaffold_config_path
  @skaffold_config_path
end

#skaffold_config_uriString

Cloud Storage URI of tar.gz archive containing Skaffold configuration. Corresponds to the JSON property skaffoldConfigUri

Returns:

  • (String)


1724
1725
1726
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1724

def skaffold_config_uri
  @skaffold_config_uri
end

#skaffold_versionString

The Skaffold version to use when operating on this release, such as "1.20.0". Not all versions are valid; Google Cloud Deploy supports a specific set of versions. If unset, the most recent supported Skaffold version will be used. Corresponds to the JSON property skaffoldVersion

Returns:

  • (String)


1731
1732
1733
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1731

def skaffold_version
  @skaffold_version
end

#target_artifactsHash<String,Google::Apis::ClouddeployV1::TargetArtifact>

Output only. Map from target ID to the target artifacts created during the render operation. Corresponds to the JSON property targetArtifacts



1737
1738
1739
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1737

def target_artifacts
  @target_artifacts
end

#target_rendersHash<String,Google::Apis::ClouddeployV1::TargetRender>

Output only. Map from target ID to details of the render operation for that target. Corresponds to the JSON property targetRenders



1743
1744
1745
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1743

def target_renders
  @target_renders
end

#target_snapshotsArray<Google::Apis::ClouddeployV1::Target>

Output only. Snapshot of the targets taken at release creation time. Corresponds to the JSON property targetSnapshots



1748
1749
1750
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1748

def target_snapshots
  @target_snapshots
end

#uidString

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

Returns:

  • (String)


1753
1754
1755
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1753

def uid
  @uid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1760

def update!(**args)
  @abandoned = args[:abandoned] if args.key?(:abandoned)
  @annotations = args[:annotations] if args.key?(:annotations)
  @build_artifacts = args[:build_artifacts] if args.key?(:build_artifacts)
  @create_time = args[:create_time] if args.key?(:create_time)
  @delivery_pipeline_snapshot = args[:delivery_pipeline_snapshot] if args.key?(:delivery_pipeline_snapshot)
  @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)
  @render_end_time = args[:render_end_time] if args.key?(:render_end_time)
  @render_start_time = args[:render_start_time] if args.key?(:render_start_time)
  @render_state = args[:render_state] if args.key?(:render_state)
  @skaffold_config_path = args[:skaffold_config_path] if args.key?(:skaffold_config_path)
  @skaffold_config_uri = args[:skaffold_config_uri] if args.key?(:skaffold_config_uri)
  @skaffold_version = args[:skaffold_version] if args.key?(:skaffold_version)
  @target_artifacts = args[:target_artifacts] if args.key?(:target_artifacts)
  @target_renders = args[:target_renders] if args.key?(:target_renders)
  @target_snapshots = args[:target_snapshots] if args.key?(:target_snapshots)
  @uid = args[:uid] if args.key?(:uid)
end