google-apis-osconfig_v1 0.15.0 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '096cc84943cd7b936e5c043335060b99ffb01ee92736e4f013b9c96571da3487'
4
- data.tar.gz: 7af7a8d3f49c08bcc26dbc77c41fae26a759594ad783080d8277365df0e4d7c3
3
+ metadata.gz: d62077c88738d06ccbd8695b3597e0d7f1734c0c3c7222df8ba52662fef94d49
4
+ data.tar.gz: a538482051db5c4438a6857e72916cef72ab07f5e0d1d293185c837fe4389358
5
5
  SHA512:
6
- metadata.gz: 800af8f1331c98cf2a026ba45da3c5b493c1070c422bac375271d54b7ebb8ff8023761ec5bcfdd7dcb174182c362a13e4bc6d48d66483d7d67bcbde5b326628a
7
- data.tar.gz: 70ee987371f2f7d9fe259ff7f959165f8e95361600ed8a248edfd45a337455c068b6ccca220083d522ef8ff05b89af1ec21df8310810b397f7473f5a78aa4edd
6
+ metadata.gz: 4701b76cb64f7cebb6ae750f0c25b87db3dd882d8b0db5d23064656aadd79bd0aa6be2270165bcb7bc565ffa11b4b9fde842d9e8aeb232df290fa0056a0ed2a1
7
+ data.tar.gz: f54be81b93a80351980c4f6a170e51ce2d6a76527b736c237d772fb0c50f6c88fee904dda9d91a35625ac511df7f7c619b80701440f14c47c1989804db22b4af
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-osconfig_v1
2
2
 
3
+ ### v0.19.0 (2022-02-16)
4
+
5
+ * Regenerated from discovery document revision 20220205
6
+
7
+ ### v0.18.0 (2022-01-15)
8
+
9
+ * Regenerated from discovery document revision 20220103
10
+ * Regenerated using generator version 0.4.1
11
+
12
+ ### v0.17.0 (2021-12-14)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.16.0 (2021-12-11)
17
+
18
+ * Regenerated from discovery document revision 20211203
19
+
3
20
  ### v0.15.0 (2021-11-17)
4
21
 
5
22
  * Regenerated from discovery document revision 20211106
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/osconfig_v1"
51
51
  client = Google::Apis::OsconfigV1::OSConfigService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -179,10 +179,10 @@ module Google
179
179
  # day and time zone are either specified elsewhere or are insignificant. The
180
180
  # date is relative to the Gregorian Calendar. This can represent one of the
181
181
  # following: * A full date, with non-zero year, month, and day values * A month
182
- # and day value, with a zero year, such as an anniversary * A year on its own,
183
- # with zero month and day values * A year and month value, with a zero day, such
184
- # as a credit card expiration date Related types are google.type.TimeOfDay and `
185
- # google.protobuf.Timestamp`.
182
+ # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
183
+ # zero month and a zero day * A year and month, with a zero day (e.g., a credit
184
+ # card expiration date) Related types: * google.type.TimeOfDay * google.type.
185
+ # DateTime * google.protobuf.Timestamp
186
186
  class Date
187
187
  include Google::Apis::Core::Hashable
188
188
 
@@ -775,10 +775,10 @@ module Google
775
775
  # day and time zone are either specified elsewhere or are insignificant. The
776
776
  # date is relative to the Gregorian Calendar. This can represent one of the
777
777
  # following: * A full date, with non-zero year, month, and day values * A month
778
- # and day value, with a zero year, such as an anniversary * A year on its own,
779
- # with zero month and day values * A year and month value, with a zero day, such
780
- # as a credit card expiration date Related types are google.type.TimeOfDay and `
781
- # google.protobuf.Timestamp`.
778
+ # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
779
+ # zero month and a zero day * A year and month, with a zero day (e.g., a credit
780
+ # card expiration date) Related types: * google.type.TimeOfDay * google.type.
781
+ # DateTime * google.protobuf.Timestamp
782
782
  # Corresponds to the JSON property `installDate`
783
783
  # @return [Google::Apis::OsconfigV1::Date]
784
784
  attr_accessor :install_date
@@ -2646,6 +2646,12 @@ module Google
2646
2646
  # @return [Google::Apis::OsconfigV1::GooSettings]
2647
2647
  attr_accessor :goo
2648
2648
 
2649
+ # Allows the patch job to run on Managed instance groups (MIGs).
2650
+ # Corresponds to the JSON property `migInstancesAllowed`
2651
+ # @return [Boolean]
2652
+ attr_accessor :mig_instances_allowed
2653
+ alias_method :mig_instances_allowed?, :mig_instances_allowed
2654
+
2649
2655
  # A step that runs an executable for a PatchJob.
2650
2656
  # Corresponds to the JSON property `postStep`
2651
2657
  # @return [Google::Apis::OsconfigV1::ExecStep]
@@ -2687,6 +2693,7 @@ module Google
2687
2693
  def update!(**args)
2688
2694
  @apt = args[:apt] if args.key?(:apt)
