Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::OsConfigZonalService::Rest::ServiceStub (v1.0.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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
Returns

#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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)