Reference documentation and code samples for the Cloud Key Management Service (KMS) V1 API class Google::Cloud::Kms::V1::HsmManagement::Rest::Client.
REST client for the HsmManagement service.
Google Cloud HSM Management Service
Provides interfaces for managing HSM instances.
Implements a REST model with the following objects:
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the HsmManagement Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all HsmManagement clients ::Google::Cloud::Kms::V1::HsmManagement::Rest::Client.configure do |config| config.timeout = 10.0 end
#approve_single_tenant_hsm_instance_proposal
def approve_single_tenant_hsm_instance_proposal(request, options = nil) -> ::Google::Cloud::Kms::V1::ApproveSingleTenantHsmInstanceProposalResponse
def approve_single_tenant_hsm_instance_proposal(name: nil, quorum_reply: nil, required_action_quorum_reply: nil) -> ::Google::Cloud::Kms::V1::ApproveSingleTenantHsmInstanceProposalResponseApproves a SingleTenantHsmInstanceProposal for a given SingleTenantHsmInstance. The proposal must be in the PENDING state.
def approve_single_tenant_hsm_instance_proposal(request, options = nil) -> ::Google::Cloud::Kms::V1::ApproveSingleTenantHsmInstanceProposalResponseapprove_single_tenant_hsm_instance_proposal via a request object, either of type
ApproveSingleTenantHsmInstanceProposalRequest or an equivalent Hash.
- request (::Google::Cloud::Kms::V1::ApproveSingleTenantHsmInstanceProposalRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def approve_single_tenant_hsm_instance_proposal(name: nil, quorum_reply: nil, required_action_quorum_reply: nil) -> ::Google::Cloud::Kms::V1::ApproveSingleTenantHsmInstanceProposalResponseapprove_single_tenant_hsm_instance_proposal via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the SingleTenantHsmInstanceProposal to approve.
-
quorum_reply (::Google::Cloud::Kms::V1::ApproveSingleTenantHsmInstanceProposalRequest::QuorumReply, ::Hash) — Required. The reply to
QuorumParameters
for approving the proposal.
Note: The following parameters are mutually exclusive:
quorum_reply,required_action_quorum_reply. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. -
required_action_quorum_reply (::Google::Cloud::Kms::V1::ApproveSingleTenantHsmInstanceProposalRequest::RequiredActionQuorumReply, ::Hash) — Required. The reply to
RequiredActionQuorumParameters
for approving the proposal.
Note: The following parameters are mutually exclusive:
required_action_quorum_reply,quorum_reply. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Kms::V1::ApproveSingleTenantHsmInstanceProposalResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/kms/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Kms::V1::HsmManagement::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Kms::V1::ApproveSingleTenantHsmInstanceProposalRequest.new # Call the approve_single_tenant_hsm_instance_proposal method. result = client.approve_single_tenant_hsm_instance_proposal request # The returned object is of type Google::Cloud::Kms::V1::ApproveSingleTenantHsmInstanceProposalResponse. p result
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the HsmManagement Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#create_single_tenant_hsm_instance
def create_single_tenant_hsm_instance(request, options = nil) -> ::Gapic::Operation
def create_single_tenant_hsm_instance(parent: nil, single_tenant_hsm_instance_id: nil, single_tenant_hsm_instance: nil) -> ::Gapic::OperationCreates a new SingleTenantHsmInstance in a given Project and Location. User must create a RegisterTwoFactorAuthKeys proposal with this single-tenant HSM instance to finish setup of the instance.
def create_single_tenant_hsm_instance(request, options = nil) -> ::Gapic::Operationcreate_single_tenant_hsm_instance via a request object, either of type
CreateSingleTenantHsmInstanceRequest or an equivalent Hash.
- request (::Google::Cloud::Kms::V1::CreateSingleTenantHsmInstanceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_single_tenant_hsm_instance(parent: nil, single_tenant_hsm_instance_id: nil, single_tenant_hsm_instance: nil) -> ::Gapic::Operationcreate_single_tenant_hsm_instance via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the location associated with the
SingleTenantHsmInstance, in
the format
projects/*/locations/*. -
single_tenant_hsm_instance_id (::String) — Optional. It must be unique within a location and match the regular
expression
[a-zA-Z0-9_-]{1,63}. - single_tenant_hsm_instance (::Google::Cloud::Kms::V1::SingleTenantHsmInstance, ::Hash) — Required. An SingleTenantHsmInstance with initial field values.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/kms/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Kms::V1::HsmManagement::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Kms::V1::CreateSingleTenantHsmInstanceRequest.new # Call the create_single_tenant_hsm_instance method. result = client.create_single_tenant_hsm_instance request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#create_single_tenant_hsm_instance_proposal
def create_single_tenant_hsm_instance_proposal(request, options = nil) -> ::Gapic::Operation
def create_single_tenant_hsm_instance_proposal(parent: nil, single_tenant_hsm_instance_proposal_id: nil, single_tenant_hsm_instance_proposal: nil) -> ::Gapic::OperationCreates a new SingleTenantHsmInstanceProposal for a given SingleTenantHsmInstance.
def create_single_tenant_hsm_instance_proposal(request, options = nil) -> ::Gapic::Operationcreate_single_tenant_hsm_instance_proposal via a request object, either of type
CreateSingleTenantHsmInstanceProposalRequest or an equivalent Hash.
- request (::Google::Cloud::Kms::V1::CreateSingleTenantHsmInstanceProposalRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_single_tenant_hsm_instance_proposal(parent: nil, single_tenant_hsm_instance_proposal_id: nil, single_tenant_hsm_instance_proposal: nil) -> ::Gapic::Operationcreate_single_tenant_hsm_instance_proposal via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The name of the SingleTenantHsmInstance associated with the SingleTenantHsmInstanceProposals.
-
single_tenant_hsm_instance_proposal_id (::String) — Optional. It must be unique within a location and match the regular
expression
[a-zA-Z0-9_-]{1,63}. - single_tenant_hsm_instance_proposal (::Google::Cloud::Kms::V1::SingleTenantHsmInstanceProposal, ::Hash) — Required. The SingleTenantHsmInstanceProposal to create.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/kms/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Kms::V1::HsmManagement::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Kms::V1::CreateSingleTenantHsmInstanceProposalRequest.new # Call the create_single_tenant_hsm_instance_proposal method. result = client.create_single_tenant_hsm_instance_proposal request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_single_tenant_hsm_instance_proposal
def delete_single_tenant_hsm_instance_proposal(request, options = nil) -> ::Google::Protobuf::Empty
def delete_single_tenant_hsm_instance_proposal(name: nil) -> ::Google::Protobuf::EmptyDeletes a SingleTenantHsmInstanceProposal.
def delete_single_tenant_hsm_instance_proposal(request, options = nil) -> ::Google::Protobuf::Emptydelete_single_tenant_hsm_instance_proposal via a request object, either of type
DeleteSingleTenantHsmInstanceProposalRequest or an equivalent Hash.
- request (::Google::Cloud::Kms::V1::DeleteSingleTenantHsmInstanceProposalRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_single_tenant_hsm_instance_proposal(name: nil) -> ::Google::Protobuf::Emptydelete_single_tenant_hsm_instance_proposal via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the SingleTenantHsmInstanceProposal to delete.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/kms/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Kms::V1::HsmManagement::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Kms::V1::DeleteSingleTenantHsmInstanceProposalRequest.new # Call the delete_single_tenant_hsm_instance_proposal method. result = client.delete_single_tenant_hsm_instance_proposal request # The returned object is of type Google::Protobuf::Empty. p result
#execute_single_tenant_hsm_instance_proposal
def execute_single_tenant_hsm_instance_proposal(request, options = nil) -> ::Gapic::Operation
def execute_single_tenant_hsm_instance_proposal(name: nil) -> ::Gapic::OperationExecutes a SingleTenantHsmInstanceProposal for a given SingleTenantHsmInstance. The proposal must be in the APPROVED state.
def execute_single_tenant_hsm_instance_proposal(request, options = nil) -> ::Gapic::Operationexecute_single_tenant_hsm_instance_proposal via a request object, either of type
ExecuteSingleTenantHsmInstanceProposalRequest or an equivalent Hash.
- request (::Google::Cloud::Kms::V1::ExecuteSingleTenantHsmInstanceProposalRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def execute_single_tenant_hsm_instance_proposal(name: nil) -> ::Gapic::Operationexecute_single_tenant_hsm_instance_proposal via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the SingleTenantHsmInstanceProposal to execute.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/kms/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Kms::V1::HsmManagement::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Kms::V1::ExecuteSingleTenantHsmInstanceProposalRequest.new # Call the execute_single_tenant_hsm_instance_proposal method. result = client.execute_single_tenant_hsm_instance_proposal request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#get_single_tenant_hsm_instance
def get_single_tenant_hsm_instance(request, options = nil) -> ::Google::Cloud::Kms::V1::SingleTenantHsmInstance
def get_single_tenant_hsm_instance(name: nil) -> ::Google::Cloud::Kms::V1::SingleTenantHsmInstanceReturns metadata for a given SingleTenantHsmInstance.
def get_single_tenant_hsm_instance(request, options = nil) -> ::Google::Cloud::Kms::V1::SingleTenantHsmInstanceget_single_tenant_hsm_instance via a request object, either of type
GetSingleTenantHsmInstanceRequest or an equivalent Hash.
- request (::Google::Cloud::Kms::V1::GetSingleTenantHsmInstanceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_single_tenant_hsm_instance(name: nil) -> ::Google::Cloud::Kms::V1::SingleTenantHsmInstanceget_single_tenant_hsm_instance via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the SingleTenantHsmInstance to get.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Kms::V1::SingleTenantHsmInstance)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/kms/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Kms::V1::HsmManagement::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Kms::V1::GetSingleTenantHsmInstanceRequest.new # Call the get_single_tenant_hsm_instance method. result = client.get_single_tenant_hsm_instance request # The returned object is of type Google::Cloud::Kms::V1::SingleTenantHsmInstance. p result
#get_single_tenant_hsm_instance_proposal
def get_single_tenant_hsm_instance_proposal(request, options = nil) -> ::Google::Cloud::Kms::V1::SingleTenantHsmInstanceProposal
def get_single_tenant_hsm_instance_proposal(name: nil) -> ::Google::Cloud::Kms::V1::SingleTenantHsmInstanceProposalReturns metadata for a given SingleTenantHsmInstanceProposal.
def get_single_tenant_hsm_instance_proposal(request, options = nil) -> ::Google::Cloud::Kms::V1::SingleTenantHsmInstanceProposalget_single_tenant_hsm_instance_proposal via a request object, either of type
GetSingleTenantHsmInstanceProposalRequest or an equivalent Hash.
- request (::Google::Cloud::Kms::V1::GetSingleTenantHsmInstanceProposalRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_single_tenant_hsm_instance_proposal(name: nil) -> ::Google::Cloud::Kms::V1::SingleTenantHsmInstanceProposalget_single_tenant_hsm_instance_proposal via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the SingleTenantHsmInstanceProposal to get.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Kms::V1::SingleTenantHsmInstanceProposal)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/kms/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Kms::V1::HsmManagement::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Kms::V1::GetSingleTenantHsmInstanceProposalRequest.new # Call the get_single_tenant_hsm_instance_proposal method. result = client.get_single_tenant_hsm_instance_proposal request # The returned object is of type Google::Cloud::Kms::V1::SingleTenantHsmInstanceProposal. p result
#iam_policy_client
def iam_policy_client() -> Google::Iam::V1::IAMPolicy::Rest::ClientGet the associated client for mix-in of the IAMPolicy.
- (Google::Iam::V1::IAMPolicy::Rest::Client)
#initialize
def initialize() { |config| ... } -> ClientCreate a new HsmManagement REST client object.
- (config) — Configure the HsmManagement client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Kms::V1::HsmManagement::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Kms::V1::HsmManagement::Rest::Client.new do |config| config.timeout = 10.0 end
#list_single_tenant_hsm_instance_proposals
def list_single_tenant_hsm_instance_proposals(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Kms::V1::SingleTenantHsmInstanceProposal>
def list_single_tenant_hsm_instance_proposals(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, show_deleted: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Kms::V1::SingleTenantHsmInstanceProposal>def list_single_tenant_hsm_instance_proposals(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Kms::V1::SingleTenantHsmInstanceProposal>list_single_tenant_hsm_instance_proposals via a request object, either of type
ListSingleTenantHsmInstanceProposalsRequest or an equivalent Hash.
- request (::Google::Cloud::Kms::V1::ListSingleTenantHsmInstanceProposalsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_single_tenant_hsm_instance_proposals(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, show_deleted: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Kms::V1::SingleTenantHsmInstanceProposal>list_single_tenant_hsm_instance_proposals via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the single tenant HSM instance associated
with the
SingleTenantHsmInstanceProposals
to list, in the format
projects/*/locations/*/singleTenantHsmInstances/*. - page_size (::Integer) — Optional. Optional limit on the number of SingleTenantHsmInstanceProposals to include in the response. Further SingleTenantHsmInstanceProposals can subsequently be obtained by including the ListSingleTenantHsmInstanceProposalsResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.
- page_token (::String) — Optional. Optional pagination token, returned earlier via ListSingleTenantHsmInstanceProposalsResponse.next_page_token.
- filter (::String) — Optional. Only include resources that match the filter in the response. For more information, see Sorting and filtering list results.
- order_by (::String) — Optional. Specify how the results should be sorted. If not specified, the results will be sorted in the default order. For more information, see Sorting and filtering list results.
- show_deleted (::Boolean) — Optional. If set to true, HsmManagement.ListSingleTenantHsmInstanceProposals will also return SingleTenantHsmInstanceProposals in DELETED state.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Kms::V1::SingleTenantHsmInstanceProposal>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Kms::V1::SingleTenantHsmInstanceProposal>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/kms/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Kms::V1::HsmManagement::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Kms::V1::ListSingleTenantHsmInstanceProposalsRequest.new # Call the list_single_tenant_hsm_instance_proposals method. result = client.list_single_tenant_hsm_instance_proposals request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::Kms::V1::SingleTenantHsmInstanceProposal. p item end
#list_single_tenant_hsm_instances
def list_single_tenant_hsm_instances(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Kms::V1::SingleTenantHsmInstance>
def list_single_tenant_hsm_instances(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, show_deleted: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Kms::V1::SingleTenantHsmInstance>Lists SingleTenantHsmInstances.
def list_single_tenant_hsm_instances(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Kms::V1::SingleTenantHsmInstance>list_single_tenant_hsm_instances via a request object, either of type
ListSingleTenantHsmInstancesRequest or an equivalent Hash.
- request (::Google::Cloud::Kms::V1::ListSingleTenantHsmInstancesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_single_tenant_hsm_instances(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, show_deleted: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Kms::V1::SingleTenantHsmInstance>list_single_tenant_hsm_instances via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the location associated with the
SingleTenantHsmInstances to
list, in the format
projects/*/locations/*. - page_size (::Integer) — Optional. Optional limit on the number of SingleTenantHsmInstances to include in the response. Further SingleTenantHsmInstances can subsequently be obtained by including the ListSingleTenantHsmInstancesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.
- page_token (::String) — Optional. Optional pagination token, returned earlier via ListSingleTenantHsmInstancesResponse.next_page_token.
- filter (::String) — Optional. Only include resources that match the filter in the response. For more information, see Sorting and filtering list results.
- order_by (::String) — Optional. Specify how the results should be sorted. If not specified, the results will be sorted in the default order. For more information, see Sorting and filtering list results.
- show_deleted (::Boolean) — Optional. If set to true, HsmManagement.ListSingleTenantHsmInstances will also return SingleTenantHsmInstances in DELETED state.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Kms::V1::SingleTenantHsmInstance>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Kms::V1::SingleTenantHsmInstance>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/kms/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Kms::V1::HsmManagement::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Kms::V1::ListSingleTenantHsmInstancesRequest.new # Call the list_single_tenant_hsm_instances method. result = client.list_single_tenant_hsm_instances request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::Kms::V1::SingleTenantHsmInstance. p item end
#location_client
def location_client() -> Google::Cloud::Location::Locations::Rest::ClientGet the associated client for mix-in of the Locations.
- (Google::Cloud::Location::Locations::Rest::Client)
#logger
def logger() -> LoggerThe logger used for request/response debug logging.
- (Logger)
#operations_client
def operations_client() -> ::Google::Cloud::Kms::V1::HsmManagement::Rest::OperationsGet the associated client for long-running operations.
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)