2689
2695
  @goo = args[:goo] if args.key?(:goo)
2696
+ @mig_instances_allowed = args[:mig_instances_allowed] if args.key?(:mig_instances_allowed)
2690
2697
  @post_step = args[:post_step] if args.key?(:post_step)
2691
2698
  @pre_step = args[:pre_step] if args.key?(:pre_step)
2692
2699
  @reboot_config = args[:reboot_config] if args.key?(:reboot_config)
@@ -2765,6 +2772,11 @@ module Google
2765
2772
  # @return [Google::Apis::OsconfigV1::PatchRollout]
2766
2773
  attr_accessor :rollout
2767
2774
 
2775
+ # Output only. Current state of the patch deployment.
2776
+ # Corresponds to the JSON property `state`
2777
+ # @return [String]
2778
+ attr_accessor :state
2779
+
2768
2780
  # Output only. Time the patch deployment was last updated. Timestamp is in [
2769
2781
  # RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2770
2782
  # Corresponds to the JSON property `updateTime`
@@ -2787,6 +2799,7 @@ module Google
2787
2799
  @patch_config = args[:patch_config] if args.key?(:patch_config)
2788
2800
  @recurring_schedule = args[:recurring_schedule] if args.key?(:recurring_schedule)
2789
2801
  @rollout = args[:rollout] if args.key?(:rollout)
2802
+ @state = args[:state] if args.key?(:state)
2790
2803
  @update_time = args[:update_time] if args.key?(:update_time)
2791
2804
  end
2792
2805
  end
@@ -3171,6 +3184,19 @@ module Google
3171
3184
  end
3172
3185
  end
3173
3186
 
3187
+ # A request message for pausing a patch deployment.
3188
+ class PausePatchDeploymentRequest
3189
+ include Google::Apis::Core::Hashable
3190
+
3191
+ def initialize(**args)
3192
+ update!(**args)
3193
+ end
3194
+
3195
+ # Update properties of this object
3196
+ def update!(**args)
3197
+ end
3198
+ end
3199
+
3174
3200
  # Sets the time for recurring patch deployments.
3175
3201
  class RecurringSchedule
3176
3202
  include Google::Apis::Core::Hashable
@@ -3244,6 +3270,19 @@ module Google
3244
3270
  end
3245
3271
  end
3246
3272
 
3273
+ # A request message for resuming a patch deployment.
3274
+ class ResumePatchDeploymentRequest
3275
+ include Google::Apis::Core::Hashable
3276
+
3277
+ def initialize(**args)
3278
+ update!(**args)
3279
+ end
3280
+
3281
+ # Update properties of this object
3282
+ def update!(**args)
3283
+ end
3284
+ end
3285
+
3247
3286
  # The `Status` type defines a logical error model that is suitable for different
3248
3287
  # programming environments, including REST APIs and RPC APIs. It is used by [
3249
3288
  # 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.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211106"
25
+ REVISION = "20220205"
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
 
@@ -1282,6 +1294,7 @@ module Google
1282
1294
 
1283
1295
  property :goo, as: 'goo', class: Google::Apis::OsconfigV1::GooSettings, decorator: Google::Apis::OsconfigV1::GooSettings::Representation
1284
1296
 
1297
+ property :mig_instances_allowed, as: 'migInstancesAllowed'
1285
1298
  property :post_step, as: 'postStep', class: Google::Apis::OsconfigV1::ExecStep, decorator: Google::Apis::OsconfigV1::ExecStep::Representation
1286
1299
 
1287
1300
  property :pre_step, as: 'preStep', class: Google::Apis::OsconfigV1::ExecStep, decorator: Google::Apis::OsconfigV1::ExecStep::Representation
@@ -1314,6 +1327,7 @@ module Google
1314
1327
 
1315
1328
  property :rollout, as: 'rollout', class: Google::Apis::OsconfigV1::PatchRollout, decorator: Google::Apis::OsconfigV1::PatchRollout::Representation
1316
1329
 
1330
+ property :state, as: 'state'
1317
1331
  property :update_time, as: 'updateTime'
1318
1332
  end
1319
1333
  end
@@ -1403,6 +1417,12 @@ module Google
1403
1417
  end
1404
1418
  end
1405
1419
 
1420
+ class PausePatchDeploymentRequest
1421
+ # @private
1422
+ class Representation < Google::Apis::Core::JsonRepresentation
1423
+ end
1424
+ end
1425
+
1406
1426
  class RecurringSchedule
1407
1427
  # @private
1408
1428
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1422,6 +1442,12 @@ module Google
1422
1442
  end
1423
1443
  end
1424
1444
 
1445
+ class ResumePatchDeploymentRequest
1446
+ # @private
1447
+ class Representation < Google::Apis::Core::JsonRepresentation
1448
+ end
1449
+ end
1450
+
1425
1451
  class Status
1426
1452
  # @private
1427
1453
  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.19.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: 2022-02-21 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.19.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for OS Config API V1