Organization Policy V2 API - Class Google::Cloud::OrgPolicy::V2::OrgPolicy::Rest::ServiceStub (v0.9.2)

Reference documentation and code samples for the Organization Policy V2 API class Google::Cloud::OrgPolicy::V2::OrgPolicy::Rest::ServiceStub.

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

Inherits

  • Object

Methods

#create_custom_constraint

def create_custom_constraint(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OrgPolicy::V2::CustomConstraint

Baseline implementation for the create_custom_constraint REST call

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

#create_policy

def create_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OrgPolicy::V2::Policy

Baseline implementation for the create_policy REST call

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

#delete_custom_constraint

def delete_custom_constraint(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_custom_constraint REST call

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

#delete_policy

def delete_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_policy REST call

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

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#get_custom_constraint

def get_custom_constraint(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OrgPolicy::V2::CustomConstraint

Baseline implementation for the get_custom_constraint REST call

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

#get_effective_policy

def get_effective_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OrgPolicy::V2::Policy

Baseline implementation for the get_effective_policy REST call

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

#get_policy

def get_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OrgPolicy::V2::Policy

Baseline implementation for the get_policy REST call

Parameters
  • request_pb (::Google::Cloud::OrgPolicy::V2::GetPolicyRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

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

#list_constraints

def list_constraints(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OrgPolicy::V2::ListConstraintsResponse

Baseline implementation for the list_constraints REST call

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

#list_custom_constraints

def list_custom_constraints(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OrgPolicy::V2::ListCustomConstraintsResponse

Baseline implementation for the list_custom_constraints REST call

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

#list_policies

def list_policies(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OrgPolicy::V2::ListPoliciesResponse

Baseline implementation for the list_policies REST call

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

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#update_custom_constraint

def update_custom_constraint(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OrgPolicy::V2::CustomConstraint

Baseline implementation for the update_custom_constraint REST call

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

#update_policy

def update_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OrgPolicy::V2::Policy

Baseline implementation for the update_policy REST call

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