google-apis-osconfig_v1 0.14.0 → 0.18.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: 7497c91738aa723c2f799e838f8fd1e8f7cbfc5f3ca0dd15edf6b482867c41a5
4
- data.tar.gz: 7b92623e314506172adf46b00806e7ff3438a9bc25d243621a3924f27944660f
3
+ metadata.gz: ab4365e04ef791b50d0e568ebf8c19565b34118f029b0b2e4278478318a1a682
4
+ data.tar.gz: 25e0ee5da1bdc89b8e80a5272349f694ab68f9b2c6d9ba4ba6949147b47f9503
5
5
  SHA512:
6
- metadata.gz: edb5c16dc0eaaf39c64565cc2e3e9af9942db70f9eaa216825d585173f594036808335465bf7245c39a6e62a97c9525b8e6a7e7d799b70c5ae107424b25ed0a2
7
- data.tar.gz: 70e13cfde599c18e1d00605039a5f0305aaecdf51b7198a0d8f1df14803108bd4e94ee1973979541383d2873749eec60bf23868508250d48192ad1ac65320a16
6
+ metadata.gz: 8c18422019a693213dad34fafcd16170a1cd7ca59c9e28bbbdacbd987bf19faab90ed67e88b9d4a0ac40de4b98f0a678b531cb6100ab098269e3b448c621ce69
7
+ data.tar.gz: 5cd00073880812b17909d499ff848a4bd20f48a835bffcd71168515b4719af9f71ec046cc6ac8df92155a133c2ea218ed196e9af44c738ff7e05df0861bb7c79
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-osconfig_v1
2
2
 
3
+ ### v0.18.0 (2022-01-15)
4
+
5
+ * Regenerated from discovery document revision 20220103
6
+ * Regenerated using generator version 0.4.1
7
+
8
+ ### v0.17.0 (2021-12-14)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.16.0 (2021-12-11)
13
+
14
+ * Regenerated from discovery document revision 20211203
15
+
16
+ ### v0.15.0 (2021-11-17)
17
+
18
+ * Regenerated from discovery document revision 20211106
19
+
3
20
  ### v0.14.0 (2021-11-06)
4
21
 
5
22
  * Regenerated from discovery document revision 20211029
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.
@@ -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
@@ -3420,6 +3459,11 @@ module Google
3420
3459
  # @return [Array<String>]
3421
3460
  attr_accessor :installed_inventory_item_ids
3422
3461
 
3462
+ # List of items affected by the vulnerability.
3463
+ # Corresponds to the JSON property `items`
3464
+ # @return [Array<Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityItem>]
3465
+ attr_accessor :items
3466
+
3423
3467
  # The timestamp for when the vulnerability was last modified.
3424
3468
  # Corresponds to the JSON property `updateTime`
3425
3469
  # @return [String]
@@ -3435,6 +3479,7 @@ module Google
3435
3479
  @create_time = args[:create_time] if args.key?(:create_time)
3436
3480
  @details = args[:details] if args.key?(:details)
3437
3481
  @installed_inventory_item_ids = args[:installed_inventory_item_ids] if args.key?(:installed_inventory_item_ids)
3482
+ @items = args[:items] if args.key?(:items)
3438
3483
  @update_time = args[:update_time] if args.key?(:update_time)
3439
3484
  end
3440
3485
  end
@@ -3517,6 +3562,53 @@ module Google
3517
3562
  end
3518
3563
  end
3519
3564
 
