google-apis-osconfig_v1 0.11.0 → 0.15.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: 523ab9b0bb06c003f27a07959a011bdf454238b5133fa4bbc5e2cf11dcf3302e
4
- data.tar.gz: 246f56e3ac4181a7e0cf5bbc5009967484a01bc2ce7ca09d0648c80e93e2706a
3
+ metadata.gz: '096cc84943cd7b936e5c043335060b99ffb01ee92736e4f013b9c96571da3487'
4
+ data.tar.gz: 7af7a8d3f49c08bcc26dbc77c41fae26a759594ad783080d8277365df0e4d7c3
5
5
  SHA512:
6
- metadata.gz: 536eb2595bebf0ccdd1fa77a5214dedc8c64c6baf37fd4727b329af2f6f60d119c42d255fbd7266b92d495ad2d717499b820b97a09bcce57ea8b49b771a8a516
7
- data.tar.gz: b14679b50ae15d3e1bd396a946a11af02ae256cabf6e34f8f2e83cf69bfd3be9f9a559ff25ce0a0e710a2a840df6999d3566f220571f4b3bf1b14c666e0b925a
6
+ metadata.gz: 800af8f1331c98cf2a026ba45da3c5b493c1070c422bac375271d54b7ebb8ff8023761ec5bcfdd7dcb174182c362a13e4bc6d48d66483d7d67bcbde5b326628a
7
+ data.tar.gz: 70ee987371f2f7d9fe259ff7f959165f8e95361600ed8a248edfd45a337455c068b6ccca220083d522ef8ff05b89af1ec21df8310810b397f7473f5a78aa4edd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-osconfig_v1
2
2
 
3
+ ### v0.15.0 (2021-11-17)
4
+
5
+ * Regenerated from discovery document revision 20211106
6
+
7
+ ### v0.14.0 (2021-11-06)
8
+
9
+ * Regenerated from discovery document revision 20211029
10
+
11
+ ### v0.13.0 (2021-10-23)
12
+
13
+ * Regenerated from discovery document revision 20211018
14
+ * Unspecified changes
15
+
16
+ ### v0.12.0 (2021-10-09)
17
+
18
+ * Regenerated from discovery document revision 20211002
19
+
3
20
  ### v0.11.0 (2021-10-02)
4
21
 
5
22
  * Regenerated from discovery document revision 20210925
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Osconfig service in particular.)
67
67
 
@@ -432,6 +432,52 @@ module Google
432
432
  end
433
433
  end
434
434
 
435
+ # OS policy assignment operation metadata provided by OS policy assignment API
436
+ # methods that return long running operations.
437
+ class GoogleCloudOsconfigV1OsPolicyAssignmentOperationMetadata
438
+ include Google::Apis::Core::Hashable
439
+
440
+ # The OS policy assignment API method.
441
+ # Corresponds to the JSON property `apiMethod`
442
+ # @return [String]
443
+ attr_accessor :api_method
444
+
445
+ # Reference to the `OSPolicyAssignment` API resource. Format: `projects/`
446
+ # project_number`/locations/`location`/osPolicyAssignments/`
447
+ # os_policy_assignment_id@revision_id``
448
+ # Corresponds to the JSON property `osPolicyAssignment`
449
+ # @return [String]
450
+ attr_accessor :os_policy_assignment
451
+
452
+ # Rollout start time
453
+ # Corresponds to the JSON property `rolloutStartTime`
454
+ # @return [String]
455
+ attr_accessor :rollout_start_time
456
+
457
+ # State of the rollout
458
+ # Corresponds to the JSON property `rolloutState`
459
+ # @return [String]
460
+ attr_accessor :rollout_state
461
+
462
+ # Rollout update time
463
+ # Corresponds to the JSON property `rolloutUpdateTime`
464
+ # @return [String]
465
+ attr_accessor :rollout_update_time
466
+
467
+ def initialize(**args)
468
+ update!(**args)
469
+ end
470
+
471
+ # Update properties of this object
472
+ def update!(**args)
473
+ @api_method = args[:api_method] if args.key?(:api_method)
474
+ @os_policy_assignment = args[:os_policy_assignment] if args.key?(:os_policy_assignment)
475
+ @rollout_start_time = args[:rollout_start_time] if args.key?(:rollout_start_time)
476
+ @rollout_state = args[:rollout_state] if args.key?(:rollout_state)
477
+ @rollout_update_time = args[:rollout_update_time] if args.key?(:rollout_update_time)
478
+ end
479
+ end
480
+
435
481
  # This API resource represents the available inventory data for a Compute Engine
