Reference documentation and code samples for the Network Security V1 API class Google::Cloud::NetworkSecurity::V1::Mirroring::Client.
Client for the Mirroring service.
PM2 is the "out-of-band" flavor of the Network Security Integrations product.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the Mirroring Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all Mirroring clients ::Google::Cloud::NetworkSecurity::V1::Mirroring::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the Mirroring 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_mirroring_deployment
def create_mirroring_deployment(request, options = nil) -> ::Gapic::Operation
def create_mirroring_deployment(parent: nil, mirroring_deployment_id: nil, mirroring_deployment: nil, request_id: nil) -> ::Gapic::OperationCreates a deployment in a given project and location. See https://google.aip.dev/133.
def create_mirroring_deployment(request, options = nil) -> ::Gapic::Operationcreate_mirroring_deployment via a request object, either of type
CreateMirroringDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateMirroringDeploymentRequest, ::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_mirroring_deployment(parent: nil, mirroring_deployment_id: nil, mirroring_deployment: nil, request_id: nil) -> ::Gapic::Operationcreate_mirroring_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}
- mirroring_deployment_id (::String) — Required. The ID to use for the new deployment, which will become the final component of the deployment's resource name.
- mirroring_deployment (::Google::Cloud::NetworkSecurity::V1::MirroringDeployment, ::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::Mirroring::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateMirroringDeploymentRequest.new # Call the create_mirroring_deployment method. result = client.create_mirroring_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_mirroring_deployment_group
def create_mirroring_deployment_group(request, options = nil) -> ::Gapic::Operation
def create_mirroring_deployment_group(parent: nil, mirroring_deployment_group_id: nil, mirroring_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_mirroring_deployment_group(request, options = nil) -> ::Gapic::Operationcreate_mirroring_deployment_group via a request object, either of type
CreateMirroringDeploymentGroupRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateMirroringDeploymentGroupRequest, ::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_mirroring_deployment_group(parent: nil, mirroring_deployment_group_id: nil, mirroring_deployment_group: nil, request_id: nil) -> ::Gapic::Operationcreate_mirroring_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}
- mirroring_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.
- mirroring_deployment_group (::Google::Cloud::NetworkSecurity::V1::MirroringDeploymentGroup, ::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::Mirroring::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateMirroringDeploymentGroupRequest.new # Call the create_mirroring_deployment_group method. result = client.create_mirroring_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_mirroring_endpoint_group
def create_mirroring_endpoint_group(request, options = nil) -> ::Gapic::Operation
def create_mirroring_endpoint_group(parent: nil, mirroring_endpoint_group_id: nil, mirroring_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_mirroring_endpoint_group(request, options = nil) -> ::Gapic::Operationcreate_mirroring_endpoint_group via a request object, either of type
CreateMirroringEndpointGroupRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateMirroringEndpointGroupRequest, ::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_mirroring_endpoint_group(parent: nil, mirroring_endpoint_group_id: nil, mirroring_endpoint_group: nil, request_id: nil) -> ::Gapic::Operationcreate_mirroring_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}
- mirroring_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.
- mirroring_endpoint_group (::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroup, ::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::Mirroring::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateMirroringEndpointGroupRequest.new # Call the create_mirroring_endpoint_group method. result = client.create_mirroring_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_mirroring_endpoint_group_association
def create_mirroring_endpoint_group_association(request, options = nil) -> ::Gapic::Operation
def create_mirroring_endpoint_group_association(parent: nil, mirroring_endpoint_group_association_id: nil, mirroring_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_mirroring_endpoint_group_association(request, options = nil) -> ::Gapic::Operationcreate_mirroring_endpoint_group_association via a request object, either of type
CreateMirroringEndpointGroupAssociationRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateMirroringEndpointGroupAssociationRequest, ::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_mirroring_endpoint_group_association(parent: nil, mirroring_endpoint_group_association_id: nil, mirroring_endpoint_group_association: nil, request_id: nil) -> ::Gapic::Operationcreate_mirroring_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}
- mirroring_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.
- mirroring_endpoint_group_association (::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroupAssociation, ::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::Mirroring::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateMirroringEndpointGroupAssociationRequest.new # Call the create_mirroring_endpoint_group_association method. result = client.create_mirroring_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_mirroring_deployment
def delete_mirroring_deployment(request, options = nil) -> ::Gapic::Operation
def delete_mirroring_deployment(name: nil, request_id: nil) -> ::Gapic::OperationDeletes a deployment. See https://google.aip.dev/135.
def delete_mirroring_deployment(request, options = nil) -> ::Gapic::Operationdelete_mirroring_deployment via a request object, either of type
DeleteMirroringDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteMirroringDeploymentRequest, ::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_mirroring_deployment(name: nil, request_id: nil) -> ::Gapic::Operationdelete_mirroring_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::Mirroring::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteMirroringDeploymentRequest.new # Call the delete_mirroring_deployment method. result = client.delete_mirroring_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_mirroring_deployment_group
def delete_mirroring_deployment_group(request, options = nil) -> ::Gapic::Operation
def delete_mirroring_deployment_group(name: nil, request_id: nil) -> ::Gapic::OperationDeletes a deployment group. See https://google.aip.dev/135.
def delete_mirroring_deployment_group(request, options = nil) -> ::Gapic::Operationdelete_mirroring_deployment_group via a request object, either of type
DeleteMirroringDeploymentGroupRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteMirroringDeploymentGroupRequest, ::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_mirroring_deployment_group(name: nil, request_id: nil) -> ::Gapic::Operationdelete_mirroring_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::Mirroring::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteMirroringDeploymentGroupRequest.new # Call the delete_mirroring_deployment_group method. result = client.delete_mirroring_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_mirroring_endpoint_group
def delete_mirroring_endpoint_group(request, options = nil) -> ::Gapic::Operation
def delete_mirroring_endpoint_group(name: nil, request_id: nil) -> ::Gapic::OperationDeletes an endpoint group. See https://google.aip.dev/135.
def delete_mirroring_endpoint_group(request, options = nil) -> ::Gapic::Operationdelete_mirroring_endpoint_group via a request object, either of type
DeleteMirroringEndpointGroupRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteMirroringEndpointGroupRequest, ::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_mirroring_endpoint_group(name: nil, request_id: nil) -> ::Gapic::Operationdelete_mirroring_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::Mirroring::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteMirroringEndpointGroupRequest.new # Call the delete_mirroring_endpoint_group method. result = client.delete_mirroring_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_mirroring_endpoint_group_association
def delete_mirroring_endpoint_group_association(request, options = nil) -> ::Gapic::Operation
def delete_mirroring_endpoint_group_association(name: nil, request_id: nil) -> ::Gapic::OperationDeletes an association. See https://google.aip.dev/135.
def delete_mirroring_endpoint_group_association(request, options = nil) -> ::Gapic::Operationdelete_mirroring_endpoint_group_association via a request object, either of type
DeleteMirroringEndpointGroupAssociationRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteMirroringEndpointGroupAssociationRequest, ::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_mirroring_endpoint_group_association(name: nil, request_id: nil) -> ::Gapic::Operationdelete_mirroring_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::Mirroring::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteMirroringEndpointGroupAssociationRequest.new # Call the delete_mirroring_endpoint_group_association method. result = client.delete_mirroring_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_mirroring_deployment
def get_mirroring_deployment(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::MirroringDeployment
def get_mirroring_deployment(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::MirroringDeploymentGets a specific deployment. See https://google.aip.dev/131.
def get_mirroring_deployment(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::MirroringDeploymentget_mirroring_deployment via a request object, either of type
GetMirroringDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetMirroringDeploymentRequest, ::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_mirroring_deployment(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::MirroringDeploymentget_mirroring_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}/mirroringDeployments/{mirroring_deployment}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::MirroringDeployment)
- 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::Mirroring::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetMirroringDeploymentRequest.new # Call the get_mirroring_deployment method. result = client.get_mirroring_deployment request # The returned object is of type Google::Cloud::NetworkSecurity::V1::MirroringDeployment. p result
#get_mirroring_deployment_group
def get_mirroring_deployment_group(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::MirroringDeploymentGroup
def get_mirroring_deployment_group(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::MirroringDeploymentGroupGets a specific deployment group. See https://google.aip.dev/131.
def get_mirroring_deployment_group(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::MirroringDeploymentGroupget_mirroring_deployment_group via a request object, either of type
GetMirroringDeploymentGroupRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetMirroringDeploymentGroupRequest, ::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_mirroring_deployment_group(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::MirroringDeploymentGroupget_mirroring_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}/mirroringDeploymentGroups/{mirroring_deployment_group}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::MirroringDeploymentGroup)
- 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::Mirroring::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetMirroringDeploymentGroupRequest.new # Call the get_mirroring_deployment_group method. result = client.get_mirroring_deployment_group request # The returned object is of type Google::Cloud::NetworkSecurity::V1::MirroringDeploymentGroup. p result
#get_mirroring_endpoint_group
def get_mirroring_endpoint_group(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroup
def get_mirroring_endpoint_group(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroupGets a specific endpoint group. See https://google.aip.dev/131.
def get_mirroring_endpoint_group(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroupget_mirroring_endpoint_group via a request object, either of type
GetMirroringEndpointGroupRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetMirroringEndpointGroupRequest, ::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_mirroring_endpoint_group(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroupget_mirroring_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}/mirroringEndpointGroups/{mirroring_endpoint_group}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroup)
- 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::Mirroring::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetMirroringEndpointGroupRequest.new # Call the get_mirroring_endpoint_group method. result = client.get_mirroring_endpoint_group request # The returned object is of type Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroup. p result
#get_mirroring_endpoint_group_association
def get_mirroring_endpoint_group_association(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroupAssociation
def get_mirroring_endpoint_group_association(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroupAssociationGets a specific association. See https://google.aip.dev/131.
def get_mirroring_endpoint_group_association(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroupAssociationget_mirroring_endpoint_group_association via a request object, either of type
GetMirroringEndpointGroupAssociationRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetMirroringEndpointGroupAssociationRequest, ::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_mirroring_endpoint_group_association(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroupAssociationget_mirroring_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}/mirroringEndpointGroupAssociations/{mirroring_endpoint_group_association}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroupAssociation)
- 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::Mirroring::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetMirroringEndpointGroupAssociationRequest.new # Call the get_mirroring_endpoint_group_association method. result = client.get_mirroring_endpoint_group_association request # The returned object is of type Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroupAssociation. 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 Mirroring client object.
- (config) — Configure the Mirroring client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::NetworkSecurity::V1::Mirroring::Client.new # Create a client using a custom configuration client = ::Google::Cloud::NetworkSecurity::V1::Mirroring::Client.new do |config| config.timeout = 10.0 end
#list_mirroring_deployment_groups
def list_mirroring_deployment_groups(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::MirroringDeploymentGroup>
def list_mirroring_deployment_groups(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::MirroringDeploymentGroup>Lists deployment groups in a given project and location. See https://google.aip.dev/132.
def list_mirroring_deployment_groups(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::MirroringDeploymentGroup>list_mirroring_deployment_groups via a request object, either of type
ListMirroringDeploymentGroupsRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListMirroringDeploymentGroupsRequest, ::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_mirroring_deployment_groups(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::MirroringDeploymentGroup>list_mirroring_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
ListMirroringDeploymentGroupscall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListMirroringDeploymentGroupsmust 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::MirroringDeploymentGroup>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::MirroringDeploymentGroup>)
- (::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::Mirroring::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListMirroringDeploymentGroupsRequest.new # Call the list_mirroring_deployment_groups method. result = client.list_mirroring_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::MirroringDeploymentGroup. p item end
#list_mirroring_deployments
def list_mirroring_deployments(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::MirroringDeployment>
def list_mirroring_deployments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::MirroringDeployment>Lists deployments in a given project and location. See https://google.aip.dev/132.
def list_mirroring_deployments(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::MirroringDeployment>list_mirroring_deployments via a request object, either of type
ListMirroringDeploymentsRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListMirroringDeploymentsRequest, ::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_mirroring_deployments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::MirroringDeployment>list_mirroring_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
ListMirroringDeploymentscall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListMirroringDeploymentsmust 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::MirroringDeployment>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::MirroringDeployment>)
- (::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::Mirroring::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListMirroringDeploymentsRequest.new # Call the list_mirroring_deployments method. result = client.list_mirroring_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::MirroringDeployment. p item end
#list_mirroring_endpoint_group_associations
def list_mirroring_endpoint_group_associations(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroupAssociation>
def list_mirroring_endpoint_group_associations(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroupAssociation>Lists associations in a given project and location. See https://google.aip.dev/132.
def list_mirroring_endpoint_group_associations(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroupAssociation>list_mirroring_endpoint_group_associations via a request object, either of type
ListMirroringEndpointGroupAssociationsRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListMirroringEndpointGroupAssociationsRequest, ::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_mirroring_endpoint_group_associations(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroupAssociation>list_mirroring_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
ListMirroringEndpointGroupscall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListMirroringEndpointGroupsmust 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::MirroringEndpointGroupAssociation>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroupAssociation>)
- (::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::Mirroring::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListMirroringEndpointGroupAssociationsRequest.new # Call the list_mirroring_endpoint_group_associations method. result = client.list_mirroring_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::MirroringEndpointGroupAssociation. p item end
#list_mirroring_endpoint_groups
def list_mirroring_endpoint_groups(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroup>
def list_mirroring_endpoint_groups(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroup>Lists endpoint groups in a given project and location. See https://google.aip.dev/132.
def list_mirroring_endpoint_groups(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroup>list_mirroring_endpoint_groups via a request object, either of type
ListMirroringEndpointGroupsRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListMirroringEndpointGroupsRequest, ::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_mirroring_endpoint_groups(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroup>list_mirroring_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
ListMirroringEndpointGroupscall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListMirroringEndpointGroupsmust 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::MirroringEndpointGroup>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroup>)
- (::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::Mirroring::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListMirroringEndpointGroupsRequest.new # Call the list_mirroring_endpoint_groups method. result = client.list_mirroring_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::MirroringEndpointGroup. 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::Mirroring::OperationsGet the associated client for long-running operations.
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_mirroring_deployment
def update_mirroring_deployment(request, options = nil) -> ::Gapic::Operation
def update_mirroring_deployment(update_mask: nil, mirroring_deployment: nil, request_id: nil) -> ::Gapic::OperationUpdates a deployment. See https://google.aip.dev/134.
def update_mirroring_deployment(request, options = nil) -> ::Gapic::Operationupdate_mirroring_deployment via a request object, either of type
UpdateMirroringDeploymentRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::UpdateMirroringDeploymentRequest, ::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_mirroring_deployment(update_mask: nil, mirroring_deployment: nil, request_id: nil) -> ::Gapic::Operationupdate_mirroring_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; notmirroring_deployment.description). See https://google.aip.dev/161 for more details. - mirroring_deployment (::Google::Cloud::NetworkSecurity::V1::MirroringDeployment, ::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::Mirroring::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::UpdateMirroringDeploymentRequest.new # Call the update_mirroring_deployment method. result = client.update_mirroring_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_mirroring_deployment_group
def update_mirroring_deployment_group(request, options = nil) -> ::Gapic::Operation
def update_mirroring_deployment_group(update_mask: nil, mirroring_deployment_group: nil, request_id: nil) -> ::Gapic::OperationUpdates a deployment group. See https://google.aip.dev/134.
def update_mirroring_deployment_group(request, options = nil) -> ::Gapic::Operationupdate_mirroring_deployment_group via a request object, either of type
UpdateMirroringDeploymentGroupRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::UpdateMirroringDeploymentGroupRequest, ::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_mirroring_deployment_group(update_mask: nil, mirroring_deployment_group: nil, request_id: nil) -> ::Gapic::Operationupdate_mirroring_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; notmirroring_deployment_group.description). See https://google.aip.dev/161 for more details. - mirroring_deployment_group (::Google::Cloud::NetworkSecurity::V1::MirroringDeploymentGroup, ::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::Mirroring::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::UpdateMirroringDeploymentGroupRequest.new # Call the update_mirroring_deployment_group method. result = client.update_mirroring_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_mirroring_endpoint_group
def update_mirroring_endpoint_group(request, options = nil) -> ::Gapic::Operation
def update_mirroring_endpoint_group(update_mask: nil, mirroring_endpoint_group: nil, request_id: nil) -> ::Gapic::OperationUpdates an endpoint group. See https://google.aip.dev/134.
def update_mirroring_endpoint_group(request, options = nil) -> ::Gapic::Operationupdate_mirroring_endpoint_group via a request object, either of type
UpdateMirroringEndpointGroupRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::UpdateMirroringEndpointGroupRequest, ::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_mirroring_endpoint_group(update_mask: nil, mirroring_endpoint_group: nil, request_id: nil) -> ::Gapic::Operationupdate_mirroring_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; notmirroring_endpoint_group.description). See https://google.aip.dev/161 for more details. - mirroring_endpoint_group (::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroup, ::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::Mirroring::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::UpdateMirroringEndpointGroupRequest.new # Call the update_mirroring_endpoint_group method. result = client.update_mirroring_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_mirroring_endpoint_group_association
def update_mirroring_endpoint_group_association(request, options = nil) -> ::Gapic::Operation
def update_mirroring_endpoint_group_association(update_mask: nil, mirroring_endpoint_group_association: nil, request_id: nil) -> ::Gapic::OperationUpdates an association. See https://google.aip.dev/134.
def update_mirroring_endpoint_group_association(request, options = nil) -> ::Gapic::Operationupdate_mirroring_endpoint_group_association via a request object, either of type
UpdateMirroringEndpointGroupAssociationRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::UpdateMirroringEndpointGroupAssociationRequest, ::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_mirroring_endpoint_group_association(update_mask: nil, mirroring_endpoint_group_association: nil, request_id: nil) -> ::Gapic::Operationupdate_mirroring_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; notmirroring_endpoint_group_association.description). See https://google.aip.dev/161 for more details. - mirroring_endpoint_group_association (::Google::Cloud::NetworkSecurity::V1::MirroringEndpointGroupAssociation, ::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::Mirroring::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::UpdateMirroringEndpointGroupAssociationRequest.new # Call the update_mirroring_endpoint_group_association method. result = client.update_mirroring_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