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
- request_pb (::Google::Cloud::OrgPolicy::V2::CreateCustomConstraintRequest) — 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::CustomConstraint)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::OrgPolicy::V2::CustomConstraint) — A result object deserialized from the server's reply
- (::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
- 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_custom_constraint
def delete_custom_constraint(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_custom_constraint REST call
- request_pb (::Google::Cloud::OrgPolicy::V2::DeleteCustomConstraintRequest) — 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)
#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)
#endpoint
def endpoint() -> String
The effective endpoint
- (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
- request_pb (::Google::Cloud::OrgPolicy::V2::GetCustomConstraintRequest) — 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::CustomConstraint)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::OrgPolicy::V2::CustomConstraint) — 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:, endpoint_template:, universe_domain:, 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_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
- request_pb (::Google::Cloud::OrgPolicy::V2::ListCustomConstraintsRequest) — 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::ListCustomConstraintsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::OrgPolicy::V2::ListCustomConstraintsResponse) — 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)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (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
- request_pb (::Google::Cloud::OrgPolicy::V2::UpdateCustomConstraintRequest) — 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::CustomConstraint)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::OrgPolicy::V2::CustomConstraint) — 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)