Class: Google::Apis::OsconfigV1::OSConfigService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::OsconfigV1::OSConfigService
- Defined in:
- lib/google/apis/osconfig_v1/service.rb
Overview
OS Config API
OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::Empty
Starts asynchronous cancellation on a long-running operation.
-
#cancel_patch_job(name, cancel_patch_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::PatchJob
Cancel a patch job.
-
#create_project_location_os_policy_assignment(parent, os_policy_assignment_object = nil, os_policy_assignment_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::Operation
Create an OS policy assignment.
-
#create_project_patch_deployment(parent, patch_deployment_object = nil, patch_deployment_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::PatchDeployment
Create an OS Config patch deployment.
-
#delete_project_location_os_policy_assignment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::Operation
Delete the OS policy assignment.
-
#delete_project_patch_deployment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::Empty
Delete an OS Config patch deployment.
-
#execute_patch_job(parent, execute_patch_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::PatchJob
Patch VM instances by creating and running a patch job.
-
#get_project_location_instance_inventory(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::Inventory
Get inventory data for the specified VM instance.
-
#get_project_location_instance_os_policy_assignment_report(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::OsPolicyAssignmentReport
Get the OS policy asssignment report for the specified Compute Engine VM instance.
-
#get_project_location_instance_vulnerability_report(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::VulnerabilityReport
Gets the vulnerability report for the specified VM instance.
-
#get_project_location_os_policy_assignment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::OsPolicyAssignment
Retrieve an existing OS policy assignment.
-
#get_project_location_os_policy_assignment_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::Operation
Gets the latest state of a long-running operation.
-
#get_project_patch_deployment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::PatchDeployment
Get an OS Config patch deployment.
-
#get_project_patch_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::PatchJob
Get the patch job.
-
#initialize ⇒ OSConfigService
constructor
A new instance of OSConfigService.
-
#list_project_location_instance_inventories(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::ListInventoriesResponse
List inventory data for all VM instances in the specified zone.
-
#list_project_location_instance_os_policy_assignment_reports(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::ListOsPolicyAssignmentReportsResponse
List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.
-
#list_project_location_instance_vulnerability_reports(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::ListVulnerabilityReportsResponse
List vulnerability reports for all VM instances in the specified zone.
-
#list_project_location_os_policy_assignment_revisions(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::ListOsPolicyAssignmentRevisionsResponse
List the OS policy assignment revisions for a given OS policy assignment.
-
#list_project_location_os_policy_assignments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::ListOsPolicyAssignmentsResponse
List the OS policy assignments under the parent resource.
-
#list_project_patch_deployments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::ListPatchDeploymentsResponse
Get a page of OS Config patch deployments.
-
#list_project_patch_job_instance_details(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::ListPatchJobInstanceDetailsResponse
Get a list of instance details for a given patch job.
-
#list_project_patch_jobs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::ListPatchJobsResponse
Get a list of patch jobs.
-
#patch_project_location_os_policy_assignment(name, os_policy_assignment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::Operation
Update an existing OS policy assignment.
-
#patch_project_patch_deployment(name, patch_deployment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::PatchDeployment
Update an OS Config patch deployment.
Constructor Details
#initialize ⇒ OSConfigService
Returns a new instance of OSConfigService.
46 47 48 49 50 51 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 46 def initialize super('https://osconfig.googleapis.com/', '', client_name: 'google-apis-osconfig_v1', client_version: Google::Apis::OsconfigV1::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
39 40 41 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 39 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
44 45 46 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 44 def quota_user @quota_user end |
Instance Method Details
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::Empty
Starts asynchronous cancellation on a long-running operation. The server makes
a best effort to cancel the operation, but success is not guaranteed. If the
server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
Clients can use Operations.GetOperation or other methods to check whether the
cancellation succeeded or whether the operation completed despite cancellation.
On successful cancellation, the operation is not deleted; instead, it becomes
an operation with an Operation.error value with a google.rpc.Status.code of 1,
corresponding to Code.CANCELLED.
573 574 575 576 577 578 579 580 581 582 583 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 573 def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', ) command.request_representation = Google::Apis::OsconfigV1::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::OsconfigV1::Empty::Representation command.response_class = Google::Apis::OsconfigV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#cancel_patch_job(name, cancel_patch_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::PatchJob
Cancel a patch job. The patch job must be active. Canceled patch jobs cannot be restarted.
817 818 819 820 821 822 823 824 825 826 827 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 817 def cancel_patch_job(name, cancel_patch_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', ) command.request_representation = Google::Apis::OsconfigV1::CancelPatchJobRequest::Representation command.request_object = cancel_patch_job_request_object command.response_representation = Google::Apis::OsconfigV1::PatchJob::Representation command.response_class = Google::Apis::OsconfigV1::PatchJob command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_os_policy_assignment(parent, os_policy_assignment_object = nil, os_policy_assignment_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::Operation
Create an OS policy assignment. This method also creates the first revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. For more information, see Method: projects.locations. osPolicyAssignments.operations.cancel.
341 342 343 344 345 346 347 348 349 350 351 352 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 341 def create_project_location_os_policy_assignment(parent, os_policy_assignment_object = nil, os_policy_assignment_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/osPolicyAssignments', ) command.request_representation = Google::Apis::OsconfigV1::OsPolicyAssignment::Representation command.request_object = os_policy_assignment_object command.response_representation = Google::Apis::OsconfigV1::Operation::Representation command.response_class = Google::Apis::OsconfigV1::Operation command.params['parent'] = parent unless parent.nil? command.query['osPolicyAssignmentId'] = os_policy_assignment_id unless os_policy_assignment_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_patch_deployment(parent, patch_deployment_object = nil, patch_deployment_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::PatchDeployment
Create an OS Config patch deployment.
643 644 645 646 647 648 649 650 651 652 653 654 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 643 def create_project_patch_deployment(parent, patch_deployment_object = nil, patch_deployment_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/patchDeployments', ) command.request_representation = Google::Apis::OsconfigV1::PatchDeployment::Representation command.request_object = patch_deployment_object command.response_representation = Google::Apis::OsconfigV1::PatchDeployment::Representation command.response_class = Google::Apis::OsconfigV1::PatchDeployment command.params['parent'] = parent unless parent.nil? command.query['patchDeploymentId'] = patch_deployment_id unless patch_deployment_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_os_policy_assignment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::Operation
Delete the OS policy assignment. This method creates a new revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. If the LRO completes and is not cancelled, all revisions associated with the OS policy assignment are deleted. For more information, see Method: projects.locations.osPolicyAssignments.operations.cancel.
381 382 383 384 385 386 387 388 389 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 381 def delete_project_location_os_policy_assignment(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::OsconfigV1::Operation::Representation command.response_class = Google::Apis::OsconfigV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_patch_deployment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::Empty
Delete an OS Config patch deployment.
677 678 679 680 681 682 683 684 685 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 677 def delete_project_patch_deployment(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::OsconfigV1::Empty::Representation command.response_class = Google::Apis::OsconfigV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#execute_patch_job(parent, execute_patch_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::PatchJob
Patch VM instances by creating and running a patch job.
850 851 852 853 854 855 856 857 858 859 860 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 850 def execute_patch_job(parent, execute_patch_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/patchJobs:execute', ) command.request_representation = Google::Apis::OsconfigV1::ExecutePatchJobRequest::Representation command.request_object = execute_patch_job_request_object command.response_representation = Google::Apis::OsconfigV1::PatchJob::Representation command.response_class = Google::Apis::OsconfigV1::PatchJob command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_instance_inventory(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::Inventory
Get inventory data for the specified VM instance. If the VM has no associated
inventory, the message NOT_FOUND is returned.
80 81 82 83 84 85 86 87 88 89 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 80 def get_project_location_instance_inventory(name, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::OsconfigV1::Inventory::Representation command.response_class = Google::Apis::OsconfigV1::Inventory command.params['name'] = name unless name.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_instance_os_policy_assignment_report(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::OsPolicyAssignmentReport
Get the OS policy asssignment report for the specified Compute Engine VM instance.
164 165 166 167 168 169 170 171 172 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 164 def get_project_location_instance_os_policy_assignment_report(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::OsconfigV1::OsPolicyAssignmentReport::Representation command.response_class = Google::Apis::OsconfigV1::OsPolicyAssignmentReport command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_instance_vulnerability_report(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::VulnerabilityReport
Gets the vulnerability report for the specified VM instance. Only VMs with inventory data have vulnerability reports associated with them.
256 257 258 259 260 261 262 263 264 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 256 def get_project_location_instance_vulnerability_report(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::OsconfigV1::VulnerabilityReport::Representation command.response_class = Google::Apis::OsconfigV1::VulnerabilityReport command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_os_policy_assignment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::OsPolicyAssignment
Retrieve an existing OS policy assignment. This method always returns the
latest revision. In order to retrieve a previous revision of the assignment,
also provide the revision ID in the name parameter.
415 416 417 418 419 420 421 422 423 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 415 def get_project_location_os_policy_assignment(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::OsconfigV1::OsPolicyAssignment::Representation command.response_class = Google::Apis::OsconfigV1::OsPolicyAssignment command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_os_policy_assignment_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::Operation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
606 607 608 609 610 611 612 613 614 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 606 def get_project_location_os_policy_assignment_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::OsconfigV1::Operation::Representation command.response_class = Google::Apis::OsconfigV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_patch_deployment(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::PatchDeployment
Get an OS Config patch deployment.
708 709 710 711 712 713 714 715 716 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 708 def get_project_patch_deployment(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::OsconfigV1::PatchDeployment::Representation command.response_class = Google::Apis::OsconfigV1::PatchDeployment command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_patch_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::PatchJob
Get the patch job. This can be used to track the progress of an ongoing patch job or review the details of completed jobs.
883 884 885 886 887 888 889 890 891 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 883 def get_project_patch_job(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::OsconfigV1::PatchJob::Representation command.response_class = Google::Apis::OsconfigV1::PatchJob command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_instance_inventories(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::ListInventoriesResponse
List inventory data for all VM instances in the specified zone.
124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 124 def list_project_location_instance_inventories(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/inventories', ) command.response_representation = Google::Apis::OsconfigV1::ListInventoriesResponse::Representation command.response_class = Google::Apis::OsconfigV1::ListInventoriesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_instance_os_policy_assignment_reports(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::ListOsPolicyAssignmentReportsResponse
List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.
218 219 220 221 222 223 224 225 226 227 228 229 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 218 def list_project_location_instance_os_policy_assignment_reports(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/reports', ) command.response_representation = Google::Apis::OsconfigV1::ListOsPolicyAssignmentReportsResponse::Representation command.response_class = Google::Apis::OsconfigV1::ListOsPolicyAssignmentReportsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_instance_vulnerability_reports(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::ListVulnerabilityReportsResponse
List vulnerability reports for all VM instances in the specified zone.
296 297 298 299 300 301 302 303 304 305 306 307 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 296 def list_project_location_instance_vulnerability_reports(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/vulnerabilityReports', ) command.response_representation = Google::Apis::OsconfigV1::ListVulnerabilityReportsResponse::Representation command.response_class = Google::Apis::OsconfigV1::ListVulnerabilityReportsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_os_policy_assignment_revisions(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::ListOsPolicyAssignmentRevisionsResponse
List the OS policy assignment revisions for a given OS policy assignment.
489 490 491 492 493 494 495 496 497 498 499 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 489 def list_project_location_os_policy_assignment_revisions(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}:listRevisions', ) command.response_representation = Google::Apis::OsconfigV1::ListOsPolicyAssignmentRevisionsResponse::Representation command.response_class = Google::Apis::OsconfigV1::ListOsPolicyAssignmentRevisionsResponse command.params['name'] = name unless name.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_os_policy_assignments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::ListOsPolicyAssignmentsResponse
List the OS policy assignments under the parent resource. For each OS policy assignment, the latest revision is returned.
451 452 453 454 455 456 457 458 459 460 461 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 451 def list_project_location_os_policy_assignments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/osPolicyAssignments', ) command.response_representation = Google::Apis::OsconfigV1::ListOsPolicyAssignmentsResponse::Representation command.response_class = Google::Apis::OsconfigV1::ListOsPolicyAssignmentsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_patch_deployments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::ListPatchDeploymentsResponse
Get a page of OS Config patch deployments.
743 744 745 746 747 748 749 750 751 752 753 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 743 def list_project_patch_deployments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/patchDeployments', ) command.response_representation = Google::Apis::OsconfigV1::ListPatchDeploymentsResponse::Representation command.response_class = Google::Apis::OsconfigV1::ListPatchDeploymentsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_patch_job_instance_details(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::ListPatchJobInstanceDetailsResponse
Get a list of instance details for a given patch job.
964 965 966 967 968 969 970 971 972 973 974 975 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 964 def list_project_patch_job_instance_details(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/instanceDetails', ) command.response_representation = Google::Apis::OsconfigV1::ListPatchJobInstanceDetailsResponse::Representation command.response_class = Google::Apis::OsconfigV1::ListPatchJobInstanceDetailsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_patch_jobs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::ListPatchJobsResponse
Get a list of patch jobs.
922 923 924 925 926 927 928 929 930 931 932 933 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 922 def list_project_patch_jobs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/patchJobs', ) command.response_representation = Google::Apis::OsconfigV1::ListPatchJobsResponse::Representation command.response_class = Google::Apis::OsconfigV1::ListPatchJobsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_os_policy_assignment(name, os_policy_assignment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::Operation
Update an existing OS policy assignment. This method creates a new revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. For more information, see Method: projects.locations. osPolicyAssignments.operations.cancel.
532 533 534 535 536 537 538 539 540 541 542 543 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 532 def patch_project_location_os_policy_assignment(name, os_policy_assignment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::OsconfigV1::OsPolicyAssignment::Representation command.request_object = os_policy_assignment_object command.response_representation = Google::Apis::OsconfigV1::Operation::Representation command.response_class = Google::Apis::OsconfigV1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_patch_deployment(name, patch_deployment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsconfigV1::PatchDeployment
Update an OS Config patch deployment.
782 783 784 785 786 787 788 789 790 791 792 793 |
# File 'lib/google/apis/osconfig_v1/service.rb', line 782 def patch_project_patch_deployment(name, patch_deployment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::OsconfigV1::PatchDeployment::Representation command.request_object = patch_deployment_object command.response_representation = Google::Apis::OsconfigV1::PatchDeployment::Representation command.response_class = Google::Apis::OsconfigV1::PatchDeployment command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |