# Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::OsConfigZonalService::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::OsConfigZonalService::Rest::ServiceStub.

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

## Inherits

- Object

## Methods

### #create_os_policy_assignment

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

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

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

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

- (::ArgumentError)

### #delete_os_policy_assignment

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

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

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

- ([::Google::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/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_inventory

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

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

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

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

- (::ArgumentError)

### #get_os_policy_assignment

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

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

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

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

- (::ArgumentError)

### #get_os_policy_assignment_report

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

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

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

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

- (::ArgumentError)

### #get_vulnerability_report

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

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

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

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

- (::ArgumentError)

### #list_inventories

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

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

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

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

- (::ArgumentError)

### #list_os_policy_assignment_reports

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

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

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

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

- (::ArgumentError)

### #list_os_policy_assignment_revisions

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

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

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

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

- (::ArgumentError)

### #list_os_policy_assignments

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

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

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

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

- (::ArgumentError)

### #list_vulnerability_reports

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

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

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

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

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)

### #update_os_policy_assignment

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

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

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

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

- (::ArgumentError)