Reference documentation and code samples for the Network Security V1 API class Google::Cloud::NetworkSecurity::V1::NetworkSecurity::Client.
Client for the NetworkSecurity service.
Network Security API provides resources to configure authentication and authorization policies. Refer to per API resource documentation for more information.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the NetworkSecurity Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all NetworkSecurity clients ::Google::Cloud::NetworkSecurity::V1::NetworkSecurity::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the NetworkSecurity 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_authorization_policy
def create_authorization_policy(request, options = nil) -> ::Gapic::Operation
def create_authorization_policy(parent: nil, authorization_policy_id: nil, authorization_policy: nil) -> ::Gapic::OperationCreates a new AuthorizationPolicy in a given project and location.
def create_authorization_policy(request, options = nil) -> ::Gapic::Operationcreate_authorization_policy via a request object, either of type
CreateAuthorizationPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateAuthorizationPolicyRequest, ::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_authorization_policy(parent: nil, authorization_policy_id: nil, authorization_policy: nil) -> ::Gapic::Operationcreate_authorization_policy 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 of the AuthorizationPolicy. Must be in the
format
projects/{project}/locations/{location}. - authorization_policy_id (::String) — Required. Short name of the AuthorizationPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "authz_policy".
- authorization_policy (::Google::Cloud::NetworkSecurity::V1::AuthorizationPolicy, ::Hash) — Required. AuthorizationPolicy resource to be created.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateAuthorizationPolicyRequest.new # Call the create_authorization_policy method. result = client.create_authorization_policy 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_authz_policy
def create_authz_policy(request, options = nil) -> ::Gapic::Operation
def create_authz_policy(parent: nil, authz_policy_id: nil, authz_policy: nil, request_id: nil) -> ::Gapic::OperationCreates a new AuthzPolicy in a given project and location.
def create_authz_policy(request, options = nil) -> ::Gapic::Operationcreate_authz_policy via a request object, either of type
CreateAuthzPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateAuthzPolicyRequest, ::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_authz_policy(parent: nil, authz_policy_id: nil, authz_policy: nil, request_id: nil) -> ::Gapic::Operationcreate_authz_policy 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 of the
AuthzPolicyresource. Must be in the formatprojects/{project}/locations/{location}. -
authz_policy_id (::String) — Required. User-provided ID of the
AuthzPolicyresource to be created. -
authz_policy (::Google::Cloud::NetworkSecurity::V1::AuthzPolicy, ::Hash) — Required.
AuthzPolicyresource to be created. -
request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server can ignore
the request if it has already been completed. The server guarantees
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateAuthzPolicyRequest.new # Call the create_authz_policy method. result = client.create_authz_policy 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_backend_authentication_config
def create_backend_authentication_config(request, options = nil) -> ::Gapic::Operation
def create_backend_authentication_config(parent: nil, backend_authentication_config_id: nil, backend_authentication_config: nil) -> ::Gapic::OperationCreates a new BackendAuthenticationConfig in a given project and location.
def create_backend_authentication_config(request, options = nil) -> ::Gapic::Operationcreate_backend_authentication_config via a request object, either of type
CreateBackendAuthenticationConfigRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateBackendAuthenticationConfigRequest, ::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_backend_authentication_config(parent: nil, backend_authentication_config_id: nil, backend_authentication_config: nil) -> ::Gapic::Operationcreate_backend_authentication_config 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 of the BackendAuthenticationConfig. Must be
in the format
projects/*/locations/{location}. - backend_authentication_config_id (::String) — Required. Short name of the BackendAuthenticationConfig resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "backend-auth-config".
- backend_authentication_config (::Google::Cloud::NetworkSecurity::V1::BackendAuthenticationConfig, ::Hash) — Required. BackendAuthenticationConfig resource to be created.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateBackendAuthenticationConfigRequest.new # Call the create_backend_authentication_config method. result = client.create_backend_authentication_config 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_client_tls_policy
def create_client_tls_policy(request, options = nil) -> ::Gapic::Operation
def create_client_tls_policy(parent: nil, client_tls_policy_id: nil, client_tls_policy: nil) -> ::Gapic::OperationCreates a new ClientTlsPolicy in a given project and location.
def create_client_tls_policy(request, options = nil) -> ::Gapic::Operationcreate_client_tls_policy via a request object, either of type
CreateClientTlsPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateClientTlsPolicyRequest, ::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_client_tls_policy(parent: nil, client_tls_policy_id: nil, client_tls_policy: nil) -> ::Gapic::Operationcreate_client_tls_policy 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 of the ClientTlsPolicy. Must be in
the format
projects/*/locations/{location}. - client_tls_policy_id (::String) — Required. Short name of the ClientTlsPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "client_mtls_policy".
- client_tls_policy (::Google::Cloud::NetworkSecurity::V1::ClientTlsPolicy, ::Hash) — Required. ClientTlsPolicy resource to be created.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateClientTlsPolicyRequest.new # Call the create_client_tls_policy method. result = client.create_client_tls_policy 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_gateway_security_policy
def create_gateway_security_policy(request, options = nil) -> ::Gapic::Operation
def create_gateway_security_policy(parent: nil, gateway_security_policy_id: nil, gateway_security_policy: nil) -> ::Gapic::OperationCreates a new GatewaySecurityPolicy in a given project and location.
def create_gateway_security_policy(request, options = nil) -> ::Gapic::Operationcreate_gateway_security_policy via a request object, either of type
CreateGatewaySecurityPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateGatewaySecurityPolicyRequest, ::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_gateway_security_policy(parent: nil, gateway_security_policy_id: nil, gateway_security_policy: nil) -> ::Gapic::Operationcreate_gateway_security_policy 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 of the GatewaySecurityPolicy. Must be in the
format
projects/{project}/locations/{location}. - gateway_security_policy_id (::String) — Required. Short name of the GatewaySecurityPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "gateway_security_policy1".
- gateway_security_policy (::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicy, ::Hash) — Required. GatewaySecurityPolicy resource to be created.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateGatewaySecurityPolicyRequest.new # Call the create_gateway_security_policy method. result = client.create_gateway_security_policy 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_gateway_security_policy_rule
def create_gateway_security_policy_rule(request, options = nil) -> ::Gapic::Operation
def create_gateway_security_policy_rule(parent: nil, gateway_security_policy_rule: nil, gateway_security_policy_rule_id: nil) -> ::Gapic::OperationCreates a new GatewaySecurityPolicy in a given project and location.
def create_gateway_security_policy_rule(request, options = nil) -> ::Gapic::Operationcreate_gateway_security_policy_rule via a request object, either of type
CreateGatewaySecurityPolicyRuleRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateGatewaySecurityPolicyRuleRequest, ::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_gateway_security_policy_rule(parent: nil, gateway_security_policy_rule: nil, gateway_security_policy_rule_id: nil) -> ::Gapic::Operationcreate_gateway_security_policy_rule 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 where this rule will be created. Format : projects/{project}/location/{location}/gatewaySecurityPolicies/*
- gateway_security_policy_rule (::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule, ::Hash) — Required. The rule to be created.
- gateway_security_policy_rule_id (::String) — The ID to use for the rule, which will become the final component of the rule's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateGatewaySecurityPolicyRuleRequest.new # Call the create_gateway_security_policy_rule method. result = client.create_gateway_security_policy_rule 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_server_tls_policy
def create_server_tls_policy(request, options = nil) -> ::Gapic::Operation
def create_server_tls_policy(parent: nil, server_tls_policy_id: nil, server_tls_policy: nil) -> ::Gapic::OperationCreates a new ServerTlsPolicy in a given project and location.
def create_server_tls_policy(request, options = nil) -> ::Gapic::Operationcreate_server_tls_policy via a request object, either of type
CreateServerTlsPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateServerTlsPolicyRequest, ::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_server_tls_policy(parent: nil, server_tls_policy_id: nil, server_tls_policy: nil) -> ::Gapic::Operationcreate_server_tls_policy 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 of the ServerTlsPolicy. Must be in
the format
projects/*/locations/{location}. - server_tls_policy_id (::String) — Required. Short name of the ServerTlsPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "server_mtls_policy".
- server_tls_policy (::Google::Cloud::NetworkSecurity::V1::ServerTlsPolicy, ::Hash) — Required. ServerTlsPolicy resource to be created.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateServerTlsPolicyRequest.new # Call the create_server_tls_policy method. result = client.create_server_tls_policy 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_tls_inspection_policy
def create_tls_inspection_policy(request, options = nil) -> ::Gapic::Operation
def create_tls_inspection_policy(parent: nil, tls_inspection_policy_id: nil, tls_inspection_policy: nil) -> ::Gapic::OperationCreates a new TlsInspectionPolicy in a given project and location.
def create_tls_inspection_policy(request, options = nil) -> ::Gapic::Operationcreate_tls_inspection_policy via a request object, either of type
CreateTlsInspectionPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateTlsInspectionPolicyRequest, ::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_tls_inspection_policy(parent: nil, tls_inspection_policy_id: nil, tls_inspection_policy: nil) -> ::Gapic::Operationcreate_tls_inspection_policy 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 of the TlsInspectionPolicy. Must be in the
format
projects/{project}/locations/{location}. - tls_inspection_policy_id (::String) — Required. Short name of the TlsInspectionPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "tls_inspection_policy1".
- tls_inspection_policy (::Google::Cloud::NetworkSecurity::V1::TlsInspectionPolicy, ::Hash) — Required. TlsInspectionPolicy resource to be created.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateTlsInspectionPolicyRequest.new # Call the create_tls_inspection_policy method. result = client.create_tls_inspection_policy 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_url_list
def create_url_list(request, options = nil) -> ::Gapic::Operation
def create_url_list(parent: nil, url_list_id: nil, url_list: nil) -> ::Gapic::OperationCreates a new UrlList in a given project and location.
def create_url_list(request, options = nil) -> ::Gapic::Operationcreate_url_list via a request object, either of type
CreateUrlListRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::CreateUrlListRequest, ::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_url_list(parent: nil, url_list_id: nil, url_list: nil) -> ::Gapic::Operationcreate_url_list 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 of the UrlList. Must be in
the format
projects/*/locations/{location}. - url_list_id (::String) — Required. Short name of the UrlList resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. "url_list".
- url_list (::Google::Cloud::NetworkSecurity::V1::UrlList, ::Hash) — Required. UrlList resource to be created.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::CreateUrlListRequest.new # Call the create_url_list method. result = client.create_url_list 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_authorization_policy
def delete_authorization_policy(request, options = nil) -> ::Gapic::Operation
def delete_authorization_policy(name: nil) -> ::Gapic::OperationDeletes a single AuthorizationPolicy.
def delete_authorization_policy(request, options = nil) -> ::Gapic::Operationdelete_authorization_policy via a request object, either of type
DeleteAuthorizationPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteAuthorizationPolicyRequest, ::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_authorization_policy(name: nil) -> ::Gapic::Operationdelete_authorization_policy 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. A name of the AuthorizationPolicy to delete. Must be in the
format
projects/{project}/locations/{location}/authorizationPolicies/*.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteAuthorizationPolicyRequest.new # Call the delete_authorization_policy method. result = client.delete_authorization_policy 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_authz_policy
def delete_authz_policy(request, options = nil) -> ::Gapic::Operation
def delete_authz_policy(name: nil, request_id: nil) -> ::Gapic::OperationDeletes a single AuthzPolicy.
def delete_authz_policy(request, options = nil) -> ::Gapic::Operationdelete_authz_policy via a request object, either of type
DeleteAuthzPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteAuthzPolicyRequest, ::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_authz_policy(name: nil, request_id: nil) -> ::Gapic::Operationdelete_authz_policy 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
AuthzPolicyresource to delete. Must be in the formatprojects/{project}/locations/{location}/authzPolicies/{authz_policy}. -
request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server can ignore
the request if it has already been completed. The server guarantees
that for at least 60 minutes after the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteAuthzPolicyRequest.new # Call the delete_authz_policy method. result = client.delete_authz_policy 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_backend_authentication_config
def delete_backend_authentication_config(request, options = nil) -> ::Gapic::Operation
def delete_backend_authentication_config(name: nil, etag: nil) -> ::Gapic::OperationDeletes a single BackendAuthenticationConfig to BackendAuthenticationConfig.
def delete_backend_authentication_config(request, options = nil) -> ::Gapic::Operationdelete_backend_authentication_config via a request object, either of type
DeleteBackendAuthenticationConfigRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteBackendAuthenticationConfigRequest, ::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_backend_authentication_config(name: nil, etag: nil) -> ::Gapic::Operationdelete_backend_authentication_config 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. A name of the BackendAuthenticationConfig to delete. Must be in
the format
projects/*/locations/{location}/backendAuthenticationConfigs/*. - etag (::String) — Optional. Etag of the resource. If this is provided, it must match the server's etag.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteBackendAuthenticationConfigRequest.new # Call the delete_backend_authentication_config method. result = client.delete_backend_authentication_config 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_client_tls_policy
def delete_client_tls_policy(request, options = nil) -> ::Gapic::Operation
def delete_client_tls_policy(name: nil) -> ::Gapic::OperationDeletes a single ClientTlsPolicy.
def delete_client_tls_policy(request, options = nil) -> ::Gapic::Operationdelete_client_tls_policy via a request object, either of type
DeleteClientTlsPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteClientTlsPolicyRequest, ::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_client_tls_policy(name: nil) -> ::Gapic::Operationdelete_client_tls_policy 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. A name of the ClientTlsPolicy to delete. Must be in
the format
projects/*/locations/{location}/clientTlsPolicies/*.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteClientTlsPolicyRequest.new # Call the delete_client_tls_policy method. result = client.delete_client_tls_policy 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_gateway_security_policy
def delete_gateway_security_policy(request, options = nil) -> ::Gapic::Operation
def delete_gateway_security_policy(name: nil) -> ::Gapic::OperationDeletes a single GatewaySecurityPolicy.
def delete_gateway_security_policy(request, options = nil) -> ::Gapic::Operationdelete_gateway_security_policy via a request object, either of type
DeleteGatewaySecurityPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteGatewaySecurityPolicyRequest, ::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_gateway_security_policy(name: nil) -> ::Gapic::Operationdelete_gateway_security_policy 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. A name of the GatewaySecurityPolicy to delete. Must be in the
format
projects/{project}/locations/{location}/gatewaySecurityPolicies/*.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteGatewaySecurityPolicyRequest.new # Call the delete_gateway_security_policy method. result = client.delete_gateway_security_policy 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_gateway_security_policy_rule
def delete_gateway_security_policy_rule(request, options = nil) -> ::Gapic::Operation
def delete_gateway_security_policy_rule(name: nil) -> ::Gapic::OperationDeletes a single GatewaySecurityPolicyRule.
def delete_gateway_security_policy_rule(request, options = nil) -> ::Gapic::Operationdelete_gateway_security_policy_rule via a request object, either of type
DeleteGatewaySecurityPolicyRuleRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteGatewaySecurityPolicyRuleRequest, ::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_gateway_security_policy_rule(name: nil) -> ::Gapic::Operationdelete_gateway_security_policy_rule 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. A name of the GatewaySecurityPolicyRule to delete. Must be in the
format
projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteGatewaySecurityPolicyRuleRequest.new # Call the delete_gateway_security_policy_rule method. result = client.delete_gateway_security_policy_rule 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_server_tls_policy
def delete_server_tls_policy(request, options = nil) -> ::Gapic::Operation
def delete_server_tls_policy(name: nil) -> ::Gapic::OperationDeletes a single ServerTlsPolicy.
def delete_server_tls_policy(request, options = nil) -> ::Gapic::Operationdelete_server_tls_policy via a request object, either of type
DeleteServerTlsPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteServerTlsPolicyRequest, ::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_server_tls_policy(name: nil) -> ::Gapic::Operationdelete_server_tls_policy 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. A name of the ServerTlsPolicy to delete. Must be in
the format
projects/*/locations/{location}/serverTlsPolicies/*.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteServerTlsPolicyRequest.new # Call the delete_server_tls_policy method. result = client.delete_server_tls_policy 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_tls_inspection_policy
def delete_tls_inspection_policy(request, options = nil) -> ::Gapic::Operation
def delete_tls_inspection_policy(name: nil, force: nil) -> ::Gapic::OperationDeletes a single TlsInspectionPolicy.
def delete_tls_inspection_policy(request, options = nil) -> ::Gapic::Operationdelete_tls_inspection_policy via a request object, either of type
DeleteTlsInspectionPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteTlsInspectionPolicyRequest, ::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_tls_inspection_policy(name: nil, force: nil) -> ::Gapic::Operationdelete_tls_inspection_policy 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. A name of the TlsInspectionPolicy to delete. Must be in the
format
projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}. - force (::Boolean) — If set to true, any rules for this TlsInspectionPolicy will also be deleted. (Otherwise, the request will only work if the TlsInspectionPolicy has no rules.)
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteTlsInspectionPolicyRequest.new # Call the delete_tls_inspection_policy method. result = client.delete_tls_inspection_policy 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_url_list
def delete_url_list(request, options = nil) -> ::Gapic::Operation
def delete_url_list(name: nil) -> ::Gapic::OperationDeletes a single UrlList.
def delete_url_list(request, options = nil) -> ::Gapic::Operationdelete_url_list via a request object, either of type
DeleteUrlListRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::DeleteUrlListRequest, ::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_url_list(name: nil) -> ::Gapic::Operationdelete_url_list 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. A name of the UrlList to delete. Must be in
the format
projects/*/locations/{location}/urlLists/*.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::DeleteUrlListRequest.new # Call the delete_url_list method. result = client.delete_url_list 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_authorization_policy
def get_authorization_policy(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::AuthorizationPolicy
def get_authorization_policy(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::AuthorizationPolicyGets details of a single AuthorizationPolicy.
def get_authorization_policy(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::AuthorizationPolicyget_authorization_policy via a request object, either of type
GetAuthorizationPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetAuthorizationPolicyRequest, ::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_authorization_policy(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::AuthorizationPolicyget_authorization_policy 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. A name of the AuthorizationPolicy to get. Must be in the format
projects/{project}/locations/{location}/authorizationPolicies/*.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::AuthorizationPolicy)
- 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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetAuthorizationPolicyRequest.new # Call the get_authorization_policy method. result = client.get_authorization_policy request # The returned object is of type Google::Cloud::NetworkSecurity::V1::AuthorizationPolicy. p result
#get_authz_policy
def get_authz_policy(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::AuthzPolicy
def get_authz_policy(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::AuthzPolicyGets details of a single AuthzPolicy.
def get_authz_policy(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::AuthzPolicyget_authz_policy via a request object, either of type
GetAuthzPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetAuthzPolicyRequest, ::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_authz_policy(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::AuthzPolicyget_authz_policy 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. A name of the
AuthzPolicyresource to get. Must be in the formatprojects/{project}/locations/{location}/authzPolicies/{authz_policy}.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::AuthzPolicy)
- 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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetAuthzPolicyRequest.new # Call the get_authz_policy method. result = client.get_authz_policy request # The returned object is of type Google::Cloud::NetworkSecurity::V1::AuthzPolicy. p result
#get_backend_authentication_config
def get_backend_authentication_config(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::BackendAuthenticationConfig
def get_backend_authentication_config(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::BackendAuthenticationConfigGets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig.
def get_backend_authentication_config(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::BackendAuthenticationConfigget_backend_authentication_config via a request object, either of type
GetBackendAuthenticationConfigRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetBackendAuthenticationConfigRequest, ::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_backend_authentication_config(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::BackendAuthenticationConfigget_backend_authentication_config 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. A name of the BackendAuthenticationConfig to get. Must be in the
format
projects/*/locations/{location}/backendAuthenticationConfigs/*.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::BackendAuthenticationConfig)
- 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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetBackendAuthenticationConfigRequest.new # Call the get_backend_authentication_config method. result = client.get_backend_authentication_config request # The returned object is of type Google::Cloud::NetworkSecurity::V1::BackendAuthenticationConfig. p result
#get_client_tls_policy
def get_client_tls_policy(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::ClientTlsPolicy
def get_client_tls_policy(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::ClientTlsPolicyGets details of a single ClientTlsPolicy.
def get_client_tls_policy(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::ClientTlsPolicyget_client_tls_policy via a request object, either of type
GetClientTlsPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetClientTlsPolicyRequest, ::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_client_tls_policy(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::ClientTlsPolicyget_client_tls_policy 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. A name of the ClientTlsPolicy to get. Must be in the format
projects/*/locations/{location}/clientTlsPolicies/*.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::ClientTlsPolicy)
- 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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetClientTlsPolicyRequest.new # Call the get_client_tls_policy method. result = client.get_client_tls_policy request # The returned object is of type Google::Cloud::NetworkSecurity::V1::ClientTlsPolicy. p result
#get_gateway_security_policy
def get_gateway_security_policy(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicy
def get_gateway_security_policy(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyGets details of a single GatewaySecurityPolicy.
def get_gateway_security_policy(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyget_gateway_security_policy via a request object, either of type
GetGatewaySecurityPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetGatewaySecurityPolicyRequest, ::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_gateway_security_policy(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyget_gateway_security_policy 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. A name of the GatewaySecurityPolicy to get. Must be in the format
projects/{project}/locations/{location}/gatewaySecurityPolicies/*.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicy)
- 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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetGatewaySecurityPolicyRequest.new # Call the get_gateway_security_policy method. result = client.get_gateway_security_policy request # The returned object is of type Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicy. p result
#get_gateway_security_policy_rule
def get_gateway_security_policy_rule(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule
def get_gateway_security_policy_rule(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRuleGets details of a single GatewaySecurityPolicyRule.
def get_gateway_security_policy_rule(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRuleget_gateway_security_policy_rule via a request object, either of type
GetGatewaySecurityPolicyRuleRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetGatewaySecurityPolicyRuleRequest, ::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_gateway_security_policy_rule(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRuleget_gateway_security_policy_rule 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 GatewaySecurityPolicyRule to retrieve. Format: projects/{project}/location/{location}/gatewaySecurityPolicies//rules/
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule)
- 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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetGatewaySecurityPolicyRuleRequest.new # Call the get_gateway_security_policy_rule method. result = client.get_gateway_security_policy_rule request # The returned object is of type Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule. p result
#get_server_tls_policy
def get_server_tls_policy(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::ServerTlsPolicy
def get_server_tls_policy(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::ServerTlsPolicyGets details of a single ServerTlsPolicy.
def get_server_tls_policy(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::ServerTlsPolicyget_server_tls_policy via a request object, either of type
GetServerTlsPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetServerTlsPolicyRequest, ::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_server_tls_policy(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::ServerTlsPolicyget_server_tls_policy 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. A name of the ServerTlsPolicy to get. Must be in the format
projects/*/locations/{location}/serverTlsPolicies/*.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::ServerTlsPolicy)
- 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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetServerTlsPolicyRequest.new # Call the get_server_tls_policy method. result = client.get_server_tls_policy request # The returned object is of type Google::Cloud::NetworkSecurity::V1::ServerTlsPolicy. p result
#get_tls_inspection_policy
def get_tls_inspection_policy(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::TlsInspectionPolicy
def get_tls_inspection_policy(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::TlsInspectionPolicyGets details of a single TlsInspectionPolicy.
def get_tls_inspection_policy(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::TlsInspectionPolicyget_tls_inspection_policy via a request object, either of type
GetTlsInspectionPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetTlsInspectionPolicyRequest, ::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_tls_inspection_policy(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::TlsInspectionPolicyget_tls_inspection_policy 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. A name of the TlsInspectionPolicy to get. Must be in the format
projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::TlsInspectionPolicy)
- 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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetTlsInspectionPolicyRequest.new # Call the get_tls_inspection_policy method. result = client.get_tls_inspection_policy request # The returned object is of type Google::Cloud::NetworkSecurity::V1::TlsInspectionPolicy. p result
#get_url_list
def get_url_list(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::UrlList
def get_url_list(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::UrlListGets details of a single UrlList.
def get_url_list(request, options = nil) -> ::Google::Cloud::NetworkSecurity::V1::UrlListget_url_list via a request object, either of type
GetUrlListRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::GetUrlListRequest, ::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_url_list(name: nil) -> ::Google::Cloud::NetworkSecurity::V1::UrlListget_url_list 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. A name of the UrlList to get. Must be in the format
projects/*/locations/{location}/urlLists/*.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetworkSecurity::V1::UrlList)
- 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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::GetUrlListRequest.new # Call the get_url_list method. result = client.get_url_list request # The returned object is of type Google::Cloud::NetworkSecurity::V1::UrlList. 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 NetworkSecurity client object.
- (config) — Configure the NetworkSecurity client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::NetworkSecurity::V1::NetworkSecurity::Client.new # Create a client using a custom configuration client = ::Google::Cloud::NetworkSecurity::V1::NetworkSecurity::Client.new do |config| config.timeout = 10.0 end
#list_authorization_policies
def list_authorization_policies(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::AuthorizationPolicy>
def list_authorization_policies(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::AuthorizationPolicy>Lists AuthorizationPolicies in a given project and location.
def list_authorization_policies(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::AuthorizationPolicy>list_authorization_policies via a request object, either of type
ListAuthorizationPoliciesRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListAuthorizationPoliciesRequest, ::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_authorization_policies(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::AuthorizationPolicy>list_authorization_policies 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 project and location from which the AuthorizationPolicies
should be listed, specified in the format
projects/{project}/locations/{location}. - page_size (::Integer) — Maximum number of AuthorizationPolicies to return per call.
-
page_token (::String) — The value returned by the last
ListAuthorizationPoliciesResponseIndicates that this is a continuation of a priorListAuthorizationPoliciescall, and that the system should return the next page of data.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::AuthorizationPolicy>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::AuthorizationPolicy>)
- (::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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListAuthorizationPoliciesRequest.new # Call the list_authorization_policies method. result = client.list_authorization_policies 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::AuthorizationPolicy. p item end
#list_authz_policies
def list_authz_policies(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::AuthzPolicy>
def list_authz_policies(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::AuthzPolicy>Lists AuthzPolicies in a given project and location.
def list_authz_policies(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::AuthzPolicy>list_authz_policies via a request object, either of type
ListAuthzPoliciesRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListAuthzPoliciesRequest, ::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_authz_policies(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::AuthzPolicy>list_authz_policies 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 project and location from which the
AuthzPolicyresources are listed, specified in the following format:projects/{project}/locations/{location}. - page_size (::Integer) — Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.
- page_token (::String) — Optional. A token identifying a page of results that the server returns.
- filter (::String) — Optional. Filtering results.
- order_by (::String) — Optional. Hint for how to order the results.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::AuthzPolicy>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::AuthzPolicy>)
- (::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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListAuthzPoliciesRequest.new # Call the list_authz_policies method. result = client.list_authz_policies 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::AuthzPolicy. p item end
#list_backend_authentication_configs
def list_backend_authentication_configs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::BackendAuthenticationConfig>
def list_backend_authentication_configs(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::BackendAuthenticationConfig>Lists BackendAuthenticationConfigs in a given project and location.
def list_backend_authentication_configs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::BackendAuthenticationConfig>list_backend_authentication_configs via a request object, either of type
ListBackendAuthenticationConfigsRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListBackendAuthenticationConfigsRequest, ::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_backend_authentication_configs(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::BackendAuthenticationConfig>list_backend_authentication_configs 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 project and location from which the
BackendAuthenticationConfigs should be listed, specified in the format
projects/*/locations/{location}. - page_size (::Integer) — Maximum number of BackendAuthenticationConfigs to return per call.
-
page_token (::String) — The value returned by the last
ListBackendAuthenticationConfigsResponseIndicates that this is a continuation of a priorListBackendAuthenticationConfigscall, and that the system should return the next page of data.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::BackendAuthenticationConfig>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::BackendAuthenticationConfig>)
- (::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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListBackendAuthenticationConfigsRequest.new # Call the list_backend_authentication_configs method. result = client.list_backend_authentication_configs 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::BackendAuthenticationConfig. p item end
#list_client_tls_policies
def list_client_tls_policies(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::ClientTlsPolicy>
def list_client_tls_policies(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::ClientTlsPolicy>Lists ClientTlsPolicies in a given project and location.
def list_client_tls_policies(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::ClientTlsPolicy>list_client_tls_policies via a request object, either of type
ListClientTlsPoliciesRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListClientTlsPoliciesRequest, ::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_client_tls_policies(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::ClientTlsPolicy>list_client_tls_policies 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 project and location from which the ClientTlsPolicies should
be listed, specified in the format
projects/*/locations/{location}. - page_size (::Integer) — Maximum number of ClientTlsPolicies to return per call.
-
page_token (::String) — The value returned by the last
ListClientTlsPoliciesResponseIndicates that this is a continuation of a priorListClientTlsPoliciescall, and that the system should return the next page of data.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::ClientTlsPolicy>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::ClientTlsPolicy>)
- (::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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListClientTlsPoliciesRequest.new # Call the list_client_tls_policies method. result = client.list_client_tls_policies 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::ClientTlsPolicy. p item end
#list_gateway_security_policies
def list_gateway_security_policies(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicy>
def list_gateway_security_policies(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicy>Lists GatewaySecurityPolicies in a given project and location.
def list_gateway_security_policies(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicy>list_gateway_security_policies via a request object, either of type
ListGatewaySecurityPoliciesRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListGatewaySecurityPoliciesRequest, ::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_gateway_security_policies(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicy>list_gateway_security_policies 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 project and location from which the GatewaySecurityPolicies
should be listed, specified in the format
projects/{project}/locations/{location}. - page_size (::Integer) — Maximum number of GatewaySecurityPolicies to return per call.
- page_token (::String) — The value returned by the last 'ListGatewaySecurityPoliciesResponse' Indicates that this is a continuation of a prior 'ListGatewaySecurityPolicies' call, and that the system should return the next page of data.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicy>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicy>)
- (::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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListGatewaySecurityPoliciesRequest.new # Call the list_gateway_security_policies method. result = client.list_gateway_security_policies 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::GatewaySecurityPolicy. p item end
#list_gateway_security_policy_rules
def list_gateway_security_policy_rules(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule>
def list_gateway_security_policy_rules(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule>Lists GatewaySecurityPolicyRules in a given project and location.
def list_gateway_security_policy_rules(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule>list_gateway_security_policy_rules via a request object, either of type
ListGatewaySecurityPolicyRulesRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListGatewaySecurityPolicyRulesRequest, ::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_gateway_security_policy_rules(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule>list_gateway_security_policy_rules 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 project, location and GatewaySecurityPolicy from which the
GatewaySecurityPolicyRules should be listed, specified in the format
projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}. - page_size (::Integer) — Maximum number of GatewaySecurityPolicyRules to return per call.
- page_token (::String) — The value returned by the last 'ListGatewaySecurityPolicyRulesResponse' Indicates that this is a continuation of a prior 'ListGatewaySecurityPolicyRules' call, and that the system should return the next page of data.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule>)
- (::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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListGatewaySecurityPolicyRulesRequest.new # Call the list_gateway_security_policy_rules method. result = client.list_gateway_security_policy_rules 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::GatewaySecurityPolicyRule. p item end
#list_server_tls_policies
def list_server_tls_policies(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::ServerTlsPolicy>
def list_server_tls_policies(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::ServerTlsPolicy>Lists ServerTlsPolicies in a given project and location.
def list_server_tls_policies(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::ServerTlsPolicy>list_server_tls_policies via a request object, either of type
ListServerTlsPoliciesRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListServerTlsPoliciesRequest, ::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_server_tls_policies(parent: nil, page_size: nil, page_token: nil, return_partial_success: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::ServerTlsPolicy>list_server_tls_policies 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 project and location from which the ServerTlsPolicies should
be listed, specified in the format
projects/*/locations/{location}. - page_size (::Integer) — Maximum number of ServerTlsPolicies to return per call.
-
page_token (::String) — The value returned by the last
ListServerTlsPoliciesResponseIndicates that this is a continuation of a priorListServerTlsPoliciescall, and that the system should return the next page of data. -
return_partial_success (::Boolean) — Optional. Setting this field to
truewill opt the request into returning the resources that are reachable, and into including the names of those that were unreachable in the [ListServerTlsPoliciesResponse.unreachable] field. This can only betruewhen reading across collections e.g. whenparentis set to"projects/example/locations/-".
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::ServerTlsPolicy>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::ServerTlsPolicy>)
- (::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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListServerTlsPoliciesRequest.new # Call the list_server_tls_policies method. result = client.list_server_tls_policies 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::ServerTlsPolicy. p item end
#list_tls_inspection_policies
def list_tls_inspection_policies(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::TlsInspectionPolicy>
def list_tls_inspection_policies(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::TlsInspectionPolicy>Lists TlsInspectionPolicies in a given project and location.
def list_tls_inspection_policies(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::TlsInspectionPolicy>list_tls_inspection_policies via a request object, either of type
ListTlsInspectionPoliciesRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListTlsInspectionPoliciesRequest, ::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_tls_inspection_policies(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::TlsInspectionPolicy>list_tls_inspection_policies 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 project and location from which the TlsInspectionPolicies
should be listed, specified in the format
projects/{project}/locations/{location}. - page_size (::Integer) — Maximum number of TlsInspectionPolicies to return per call.
- page_token (::String) — The value returned by the last 'ListTlsInspectionPoliciesResponse' Indicates that this is a continuation of a prior 'ListTlsInspectionPolicies' call, and that the system should return the next page of data.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::TlsInspectionPolicy>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::TlsInspectionPolicy>)
- (::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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListTlsInspectionPoliciesRequest.new # Call the list_tls_inspection_policies method. result = client.list_tls_inspection_policies 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::TlsInspectionPolicy. p item end
#list_url_lists
def list_url_lists(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::UrlList>
def list_url_lists(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::UrlList>Lists UrlLists in a given project and location.
def list_url_lists(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::UrlList>list_url_lists via a request object, either of type
ListUrlListsRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::ListUrlListsRequest, ::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_url_lists(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::UrlList>list_url_lists 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 project and location from which the UrlLists should
be listed, specified in the format
projects/{project}/locations/{location}. - page_size (::Integer) — Maximum number of UrlLists to return per call.
-
page_token (::String) — The value returned by the last
ListUrlListsResponseIndicates that this is a continuation of a priorListUrlListscall, and that the system should return the next page of data.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::UrlList>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetworkSecurity::V1::UrlList>)
- (::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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::ListUrlListsRequest.new # Call the list_url_lists method. result = client.list_url_lists 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::UrlList. 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::NetworkSecurity::OperationsGet the associated client for long-running operations.
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_authorization_policy
def update_authorization_policy(request, options = nil) -> ::Gapic::Operation
def update_authorization_policy(update_mask: nil, authorization_policy: nil) -> ::Gapic::OperationUpdates the parameters of a single AuthorizationPolicy.
def update_authorization_policy(request, options = nil) -> ::Gapic::Operationupdate_authorization_policy via a request object, either of type
UpdateAuthorizationPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::UpdateAuthorizationPolicyRequest, ::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_authorization_policy(update_mask: nil, authorization_policy: nil) -> ::Gapic::Operationupdate_authorization_policy 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. Field mask is used to specify the fields to be overwritten in the AuthorizationPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- authorization_policy (::Google::Cloud::NetworkSecurity::V1::AuthorizationPolicy, ::Hash) — Required. Updated AuthorizationPolicy resource.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::UpdateAuthorizationPolicyRequest.new # Call the update_authorization_policy method. result = client.update_authorization_policy 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_authz_policy
def update_authz_policy(request, options = nil) -> ::Gapic::Operation
def update_authz_policy(update_mask: nil, authz_policy: nil, request_id: nil) -> ::Gapic::OperationUpdates the parameters of a single AuthzPolicy.
def update_authz_policy(request, options = nil) -> ::Gapic::Operationupdate_authz_policy via a request object, either of type
UpdateAuthzPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::UpdateAuthzPolicyRequest, ::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_authz_policy(update_mask: nil, authz_policy: nil, request_id: nil) -> ::Gapic::Operationupdate_authz_policy 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) — Required. Used to specify the fields to be overwritten in the
AuthzPolicyresource by the update. The fields specified in theupdate_maskare relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten. -
authz_policy (::Google::Cloud::NetworkSecurity::V1::AuthzPolicy, ::Hash) — Required.
AuthzPolicyresource being updated. -
request_id (::String) — Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server can ignore
the request if it has already been completed. The server guarantees
that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/network_security/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::NetworkSecurity::V1::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::UpdateAuthzPolicyRequest.new # Call the update_authz_policy method. result = client.update_authz_policy 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_backend_authentication_config
def update_backend_authentication_config(request, options = nil) -> ::Gapic::Operation
def update_backend_authentication_config(update_mask: nil, backend_authentication_config: nil) -> ::Gapic::OperationUpdates the parameters of a single BackendAuthenticationConfig to BackendAuthenticationConfig.
def update_backend_authentication_config(request, options = nil) -> ::Gapic::Operationupdate_backend_authentication_config via a request object, either of type
UpdateBackendAuthenticationConfigRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::UpdateBackendAuthenticationConfigRequest, ::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_backend_authentication_config(update_mask: nil, backend_authentication_config: nil) -> ::Gapic::Operationupdate_backend_authentication_config 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. Field mask is used to specify the fields to be overwritten in the BackendAuthenticationConfig resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- backend_authentication_config (::Google::Cloud::NetworkSecurity::V1::BackendAuthenticationConfig, ::Hash) — Required. Updated BackendAuthenticationConfig resource.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::UpdateBackendAuthenticationConfigRequest.new # Call the update_backend_authentication_config method. result = client.update_backend_authentication_config 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_client_tls_policy
def update_client_tls_policy(request, options = nil) -> ::Gapic::Operation
def update_client_tls_policy(update_mask: nil, client_tls_policy: nil) -> ::Gapic::OperationUpdates the parameters of a single ClientTlsPolicy.
def update_client_tls_policy(request, options = nil) -> ::Gapic::Operationupdate_client_tls_policy via a request object, either of type
UpdateClientTlsPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::UpdateClientTlsPolicyRequest, ::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_client_tls_policy(update_mask: nil, client_tls_policy: nil) -> ::Gapic::Operationupdate_client_tls_policy 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. Field mask is used to specify the fields to be overwritten in the ClientTlsPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- client_tls_policy (::Google::Cloud::NetworkSecurity::V1::ClientTlsPolicy, ::Hash) — Required. Updated ClientTlsPolicy resource.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::UpdateClientTlsPolicyRequest.new # Call the update_client_tls_policy method. result = client.update_client_tls_policy 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_gateway_security_policy
def update_gateway_security_policy(request, options = nil) -> ::Gapic::Operation
def update_gateway_security_policy(update_mask: nil, gateway_security_policy: nil) -> ::Gapic::OperationUpdates the parameters of a single GatewaySecurityPolicy.
def update_gateway_security_policy(request, options = nil) -> ::Gapic::Operationupdate_gateway_security_policy via a request object, either of type
UpdateGatewaySecurityPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::UpdateGatewaySecurityPolicyRequest, ::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_gateway_security_policy(update_mask: nil, gateway_security_policy: nil) -> ::Gapic::Operationupdate_gateway_security_policy 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. Field mask is used to specify the fields to be overwritten in the GatewaySecurityPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- gateway_security_policy (::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicy, ::Hash) — Required. Updated GatewaySecurityPolicy resource.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::UpdateGatewaySecurityPolicyRequest.new # Call the update_gateway_security_policy method. result = client.update_gateway_security_policy 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_gateway_security_policy_rule
def update_gateway_security_policy_rule(request, options = nil) -> ::Gapic::Operation
def update_gateway_security_policy_rule(update_mask: nil, gateway_security_policy_rule: nil) -> ::Gapic::OperationUpdates the parameters of a single GatewaySecurityPolicyRule.
def update_gateway_security_policy_rule(request, options = nil) -> ::Gapic::Operationupdate_gateway_security_policy_rule via a request object, either of type
UpdateGatewaySecurityPolicyRuleRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::UpdateGatewaySecurityPolicyRuleRequest, ::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_gateway_security_policy_rule(update_mask: nil, gateway_security_policy_rule: nil) -> ::Gapic::Operationupdate_gateway_security_policy_rule 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. Field mask is used to specify the fields to be overwritten in the GatewaySecurityPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- gateway_security_policy_rule (::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule, ::Hash) — Required. Updated GatewaySecurityPolicyRule resource.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::UpdateGatewaySecurityPolicyRuleRequest.new # Call the update_gateway_security_policy_rule method. result = client.update_gateway_security_policy_rule 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_server_tls_policy
def update_server_tls_policy(request, options = nil) -> ::Gapic::Operation
def update_server_tls_policy(update_mask: nil, server_tls_policy: nil) -> ::Gapic::OperationUpdates the parameters of a single ServerTlsPolicy.
def update_server_tls_policy(request, options = nil) -> ::Gapic::Operationupdate_server_tls_policy via a request object, either of type
UpdateServerTlsPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::UpdateServerTlsPolicyRequest, ::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_server_tls_policy(update_mask: nil, server_tls_policy: nil) -> ::Gapic::Operationupdate_server_tls_policy 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. Field mask is used to specify the fields to be overwritten in the ServerTlsPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- server_tls_policy (::Google::Cloud::NetworkSecurity::V1::ServerTlsPolicy, ::Hash) — Required. Updated ServerTlsPolicy resource.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::UpdateServerTlsPolicyRequest.new # Call the update_server_tls_policy method. result = client.update_server_tls_policy 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_tls_inspection_policy
def update_tls_inspection_policy(request, options = nil) -> ::Gapic::Operation
def update_tls_inspection_policy(update_mask: nil, tls_inspection_policy: nil) -> ::Gapic::OperationUpdates the parameters of a single TlsInspectionPolicy.
def update_tls_inspection_policy(request, options = nil) -> ::Gapic::Operationupdate_tls_inspection_policy via a request object, either of type
UpdateTlsInspectionPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::UpdateTlsInspectionPolicyRequest, ::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_tls_inspection_policy(update_mask: nil, tls_inspection_policy: nil) -> ::Gapic::Operationupdate_tls_inspection_policy 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. Field mask is used to specify the fields to be overwritten in the TlsInspectionPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- tls_inspection_policy (::Google::Cloud::NetworkSecurity::V1::TlsInspectionPolicy, ::Hash) — Required. Updated TlsInspectionPolicy resource.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::UpdateTlsInspectionPolicyRequest.new # Call the update_tls_inspection_policy method. result = client.update_tls_inspection_policy 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_url_list
def update_url_list(request, options = nil) -> ::Gapic::Operation
def update_url_list(update_mask: nil, url_list: nil) -> ::Gapic::OperationUpdates the parameters of a single UrlList.
def update_url_list(request, options = nil) -> ::Gapic::Operationupdate_url_list via a request object, either of type
UpdateUrlListRequest or an equivalent Hash.
- request (::Google::Cloud::NetworkSecurity::V1::UpdateUrlListRequest, ::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_url_list(update_mask: nil, url_list: nil) -> ::Gapic::Operationupdate_url_list 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. Field mask is used to specify the fields to be overwritten in the UrlList resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- url_list (::Google::Cloud::NetworkSecurity::V1::UrlList, ::Hash) — Required. Updated UrlList resource.
- (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::NetworkSecurity::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetworkSecurity::V1::UpdateUrlListRequest.new # Call the update_url_list method. result = client.update_url_list 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