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.



6324
6325
6326
# File 'lib/google/apis/run_v1/classes.rb', line 6324

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)


6322
6323
6324
# File 'lib/google/apis/run_v1/classes.rb', line 6322

def dry_run
  @dry_run
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6329
6330
6331
# File 'lib/google/apis/run_v1/classes.rb', line 6329

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