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

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

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.



745
746
747
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 745

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

Instance Attribute Details

#idString

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

Returns:

  • (String)


732
733
734
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 732

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)


738
739
740
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 738

def name
  @name
end

#project_idString

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

Returns:

  • (String)


743
744
745
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 743

def project_id
  @project_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



750
751
752
753
754
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 750

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