Reference documentation and code samples for the Network Security V1 API class Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.
Client for the SSERealmService service.
Service describing handlers for resources
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the SSERealmService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all SSERealmService clients ::Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the SSERealmService 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_sac_attachment
def create_sac_attachment(request, options = nil) -> ::Gapic::Operation
def create_sac_attachment(parent: nil, sac_attachment_id: nil, sac_attachment: nil, request_id: nil) -> ::Gapic::OperationCreates a new SACAttachment in a given project and location.
def create_sac_attachment(request, options = nil) -> ::Gapic::Operationcreate_sac_attachment via a request object, either of type
CreateSACAttachmentRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateSACAttachmentRequest, ::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_sac_attachment(parent: nil, sac_attachment_id: nil, sac_attachment: nil, request_id: nil) -> ::Gapic::Operationcreate_sac_attachment 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 parent, in the form
projects/{project}/locations/{location}. -
sac_attachment_id (::String) — Required. ID of the created attachment.
The ID must be 1-63 characters long, and comply with
RFC1035.
Specifically, it must be 1-63 characters long and match the regular
expression
[a-z]([-a-z0-9]*[a-z0-9])?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - sac_attachment (::Google::Cloud::NetworkSecurity::V1::SACAttachment, ::Hash) — Required. The resource being created.
-
request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateSACAttachmentRequest.new # Call the create_sac_attachment method. result = client.create_sac_attachment 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_sac_realm
def create_sac_realm(request, options = nil) -> ::Gapic::Operation
def create_sac_realm(parent: nil, sac_realm_id: nil, sac_realm: nil, request_id: nil) -> ::Gapic::OperationCreates a new SACRealm in a given project.
def create_sac_realm(request, options = nil) -> ::Gapic::Operationcreate_sac_realm via a request object, either of type
CreateSACRealmRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateSACRealmRequest, ::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_sac_realm(parent: nil, sac_realm_id: nil, sac_realm: nil, request_id: nil) -> ::Gapic::Operationcreate_sac_realm 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 parent, in the form
projects/{project}/locations/global. -
sac_realm_id (::String) — Required. ID of the created realm.
The ID must be 1-63 characters long, and comply with
RFC1035.
Specifically, it must be 1-63 characters long and match the regular
expression
[a-z]([-a-z0-9]*[a-z0-9])?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - sac_realm (::Google::Cloud::NetworkSecurity::V1::SACRealm, ::Hash) — Required. The resource being created.
-
request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateSACRealmRequest.new # Call the create_sac_realm method. result = client.create_sac_realm 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_sac_attachment
def delete_sac_attachment(request, options = nil) -> ::Gapic::Operation
def delete_sac_attachment(name: nil, request_id: nil) -> ::Gapic::OperationDeletes the specified attachment.
def delete_sac_attachment(request, options = nil) -> ::Gapic::Operationdelete_sac_attachment via a request object, either of type
DeleteSACAttachmentRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteSACAttachmentRequest, ::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_sac_attachment(name: nil, request_id: nil) -> ::Gapic::Operationdelete_sac_attachment 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. Name of the resource, in the form
projects/{project}/locations/{location}/sacAttachments/{sac_attachment}. -
request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteSACAttachmentRequest.new # Call the delete_sac_attachment method. result = client.delete_sac_attachment 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_sac_realm
def delete_sac_realm(request, options = nil) -> ::Gapic::Operation
def delete_sac_realm(name: nil, request_id: nil) -> ::Gapic::OperationDeletes the specified realm.
def delete_sac_realm(request, options = nil) -> ::Gapic::Operationdelete_sac_realm via a request object, either of type
DeleteSACRealmRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteSACRealmRequest, ::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_sac_realm(name: nil, request_id: nil) -> ::Gapic::Operationdelete_sac_realm 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. Name of the resource, in the form
projects/{project}/locations/global/sacRealms/{sacRealm}. -
request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteSACRealmRequest.new # Call the delete_sac_realm method. result = client.delete_sac_realm 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_sac_attachment
def get_sac_attachment(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::SACAttachment
def get_sac_attachment(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::SACAttachmentReturns the specified attachment.
def get_sac_attachment(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::SACAttachmentget_sac_attachment via a request object, either of type
GetSACAttachmentRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetSACAttachmentRequest, ::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_sac_attachment(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::SACAttachmentget_sac_attachment 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. Name of the resource, in the form
projects/{project}/locations/{location}/sacAttachments/{sac_attachment}.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::SACAttachment)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetSACAttachmentRequest.new # Call the get_sac_attachment method. result = client.get_sac_attachment request # The returned object is of type Google::Cloud::NetworkSecurity::V1::SACAttachment. p result
#get_sac_realm
def get_sac_realm(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::SACRealm
def get_sac_realm(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::SACRealmReturns the specified realm.
def get_sac_realm(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::SACRealmget_sac_realm via a request object, either of type
GetSACRealmRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetSACRealmRequest, ::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_sac_realm(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::SACRealmget_sac_realm 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. Name of the resource, in the form
projects/{project}/locations/global/sacRealms/{sacRealm}.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::SACRealm)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetSACRealmRequest.new # Call the get_sac_realm method. result = client.get_sac_realm request # The returned object is of type Google::Cloud::NetworkSecurity::V1::SACRealm. p result
#iam_policy_client
def iam_policy_client() -> Google::Iam::V1::IAMPolicy::ClientGet the associated client for mix-in of the IAMPolicy.
- (Google::Iam::V1::IAMPolicy::Client)
#initialize
def initialize() { |config| ... } -> ClientCreate a new SSERealmService client object.
- (config) — Configure the SSERealmService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new # Create a client using a custom configuration client = ::Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new do |config| config.timeout = 10.0 end
#list_sac_attachments
def list_sac_attachments(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SACAttachment>
def list_sac_attachments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SACAttachment>Lists SACAttachments in a given project and location.
def list_sac_attachments(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SACAttachment>list_sac_attachments via a request object, either of type
ListSACAttachmentsRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListSACAttachmentsRequest, ::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_sac_attachments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SACAttachment>list_sac_attachments 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 parent, in the form
projects/{project}/locations/{location}. - page_size (::Integer) — Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
- page_token (::String) — Optional. A token identifying a page of results the server should return.
- filter (::String) — Optional. An expression that filters the list of results.
- order_by (::String) — Optional. Sort the results by a certain order.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SACAttachment>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SACAttachment>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListSACAttachmentsRequest.new # Call the list_sac_attachments method. result = client.list_sac_attachments 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::NetworkSecurity::V1::SACAttachment. p item end
#list_sac_realms
def list_sac_realms(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SACRealm>
def list_sac_realms(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SACRealm>Lists SACRealms in a given project.
def list_sac_realms(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SACRealm>list_sac_realms via a request object, either of type
ListSACRealmsRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListSACRealmsRequest, ::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_sac_realms(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SACRealm>list_sac_realms 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 parent, in the form
projects/{project}/locations/global. - page_size (::Integer) — Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
- page_token (::String) — Optional. A token identifying a page of results the server should return.
- filter (::String) — Optional. An expression that filters the list of results.
- order_by (::String) — Optional. Sort the results by a certain order.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SACRealm>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::SACRealm>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::SSERealmService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListSACRealmsRequest.new # Call the list_sac_realms method. result = client.list_sac_realms 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::NetworkSecurity::V1::SACRealm. p item end
#location_client
def location_client() -> Google::Cloud::Location::Locations::ClientGet the associated client for mix-in of the Locations.
- (Google::Cloud::Location::Locations::Client)
#logger
def logger() -> LoggerThe logger used for request/response debug logging.
- (Logger)
#operations_client
def operations_client() -> ::Google::Cloud::NetworkSecurity::V1::SSERealmService::OperationsGet the associated client for long-running operations.
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)