google-apis-osconfig_v1 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '096cc84943cd7b936e5c043335060b99ffb01ee92736e4f013b9c96571da3487'
4
- data.tar.gz: 7af7a8d3f49c08bcc26dbc77c41fae26a759594ad783080d8277365df0e4d7c3
3
+ metadata.gz: 04dc0c815081dba9716ce773c06edf7d90e0a947a2af23d4678500c46d697910
4
+ data.tar.gz: 0e755f760d5f9b3a21dfca238d8597eb97d405dd0dc6136910a0c8020d3f9383
5
5
  SHA512:
6
- metadata.gz: 800af8f1331c98cf2a026ba45da3c5b493c1070c422bac375271d54b7ebb8ff8023761ec5bcfdd7dcb174182c362a13e4bc6d48d66483d7d67bcbde5b326628a
7
- data.tar.gz: 70ee987371f2f7d9fe259ff7f959165f8e95361600ed8a248edfd45a337455c068b6ccca220083d522ef8ff05b89af1ec21df8310810b397f7473f5a78aa4edd
6
+ metadata.gz: f34a5c2d3315feb5e1d9cd76d9c8d0e27f8934202493e9b4cefe20cb7fae9bf527087e6898a0e05c3b65f3b549dba0578ffd0e6d9bfda56308020ba01168b323
7
+ data.tar.gz: 4c5c5baf60427d7bdeb1bb73411c8c62925e3a5bdff2cdaea67cc849304ca88d96516ca2ca5c158e5e735c65583bc35d30d2b9c8fc6c662e6f679c21147b7ec0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-osconfig_v1
2
2
 
3
+ ### v0.16.0 (2021-12-11)
4
+
5
+ * Regenerated from discovery document revision 20211203
6
+
3
7
  ### v0.15.0 (2021-11-17)
4
8
 
5
9
  * Regenerated from discovery document revision 20211106
@@ -2765,6 +2765,11 @@ module Google
2765
2765
  # @return [Google::Apis::OsconfigV1::PatchRollout]
2766
2766
  attr_accessor :rollout
2767
2767
 
2768
+ # Output only. Current state of the patch deployment.
2769
+ # Corresponds to the JSON property `state`
2770
+ # @return [String]
2771
+ attr_accessor :state
2772
+
2768
2773
  # Output only. Time the patch deployment was last updated. Timestamp is in [
2769
2774
  # RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2770
2775
  # Corresponds to the JSON property `updateTime`
@@ -2787,6 +2792,7 @@ module Google
2787
2792
  @patch_config = args[:patch_config] if args.key?(:patch_config)
2788
2793
  @recurring_schedule = args[:recurring_schedule] if args.key?(:recurring_schedule)
2789
2794
  @rollout = args[:rollout] if args.key?(:rollout)
2795
+ @state = args[:state] if args.key?(:state)
2790
2796
  @update_time = args[:update_time] if args.key?(:update_time)
2791
2797
  end
2792
2798
  end
@@ -3171,6 +3177,19 @@ module Google
3171
3177
  end
3172
3178
  end
3173
3179
 
3180
+ # A request message for pausing a patch deployment.
3181
+ class PausePatchDeploymentRequest
3182
+ include Google::Apis::Core::Hashable
3183
+
3184
+ def initialize(**args)
3185
+ update!(**args)
3186
+ end
3187
+
3188
+ # Update properties of this object
3189
+ def update!(**args)
3190
+ end
3191
+ end
3192
+
3174
3193
  # Sets the time for recurring patch deployments.
3175
3194
  class RecurringSchedule
3176
3195
  include Google::Apis::Core::Hashable
@@ -3244,6 +3263,19 @@ module Google
3244
3263
  end
3245
3264
  end
3246
3265
 
3266
+ # A request message for resuming a patch deployment.
3267
+ class ResumePatchDeploymentRequest
3268
+ include Google::Apis::Core::Hashable
3269
+
3270
+ def initialize(**args)
3271
+ update!(**args)
3272
+ end
3273
+
3274
+ # Update properties of this object
3275
+ def update!(**args)
3276
+ end
3277
+ end
3278
+
3247
3279
  # The `Status` type defines a logical error model that is suitable for different
3248
3280
  # programming environments, including REST APIs and RPC APIs. It is used by [
3249
3281
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module OsconfigV1
18
18
  # Version of the google-apis-osconfig_v1 gem
19
- GEM_VERSION = "0.15.0"
19
+ GEM_VERSION = "0.16.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211106"
25
+ REVISION = "20211203"
26
26
  end
27
27
  end
28
28
  end
@@ -478,12 +478,24 @@ module Google
478
478
  include Google::Apis::Core::JsonObjectSupport
479
479
  end
480
480
 
481
+ class PausePatchDeploymentRequest
482
+ class Representation < Google::Apis::Core::JsonRepresentation; end
483
+
484
+ include Google::Apis::Core::JsonObjectSupport
485
+ end
486
+
481
487
  class RecurringSchedule
482
488
  class Representation < Google::Apis::Core::JsonRepresentation; end
483
489
 
484
490
  include Google::Apis::Core::JsonObjectSupport
485
491
  end
486
492
 
493
+ class ResumePatchDeploymentRequest
494
+ class Representation < Google::Apis::Core::JsonRepresentation; end
495
+
496
+ include Google::Apis::Core::JsonObjectSupport
497
+ end
498
+
487
499
  class Status
