lib/google/apis/osconfig_v1/service.rb in google-apis-osconfig_v1-0.11.0 vs lib/google/apis/osconfig_v1/service.rb in google-apis-osconfig_v1-0.12.0

- old
+ new

@@ -750,9 +750,49 @@ command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + # Update an OS Config patch deployment. + # @param [String] name + # Unique name for the patch deployment resource in a project. The patch + # deployment name is in the form: `projects/`project_id`/patchDeployments/` + # patch_deployment_id``. This field is ignored when you create a new patch + # deployment. + # @param [Google::Apis::OsconfigV1::PatchDeployment] patch_deployment_object + # @param [String] update_mask + # Optional. Field mask that controls which fields of the patch deployment should + # be updated. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::OsconfigV1::PatchDeployment] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::OsconfigV1::PatchDeployment] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + 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}', options) + 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 + # Cancel a patch job. The patch job must be active. Canceled patch jobs cannot # be restarted. # @param [String] name # Required. Name of the patch in the form `projects/*/patchJobs/*` # @param [Google::Apis::OsconfigV1::CancelPatchJobRequest] cancel_patch_job_request_object