Network Security V1beta1 API - Class Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::ServiceStub (v0.4.0)

Reference documentation and code samples for the Network Security V1beta1 API class Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::ServiceStub.

REST service stub for the NetworkSecurity service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.

Inherits

  • Object

Methods

#create_authorization_policy

def create_authorization_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_authorization_policy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_client_tls_policy

def create_client_tls_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_client_tls_policy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_server_tls_policy

def create_server_tls_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_server_tls_policy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_authorization_policy

def delete_authorization_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_authorization_policy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_client_tls_policy

def delete_client_tls_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_client_tls_policy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_server_tls_policy

def delete_server_tls_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_server_tls_policy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_authorization_policy

def get_authorization_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy

Baseline implementation for the get_authorization_policy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_client_tls_policy

def get_client_tls_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkSecurity::V1beta1::ClientTlsPolicy

Baseline implementation for the get_client_tls_policy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_server_tls_policy

def get_server_tls_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkSecurity::V1beta1::ServerTlsPolicy

Baseline implementation for the get_server_tls_policy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, credentials:) -> ServiceStub
Returns

#list_authorization_policies

def list_authorization_policies(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkSecurity::V1beta1::ListAuthorizationPoliciesResponse

Baseline implementation for the list_authorization_policies REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_client_tls_policies

def list_client_tls_policies(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkSecurity::V1beta1::ListClientTlsPoliciesResponse

Baseline implementation for the list_client_tls_policies REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_server_tls_policies

def list_server_tls_policies(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::NetworkSecurity::V1beta1::ListServerTlsPoliciesResponse

Baseline implementation for the list_server_tls_policies REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_authorization_policy

def update_authorization_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_authorization_policy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_client_tls_policy

def update_client_tls_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_client_tls_policy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_server_tls_policy

def update_server_tls_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_server_tls_policy REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)