488
500
  class Representation < Google::Apis::Core::JsonRepresentation; end
489
501
 
@@ -1314,6 +1326,7 @@ module Google
1314
1326
 
1315
1327
  property :rollout, as: 'rollout', class: Google::Apis::OsconfigV1::PatchRollout, decorator: Google::Apis::OsconfigV1::PatchRollout::Representation
1316
1328
 
1329
+ property :state, as: 'state'
1317
1330
  property :update_time, as: 'updateTime'
1318
1331
  end
1319
1332
  end
@@ -1403,6 +1416,12 @@ module Google
1403
1416
  end
1404
1417
  end
1405
1418
 
1419
+ class PausePatchDeploymentRequest
1420
+ # @private
1421
+ class Representation < Google::Apis::Core::JsonRepresentation
1422
+ end
1423
+ end
1424
+
1406
1425
  class RecurringSchedule
1407
1426
  # @private
1408
1427
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1422,6 +1441,12 @@ module Google
1422
1441
  end
1423
1442
  end
1424
1443
 
1444
+ class ResumePatchDeploymentRequest
1445
+ # @private
1446
+ class Representation < Google::Apis::Core::JsonRepresentation
1447
+ end
1448
+ end
1449
+
1425
1450
  class Status
1426
1451
  # @private
1427
1452
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -792,6 +792,76 @@ module Google
792
792
  execute_or_queue_command(command, &block)
793
793
  end
794
794
 
795
+ # Change state of patch deployment to "PAUSED". Patch deployment in paused state
796
+ # doesn't generate patch jobs.
797
+ # @param [String] name
798
+ # Required. The resource name of the patch deployment in the form `projects/*/
799
+ # patchDeployments/*`.
800
+ # @param [Google::Apis::OsconfigV1::PausePatchDeploymentRequest] pause_patch_deployment_request_object
801
+ # @param [String] fields
802
+ # Selector specifying which fields to include in a partial response.
803
+ # @param [String] quota_user
804
+ # Available to use for quota purposes for server-side applications. Can be any
805
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
806
+ # @param [Google::Apis::RequestOptions] options
807
+ # Request-specific options
808
+ #
809
+ # @yield [result, err] Result & error if block supplied
810
+ # @yieldparam result [Google::Apis::OsconfigV1::PatchDeployment] parsed result object
811
+ # @yieldparam err [StandardError] error object if request failed
812
+ #
813
+ # @return [Google::Apis::OsconfigV1::PatchDeployment]
814
+ #
815
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
816
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
817
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
818
+ def pause_patch_deployment(name, pause_patch_deployment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
819
+ command = make_simple_command(:post, 'v1/{+name}:pause', options)
820
+ command.request_representation = Google::Apis::OsconfigV1::PausePatchDeploymentRequest::Representation
821
+ command.request_object = pause_patch_deployment_request_object
822
+ command.response_representation = Google::Apis::OsconfigV1::PatchDeployment::Representation
823
+ command.response_class = Google::Apis::OsconfigV1::PatchDeployment
824
+ command.params['name'] = name unless name.nil?
825
+ command.query['fields'] = fields unless fields.nil?
826
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
827
+ execute_or_queue_command(command, &block)
828
+ end
829
+
830
+ # Change state of patch deployment back to "ACTIVE". Patch deployment in active
831
+ # state continues to generate patch jobs.
832
+ # @param [String] name
833
+ # Required. The resource name of the patch deployment in the form `projects/*/
834
+ # patchDeployments/*`.
835
+ # @param [Google::Apis::OsconfigV1::ResumePatchDeploymentRequest] resume_patch_deployment_request_object
836
+ # @param [String] fields
837
+ # Selector specifying which fields to include in a partial response.
838
+ # @param [String] quota_user
839
+ # Available to use for quota purposes for server-side applications. Can be any
840
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
841
+ # @param [Google::Apis::RequestOptions] options
842
+ # Request-specific options
843
+ #
844
+ # @yield [result, err] Result & error if block supplied
845
+ # @yieldparam result [Google::Apis::OsconfigV1::PatchDeployment] parsed result object
846
+ # @yieldparam err [StandardError] error object if request failed
847
+ #
848
+ # @return [Google::Apis::OsconfigV1::PatchDeployment]
849
+ #
850
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
851
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
852
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
853
+ def resume_patch_deployment(name, resume_patch_deployment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
854
+ command = make_simple_command(:post, 'v1/{+name}:resume', options)
855
+ command.request_representation = Google::Apis::OsconfigV1::ResumePatchDeploymentRequest::Representation
856
+ command.request_object = resume_patch_deployment_request_object
857
+ command.response_representation = Google::Apis::OsconfigV1::PatchDeployment::Representation
858
+ command.response_class = Google::Apis::OsconfigV1::PatchDeployment
859
+ command.params['name'] = name unless name.nil?
860
+ command.query['fields'] = fields unless fields.nil?
861
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
862
+ execute_or_queue_command(command, &block)
863
+ end
864
+
795
865
  # Cancel a patch job. The patch job must be active. Canceled patch jobs cannot
796
866
  # be restarted.
797
867
  # @param [String] name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-osconfig_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-06 00:00:00.000000000 Z
11
+ date: 2021-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-osconfig_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1/v0.15.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1/v0.16.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-osconfig_v1
63
63
  post_install_message:
64
64
  rdoc_options: []