3565
+ # OS inventory item that is affected by a vulnerability or fixed as a result of
3566
+ # a vulnerability.
3567
+ class VulnerabilityReportVulnerabilityItem
3568
+ include Google::Apis::Core::Hashable
3569
+
3570
+ # Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM. If the
3571
+ # vulnerability report was not updated after the VM inventory update, these
3572
+ # values might not display in VM inventory. If there is no available fix, the
3573
+ # field is empty. The `inventory_item` value specifies the latest `
3574
+ # SoftwarePackage` available to the VM that fixes the vulnerability.
3575
+ # Corresponds to the JSON property `availableInventoryItemId`
3576
+ # @return [String]
3577
+ attr_accessor :available_inventory_item_id
3578
+
3579
+ # The recommended [CPE URI](https://cpe.mitre.org/specification/) update that
3580
+ # contains a fix for this vulnerability.
3581
+ # Corresponds to the JSON property `fixedCpeUri`
3582
+ # @return [String]
3583
+ attr_accessor :fixed_cpe_uri
3584
+
3585
+ # Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM. This field
3586
+ # displays the inventory items affected by this vulnerability. If the
3587
+ # vulnerability report was not updated after the VM inventory update, these
3588
+ # values might not display in VM inventory. For some operating systems, this
3589
+ # field might be empty.
3590
+ # Corresponds to the JSON property `installedInventoryItemId`
3591
+ # @return [String]
3592
+ attr_accessor :installed_inventory_item_id
3593
+
3594
+ # The upstream OS patch, packages or KB that fixes the vulnerability.
3595
+ # Corresponds to the JSON property `upstreamFix`
3596
+ # @return [String]
3597
+ attr_accessor :upstream_fix
3598
+
3599
+ def initialize(**args)
3600
+ update!(**args)
3601
+ end
3602
+
3603
+ # Update properties of this object
3604
+ def update!(**args)
3605
+ @available_inventory_item_id = args[:available_inventory_item_id] if args.key?(:available_inventory_item_id)
3606
+ @fixed_cpe_uri = args[:fixed_cpe_uri] if args.key?(:fixed_cpe_uri)
3607
+ @installed_inventory_item_id = args[:installed_inventory_item_id] if args.key?(:installed_inventory_item_id)
3608
+ @upstream_fix = args[:upstream_fix] if args.key?(:upstream_fix)
3609
+ end
3610
+ end
3611
+
3520
3612
  # Represents one week day in a month. An example is "the 4th Sunday".
3521
3613
  class WeekDayOfMonth
3522
3614
  include Google::Apis::Core::Hashable
@@ -3526,6 +3618,17 @@ module Google
3526
3618
  # @return [String]
3527
3619
  attr_accessor :day_of_week
3528
3620
 
3621
+ # Optional. Represents the number of days before or after the given week day of
3622
+ # month that the patch deployment is scheduled for. For example if `week_ordinal`
3623
+ # and `day_of_week` values point to the second day of the month and this `
3624
+ # day_offset` value is set to `3`, the patch deployment takes place three days
3625
+ # after the second Tuesday of the month. If this value is negative, for example -
3626
+ # 5, the patches are deployed five days before before the second Tuesday of the
3627
+ # month. Allowed values are in range [-30, 30].
3628
+ # Corresponds to the JSON property `dayOffset`
3629
+ # @return [Fixnum]
3630
+ attr_accessor :day_offset
3631
+
3529
3632
  # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the
3530
3633
  # month. -1 indicates the last week of the month.
3531
3634
  # Corresponds to the JSON property `weekOrdinal`
@@ -3539,6 +3642,7 @@ module Google
3539
3642
  # Update properties of this object
3540
3643
  def update!(**args)
3541
3644
  @day_of_week = args[:day_of_week] if args.key?(:day_of_week)
3645
+ @day_offset = args[:day_offset] if args.key?(:day_offset)
3542
3646
  @week_ordinal = args[:week_ordinal] if args.key?(:week_ordinal)
3543
3647
  end
3544
3648
  end
@@ -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.14.0"
19
+ GEM_VERSION = "0.18.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 = "20211029"
25
+ REVISION = "20220103"
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
 
@@ -526,6 +538,12 @@ module Google
526
538
  include Google::Apis::Core::JsonObjectSupport
527
539
  end
528
540
 
