# Identity and Access Management (IAM) V3 API - Class Google::Iam::V3::PolicyBindings::Rest::ServiceStub (v0.5.0)

0.5.0 (latest) 0.4.1 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Identity and Access Management (IAM) V3 API class Google::Iam::V3::PolicyBindings::Rest::ServiceStub.

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

## Inherits

- Object

## Methods

### #create_policy_binding

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

Baseline implementation for the create_policy_binding REST call
**Parameters**

- **request_pb** ([::Google::Iam::V3::CreatePolicyBindingRequest](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Iam-V3-CreatePolicyBindingRequest)) --- 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**

- **result** ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Longrunning-Operation)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #delete_policy_binding

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

Baseline implementation for the delete_policy_binding REST call
**Parameters**

- **request_pb** ([::Google::Iam::V3::DeletePolicyBindingRequest](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Iam-V3-DeletePolicyBindingRequest)) --- 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**

- **result** ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Longrunning-Operation)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #endpoint

    def endpoint() -> String

The effective endpoint
**Returns**

- (String)

### #get_policy_binding

    def get_policy_binding(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V3::PolicyBinding

Baseline implementation for the get_policy_binding REST call
**Parameters**

- **request_pb** ([::Google::Iam::V3::GetPolicyBindingRequest](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Iam-V3-GetPolicyBindingRequest)) --- 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**

- **result** ([::Google::Iam::V3::PolicyBinding](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Iam-V3-PolicyBinding))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Iam::V3::PolicyBinding](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Iam-V3-PolicyBinding)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #list_policy_bindings

    def list_policy_bindings(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V3::ListPolicyBindingsResponse

Baseline implementation for the list_policy_bindings REST call
**Parameters**

- **request_pb** ([::Google::Iam::V3::ListPolicyBindingsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Iam-V3-ListPolicyBindingsRequest)) --- 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**

- **result** ([::Google::Iam::V3::ListPolicyBindingsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Iam-V3-ListPolicyBindingsResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Iam::V3::ListPolicyBindingsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Iam-V3-ListPolicyBindingsResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #logger

    def logger(stub: false) -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #search_target_policy_bindings

    def search_target_policy_bindings(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V3::SearchTargetPolicyBindingsResponse

Baseline implementation for the search_target_policy_bindings REST call
**Parameters**

- **request_pb** ([::Google::Iam::V3::SearchTargetPolicyBindingsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Iam-V3-SearchTargetPolicyBindingsRequest)) --- 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**

- **result** ([::Google::Iam::V3::SearchTargetPolicyBindingsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Iam-V3-SearchTargetPolicyBindingsResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Iam::V3::SearchTargetPolicyBindingsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Iam-V3-SearchTargetPolicyBindingsResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)

### #update_policy_binding

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

Baseline implementation for the update_policy_binding REST call
**Parameters**

- **request_pb** ([::Google::Iam::V3::UpdatePolicyBindingRequest](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Iam-V3-UpdatePolicyBindingRequest)) --- 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**

- **result** ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-iam-v3/latest/Google-Longrunning-Operation)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)