Class: Google::Apis::CloudbuildV1::RetryBuildRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudbuild_v1/classes.rb,
generated/google/apis/cloudbuild_v1/representations.rb,
generated/google/apis/cloudbuild_v1/representations.rb

Overview

Specifies a build to retry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RetryBuildRequest

Returns a new instance of RetryBuildRequest.



1417
1418
1419
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1417

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

Instance Attribute Details

#idString

Required. Build ID of the original build. Corresponds to the JSON property id

Returns:

  • (String)


1404
1405
1406
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1404

def id
  @id
end

#nameString

The name of the Build to retry. Format: projects/project/locations/ location/builds/build` Corresponds to the JSON propertyname`

Returns:

  • (String)


1410
1411
1412
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1410

def name
  @name
end

#project_idString

Required. ID of the project. Corresponds to the JSON property projectId

Returns:

  • (String)


1415
1416
1417
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1415

def project_id
  @project_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1422
1423
1424
1425
1426
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1422

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
  @project_id = args[:project_id] if args.key?(:project_id)
end