Class: Google::Apis::ClouddeployV1::Release
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::Release
- 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 Cloud Deploy API. A Release defines a specific
Skaffold configuration instance that can be deployed.
Instance Attribute Summary collapse
-
#abandoned ⇒ Boolean
(also: #abandoned?)
Output only.
-
#annotations ⇒ Hash<String,String>
Optional.
-
#build_artifacts ⇒ Array<Google::Apis::ClouddeployV1::BuildArtifact>
Optional.
-
#condition ⇒ Google::Apis::ClouddeployV1::ReleaseCondition
ReleaseCondition contains all conditions relevant to a Release.
-
#create_time ⇒ String
Output only.
-
#custom_target_type_snapshots ⇒ Array<Google::Apis::ClouddeployV1::CustomTargetType>
Output only.
-
#delivery_pipeline_snapshot ⇒ Google::Apis::ClouddeployV1::DeliveryPipeline
A
DeliveryPipelineresource in the Cloud Deploy API. -
#deploy_parameters ⇒ Hash<String,String>
Optional.
-
#description ⇒ String
Optional.
-
#etag ⇒ String
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.
-
#labels ⇒ Hash<String,String>
Labels are attributes that can be set and used by both the user and by Cloud Deploy.
-
#name ⇒ String
Identifier.
-
#render_end_time ⇒ String
Output only.
-
#render_start_time ⇒ String
Output only.
-
#render_state ⇒ String
Output only.
-
#skaffold_config_path ⇒ String
Optional.
-
#skaffold_config_uri ⇒ String
Optional.
-
#skaffold_version ⇒ String
Optional.
-
#target_artifacts ⇒ Hash<String,Google::Apis::ClouddeployV1::TargetArtifact>
Output only.
-
#target_renders ⇒ Hash<String,Google::Apis::ClouddeployV1::TargetRender>
Output only.
-
#target_snapshots ⇒ Array<Google::Apis::ClouddeployV1::Target>
Output only.
-
#uid ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Release
constructor
A new instance of Release.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Release
Returns a new instance of Release.
4218 4219 4220 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4218 def initialize(**args) update!(**args) end |
Instance Attribute Details
#abandoned ⇒ Boolean Also known as: abandoned?
Output only. Indicates whether this is an abandoned release.
Corresponds to the JSON property abandoned
4091 4092 4093 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4091 def abandoned @abandoned end |
#annotations ⇒ Hash<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
4099 4100 4101 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4099 def annotations @annotations end |
#build_artifacts ⇒ Array<Google::Apis::ClouddeployV1::BuildArtifact>
Optional. List of artifacts to pass through to Skaffold command.
Corresponds to the JSON property buildArtifacts
4104 4105 4106 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4104 def build_artifacts @build_artifacts end |
#condition ⇒ Google::Apis::ClouddeployV1::ReleaseCondition
ReleaseCondition contains all conditions relevant to a Release.
Corresponds to the JSON property condition
4109 4110 4111 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4109 def condition @condition end |
#create_time ⇒ String
Output only. Time at which the Release was created.
Corresponds to the JSON property createTime
4114 4115 4116 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4114 def create_time @create_time end |
#custom_target_type_snapshots ⇒ Array<Google::Apis::ClouddeployV1::CustomTargetType>
Output only. Snapshot of the custom target types referenced by the targets
taken at release creation time.
Corresponds to the JSON property customTargetTypeSnapshots
4120 4121 4122 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4120 def custom_target_type_snapshots @custom_target_type_snapshots end |
#delivery_pipeline_snapshot ⇒ Google::Apis::ClouddeployV1::DeliveryPipeline
A DeliveryPipeline resource in the Cloud Deploy API. A DeliveryPipeline
defines a pipeline through which a Skaffold configuration can progress.
Corresponds to the JSON property deliveryPipelineSnapshot
4126 4127 4128 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4126 def delivery_pipeline_snapshot @delivery_pipeline_snapshot end |
#deploy_parameters ⇒ Hash<String,String>
Optional. The deploy parameters to use for all targets in this release.
Corresponds to the JSON property deployParameters
4131 4132 4133 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4131 def deploy_parameters @deploy_parameters end |
#description ⇒ String
Optional. Description of the Release. Max length is 255 characters.
Corresponds to the JSON property description
4136 4137 4138 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4136 def description @description end |
#etag ⇒ String
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
4143 4144 4145 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4143 def etag @etag end |
#labels ⇒ Hash<String,String>
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
4154 4155 4156 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4154 def labels @labels end |
#name ⇒ String
Identifier. Name of the Release. Format is projects/project/locations/
location/deliveryPipelines/deliveryPipeline/releases/release`. The
releasecomponent must matcha-z?
Corresponds to the JSON propertyname`
4161 4162 4163 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4161 def name @name end |
#render_end_time ⇒ String
Output only. Time at which the render completed.
Corresponds to the JSON property renderEndTime
4166 4167 4168 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4166 def render_end_time @render_end_time end |
#render_start_time ⇒ String
Output only. Time at which the render began.
Corresponds to the JSON property renderStartTime
4171 4172 4173 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4171 def render_start_time @render_start_time end |
#render_state ⇒ String
Output only. Current state of the render operation.
Corresponds to the JSON property renderState
4176 4177 4178 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4176 def render_state @render_state end |
#skaffold_config_path ⇒ String
Optional. Filepath of the Skaffold config inside of the config URI.
Corresponds to the JSON property skaffoldConfigPath
4181 4182 4183 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4181 def skaffold_config_path @skaffold_config_path end |
#skaffold_config_uri ⇒ String
Optional. Cloud Storage URI of tar.gz archive containing Skaffold
configuration.
Corresponds to the JSON property skaffoldConfigUri
4187 4188 4189 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4187 def skaffold_config_uri @skaffold_config_uri end |
#skaffold_version ⇒ String
Optional. The Skaffold version to use when operating on this release, such as "
1.20.0". Not all versions are valid; 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
4194 4195 4196 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4194 def skaffold_version @skaffold_version end |
#target_artifacts ⇒ Hash<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
4200 4201 4202 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4200 def target_artifacts @target_artifacts end |
#target_renders ⇒ Hash<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
4206 4207 4208 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4206 def target_renders @target_renders end |
#target_snapshots ⇒ Array<Google::Apis::ClouddeployV1::Target>
Output only. Snapshot of the targets taken at release creation time.
Corresponds to the JSON property targetSnapshots
4211 4212 4213 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4211 def target_snapshots @target_snapshots end |
#uid ⇒ String
Output only. Unique identifier of the Release.
Corresponds to the JSON property uid
4216 4217 4218 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4216 def uid @uid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 4223 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) @condition = args[:condition] if args.key?(:condition) @create_time = args[:create_time] if args.key?(:create_time) @custom_target_type_snapshots = args[:custom_target_type_snapshots] if args.key?(:custom_target_type_snapshots) @delivery_pipeline_snapshot = args[:delivery_pipeline_snapshot] if args.key?(:delivery_pipeline_snapshot) @deploy_parameters = args[:deploy_parameters] if args.key?(:deploy_parameters) @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 |