google-apis-osconfig_v1 0.12.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/osconfig_v1/classes.rb +147 -4
- data/lib/google/apis/osconfig_v1/gem_version.rb +2 -2
- data/lib/google/apis/osconfig_v1/representations.rb +61 -0
- data/lib/google/apis/osconfig_v1/service.rb +70 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04dc0c815081dba9716ce773c06edf7d90e0a947a2af23d4678500c46d697910
|
4
|
+
data.tar.gz: 0e755f760d5f9b3a21dfca238d8597eb97d405dd0dc6136910a0c8020d3f9383
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f34a5c2d3315feb5e1d9cd76d9c8d0e27f8934202493e9b4cefe20cb7fae9bf527087e6898a0e05c3b65f3b549dba0578ffd0e6d9bfda56308020ba01168b323
|
7
|
+
data.tar.gz: 4c5c5baf60427d7bdeb1bb73411c8c62925e3a5bdff2cdaea67cc849304ca88d96516ca2ca5c158e5e735c65583bc35d30d2b9c8fc6c662e6f679c21147b7ec0
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
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
|
+
|
7
|
+
### v0.15.0 (2021-11-17)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211106
|
10
|
+
|
11
|
+
### v0.14.0 (2021-11-06)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20211029
|
14
|
+
|
15
|
+
### v0.13.0 (2021-10-23)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20211018
|
18
|
+
* Unspecified changes
|
19
|
+
|
3
20
|
### v0.12.0 (2021-10-09)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20211002
|
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/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
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
|
627
|
-
#
|
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
|
709
|
-
#
|
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
|
|
@@ -2719,6 +2765,11 @@ module Google
|
|
2719
2765
|
# @return [Google::Apis::OsconfigV1::PatchRollout]
|
2720
2766
|
attr_accessor :rollout
|
2721
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
|
+
|
2722
2773
|
# Output only. Time the patch deployment was last updated. Timestamp is in [
|
2723
2774
|
# RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
2724
2775
|
# Corresponds to the JSON property `updateTime`
|
@@ -2741,6 +2792,7 @@ module Google
|
|
2741
2792
|
@patch_config = args[:patch_config] if args.key?(:patch_config)
|
2742
2793
|
@recurring_schedule = args[:recurring_schedule] if args.key?(:recurring_schedule)
|
2743
2794
|
@rollout = args[:rollout] if args.key?(:rollout)
|
2795
|
+
@state = args[:state] if args.key?(:state)
|
2744
2796
|
@update_time = args[:update_time] if args.key?(:update_time)
|
2745
2797
|
end
|
2746
2798
|
end
|
@@ -3125,6 +3177,19 @@ module Google
|
|
3125
3177
|
end
|
3126
3178
|
end
|
3127
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
|
+
|
3128
3193
|
# Sets the time for recurring patch deployments.
|
3129
3194
|
class RecurringSchedule
|
3130
3195
|
include Google::Apis::Core::Hashable
|
@@ -3198,6 +3263,19 @@ module Google
|
|
3198
3263
|
end
|
3199
3264
|
end
|
3200
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
|
+
|
3201
3279
|
# The `Status` type defines a logical error model that is suitable for different
|
3202
3280
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
3203
3281
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
@@ -3374,6 +3452,11 @@ module Google
|
|
3374
3452
|
# @return [Array<String>]
|
3375
3453
|
attr_accessor :installed_inventory_item_ids
|
3376
3454
|
|
3455
|
+
# List of items affected by the vulnerability.
|
3456
|
+
# Corresponds to the JSON property `items`
|
3457
|
+
# @return [Array<Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityItem>]
|
3458
|
+
attr_accessor :items
|
3459
|
+
|
3377
3460
|
# The timestamp for when the vulnerability was last modified.
|
3378
3461
|
# Corresponds to the JSON property `updateTime`
|
3379
3462
|
# @return [String]
|
@@ -3389,6 +3472,7 @@ module Google
|
|
3389
3472
|
@create_time = args[:create_time] if args.key?(:create_time)
|
3390
3473
|
@details = args[:details] if args.key?(:details)
|
3391
3474
|
@installed_inventory_item_ids = args[:installed_inventory_item_ids] if args.key?(:installed_inventory_item_ids)
|
3475
|
+
@items = args[:items] if args.key?(:items)
|
3392
3476
|
@update_time = args[:update_time] if args.key?(:update_time)
|
3393
3477
|
end
|
3394
3478
|
end
|
@@ -3471,6 +3555,53 @@ module Google
|
|
3471
3555
|
end
|
3472
3556
|
end
|
3473
3557
|
|
3558
|
+
# OS inventory item that is affected by a vulnerability or fixed as a result of
|
3559
|
+
# a vulnerability.
|
3560
|
+
class VulnerabilityReportVulnerabilityItem
|
3561
|
+
include Google::Apis::Core::Hashable
|
3562
|
+
|
3563
|
+
# Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM. If the
|
3564
|
+
# vulnerability report was not updated after the VM inventory update, these
|
3565
|
+
# values might not display in VM inventory. If there is no available fix, the
|
3566
|
+
# field is empty. The `inventory_item` value specifies the latest `
|
3567
|
+
# SoftwarePackage` available to the VM that fixes the vulnerability.
|
3568
|
+
# Corresponds to the JSON property `availableInventoryItemId`
|
3569
|
+
# @return [String]
|
3570
|
+
attr_accessor :available_inventory_item_id
|
3571
|
+
|
3572
|
+
# The recommended [CPE URI](https://cpe.mitre.org/specification/) update that
|
3573
|
+
# contains a fix for this vulnerability.
|
3574
|
+
# Corresponds to the JSON property `fixedCpeUri`
|
3575
|
+
# @return [String]
|
3576
|
+
attr_accessor :fixed_cpe_uri
|
3577
|
+
|
3578
|
+
# Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM. This field
|
3579
|
+
# displays the inventory items affected by this vulnerability. If the
|
3580
|
+
# vulnerability report was not updated after the VM inventory update, these
|
3581
|
+
# values might not display in VM inventory. For some operating systems, this
|
3582
|
+
# field might be empty.
|
3583
|
+
# Corresponds to the JSON property `installedInventoryItemId`
|
3584
|
+
# @return [String]
|
3585
|
+
attr_accessor :installed_inventory_item_id
|
3586
|
+
|
3587
|
+
# The upstream OS patch, packages or KB that fixes the vulnerability.
|
3588
|
+
# Corresponds to the JSON property `upstreamFix`
|
3589
|
+
# @return [String]
|
3590
|
+
attr_accessor :upstream_fix
|
3591
|
+
|
3592
|
+
def initialize(**args)
|
3593
|
+
update!(**args)
|
3594
|
+
end
|
3595
|
+
|
3596
|
+
# Update properties of this object
|
3597
|
+
def update!(**args)
|
3598
|
+
@available_inventory_item_id = args[:available_inventory_item_id] if args.key?(:available_inventory_item_id)
|
3599
|
+
@fixed_cpe_uri = args[:fixed_cpe_uri] if args.key?(:fixed_cpe_uri)
|
3600
|
+
@installed_inventory_item_id = args[:installed_inventory_item_id] if args.key?(:installed_inventory_item_id)
|
3601
|
+
@upstream_fix = args[:upstream_fix] if args.key?(:upstream_fix)
|
3602
|
+
end
|
3603
|
+
end
|
3604
|
+
|
3474
3605
|
# Represents one week day in a month. An example is "the 4th Sunday".
|
3475
3606
|
class WeekDayOfMonth
|
3476
3607
|
include Google::Apis::Core::Hashable
|
@@ -3480,6 +3611,17 @@ module Google
|
|
3480
3611
|
# @return [String]
|
3481
3612
|
attr_accessor :day_of_week
|
3482
3613
|
|
3614
|
+
# Optional. Represents the number of days before or after the given week day of
|
3615
|
+
# month that the patch deployment is scheduled for. For example if `week_ordinal`
|
3616
|
+
# and `day_of_week` values point to the second day of the month and this `
|
3617
|
+
# day_offset` value is set to `3`, the patch deployment takes place three days
|
3618
|
+
# after the second Tuesday of the month. If this value is negative, for example -
|
3619
|
+
# 5, the patches are deployed five days before before the second Tuesday of the
|
3620
|
+
# month. Allowed values are in range [-30, 30].
|
3621
|
+
# Corresponds to the JSON property `dayOffset`
|
3622
|
+
# @return [Fixnum]
|
3623
|
+
attr_accessor :day_offset
|
3624
|
+
|
3483
3625
|
# Required. Week number in a month. 1-4 indicates the 1st to 4th week of the
|
3484
3626
|
# month. -1 indicates the last week of the month.
|
3485
3627
|
# Corresponds to the JSON property `weekOrdinal`
|
@@ -3493,6 +3635,7 @@ module Google
|
|
3493
3635
|
# Update properties of this object
|
3494
3636
|
def update!(**args)
|
3495
3637
|
@day_of_week = args[:day_of_week] if args.key?(:day_of_week)
|
3638
|
+
@day_offset = args[:day_offset] if args.key?(:day_offset)
|
3496
3639
|
@week_ordinal = args[:week_ordinal] if args.key?(:week_ordinal)
|
3497
3640
|
end
|
3498
3641
|
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.
|
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 = "
|
25
|
+
REVISION = "20211203"
|
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
|
|
@@ -472,12 +478,24 @@ module Google
|
|
472
478
|
include Google::Apis::Core::JsonObjectSupport
|
473
479
|
end
|
474
480
|
|
481
|
+
class PausePatchDeploymentRequest
|
482
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
483
|
+
|
484
|
+
include Google::Apis::Core::JsonObjectSupport
|
485
|
+
end
|
486
|
+
|
475
487
|
class RecurringSchedule
|
476
488
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
477
489
|
|
478
490
|
include Google::Apis::Core::JsonObjectSupport
|
479
491
|
end
|
480
492
|
|
493
|
+
class ResumePatchDeploymentRequest
|
494
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
495
|
+
|
496
|
+
include Google::Apis::Core::JsonObjectSupport
|
497
|
+
end
|
498
|
+
|
481
499
|
class Status
|
482
500
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
483
501
|
|
@@ -520,6 +538,12 @@ module Google
|
|
520
538
|
include Google::Apis::Core::JsonObjectSupport
|
521
539
|
end
|
522
540
|
|
541
|
+
class VulnerabilityReportVulnerabilityItem
|
542
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
543
|
+
|
544
|
+
include Google::Apis::Core::JsonObjectSupport
|
545
|
+
end
|
546
|
+
|
523
547
|
class WeekDayOfMonth
|
524
548
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
525
549
|
|
@@ -663,6 +687,17 @@ module Google
|
|
663
687
|
end
|
664
688
|
end
|
665
689
|
|
690
|
+
class GoogleCloudOsconfigV1OsPolicyAssignmentOperationMetadata
|
691
|
+
# @private
|
692
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
693
|
+
property :api_method, as: 'apiMethod'
|
694
|
+
property :os_policy_assignment, as: 'osPolicyAssignment'
|
695
|
+
property :rollout_start_time, as: 'rolloutStartTime'
|
696
|
+
property :rollout_state, as: 'rolloutState'
|
697
|
+
property :rollout_update_time, as: 'rolloutUpdateTime'
|
698
|
+
end
|
699
|
+
end
|
700
|
+
|
666
701
|
class Inventory
|
667
702
|
# @private
|
668
703
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1291,6 +1326,7 @@ module Google
|
|
1291
1326
|
|
1292
1327
|
property :rollout, as: 'rollout', class: Google::Apis::OsconfigV1::PatchRollout, decorator: Google::Apis::OsconfigV1::PatchRollout::Representation
|
1293
1328
|
|
1329
|
+
property :state, as: 'state'
|
1294
1330
|
property :update_time, as: 'updateTime'
|
1295
1331
|
end
|
1296
1332
|
end
|
@@ -1380,6 +1416,12 @@ module Google
|
|
1380
1416
|
end
|
1381
1417
|
end
|
1382
1418
|
|
1419
|
+
class PausePatchDeploymentRequest
|
1420
|
+
# @private
|
1421
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1422
|
+
end
|
1423
|
+
end
|
1424
|
+
|
1383
1425
|
class RecurringSchedule
|
1384
1426
|
# @private
|
1385
1427
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1399,6 +1441,12 @@ module Google
|
|
1399
1441
|
end
|
1400
1442
|
end
|
1401
1443
|
|
1444
|
+
class ResumePatchDeploymentRequest
|
1445
|
+
# @private
|
1446
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1447
|
+
end
|
1448
|
+
end
|
1449
|
+
|
1402
1450
|
class Status
|
1403
1451
|
# @private
|
1404
1452
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1444,6 +1492,8 @@ module Google
|
|
1444
1492
|
property :details, as: 'details', class: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityDetails, decorator: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityDetails::Representation
|
1445
1493
|
|
1446
1494
|
collection :installed_inventory_item_ids, as: 'installedInventoryItemIds'
|
1495
|
+
collection :items, as: 'items', class: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityItem, decorator: Google::Apis::OsconfigV1::VulnerabilityReportVulnerabilityItem::Representation
|
1496
|
+
|
1447
1497
|
property :update_time, as: 'updateTime'
|
1448
1498
|
end
|
1449
1499
|
end
|
@@ -1470,10 +1520,21 @@ module Google
|
|
1470
1520
|
end
|
1471
1521
|
end
|
1472
1522
|
|
1523
|
+
class VulnerabilityReportVulnerabilityItem
|
1524
|
+
# @private
|
1525
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1526
|
+
property :available_inventory_item_id, as: 'availableInventoryItemId'
|
1527
|
+
property :fixed_cpe_uri, as: 'fixedCpeUri'
|
1528
|
+
property :installed_inventory_item_id, as: 'installedInventoryItemId'
|
1529
|
+
property :upstream_fix, as: 'upstreamFix'
|
1530
|
+
end
|
1531
|
+
end
|
1532
|
+
|
1473
1533
|
class WeekDayOfMonth
|
1474
1534
|
# @private
|
1475
1535
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1476
1536
|
property :day_of_week, as: 'dayOfWeek'
|
1537
|
+
property :day_offset, as: 'dayOffset'
|
1477
1538
|
property :week_ordinal, as: 'weekOrdinal'
|
1478
1539
|
end
|
1479
1540
|
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.
|
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-
|
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
|
@@ -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/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
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.16.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:
|