# Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::OsConfigService::Rest::ServiceStub (v1.9.0)

1.9.0 (latest) 1.8.1 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.16.0 0.15.2 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.1 Reference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::OsConfigService::Rest::ServiceStub.

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

## Inherits

- Object

## Methods

### #cancel_patch_job

    def cancel_patch_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OsConfig::V1::PatchJob

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

- **request_pb** ([::Google::Cloud::OsConfig::V1::CancelPatchJobRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-CancelPatchJobRequest)) --- 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::Cloud::OsConfig::V1::PatchJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-PatchJob))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::OsConfig::V1::PatchJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-PatchJob)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #create_patch_deployment

    def create_patch_deployment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OsConfig::V1::PatchDeployment

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

- **request_pb** ([::Google::Cloud::OsConfig::V1::CreatePatchDeploymentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-CreatePatchDeploymentRequest)) --- 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::Cloud::OsConfig::V1::PatchDeployment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-PatchDeployment))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::OsConfig::V1::PatchDeployment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-PatchDeployment)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #delete_patch_deployment

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

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

- **request_pb** ([::Google::Cloud::OsConfig::V1::DeletePatchDeploymentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-DeletePatchDeploymentRequest)) --- 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::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Protobuf-Empty))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Protobuf-Empty)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #endpoint

    def endpoint() -> String

The effective endpoint
**Returns**

- (String)

### #execute_patch_job

    def execute_patch_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OsConfig::V1::PatchJob

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

- **request_pb** ([::Google::Cloud::OsConfig::V1::ExecutePatchJobRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ExecutePatchJobRequest)) --- 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::Cloud::OsConfig::V1::PatchJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-PatchJob))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::OsConfig::V1::PatchJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-PatchJob)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #get_patch_deployment

    def get_patch_deployment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OsConfig::V1::PatchDeployment

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

- **request_pb** ([::Google::Cloud::OsConfig::V1::GetPatchDeploymentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-GetPatchDeploymentRequest)) --- 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::Cloud::OsConfig::V1::PatchDeployment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-PatchDeployment))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::OsConfig::V1::PatchDeployment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-PatchDeployment)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #get_patch_job

    def get_patch_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OsConfig::V1::PatchJob

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

- **request_pb** ([::Google::Cloud::OsConfig::V1::GetPatchJobRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-GetPatchJobRequest)) --- 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::Cloud::OsConfig::V1::PatchJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-PatchJob))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::OsConfig::V1::PatchJob](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-PatchJob)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #list_patch_deployments

    def list_patch_deployments(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OsConfig::V1::ListPatchDeploymentsResponse

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

- **request_pb** ([::Google::Cloud::OsConfig::V1::ListPatchDeploymentsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ListPatchDeploymentsRequest)) --- 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::Cloud::OsConfig::V1::ListPatchDeploymentsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ListPatchDeploymentsResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::OsConfig::V1::ListPatchDeploymentsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ListPatchDeploymentsResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #list_patch_job_instance_details

    def list_patch_job_instance_details(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OsConfig::V1::ListPatchJobInstanceDetailsResponse

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

- **request_pb** ([::Google::Cloud::OsConfig::V1::ListPatchJobInstanceDetailsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ListPatchJobInstanceDetailsRequest)) --- 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::Cloud::OsConfig::V1::ListPatchJobInstanceDetailsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ListPatchJobInstanceDetailsResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::OsConfig::V1::ListPatchJobInstanceDetailsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ListPatchJobInstanceDetailsResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #list_patch_jobs

    def list_patch_jobs(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OsConfig::V1::ListPatchJobsResponse

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

- **request_pb** ([::Google::Cloud::OsConfig::V1::ListPatchJobsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ListPatchJobsRequest)) --- 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::Cloud::OsConfig::V1::ListPatchJobsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ListPatchJobsResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::OsConfig::V1::ListPatchJobsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ListPatchJobsResponse)) --- 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)

### #pause_patch_deployment

    def pause_patch_deployment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OsConfig::V1::PatchDeployment

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

- **request_pb** ([::Google::Cloud::OsConfig::V1::PausePatchDeploymentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-PausePatchDeploymentRequest)) --- 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::Cloud::OsConfig::V1::PatchDeployment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-PatchDeployment))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::OsConfig::V1::PatchDeployment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-PatchDeployment)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #resume_patch_deployment

    def resume_patch_deployment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OsConfig::V1::PatchDeployment

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

- **request_pb** ([::Google::Cloud::OsConfig::V1::ResumePatchDeploymentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ResumePatchDeploymentRequest)) --- 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::Cloud::OsConfig::V1::PatchDeployment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-PatchDeployment))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::OsConfig::V1::PatchDeployment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-PatchDeployment)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)

### #update_patch_deployment

    def update_patch_deployment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OsConfig::V1::PatchDeployment

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

- **request_pb** ([::Google::Cloud::OsConfig::V1::UpdatePatchDeploymentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-UpdatePatchDeploymentRequest)) --- 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::Cloud::OsConfig::V1::PatchDeployment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-PatchDeployment))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::OsConfig::V1::PatchDeployment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-PatchDeployment)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)