Class: Google::Apis::SecretmanagerV1::ListSecretsResponse

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

Response message for SecretManagerService.ListSecrets.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListSecretsResponse

Returns a new instance of ListSecretsResponse.



543
544
545
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 543

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 ListSecretsRequest.page_token to retrieve the next page. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


530
531
532
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 530

def next_page_token
  @next_page_token
end

#secretsArray<Google::Apis::SecretmanagerV1::Secret>

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



535
536
537
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 535

def secrets
  @secrets
end

#total_sizeFixnum

The total number of Secrets but 0 when the ListSecretsRequest.filter field is set. Corresponds to the JSON property totalSize

Returns:

  • (Fixnum)


541
542
543
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 541

def total_size
  @total_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



548
549
550
551
552
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 548

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