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 Google Cloud Deploy API. A Release defines a
specific Skaffold configuration instance that can be deployed.
Instance Attribute Summary collapse
-
#annotations ⇒ Hash<String,String>
User annotations.
-
#build_artifacts ⇒ Array<Google::Apis::ClouddeployV1::BuildArtifact>
List of artifacts to pass through to Skaffold command.
-
#create_time ⇒ String
Output only.
-
#delivery_pipeline_snapshot ⇒ Google::Apis::ClouddeployV1::DeliveryPipeline
A
DeliveryPipelineresource in the Google Cloud Deploy API. -
#description ⇒ String
Description of the
Release. -
#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 Google Cloud Deploy.
-
#name ⇒ String
Optional.
-
#render_end_time ⇒ String
Output only.
-
#render_start_time ⇒ String
Output only.
-
#render_state ⇒ String
Output only.
-
#skaffold_config_path ⇒ String
Filepath of the Skaffold config inside of the config URI.
-
#skaffold_config_uri ⇒ String
Cloud Storage URI of tar.gz archive containing Skaffold configuration.
-
#skaffold_version ⇒ String
The Skaffold version to use when operating on this release, such as "1.20.0".
-
#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.
1254 1255 1256 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1254 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotations ⇒ Hash<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
1152 1153 1154 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1152 def annotations @annotations end |
#build_artifacts ⇒ Array<Google::Apis::ClouddeployV1::BuildArtifact>
List of artifacts to pass through to Skaffold command.
Corresponds to the JSON property buildArtifacts
1157 1158 1159 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1157 def build_artifacts @build_artifacts end |
#create_time ⇒ String
Output only. Time at which the Release was created.
Corresponds to the JSON property createTime
1162 1163 1164 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1162 def create_time @create_time end |
#delivery_pipeline_snapshot ⇒ Google::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
1169 1170 1171 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1169 def delivery_pipeline_snapshot @delivery_pipeline_snapshot end |
#description ⇒ String
Description of the Release. Max length is 255 characters.
Corresponds to the JSON property description
1174 1175 1176 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1174 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
1181 1182 1183 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1181 def etag @etag end |
#labels ⇒ Hash<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
1192 1193 1194 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1192 def labels @labels end |
#name ⇒ String
Optional. Name of the Release. Format is projects/project/ locations/
location/deliveryPipelines/deliveryPipeline/ releases/a-z0,62.
Corresponds to the JSON property name
1198 1199 1200 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1198 def name @name end |
#render_end_time ⇒ String
Output only. Time at which the render completed.
Corresponds to the JSON property renderEndTime
1203 1204 1205 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1203 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
1208 1209 1210 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1208 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
1213 1214 1215 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1213 def render_state @render_state end |
#skaffold_config_path ⇒ String
Filepath of the Skaffold config inside of the config URI.
Corresponds to the JSON property skaffoldConfigPath
1218 1219 1220 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1218 def skaffold_config_path @skaffold_config_path end |
#skaffold_config_uri ⇒ String
Cloud Storage URI of tar.gz archive containing Skaffold configuration.
Corresponds to the JSON property skaffoldConfigUri
1223 1224 1225 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1223 def skaffold_config_uri @skaffold_config_uri end |
#skaffold_version ⇒ String
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
1230 1231 1232 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1230 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
1236 1237 1238 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1236 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
1242 1243 1244 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1242 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
1247 1248 1249 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1247 def target_snapshots @target_snapshots end |
#uid ⇒ String
Output only. Unique identifier of the Release.
Corresponds to the JSON property uid
1252 1253 1254 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1252 def uid @uid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1259 def update!(**args) @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 |