Class: Google::Apis::SecretmanagerV1beta1::ListSecretVersionsResponse

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

Overview

Response message for SecretManagerService.ListSecretVersions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListSecretVersionsResponse

Returns a new instance of ListSecretVersionsResponse.



383
384
385
# File 'generated/google/apis/secretmanager_v1beta1/classes.rb', line 383

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

Instance Attribute Details

#next_page_tokenString

A token to retrieve the next page of results. Pass this value in ListSecretVersionsRequest.page_token to retrieve the next page. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


371
372
373
# File 'generated/google/apis/secretmanager_v1beta1/classes.rb', line 371

def next_page_token
  @next_page_token
end

#total_sizeFixnum

The total number of SecretVersions. Corresponds to the JSON property totalSize

Returns:

  • (Fixnum)


376
377
378
# File 'generated/google/apis/secretmanager_v1beta1/classes.rb', line 376

def total_size
  @total_size
end

#versionsArray<Google::Apis::SecretmanagerV1beta1::SecretVersion>

The list of SecretVersions sorted in reverse by create_time (newest first). Corresponds to the JSON property versions



381
382
383
# File 'generated/google/apis/secretmanager_v1beta1/classes.rb', line 381

def versions
  @versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



388
389
390
391
392
# File 'generated/google/apis/secretmanager_v1beta1/classes.rb', line 388

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