436
482
  # virtual machine (VM) instance at a given point in time. You can use this API
437
483
  # resource to determine the inventory data of your VM. For more information, see
@@ -623,8 +669,8 @@ module Google
623
669
  attr_accessor :qfe_package
624
670
 
625
671
  # Contains information about a Windows application that is retrieved from the
626
- # Windows Registry. For more information about these fields, see Windows
627
- # Installer Properties for the Uninstall Registry.
672
+ # Windows Registry. For more information about these fields, see: https://docs.
673
+ # microsoft.com/en-us/windows/win32/msi/uninstall-registry-key
628
674
  # Corresponds to the JSON property `windowsApplication`
629
675
  # @return [Google::Apis::OsconfigV1::InventoryWindowsApplication]
630
676
  attr_accessor :windows_application
@@ -705,8 +751,8 @@ module Google
705
751
  end
706
752
 
707
753
  # Contains information about a Windows application that is retrieved from the
708
- # Windows Registry. For more information about these fields, see Windows
709
- # Installer Properties for the Uninstall Registry.
754
+ # Windows Registry. For more information about these fields, see: https://docs.
755
+ # microsoft.com/en-us/windows/win32/msi/uninstall-registry-key
710
756
  class InventoryWindowsApplication
711
757
  include Google::Apis::Core::Hashable
712
758
 
@@ -3374,6 +3420,11 @@ module Google
3374
3420
  # @return [Array<String>]
3375
3421
  attr_accessor :installed_inventory_item_ids
3376
3422
 
3423
+ # List of items affected by the vulnerability.
3424
+ # Corresponds to the JSON property `items`
3425
+ # @return [Array<Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityItem>]
3426
+ attr_accessor :items
3427
+
3377
3428
  # The timestamp for when the vulnerability was last modified.
3378
3429
  # Corresponds to the JSON property `updateTime`
3379
3430
  # @return [String]
@@ -3389,6 +3440,7 @@ module Google
3389
3440
  @create_time = args[:create_time] if args.key?(:create_time)
3390
3441
  @details = args[:details] if args.key?(:details)
3391
3442
  @installed_inventory_item_ids = args[:installed_inventory_item_ids] if args.key?(:installed_inventory_item_ids)
3443
+ @items = args[:items] if args.key?(:items)
3392
3444
  @update_time = args[:update_time] if args.key?(:update_time)
3393
3445
  end
3394
3446
  end
@@ -3471,6 +3523,53 @@ module Google
3471
3523
  end
3472
3524
  end
3473
3525
 
3526
+ # OS inventory item that is affected by a vulnerability or fixed as a result of
3527
+ # a vulnerability.
3528
+ class VulnerabilityReportVulnerabilityItem
3529
+ include Google::Apis::Core::Hashable
3530
+
3531
+ # Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM. If the
3532
+ # vulnerability report was not updated after the VM inventory update, these
3533
+ # values might not display in VM inventory. If there is no available fix, the
3534
+ # field is empty. The `inventory_item` value specifies the latest `
3535
+ # SoftwarePackage` available to the VM that fixes the vulnerability.
3536
+ # Corresponds to the JSON property `availableInventoryItemId`
3537
+ # @return [String]
3538
+ attr_accessor :available_inventory_item_id
3539
+
3540
+ # The recommended [CPE URI](https://cpe.mitre.org/specification/) update that
3541
+ # contains a fix for this vulnerability.
3542
+ # Corresponds to the JSON property `fixedCpeUri`
3543
+ # @return [String]
3544
+ attr_accessor :fixed_cpe_uri
3545
+
3546
+ # Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM. This field
3547
+ # displays the inventory items affected by this vulnerability. If the
3548
+ # vulnerability report was not updated after the VM inventory update, these
3549
+ # values might not display in VM inventory. For some operating systems, this
3550
+ # field might be empty.
3551
+ # Corresponds to the JSON property `installedInventoryItemId`
3552
+ # @return [String]
3553
+ attr_accessor :installed_inventory_item_id
3554
+
3555
+ # The upstream OS patch, packages or KB that fixes the vulnerability.
3556
+ # Corresponds to the JSON property `upstreamFix`
3557
+ # @return [String]
3558
+ attr_accessor :upstream_fix
3559
+
3560
+ def initialize(**args)
3561
+ update!(**args)
3562
+ end
3563
+
3564
+ # Update properties of this object
3565
+ def update!(**args)
3566
+ @available_inventory_item_id = args[:available_inventory_item_id] if args.key?(:available_inventory_item_id)
3567
+ @fixed_cpe_uri = args[:fixed_cpe_uri] if args.key?(:fixed_cpe_uri)
3568
+ @installed_inventory_item_id = args[:installed_inventory_item_id] if args.key?(:installed_inventory_item_id)
3569
+ @upstream_fix = args[:upstream_fix] if args.key?(:upstream_fix)
3570
+ end
3571
+ end
3572
+
3474
3573
  # Represents one week day in a month. An example is "the 4th Sunday".
