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.



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

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)


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

def dry_run
  @dry_run
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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