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
- request_pb (::Google::Cloud::OrgPolicy::V2::CreatePolicyRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::OrgPolicy::V2::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::OrgPolicy::V2::Policy) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_policy
def delete_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_policy REST call
- request_pb (::Google::Cloud::OrgPolicy::V2::DeletePolicyRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::OrgPolicy::V2::GetEffectivePolicyRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::OrgPolicy::V2::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::OrgPolicy::V2::Policy) — A result object deserialized from the server's reply
- (::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
- 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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::OrgPolicy::V2::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::OrgPolicy::V2::Policy) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#list_constraints
def list_constraints(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OrgPolicy::V2::ListConstraintsResponse
Baseline implementation for the list_constraints REST call
- request_pb (::Google::Cloud::OrgPolicy::V2::ListConstraintsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::OrgPolicy::V2::ListConstraintsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::OrgPolicy::V2::ListConstraintsResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::OrgPolicy::V2::ListPoliciesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::OrgPolicy::V2::ListPoliciesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::OrgPolicy::V2::ListPoliciesResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::OrgPolicy::V2::UpdatePolicyRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::OrgPolicy::V2::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::OrgPolicy::V2::Policy) — A result object deserialized from the server's reply
- (::ArgumentError)