3475
3574
  class WeekDayOfMonth
3476
3575
  include Google::Apis::Core::Hashable
@@ -3480,6 +3579,17 @@ module Google
3480
3579
  # @return [String]
3481
3580
  attr_accessor :day_of_week
3482
3581
 
3582
+ # Optional. Represents the number of days before or after the given week day of
3583
+ # month that the patch deployment is scheduled for. For example if `week_ordinal`
3584
+ # and `day_of_week` values point to the second day of the month and this `
3585
+ # day_offset` value is set to `3`, the patch deployment takes place three days
3586
+ # after the second Tuesday of the month. If this value is negative, for example -
3587
+ # 5, the patches are deployed five days before before the second Tuesday of the
3588
+ # month. Allowed values are in range [-30, 30].
3589
+ # Corresponds to the JSON property `dayOffset`
3590
+ # @return [Fixnum]
3591
+ attr_accessor :day_offset
3592
+
3483
3593
  # Required. Week number in a month. 1-4 indicates the 1st to 4th week of the
3484
3594
  # month. -1 indicates the last week of the month.
3485
3595
  # Corresponds to the JSON property `weekOrdinal`
@@ -3493,6 +3603,7 @@ module Google
3493
3603
  # Update properties of this object
3494
3604
  def update!(**args)
3495
3605
  @day_of_week = args[:day_of_week] if args.key?(:day_of_week)
3606
+ @day_offset = args[:day_offset] if args.key?(:day_offset)
3496
3607
  @week_ordinal = args[:week_ordinal] if args.key?(:week_ordinal)
3497
3608
  end
3498
3609
  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.11.0"
19
+ GEM_VERSION = "0.15.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 = "20210925"
25
+ REVISION = "20211106"
26
26
  end
27
27
  end
28
28
  end
@@ -94,6 +94,12 @@ module Google
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
+ class GoogleCloudOsconfigV1OsPolicyAssignmentOperationMetadata
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
97
103
  class Inventory
98
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
105
 
@@ -520,6 +526,12 @@ module Google
520
526
  include Google::Apis::Core::JsonObjectSupport
521
527
  end
522
528
 
529
+ class VulnerabilityReportVulnerabilityItem
530
+ class Representation < Google::Apis::Core::JsonRepresentation; end
531
+
532
+ include Google::Apis::Core::JsonObjectSupport
533
+ end
534
+
523
535
  class WeekDayOfMonth
524
536
  class Representation < Google::Apis::Core::JsonRepresentation; end
525
537
 
@@ -663,6 +675,17 @@ module Google
663
675
  end
664
676
  end
665
677
 
678
+ class GoogleCloudOsconfigV1OsPolicyAssignmentOperationMetadata
679
+ # @private
680
+ class Representation < Google::Apis::Core::JsonRepresentation
681
+ property :api_method, as: 'apiMethod'
682
+ property :os_policy_assignment, as: 'osPolicyAssignment'
683
+ property :rollout_start_time, as: 'rolloutStartTime'
684
+ property :rollout_state, as: 'rolloutState'
685
+ property :rollout_update_time, as: 'rolloutUpdateTime'
686
+ end
687
+ end
688
+
666
689
  class Inventory