541
+ class VulnerabilityReportVulnerabilityItem
542
+ class Representation < Google::Apis::Core::JsonRepresentation; end
543
+
544
+ include Google::Apis::Core::JsonObjectSupport
545
+ end
546
+
529
547
  class WeekDayOfMonth
530
548
  class Representation < Google::Apis::Core::JsonRepresentation; end
531
549
 
@@ -1276,6 +1294,7 @@ module Google
1276
1294
 
1277
1295
  property :goo, as: 'goo', class: Google::Apis::OsconfigV1::GooSettings, decorator: Google::Apis::OsconfigV1::GooSettings::Representation
1278
1296
 
1297
+ property :mig_instances_allowed, as: 'migInstancesAllowed'
1279
1298
  property :post_step, as: 'postStep', class: Google::Apis::OsconfigV1::ExecStep, decorator: Google::Apis::OsconfigV1::ExecStep::Representation
1280
1299
 
1281
1300
  property :pre_step, as: 'preStep', class: Google::Apis::OsconfigV1::ExecStep, decorator: Google::Apis::OsconfigV1::ExecStep::Representation
@@ -1308,6 +1327,7 @@ module Google
1308
1327
 
1309
1328
  property :rollout, as: 'rollout', class: Google::Apis::OsconfigV1::PatchRollout, decorator: Google::Apis::OsconfigV1::PatchRollout::Representation
1310
1329
 
1330
+ property :state, as: 'state'
1311
1331
  property :update_time, as: 'updateTime'
1312
1332
  end
1313
1333
  end
@@ -1397,6 +1417,12 @@ module Google
1397
1417
  end
1398
1418
  end
1399
1419
 
1420
+ class PausePatchDeploymentRequest
1421
+ # @private
1422
+ class Representation < Google::Apis::Core::JsonRepresentation
1423
+ end
1424
+ end
1425
+
1400
1426
  class RecurringSchedule
1401
1427
  # @private
1402
1428
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1416,6 +1442,12 @@ module Google
1416
1442
  end
1417
1443
  end
1418
1444
 
1445
+ class ResumePatchDeploymentRequest
1446
+ # @private
1447
+ class Representation < Google::Apis::Core::JsonRepresentation
1448
+ end
1449
+ end
1450
+
1419
1451
  class Status
1420
1452
  # @private
1421
1453
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1461,6 +1493,8 @@ module Google
1461
1493
  property :details, as: 'details', class: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityDetails, decorator: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityDetails::Representation
1462
1494
 
1463
1495
  collection :installed_inventory_item_ids, as: 'installedInventoryItemIds'
1496
+ collection :items, as: 'items', class: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityItem, decorator: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityItem::Representation
1497
+
1464
1498
  property :update_time, as: 'updateTime'
1465
1499
  end
1466
1500
  end
@@ -1487,10 +1521,21 @@ module Google
1487
1521
  end
1488
1522
  end
1489
1523
 
1524
+ class VulnerabilityReportVulnerabilityItem
1525
+ # @private
1526
+ class Representation < Google::Apis::Core::JsonRepresentation
1527
+ property :available_inventory_item_id, as: 'availableInventoryItemId'
1528
+ property :fixed_cpe_uri, as: 'fixedCpeUri'
1529
+ property :installed_inventory_item_id, as: 'installedInventoryItemId'
1530
+ property :upstream_fix, as: 'upstreamFix'
1531
+ end
1532
+ end
1533
+
1490
1534
  class WeekDayOfMonth
1491
1535
  # @private
1492
1536
  class Representation < Google::Apis::Core::JsonRepresentation
1493
1537
  property :day_of_week, as: 'dayOfWeek'
1538
+ property :day_offset, as: 'dayOffset'
1494
1539
  property :week_ordinal, as: 'weekOrdinal'
1495
1540
  end
1496
1541
  end
@@ -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.14.0
4
+ version: 0.18.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-11-08 00:00:00.000000000 Z
11
+ date: 2022-01-17 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.14.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1/v0.18.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