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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbuild_v1/classes.rb,
lib/google/apis/cloudbuild_v1/representations.rb,
lib/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.



1522
1523
1524
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1522

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)


1509
1510
1511
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1509

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)


1515
1516
1517
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1515

def name
  @name
end

#project_idString

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

Returns:

  • (String)


1520
1521
1522
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1520

def project_id
  @project_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1527
1528
1529
1530
1531
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1527

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