google-apis-osconfig_v1beta 0.8.0 → 0.12.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 +16 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/osconfig_v1beta/classes.rb +58 -0
- data/lib/google/apis/osconfig_v1beta/gem_version.rb +2 -2
- data/lib/google/apis/osconfig_v1beta/representations.rb +18 -0
- data/lib/google/apis/osconfig_v1beta/service.rb +40 -0
- data/lib/google/apis/osconfig_v1beta.rb +1 -1
- 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: 501aaf2e9d582f4af0dfd3c9baccd52033920ae540338c4f2399d49adfdbcf24
|
4
|
+
data.tar.gz: 504f8595cf88c25723068a7dfdc82c7926ac30b80f5cf1b69cc5d6f689210a15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d01a1d8a5262ea2726e8f037a0579a1b6169a95ec34d70b6d1c36735870780eb6c94824d54b4112e2018c038c807d1c5201c5f1c2bc36d2e9b756a9e1def21b3
|
7
|
+
data.tar.gz: ecc207cd0fc83f9f78f01bf84ef775ab8d7497bc49d4f196ad607f436cb6e134667ad7b6f4d9ab072fe68daf76b355c99db0c276a13c568478382a49dec34e14
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-osconfig_v1beta
|
2
2
|
|
3
|
+
### v0.12.0 (2021-11-17)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211106
|
6
|
+
|
7
|
+
### v0.11.0 (2021-11-06)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211029
|
10
|
+
|
11
|
+
### v0.10.0 (2021-10-21)
|
12
|
+
|
13
|
+
* Unspecified changes
|
14
|
+
|
15
|
+
### v0.9.0 (2021-09-01)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210806
|
18
|
+
|
3
19
|
### v0.8.0 (2021-06-29)
|
4
20
|
|
5
21
|
* Regenerated using generator version 0.4.0
|
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
|
|
@@ -598,6 +598,52 @@ module Google
|
|
598
598
|
end
|
599
599
|
end
|
600
600
|
|
601
|
+
# OS policy assignment operation metadata provided by OS policy assignment API
|
602
|
+
# methods that return long running operations.
|
603
|
+
class GoogleCloudOsconfigV1OsPolicyAssignmentOperationMetadata
|
604
|
+
include Google::Apis::Core::Hashable
|
605
|
+
|
606
|
+
# The OS policy assignment API method.
|
607
|
+
# Corresponds to the JSON property `apiMethod`
|
608
|
+
# @return [String]
|
609
|
+
attr_accessor :api_method
|
610
|
+
|
611
|
+
# Reference to the `OSPolicyAssignment` API resource. Format: `projects/`
|
612
|
+
# project_number`/locations/`location`/osPolicyAssignments/`
|
613
|
+
# os_policy_assignment_id@revision_id``
|
614
|
+
# Corresponds to the JSON property `osPolicyAssignment`
|
615
|
+
# @return [String]
|
616
|
+
attr_accessor :os_policy_assignment
|
617
|
+
|
618
|
+
# Rollout start time
|
619
|
+
# Corresponds to the JSON property `rolloutStartTime`
|
620
|
+
# @return [String]
|
621
|
+
attr_accessor :rollout_start_time
|
622
|
+
|
623
|
+
# State of the rollout
|
624
|
+
# Corresponds to the JSON property `rolloutState`
|
625
|
+
# @return [String]
|
626
|
+
attr_accessor :rollout_state
|
627
|
+
|
628
|
+
# Rollout update time
|
629
|
+
# Corresponds to the JSON property `rolloutUpdateTime`
|
630
|
+
# @return [String]
|
631
|
+
attr_accessor :rollout_update_time
|
632
|
+
|
633
|
+
def initialize(**args)
|
634
|
+
update!(**args)
|
635
|
+
end
|
636
|
+
|
637
|
+
# Update properties of this object
|
638
|
+
def update!(**args)
|
639
|
+
@api_method = args[:api_method] if args.key?(:api_method)
|
640
|
+
@os_policy_assignment = args[:os_policy_assignment] if args.key?(:os_policy_assignment)
|
641
|
+
@rollout_start_time = args[:rollout_start_time] if args.key?(:rollout_start_time)
|
642
|
+
@rollout_state = args[:rollout_state] if args.key?(:rollout_state)
|
643
|
+
@rollout_update_time = args[:rollout_update_time] if args.key?(:rollout_update_time)
|
644
|
+
end
|
645
|
+
end
|
646
|
+
|
601
647
|
# An OS Config resource representing a guest configuration policy. These
|
602
648
|
# policies represent the desired state for VM instance guest environments
|
603
649
|
# including packages to install or remove, package repository configurations,
|
@@ -2143,6 +2189,17 @@ module Google
|
|
2143
2189
|
# @return [String]
|
2144
2190
|
attr_accessor :day_of_week
|
2145
2191
|
|
2192
|
+
# Optional. Represents the number of days before or after the given week day of
|
2193
|
+
# month that the patch deployment is scheduled for. For example if `week_ordinal`
|
2194
|
+
# and `day_of_week` values point to the second day of the month and this `
|
2195
|
+
# day_offset` value is set to `3`, the patch deployment takes place three days
|
2196
|
+
# after the second Tuesday of the month. If this value is negative, for example -
|
2197
|
+
# 5, the patches are deployed five days before before the second Tuesday of the
|
2198
|
+
# month. Allowed values are in range [-30, 30].
|
2199
|
+
# Corresponds to the JSON property `dayOffset`
|
2200
|
+
# @return [Fixnum]
|
2201
|
+
attr_accessor :day_offset
|
2202
|
+
|
2146
2203
|
# Required. Week number in a month. 1-4 indicates the 1st to 4th week of the
|
2147
2204
|
# month. -1 indicates the last week of the month.
|
2148
2205
|
# Corresponds to the JSON property `weekOrdinal`
|
@@ -2156,6 +2213,7 @@ module Google
|
|
2156
2213
|
# Update properties of this object
|
2157
2214
|
def update!(**args)
|
2158
2215
|
@day_of_week = args[:day_of_week] if args.key?(:day_of_week)
|
2216
|
+
@day_offset = args[:day_offset] if args.key?(:day_offset)
|
2159
2217
|
@week_ordinal = args[:week_ordinal] if args.key?(:week_ordinal)
|
2160
2218
|
end
|
2161
2219
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module OsconfigV1beta
|
18
18
|
# Version of the google-apis-osconfig_v1beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.12.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 = "20211106"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -130,6 +130,12 @@ module Google
|
|
130
130
|
include Google::Apis::Core::JsonObjectSupport
|
131
131
|
end
|
132
132
|
|
133
|
+
class GoogleCloudOsconfigV1OsPolicyAssignmentOperationMetadata
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
133
139
|
class GuestPolicy
|
134
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
141
|
|
@@ -544,6 +550,17 @@ module Google
|
|
544
550
|
end
|
545
551
|
end
|
546
552
|
|
553
|
+
class GoogleCloudOsconfigV1OsPolicyAssignmentOperationMetadata
|
554
|
+
# @private
|
555
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
556
|
+
property :api_method, as: 'apiMethod'
|
557
|
+
property :os_policy_assignment, as: 'osPolicyAssignment'
|
558
|
+
property :rollout_start_time, as: 'rolloutStartTime'
|
559
|
+
property :rollout_state, as: 'rolloutState'
|
560
|
+
property :rollout_update_time, as: 'rolloutUpdateTime'
|
561
|
+
end
|
562
|
+
end
|
563
|
+
|
547
564
|
class GuestPolicy
|
548
565
|
# @private
|
549
566
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -952,6 +969,7 @@ module Google
|
|
952
969
|
# @private
|
953
970
|
class Representation < Google::Apis::Core::JsonRepresentation
|
954
971
|
property :day_of_week, as: 'dayOfWeek'
|
972
|
+
property :day_offset, as: 'dayOffset'
|
955
973
|
property :week_ordinal, as: 'weekOrdinal'
|
956
974
|
end
|
957
975
|
end
|
@@ -366,6 +366,46 @@ module Google
|
|
366
366
|
execute_or_queue_command(command, &block)
|
367
367
|
end
|
368
368
|
|
369
|
+
# Update an OS Config patch deployment.
|
370
|
+
# @param [String] name
|
371
|
+
# Unique name for the patch deployment resource in a project. The patch
|
372
|
+
# deployment name is in the form: `projects/`project_id`/patchDeployments/`
|
373
|
+
# patch_deployment_id``. This field is ignored when you create a new patch
|
374
|
+
# deployment.
|
375
|
+
# @param [Google::Apis::OsconfigV1beta::PatchDeployment] patch_deployment_object
|
376
|
+
# @param [String] update_mask
|
377
|
+
# Optional. Field mask that controls which fields of the patch deployment should
|
378
|
+
# be updated.
|
379
|
+
# @param [String] fields
|
380
|
+
# Selector specifying which fields to include in a partial response.
|
381
|
+
# @param [String] quota_user
|
382
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
383
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
384
|
+
# @param [Google::Apis::RequestOptions] options
|
385
|
+
# Request-specific options
|
386
|
+
#
|
387
|
+
# @yield [result, err] Result & error if block supplied
|
388
|
+
# @yieldparam result [Google::Apis::OsconfigV1beta::PatchDeployment] parsed result object
|
389
|
+
# @yieldparam err [StandardError] error object if request failed
|
390
|
+
#
|
391
|
+
# @return [Google::Apis::OsconfigV1beta::PatchDeployment]
|
392
|
+
#
|
393
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
394
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
395
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
396
|
+
def patch_project_patch_deployment(name, patch_deployment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
397
|
+
command = make_simple_command(:patch, 'v1beta/{+name}', options)
|
398
|
+
command.request_representation = Google::Apis::OsconfigV1beta::PatchDeployment::Representation
|
399
|
+
command.request_object = patch_deployment_object
|
400
|
+
command.response_representation = Google::Apis::OsconfigV1beta::PatchDeployment::Representation
|
401
|
+
command.response_class = Google::Apis::OsconfigV1beta::PatchDeployment
|
402
|
+
command.params['name'] = name unless name.nil?
|
403
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
404
|
+
command.query['fields'] = fields unless fields.nil?
|
405
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
406
|
+
execute_or_queue_command(command, &block)
|
407
|
+
end
|
408
|
+
|
369
409
|
# Cancel a patch job. The patch job must be active. Canceled patch jobs cannot
|
370
410
|
# be restarted.
|
371
411
|
# @param [String] name
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# This is NOT the gem version.
|
31
31
|
VERSION = 'V1beta'
|
32
32
|
|
33
|
-
# See, edit, configure, and delete your Google Cloud
|
33
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
34
34
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
35
35
|
end
|
36
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-osconfig_v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.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-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/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1beta/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_v1beta/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-osconfig_v1beta/v0.12.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-osconfig_v1beta
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|