Class: Google::Apis::CloudbuildV1::CancelBuildRequest

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

Request to cancel an ongoing build.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CancelBuildRequest

Returns a new instance of CancelBuildRequest.



1549
1550
1551
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1549

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

Instance Attribute Details

#idString

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

Returns:

  • (String)


1536
1537
1538
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1536

def id
  @id
end

#nameString

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

Returns:

  • (String)


1542
1543
1544
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1542

def name
  @name
end

#project_idString

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

Returns:

  • (String)


1547
1548
1549
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1547

def project_id
  @project_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1554
1555
1556
1557
1558
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1554

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