Reference documentation and code samples for the Network Security V1 API class Google::Cloud::NetworkSecurity::V1::Intercept::Client.
Client for the Intercept service.
Service for Third-Party Packet Intercept (TPPI). TPPI is the "in-band" flavor of the Network Security Integrations product.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the Intercept Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all Intercept clients ::Google::Cloud::NetworkSecurity::V1::Intercept::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the Intercept 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_intercept_deployment
def create_intercept_deployment(request, options = nil) -> ::Gapic::Operation
def create_intercept_deployment(parent: nil, intercept_deployment_id: nil, intercept_deployment: nil, request_id: nil) -> ::Gapic::OperationCreates a deployment in a given project and location. See https://google.aip.dev/133.
def create_intercept_deployment(request, options = nil) -> ::Gapic::Operationcreate_intercept_deployment via a request object, either of type
CreateInterceptDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateInterceptDeploymentRequest, ::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_intercept_deployment(parent: nil, intercept_deployment_id: nil, intercept_deployment: nil, request_id: nil) -> ::Gapic::Operationcreate_intercept_deployment 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 resource where this deployment will be created. Format: projects/{project}/locations/{location}
- intercept_deployment_id (::String) — Required. The ID to use for the new deployment, which will become the final component of the deployment's resource name.
- intercept_deployment (::Google::Cloud::NetworkSecurity::V1::InterceptDeployment, ::Hash) — Required. The deployment to create.
-
request_id (::String) — Optional. A unique identifier for this request. Must be a UUID4.
This request is only idempotent if a
request_idis provided. See https://google.aip.dev/155 for more details.
- (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::Intercept::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateInterceptDeploymentRequest.new # Call the create_intercept_deployment method. result = client.create_intercept_deployment 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_intercept_deployment_group
def create_intercept_deployment_group(request, options = nil) -> ::Gapic::Operation
def create_intercept_deployment_group(parent: nil, intercept_deployment_group_id: nil, intercept_deployment_group: nil, request_id: nil) -> ::Gapic::OperationCreates a deployment group in a given project and location. See https://google.aip.dev/133.
def create_intercept_deployment_group(request, options = nil) -> ::Gapic::Operationcreate_intercept_deployment_group via a request object, either of type
CreateInterceptDeploymentGroupRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateInterceptDeploymentGroupRequest, ::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_intercept_deployment_group(parent: nil, intercept_deployment_group_id: nil, intercept_deployment_group: nil, request_id: nil) -> ::Gapic::Operationcreate_intercept_deployment_group 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 resource where this deployment group will be created. Format: projects/{project}/locations/{location}
- intercept_deployment_group_id (::String) — Required. The ID to use for the new deployment group, which will become the final component of the deployment group's resource name.
- intercept_deployment_group (::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroup, ::Hash) — Required. The deployment group to create.
-
request_id (::String) — Optional. A unique identifier for this request. Must be a UUID4.
This request is only idempotent if a
request_idis provided. See https://google.aip.dev/155 for more details.
- (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::Intercept::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateInterceptDeploymentGroupRequest.new # Call the create_intercept_deployment_group method. result = client.create_intercept_deployment_group 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_intercept_endpoint_group
def create_intercept_endpoint_group(request, options = nil) -> ::Gapic::Operation
def create_intercept_endpoint_group(parent: nil, intercept_endpoint_group_id: nil, intercept_endpoint_group: nil, request_id: nil) -> ::Gapic::OperationCreates an endpoint group in a given project and location. See https://google.aip.dev/133.
def create_intercept_endpoint_group(request, options = nil) -> ::Gapic::Operationcreate_intercept_endpoint_group via a request object, either of type
CreateInterceptEndpointGroupRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateInterceptEndpointGroupRequest, ::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_intercept_endpoint_group(parent: nil, intercept_endpoint_group_id: nil, intercept_endpoint_group: nil, request_id: nil) -> ::Gapic::Operationcreate_intercept_endpoint_group 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 resource where this endpoint group will be created. Format: projects/{project}/locations/{location}
- intercept_endpoint_group_id (::String) — Required. The ID to use for the endpoint group, which will become the final component of the endpoint group's resource name.
- intercept_endpoint_group (::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroup, ::Hash) — Required. The endpoint group to create.
-
request_id (::String) — Optional. A unique identifier for this request. Must be a UUID4.
This request is only idempotent if a
request_idis provided. See https://google.aip.dev/155 for more details.
- (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::Intercept::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateInterceptEndpointGroupRequest.new # Call the create_intercept_endpoint_group method. result = client.create_intercept_endpoint_group 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_intercept_endpoint_group_association
def create_intercept_endpoint_group_association(request, options = nil) -> ::Gapic::Operation
def create_intercept_endpoint_group_association(parent: nil, intercept_endpoint_group_association_id: nil, intercept_endpoint_group_association: nil, request_id: nil) -> ::Gapic::OperationCreates an association in a given project and location. See https://google.aip.dev/133.
def create_intercept_endpoint_group_association(request, options = nil) -> ::Gapic::Operationcreate_intercept_endpoint_group_association via a request object, either of type
CreateInterceptEndpointGroupAssociationRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateInterceptEndpointGroupAssociationRequest, ::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_intercept_endpoint_group_association(parent: nil, intercept_endpoint_group_association_id: nil, intercept_endpoint_group_association: nil, request_id: nil) -> ::Gapic::Operationcreate_intercept_endpoint_group_association 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 resource where this association will be created. Format: projects/{project}/locations/{location}
- intercept_endpoint_group_association_id (::String) — Optional. The ID to use for the new association, which will become the final component of the endpoint group's resource name. If not provided, the server will generate a unique ID.
- intercept_endpoint_group_association (::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociation, ::Hash) — Required. The association to create.
-
request_id (::String) — Optional. A unique identifier for this request. Must be a UUID4.
This request is only idempotent if a
request_idis provided. See https://google.aip.dev/155 for more details.
- (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::Intercept::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateInterceptEndpointGroupAssociationRequest.new # Call the create_intercept_endpoint_group_association method. result = client.create_intercept_endpoint_group_association 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_intercept_deployment
def delete_intercept_deployment(request, options = nil) -> ::Gapic::Operation
def delete_intercept_deployment(name: nil, request_id: nil) -> ::Gapic::OperationDeletes a deployment. See https://google.aip.dev/135.
def delete_intercept_deployment(request, options = nil) -> ::Gapic::Operationdelete_intercept_deployment via a request object, either of type
DeleteInterceptDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteInterceptDeploymentRequest, ::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_intercept_deployment(name: nil, request_id: nil) -> ::Gapic::Operationdelete_intercept_deployment 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
-
request_id (::String) — Optional. A unique identifier for this request. Must be a UUID4.
This request is only idempotent if a
request_idis provided. See https://google.aip.dev/155 for more details.
- (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::Intercept::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteInterceptDeploymentRequest.new # Call the delete_intercept_deployment method. result = client.delete_intercept_deployment 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_intercept_deployment_group
def delete_intercept_deployment_group(request, options = nil) -> ::Gapic::Operation
def delete_intercept_deployment_group(name: nil, request_id: nil) -> ::Gapic::OperationDeletes a deployment group. See https://google.aip.dev/135.
def delete_intercept_deployment_group(request, options = nil) -> ::Gapic::Operationdelete_intercept_deployment_group via a request object, either of type
DeleteInterceptDeploymentGroupRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteInterceptDeploymentGroupRequest, ::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_intercept_deployment_group(name: nil, request_id: nil) -> ::Gapic::Operationdelete_intercept_deployment_group 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 deployment group to delete.
-
request_id (::String) — Optional. A unique identifier for this request. Must be a UUID4.
This request is only idempotent if a
request_idis provided. See https://google.aip.dev/155 for more details.
- (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::Intercept::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteInterceptDeploymentGroupRequest.new # Call the delete_intercept_deployment_group method. result = client.delete_intercept_deployment_group 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_intercept_endpoint_group
def delete_intercept_endpoint_group(request, options = nil) -> ::Gapic::Operation
def delete_intercept_endpoint_group(name: nil, request_id: nil) -> ::Gapic::OperationDeletes an endpoint group. See https://google.aip.dev/135.
def delete_intercept_endpoint_group(request, options = nil) -> ::Gapic::Operationdelete_intercept_endpoint_group via a request object, either of type
DeleteInterceptEndpointGroupRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteInterceptEndpointGroupRequest, ::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_intercept_endpoint_group(name: nil, request_id: nil) -> ::Gapic::Operationdelete_intercept_endpoint_group 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 endpoint group to delete.
-
request_id (::String) — Optional. A unique identifier for this request. Must be a UUID4.
This request is only idempotent if a
request_idis provided. See https://google.aip.dev/155 for more details.
- (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::Intercept::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteInterceptEndpointGroupRequest.new # Call the delete_intercept_endpoint_group method. result = client.delete_intercept_endpoint_group 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_intercept_endpoint_group_association
def delete_intercept_endpoint_group_association(request, options = nil) -> ::Gapic::Operation
def delete_intercept_endpoint_group_association(name: nil, request_id: nil) -> ::Gapic::OperationDeletes an association. See https://google.aip.dev/135.
def delete_intercept_endpoint_group_association(request, options = nil) -> ::Gapic::Operationdelete_intercept_endpoint_group_association via a request object, either of type
DeleteInterceptEndpointGroupAssociationRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteInterceptEndpointGroupAssociationRequest, ::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_intercept_endpoint_group_association(name: nil, request_id: nil) -> ::Gapic::Operationdelete_intercept_endpoint_group_association 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 association to delete.
-
request_id (::String) — Optional. A unique identifier for this request. Must be a UUID4.
This request is only idempotent if a
request_idis provided. See https://google.aip.dev/155 for more details.
- (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::Intercept::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteInterceptEndpointGroupAssociationRequest.new # Call the delete_intercept_endpoint_group_association method. result = client.delete_intercept_endpoint_group_association 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_intercept_deployment
def get_intercept_deployment(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::InterceptDeployment
def get_intercept_deployment(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGets a specific deployment. See https://google.aip.dev/131.
def get_intercept_deployment(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentget_intercept_deployment via a request object, either of type
GetInterceptDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetInterceptDeploymentRequest, ::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_intercept_deployment(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentget_intercept_deployment 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 deployment to retrieve. Format: projects/{project}/locations/{location}/interceptDeployments/{intercept_deployment}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::InterceptDeployment)
- 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::Intercept::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetInterceptDeploymentRequest.new # Call the get_intercept_deployment method. result = client.get_intercept_deployment request # The returned object is of type Google::Cloud::NetworkSecurity::V1::InterceptDeployment. p result
#get_intercept_deployment_group
def get_intercept_deployment_group(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroup
def get_intercept_deployment_group(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroupGets a specific deployment group. See https://google.aip.dev/131.
def get_intercept_deployment_group(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroupget_intercept_deployment_group via a request object, either of type
GetInterceptDeploymentGroupRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetInterceptDeploymentGroupRequest, ::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_intercept_deployment_group(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroupget_intercept_deployment_group 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 deployment group to retrieve. Format: projects/{project}/locations/{location}/interceptDeploymentGroups/{intercept_deployment_group}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroup)
- 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::Intercept::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetInterceptDeploymentGroupRequest.new # Call the get_intercept_deployment_group method. result = client.get_intercept_deployment_group request # The returned object is of type Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroup. p result
#get_intercept_endpoint_group
def get_intercept_endpoint_group(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroup
def get_intercept_endpoint_group(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupGets a specific endpoint group. See https://google.aip.dev/131.
def get_intercept_endpoint_group(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupget_intercept_endpoint_group via a request object, either of type
GetInterceptEndpointGroupRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetInterceptEndpointGroupRequest, ::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_intercept_endpoint_group(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupget_intercept_endpoint_group 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 endpoint group to retrieve. Format: projects/{project}/locations/{location}/interceptEndpointGroups/{intercept_endpoint_group}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroup)
- 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::Intercept::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetInterceptEndpointGroupRequest.new # Call the get_intercept_endpoint_group method. result = client.get_intercept_endpoint_group request # The returned object is of type Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroup. p result
#get_intercept_endpoint_group_association
def get_intercept_endpoint_group_association(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociation
def get_intercept_endpoint_group_association(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociationGets a specific association. See https://google.aip.dev/131.
def get_intercept_endpoint_group_association(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociationget_intercept_endpoint_group_association via a request object, either of type
GetInterceptEndpointGroupAssociationRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetInterceptEndpointGroupAssociationRequest, ::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_intercept_endpoint_group_association(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociationget_intercept_endpoint_group_association 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 association to retrieve. Format: projects/{project}/locations/{location}/interceptEndpointGroupAssociations/{intercept_endpoint_group_association}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociation)
- 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::Intercept::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetInterceptEndpointGroupAssociationRequest.new # Call the get_intercept_endpoint_group_association method. result = client.get_intercept_endpoint_group_association request # The returned object is of type Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociation. 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 Intercept client object.
- (config) — Configure the Intercept client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::NetworkSecurity::V1::Intercept::Client.new # Create a client using a custom configuration client = ::Google::Cloud::NetworkSecurity::V1::Intercept::Client.new do |config| config.timeout = 10.0 end
#list_intercept_deployment_groups
def list_intercept_deployment_groups(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroup>
def list_intercept_deployment_groups(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroup>Lists deployment groups in a given project and location. See https://google.aip.dev/132.
def list_intercept_deployment_groups(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroup>list_intercept_deployment_groups via a request object, either of type
ListInterceptDeploymentGroupsRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListInterceptDeploymentGroupsRequest, ::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_intercept_deployment_groups(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroup>list_intercept_deployment_groups 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, which owns this collection of deployment groups.
Example:
projects/123456789/locations/global. See https://google.aip.dev/132 for more details. - page_size (::Integer) — Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. See https://google.aip.dev/158 for more details.
-
page_token (::String) — Optional. A page token, received from a previous
ListInterceptDeploymentGroupscall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListInterceptDeploymentGroupsmust match the call that provided the page token. See https://google.aip.dev/158 for more details. - filter (::String) — Optional. Filter expression. See https://google.aip.dev/160#filtering for more details.
- order_by (::String) — Optional. Sort expression. See https://google.aip.dev/132#ordering for more details.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroup>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroup>)
- (::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::Intercept::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListInterceptDeploymentGroupsRequest.new # Call the list_intercept_deployment_groups method. result = client.list_intercept_deployment_groups 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::InterceptDeploymentGroup. p item end
#list_intercept_deployments
def list_intercept_deployments(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptDeployment>
def list_intercept_deployments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptDeployment>Lists deployments in a given project and location. See https://google.aip.dev/132.
def list_intercept_deployments(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptDeployment>list_intercept_deployments via a request object, either of type
ListInterceptDeploymentsRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListInterceptDeploymentsRequest, ::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_intercept_deployments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptDeployment>list_intercept_deployments 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, which owns this collection of deployments.
Example:
projects/123456789/locations/us-central1-a. See https://google.aip.dev/132 for more details. - page_size (::Integer) — Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. See https://google.aip.dev/158 for more details.
-
page_token (::String) — Optional. A page token, received from a previous
ListInterceptDeploymentscall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListInterceptDeploymentsmust match the call that provided the page token. See https://google.aip.dev/158 for more details. - filter (::String) — Optional. Filter expression. See https://google.aip.dev/160#filtering for more details.
- order_by (::String) — Optional. Sort expression. See https://google.aip.dev/132#ordering for more details.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptDeployment>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptDeployment>)
- (::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::Intercept::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListInterceptDeploymentsRequest.new # Call the list_intercept_deployments method. result = client.list_intercept_deployments 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::InterceptDeployment. p item end
#list_intercept_endpoint_group_associations
def list_intercept_endpoint_group_associations(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociation>
def list_intercept_endpoint_group_associations(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociation>Lists associations in a given project and location. See https://google.aip.dev/132.
def list_intercept_endpoint_group_associations(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociation>list_intercept_endpoint_group_associations via a request object, either of type
ListInterceptEndpointGroupAssociationsRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListInterceptEndpointGroupAssociationsRequest, ::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_intercept_endpoint_group_associations(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociation>list_intercept_endpoint_group_associations 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, which owns this collection of associations.
Example:
projects/123456789/locations/global. See https://google.aip.dev/132 for more details. - page_size (::Integer) — Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. See https://google.aip.dev/158 for more details.
-
page_token (::String) — Optional. A page token, received from a previous
ListInterceptEndpointGroupscall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListInterceptEndpointGroupsmust match the call that provided the page token. See https://google.aip.dev/158 for more details. - filter (::String) — Optional. Filter expression. See https://google.aip.dev/160#filtering for more details.
- order_by (::String) — Optional. Sort expression. See https://google.aip.dev/132#ordering for more details.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociation>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociation>)
- (::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::Intercept::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListInterceptEndpointGroupAssociationsRequest.new # Call the list_intercept_endpoint_group_associations method. result = client.list_intercept_endpoint_group_associations 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::InterceptEndpointGroupAssociation. p item end
#list_intercept_endpoint_groups
def list_intercept_endpoint_groups(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroup>
def list_intercept_endpoint_groups(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroup>Lists endpoint groups in a given project and location. See https://google.aip.dev/132.
def list_intercept_endpoint_groups(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroup>list_intercept_endpoint_groups via a request object, either of type
ListInterceptEndpointGroupsRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListInterceptEndpointGroupsRequest, ::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_intercept_endpoint_groups(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroup>list_intercept_endpoint_groups 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, which owns this collection of endpoint groups.
Example:
projects/123456789/locations/global. See https://google.aip.dev/132 for more details. - page_size (::Integer) — Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. See https://google.aip.dev/158 for more details.
-
page_token (::String) — Optional. A page token, received from a previous
ListInterceptEndpointGroupscall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListInterceptEndpointGroupsmust match the call that provided the page token. See https://google.aip.dev/158 for more details. - filter (::String) — Optional. Filter expression. See https://google.aip.dev/160#filtering for more details.
- order_by (::String) — Optional. Sort expression. See https://google.aip.dev/132#ordering for more details.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroup>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroup>)
- (::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::Intercept::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListInterceptEndpointGroupsRequest.new # Call the list_intercept_endpoint_groups method. result = client.list_intercept_endpoint_groups 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::InterceptEndpointGroup. 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::Intercept::OperationsGet the associated client for long-running operations.
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_intercept_deployment
def update_intercept_deployment(request, options = nil) -> ::Gapic::Operation
def update_intercept_deployment(update_mask: nil, intercept_deployment: nil, request_id: nil) -> ::Gapic::OperationUpdates a deployment. See https://google.aip.dev/134.
def update_intercept_deployment(request, options = nil) -> ::Gapic::Operationupdate_intercept_deployment via a request object, either of type
UpdateInterceptDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::UpdateInterceptDeploymentRequest, ::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 update_intercept_deployment(update_mask: nil, intercept_deployment: nil, request_id: nil) -> ::Gapic::Operationupdate_intercept_deployment 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).
-
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. The list of fields to update.
Fields are specified relative to the deployment
(e.g.
description; notintercept_deployment.description). See https://google.aip.dev/161 for more details. - intercept_deployment (::Google::Cloud::NetworkSecurity::V1::InterceptDeployment, ::Hash) — Required. The deployment to update.
-
request_id (::String) — Optional. A unique identifier for this request. Must be a UUID4.
This request is only idempotent if a
request_idis provided. See https://google.aip.dev/155 for more details.
- (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::Intercept::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::UpdateInterceptDeploymentRequest.new # Call the update_intercept_deployment method. result = client.update_intercept_deployment 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
#update_intercept_deployment_group
def update_intercept_deployment_group(request, options = nil) -> ::Gapic::Operation
def update_intercept_deployment_group(update_mask: nil, intercept_deployment_group: nil, request_id: nil) -> ::Gapic::OperationUpdates a deployment group. See https://google.aip.dev/134.
def update_intercept_deployment_group(request, options = nil) -> ::Gapic::Operationupdate_intercept_deployment_group via a request object, either of type
UpdateInterceptDeploymentGroupRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::UpdateInterceptDeploymentGroupRequest, ::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 update_intercept_deployment_group(update_mask: nil, intercept_deployment_group: nil, request_id: nil) -> ::Gapic::Operationupdate_intercept_deployment_group 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).
-
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. The list of fields to update.
Fields are specified relative to the deployment group
(e.g.
description; notintercept_deployment_group.description). See https://google.aip.dev/161 for more details. - intercept_deployment_group (::Google::Cloud::NetworkSecurity::V1::InterceptDeploymentGroup, ::Hash) — Required. The deployment group to update.
-
request_id (::String) — Optional. A unique identifier for this request. Must be a UUID4.
This request is only idempotent if a
request_idis provided. See https://google.aip.dev/155 for more details.
- (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::Intercept::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::UpdateInterceptDeploymentGroupRequest.new # Call the update_intercept_deployment_group method. result = client.update_intercept_deployment_group 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
#update_intercept_endpoint_group
def update_intercept_endpoint_group(request, options = nil) -> ::Gapic::Operation
def update_intercept_endpoint_group(update_mask: nil, intercept_endpoint_group: nil, request_id: nil) -> ::Gapic::OperationUpdates an endpoint group. See https://google.aip.dev/134.
def update_intercept_endpoint_group(request, options = nil) -> ::Gapic::Operationupdate_intercept_endpoint_group via a request object, either of type
UpdateInterceptEndpointGroupRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::UpdateInterceptEndpointGroupRequest, ::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 update_intercept_endpoint_group(update_mask: nil, intercept_endpoint_group: nil, request_id: nil) -> ::Gapic::Operationupdate_intercept_endpoint_group 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).
-
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. The list of fields to update.
Fields are specified relative to the endpoint group
(e.g.
description; notintercept_endpoint_group.description). See https://google.aip.dev/161 for more details. - intercept_endpoint_group (::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroup, ::Hash) — Required. The endpoint group to update.
-
request_id (::String) — Optional. A unique identifier for this request. Must be a UUID4.
This request is only idempotent if a
request_idis provided. See https://google.aip.dev/155 for more details.
- (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::Intercept::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::UpdateInterceptEndpointGroupRequest.new # Call the update_intercept_endpoint_group method. result = client.update_intercept_endpoint_group 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
#update_intercept_endpoint_group_association
def update_intercept_endpoint_group_association(request, options = nil) -> ::Gapic::Operation
def update_intercept_endpoint_group_association(update_mask: nil, intercept_endpoint_group_association: nil, request_id: nil) -> ::Gapic::OperationUpdates an association. See https://google.aip.dev/134.
def update_intercept_endpoint_group_association(request, options = nil) -> ::Gapic::Operationupdate_intercept_endpoint_group_association via a request object, either of type
UpdateInterceptEndpointGroupAssociationRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::UpdateInterceptEndpointGroupAssociationRequest, ::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 update_intercept_endpoint_group_association(update_mask: nil, intercept_endpoint_group_association: nil, request_id: nil) -> ::Gapic::Operationupdate_intercept_endpoint_group_association 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).
-
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. The list of fields to update.
Fields are specified relative to the association
(e.g.
description; notintercept_endpoint_group_association.description). See https://google.aip.dev/161 for more details. - intercept_endpoint_group_association (::Google::Cloud::NetworkSecurity::V1::InterceptEndpointGroupAssociation, ::Hash) — Required. The association to update.
-
request_id (::String) — Optional. A unique identifier for this request. Must be a UUID4.
This request is only idempotent if a
request_idis provided. See https://google.aip.dev/155 for more details.
- (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::Intercept::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::UpdateInterceptEndpointGroupAssociationRequest.new # Call the update_intercept_endpoint_group_association method. result = client.update_intercept_endpoint_group_association 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