Class: Google::Apis::RunV1::StopInstanceRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/run_v1/classes.rb,
lib/google/apis/run_v1/representations.rb,
lib/google/apis/run_v1/representations.rb

Overview

Request message for stopping a running Instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StopInstanceRequest

Returns a new instance of StopInstanceRequest.



6299
6300
6301
# File 'lib/google/apis/run_v1/classes.rb', line 6299

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

Instance Attribute Details

#dry_runString

Optional. Indicates that the server should validate the request and populate default values without persisting the request. Supported values: all Corresponds to the JSON property dryRun

Returns:

  • (String)


6297
6298
6299
# File 'lib/google/apis/run_v1/classes.rb', line 6297

def dry_run
  @dry_run
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6304
6305
6306
# File 'lib/google/apis/run_v1/classes.rb', line 6304

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