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

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_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_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)

#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:, 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_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)

#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)