Class: Google::Apis::ClouddeployV1::Rollout

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 Rollout resource in the Google Cloud Deploy API. A Rollout contains information around a specific deployment to a Target.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Rollout

Returns a new instance of Rollout.



1322
1323
1324
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1322

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


1233
1234
1235
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1233

def annotations
  @annotations
end

#approval_stateString

Output only. Approval state of the Rollout. Corresponds to the JSON property approvalState

Returns:

  • (String)


1238
1239
1240
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1238

def approval_state
  @approval_state
end

#approve_timeString

Output only. Time at which the Rollout was approved. Corresponds to the JSON property approveTime

Returns:

  • (String)


1243
1244
1245
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1243

def approve_time
  @approve_time
end

#create_timeString

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

Returns:

  • (String)


1248
1249
1250
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1248

def create_time
  @create_time
end

#deploy_end_timeString

Output only. Time at which the Rollout finished deploying. Corresponds to the JSON property deployEndTime

Returns:

  • (String)


1253
1254
1255
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1253

def deploy_end_time
  @deploy_end_time
end

#deploy_start_timeString

Output only. Time at which the Rollout started deploying. Corresponds to the JSON property deployStartTime

Returns:

  • (String)


1258
1259
1260
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1258

def deploy_start_time
  @deploy_start_time
end

#deploying_buildString

Output only. The resource name of the Cloud Build Build object that is used to deploy the Rollout. Format is projects/project/locations/location/ builds/build`. Corresponds to the JSON propertydeployingBuild`

Returns:

  • (String)


1265
1266
1267
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1265

def deploying_build
  @deploying_build
end

#descriptionString

Description of the Rollout for user purposes. Max length is 255 characters. Corresponds to the JSON property description

Returns:

  • (String)


1270
1271
1272
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1270

def description
  @description
end

#enqueue_timeString

Output only. Time at which the Rollout was enqueued. Corresponds to the JSON property enqueueTime

Returns:

  • (String)


1275
1276
1277
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1275

def enqueue_time
  @enqueue_time
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)


1282
1283
1284
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1282

def etag
  @etag
end

#failure_reasonString

Output only. Reason the build failed. Empty if the build succeeded. Corresponds to the JSON property failureReason

Returns:

  • (String)


1287
1288
1289
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1287

def failure_reason
  @failure_reason
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>)


1298
1299
1300
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1298

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


1305
1306
1307
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1305

def name
  @name
end

#stateString

Output only. Current state of the Rollout. Corresponds to the JSON property state

Returns:

  • (String)


1310
1311
1312
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1310

def state
  @state
end

#target_idString

Required. The ID of Target to which this Rollout is deploying. Corresponds to the JSON property targetId

Returns:

  • (String)


1315
1316
1317
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1315

def target_id
  @target_id
end

#uidString

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

Returns:

  • (String)


1320
1321
1322
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1320

def uid
  @uid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1327

def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @approval_state = args[:approval_state] if args.key?(:approval_state)
  @approve_time = args[:approve_time] if args.key?(:approve_time)
  @create_time = args[:create_time] if args.key?(:create_time)
  @deploy_end_time = args[:deploy_end_time] if args.key?(:deploy_end_time)
  @deploy_start_time = args[:deploy_start_time] if args.key?(:deploy_start_time)
  @deploying_build = args[:deploying_build] if args.key?(:deploying_build)
  @description = args[:description] if args.key?(:description)
  @enqueue_time = args[:enqueue_time] if args.key?(:enqueue_time)
  @etag = args[:etag] if args.key?(:etag)
  @failure_reason = args[:failure_reason] if args.key?(:failure_reason)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @target_id = args[:target_id] if args.key?(:target_id)
  @uid = args[:uid] if args.key?(:uid)
end