667
690
  # @private
668
691
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1444,6 +1467,8 @@ module Google
1444
1467
  property :details, as: 'details', class: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityDetails, decorator: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityDetails::Representation
1445
1468
 
1446
1469
  collection :installed_inventory_item_ids, as: 'installedInventoryItemIds'
1470
+ collection :items, as: 'items', class: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityItem, decorator: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityItem::Representation
1471
+
1447
1472
  property :update_time, as: 'updateTime'
1448
1473
  end
1449
1474
  end
@@ -1470,10 +1495,21 @@ module Google
1470
1495
  end
1471
1496
  end
1472
1497
 
1498
+ class VulnerabilityReportVulnerabilityItem
1499
+ # @private
1500
+ class Representation < Google::Apis::Core::JsonRepresentation
1501
+ property :available_inventory_item_id, as: 'availableInventoryItemId'
1502
+ property :fixed_cpe_uri, as: 'fixedCpeUri'
1503
+ property :installed_inventory_item_id, as: 'installedInventoryItemId'
1504
+ property :upstream_fix, as: 'upstreamFix'
1505
+ end
1506
+ end
1507
+
1473
1508
  class WeekDayOfMonth
1474
1509
  # @private
1475
1510
  class Representation < Google::Apis::Core::JsonRepresentation
1476
1511
  property :day_of_week, as: 'dayOfWeek'
1512
+ property :day_offset, as: 'dayOffset'
1477
1513
  property :week_ordinal, as: 'weekOrdinal'
1478
1514
  end
1479
1515
  end
@@ -752,6 +752,46 @@ module Google
752
752
  execute_or_queue_command(command, &block)
753
753
  end
754
754
 
755
+ # Update an OS Config patch deployment.
756
+ # @param [String] name
757
+ # Unique name for the patch deployment resource in a project. The patch
758
+ # deployment name is in the form: `projects/`project_id`/patchDeployments/`
759
+ # patch_deployment_id``. This field is ignored when you create a new patch
760
+ # deployment.
761
+ # @param [Google::Apis::OsconfigV1::PatchDeployment] patch_deployment_object
762
+ # @param [String] update_mask
763
+ # Optional. Field mask that controls which fields of the patch deployment should
764
+ # be updated.
765
+ # @param [String] fields
766
+ # Selector specifying which fields to include in a partial response.
767
+ # @param [String] quota_user
768
+ # Available to use for quota purposes for server-side applications. Can be any
769
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
770
+ # @param [Google::Apis::RequestOptions] options
771
+ # Request-specific options
772
+ #
773
+ # @yield [result, err] Result & error if block supplied
774
+ # @yieldparam result [Google::Apis::OsconfigV1::PatchDeployment] parsed result object
775
+ # @yieldparam err [StandardError] error object if request failed
776
+ #
777
+ # @return [Google::Apis::OsconfigV1::PatchDeployment]
778
+ #
779
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
780
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
781
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
782
+ def patch_project_patch_deployment(name, patch_deployment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
783
+ command = make_simple_command(:patch, 'v1/{+name}', options)
784
+ command.request_representation = Google::Apis::OsconfigV1::PatchDeployment::Representation
785
+ command.request_object = patch_deployment_object
786
+ command.response_representation = Google::Apis::OsconfigV1::PatchDeployment::Representation
787
+ command.response_class = Google::Apis::OsconfigV1::PatchDeployment
788
+ command.params['name'] = name unless name.nil?
789
+ command.query['updateMask'] = update_mask unless update_mask.nil?
790
+ command.query['fields'] = fields unless fields.nil?
791
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
792
+ execute_or_queue_command(command, &block)
793
+ end
794
+
755
795
  # Cancel a patch job. The patch job must be active. Canceled patch jobs cannot
756
796
  # be restarted.
757
797
  # @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.11.0
4
+ version: 0.15.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-10-04 00:00:00.000000000 Z
11
+ date: 2021-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-osconfig_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1/v0.11.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-osconfig_v1
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
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: []
65
65
  require_paths: