Class: Google::Apis::SecretmanagerV1::DisableSecretVersionRequest

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

Overview

Request message for SecretManagerService.DisableSecretVersion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DisableSecretVersionRequest

Returns a new instance of DisableSecretVersionRequest.



363
364
365
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 363

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

Instance Attribute Details

#etagString

Optional. Etag of the SecretVersion. The request succeeds if it matches the etag of the currently stored secret version object. If the etag is omitted, the request succeeds. Corresponds to the JSON property etag

Returns:

  • (String)


361
362
363
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 361

def etag
  @etag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



368
369
370
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 368

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