google-cloud-os_config-v1 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/os_config/v1/os_config_service/client.rb +58 -50
- data/lib/google/cloud/os_config/v1/version.rb +1 -1
- data/lib/google/cloud/osconfig/v1/inventory_pb.rb +10 -0
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/cloud/osconfig/v1/inventory.rb +31 -0
- data/proto_docs/google/type/date.rb +53 -0
- data/proto_docs/google/type/datetime.rb +9 -1
- data/proto_docs/google/type/dayofweek.rb +9 -9
- data/proto_docs/google/type/timeofday.rb +2 -1
- metadata +14 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d9187f869fcaaca31c9ca726624e3e13ada724a95067cb08d04991e18593f77
|
4
|
+
data.tar.gz: 0c610a02c6eeab23bc6bfa93c72b5f3d4449d99758e2d2785401de0b3e11b41a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf9a8a77ee20dd0a749e4c9623902b30506eb2903d4676700fd009eabca8fee14d4327834aa817edbfab8567e39ae93445435d58dd9177b6568c97073cb977d8
|
7
|
+
data.tar.gz: 953f3ea969b89b46830773b5e4846700e930365484a5b63953506d2b3c3633d99f33ff549336006c0eda476530b9931b2d2e68ee16ef28c7b98728d3f45b7347
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-os_config-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::OsConfig::V1::OsConfigService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `OS_CONFIG_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `OS_CONFIG_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/os_config/v1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::OsConfig::V1::OsConfigService::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/os_config/v1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::OsConfig::V1::OsConfigService::Client.new do |config|
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/os_config/v1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/os_config/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::OsConfig::V1::OsConfigService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::OsConfig::V1::ExecutePatchJobRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.execute_patch_job request
|
38
38
|
```
|
39
39
|
|
@@ -44,13 +44,12 @@ module Google
|
|
44
44
|
# See {::Google::Cloud::OsConfig::V1::OsConfigService::Client::Configuration}
|
45
45
|
# for a description of the configuration fields.
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# @example
|
48
48
|
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
# end
|
49
|
+
# # Modify the configuration for all OsConfigService clients
|
50
|
+
# ::Google::Cloud::OsConfig::V1::OsConfigService::Client.configure do |config|
|
51
|
+
# config.timeout = 10.0
|
52
|
+
# end
|
54
53
|
#
|
55
54
|
# @yield [config] Configure the Client client.
|
56
55
|
# @yieldparam config [Client::Configuration]
|
@@ -70,10 +69,7 @@ module Google
|
|
70
69
|
|
71
70
|
default_config.timeout = 60.0
|
72
71
|
default_config.retry_policy = {
|
73
|
-
initial_delay: 1.0,
|
74
|
-
max_delay: 60.0,
|
75
|
-
multiplier: 1.3,
|
76
|
-
retry_codes: [14]
|
72
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
77
73
|
}
|
78
74
|
|
79
75
|
default_config
|
@@ -105,19 +101,15 @@ module Google
|
|
105
101
|
##
|
106
102
|
# Create a new OsConfigService client object.
|
107
103
|
#
|
108
|
-
#
|
109
|
-
#
|
110
|
-
# To create a new OsConfigService client with the default
|
111
|
-
# configuration:
|
104
|
+
# @example
|
112
105
|
#
|
113
|
-
#
|
106
|
+
# # Create a client using the default configuration
|
107
|
+
# client = ::Google::Cloud::OsConfig::V1::OsConfigService::Client.new
|
114
108
|
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
#
|
118
|
-
#
|
119
|
-
# config.timeout = 10.0
|
120
|
-
# end
|
109
|
+
# # Create a client using a custom configuration
|
110
|
+
# client = ::Google::Cloud::OsConfig::V1::OsConfigService::Client.new do |config|
|
111
|
+
# config.timeout = 10.0
|
112
|
+
# end
|
121
113
|
#
|
122
114
|
# @yield [config] Configure the OsConfigService client.
|
123
115
|
# @yieldparam config [Client::Configuration]
|
@@ -137,14 +129,13 @@ module Google
|
|
137
129
|
|
138
130
|
# Create credentials
|
139
131
|
credentials = @config.credentials
|
140
|
-
# Use self-signed JWT if the
|
132
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
141
133
|
# but only if the default endpoint does not have a region prefix.
|
142
|
-
enable_self_signed_jwt = @config.
|
143
|
-
@config.endpoint == Client.configure.endpoint &&
|
134
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
144
135
|
!@config.endpoint.split(".").first.include?("-")
|
145
136
|
credentials ||= Credentials.default scope: @config.scope,
|
146
137
|
enable_self_signed_jwt: enable_self_signed_jwt
|
147
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
138
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
148
139
|
credentials = Credentials.new credentials, scope: @config.scope
|
149
140
|
end
|
150
141
|
@quota_project_id = @config.quota_project
|
@@ -235,7 +226,9 @@ module Google
|
|
235
226
|
options.apply_defaults timeout: @config.rpcs.execute_patch_job.timeout,
|
236
227
|
metadata: metadata,
|
237
228
|
retry_policy: @config.rpcs.execute_patch_job.retry_policy
|
238
|
-
|
229
|
+
|
230
|
+
options.apply_defaults timeout: @config.timeout,
|
231
|
+
metadata: @config.metadata,
|
239
232
|
retry_policy: @config.retry_policy
|
240
233
|
|
241
234
|
@os_config_service_stub.call_rpc :execute_patch_job, request, options: options do |response, operation|
|
@@ -302,7 +295,9 @@ module Google
|
|
302
295
|
options.apply_defaults timeout: @config.rpcs.get_patch_job.timeout,
|
303
296
|
metadata: metadata,
|
304
297
|
retry_policy: @config.rpcs.get_patch_job.retry_policy
|
305
|
-
|
298
|
+
|
299
|
+
options.apply_defaults timeout: @config.timeout,
|
300
|
+
metadata: @config.metadata,
|
306
301
|
retry_policy: @config.retry_policy
|
307
302
|
|
308
303
|
@os_config_service_stub.call_rpc :get_patch_job, request, options: options do |response, operation|
|
@@ -369,7 +364,9 @@ module Google
|
|
369
364
|
options.apply_defaults timeout: @config.rpcs.cancel_patch_job.timeout,
|
370
365
|
metadata: metadata,
|
371
366
|
retry_policy: @config.rpcs.cancel_patch_job.retry_policy
|
372
|
-
|
367
|
+
|
368
|
+
options.apply_defaults timeout: @config.timeout,
|
369
|
+
metadata: @config.metadata,
|
373
370
|
retry_policy: @config.retry_policy
|
374
371
|
|
375
372
|
@os_config_service_stub.call_rpc :cancel_patch_job, request, options: options do |response, operation|
|
@@ -444,7 +441,9 @@ module Google
|
|
444
441
|
options.apply_defaults timeout: @config.rpcs.list_patch_jobs.timeout,
|
445
442
|
metadata: metadata,
|
446
443
|
retry_policy: @config.rpcs.list_patch_jobs.retry_policy
|
447
|
-
|
444
|
+
|
445
|
+
options.apply_defaults timeout: @config.timeout,
|
446
|
+
metadata: @config.metadata,
|
448
447
|
retry_policy: @config.retry_policy
|
449
448
|
|
450
449
|
@os_config_service_stub.call_rpc :list_patch_jobs, request, options: options do |response, operation|
|
@@ -521,7 +520,9 @@ module Google
|
|
521
520
|
options.apply_defaults timeout: @config.rpcs.list_patch_job_instance_details.timeout,
|
522
521
|
metadata: metadata,
|
523
522
|
retry_policy: @config.rpcs.list_patch_job_instance_details.retry_policy
|
524
|
-
|
523
|
+
|
524
|
+
options.apply_defaults timeout: @config.timeout,
|
525
|
+
metadata: @config.metadata,
|
525
526
|
retry_policy: @config.retry_policy
|
526
527
|
|
527
528
|
@os_config_service_stub.call_rpc :list_patch_job_instance_details, request, options: options do |response, operation|
|
@@ -599,7 +600,9 @@ module Google
|
|
599
600
|
options.apply_defaults timeout: @config.rpcs.create_patch_deployment.timeout,
|
600
601
|
metadata: metadata,
|
601
602
|
retry_policy: @config.rpcs.create_patch_deployment.retry_policy
|
602
|
-
|
603
|
+
|
604
|
+
options.apply_defaults timeout: @config.timeout,
|
605
|
+
metadata: @config.metadata,
|
603
606
|
retry_policy: @config.retry_policy
|
604
607
|
|
605
608
|
@os_config_service_stub.call_rpc :create_patch_deployment, request, options: options do |response, operation|
|
@@ -666,7 +669,9 @@ module Google
|
|
666
669
|
options.apply_defaults timeout: @config.rpcs.get_patch_deployment.timeout,
|
667
670
|
metadata: metadata,
|
668
671
|
retry_policy: @config.rpcs.get_patch_deployment.retry_policy
|
669
|
-
|
672
|
+
|
673
|
+
options.apply_defaults timeout: @config.timeout,
|
674
|
+
metadata: @config.metadata,
|
670
675
|
retry_policy: @config.retry_policy
|
671
676
|
|
672
677
|
@os_config_service_stub.call_rpc :get_patch_deployment, request, options: options do |response, operation|
|
@@ -739,7 +744,9 @@ module Google
|
|
739
744
|
options.apply_defaults timeout: @config.rpcs.list_patch_deployments.timeout,
|
740
745
|
metadata: metadata,
|
741
746
|
retry_policy: @config.rpcs.list_patch_deployments.retry_policy
|
742
|
-
|
747
|
+
|
748
|
+
options.apply_defaults timeout: @config.timeout,
|
749
|
+
metadata: @config.metadata,
|
743
750
|
retry_policy: @config.retry_policy
|
744
751
|
|
745
752
|
@os_config_service_stub.call_rpc :list_patch_deployments, request, options: options do |response, operation|
|
@@ -807,7 +814,9 @@ module Google
|
|
807
814
|
options.apply_defaults timeout: @config.rpcs.delete_patch_deployment.timeout,
|
808
815
|
metadata: metadata,
|
809
816
|
retry_policy: @config.rpcs.delete_patch_deployment.retry_policy
|
810
|
-
|
817
|
+
|
818
|
+
options.apply_defaults timeout: @config.timeout,
|
819
|
+
metadata: @config.metadata,
|
811
820
|
retry_policy: @config.retry_policy
|
812
821
|
|
813
822
|
@os_config_service_stub.call_rpc :delete_patch_deployment, request, options: options do |response, operation|
|
@@ -831,22 +840,21 @@ module Google
|
|
831
840
|
# Configuration can be applied globally to all clients, or to a single client
|
832
841
|
# on construction.
|
833
842
|
#
|
834
|
-
#
|
835
|
-
#
|
836
|
-
#
|
837
|
-
# to 20 seconds,
|
838
|
-
#
|
839
|
-
#
|
840
|
-
#
|
841
|
-
#
|
842
|
-
#
|
843
|
-
#
|
844
|
-
#
|
845
|
-
#
|
846
|
-
#
|
847
|
-
#
|
848
|
-
#
|
849
|
-
# end
|
843
|
+
# @example
|
844
|
+
#
|
845
|
+
# # Modify the global config, setting the timeout for
|
846
|
+
# # execute_patch_job to 20 seconds,
|
847
|
+
# # and all remaining timeouts to 10 seconds.
|
848
|
+
# ::Google::Cloud::OsConfig::V1::OsConfigService::Client.configure do |config|
|
849
|
+
# config.timeout = 10.0
|
850
|
+
# config.rpcs.execute_patch_job.timeout = 20.0
|
851
|
+
# end
|
852
|
+
#
|
853
|
+
# # Apply the above configuration only to a new client.
|
854
|
+
# client = ::Google::Cloud::OsConfig::V1::OsConfigService::Client.new do |config|
|
855
|
+
# config.timeout = 10.0
|
856
|
+
# config.rpcs.execute_patch_job.timeout = 20.0
|
857
|
+
# end
|
850
858
|
#
|
851
859
|
# @!attribute [rw] endpoint
|
852
860
|
# The hostname or hostname:port of the service endpoint.
|
@@ -4,6 +4,7 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
require 'google/protobuf/timestamp_pb'
|
7
|
+
require 'google/type/date_pb'
|
7
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
9
|
add_file("google/cloud/osconfig/v1/inventory.proto", :syntax => :proto3) do
|
9
10
|
add_message "google.cloud.osconfig.v1.Inventory" do
|
@@ -50,6 +51,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
50
51
|
optional :wua_package, :message, 6, "google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage"
|
51
52
|
optional :qfe_package, :message, 7, "google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage"
|
52
53
|
optional :cos_package, :message, 8, "google.cloud.osconfig.v1.Inventory.VersionedPackage"
|
54
|
+
optional :windows_application, :message, 9, "google.cloud.osconfig.v1.Inventory.WindowsApplication"
|
53
55
|
end
|
54
56
|
end
|
55
57
|
add_message "google.cloud.osconfig.v1.Inventory.VersionedPackage" do
|
@@ -84,6 +86,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
84
86
|
optional :hot_fix_id, :string, 3
|
85
87
|
optional :install_time, :message, 5, "google.protobuf.Timestamp"
|
86
88
|
end
|
89
|
+
add_message "google.cloud.osconfig.v1.Inventory.WindowsApplication" do
|
90
|
+
optional :display_name, :string, 1
|
91
|
+
optional :display_version, :string, 2
|
92
|
+
optional :publisher, :string, 3
|
93
|
+
optional :install_date, :message, 4, "google.type.Date"
|
94
|
+
optional :help_link, :string, 5
|
95
|
+
end
|
87
96
|
end
|
88
97
|
end
|
89
98
|
|
@@ -102,6 +111,7 @@ module Google
|
|
102
111
|
Inventory::WindowsUpdatePackage::WindowsUpdateCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory").msgclass
|
103
112
|
Inventory::ZypperPatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.ZypperPatch").msgclass
|
104
113
|
Inventory::WindowsQuickFixEngineeringPackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage").msgclass
|
114
|
+
Inventory::WindowsApplication = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.WindowsApplication").msgclass
|
105
115
|
end
|
106
116
|
end
|
107
117
|
end
|
@@ -57,9 +57,15 @@ module Google
|
|
57
57
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
59
59
|
# This indicates that the service may provide the elements of the list
|
60
|
-
# in any arbitrary
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
62
62
|
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
63
69
|
end
|
64
70
|
end
|
65
71
|
end
|
@@ -157,6 +157,9 @@ module Google
|
|
157
157
|
# @!attribute [rw] cos_package
|
158
158
|
# @return [::Google::Cloud::OsConfig::V1::Inventory::VersionedPackage]
|
159
159
|
# Details of a COS package.
|
160
|
+
# @!attribute [rw] windows_application
|
161
|
+
# @return [::Google::Cloud::OsConfig::V1::Inventory::WindowsApplication]
|
162
|
+
# Details of a Windows Application
|
160
163
|
class SoftwarePackage
|
161
164
|
include ::Google::Protobuf::MessageExts
|
162
165
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -269,6 +272,34 @@ module Google
|
|
269
272
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
270
273
|
end
|
271
274
|
|
275
|
+
# Contains information about a Windows application as retrieved from the
|
276
|
+
# Windows Registry. For more information about these fields, see
|
277
|
+
#
|
278
|
+
# [Windows Installer Properties for the Uninstall
|
279
|
+
# Registry](https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key){:
|
280
|
+
# class="external" }
|
281
|
+
# @!attribute [rw] display_name
|
282
|
+
# @return [::String]
|
283
|
+
# The name of the application or product.
|
284
|
+
# @!attribute [rw] display_version
|
285
|
+
# @return [::String]
|
286
|
+
# The version of the product or application in string format.
|
287
|
+
# @!attribute [rw] publisher
|
288
|
+
# @return [::String]
|
289
|
+
# The name of the manufacturer for the product or application.
|
290
|
+
# @!attribute [rw] install_date
|
291
|
+
# @return [::Google::Type::Date]
|
292
|
+
# The last time this product received service. The value of this property
|
293
|
+
# is replaced each time a patch is applied or removed from the product or
|
294
|
+
# the command-line option is used to repair the product.
|
295
|
+
# @!attribute [rw] help_link
|
296
|
+
# @return [::String]
|
297
|
+
# The internet address for technical support.
|
298
|
+
class WindowsApplication
|
299
|
+
include ::Google::Protobuf::MessageExts
|
300
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
301
|
+
end
|
302
|
+
|
272
303
|
# @!attribute [rw] key
|
273
304
|
# @return [::String]
|
274
305
|
# @!attribute [rw] value
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Type
|
22
|
+
# Represents a whole or partial calendar date, such as a birthday. The time of
|
23
|
+
# day and time zone are either specified elsewhere or are insignificant. The
|
24
|
+
# date is relative to the Gregorian Calendar. This can represent one of the
|
25
|
+
# following:
|
26
|
+
#
|
27
|
+
# * A full date, with non-zero year, month, and day values
|
28
|
+
# * A month and day value, with a zero year, such as an anniversary
|
29
|
+
# * A year on its own, with zero month and day values
|
30
|
+
# * A year and month value, with a zero day, such as a credit card expiration
|
31
|
+
# date
|
32
|
+
#
|
33
|
+
# Related types are {::Google::Type::TimeOfDay google.type.TimeOfDay} and
|
34
|
+
# `google.protobuf.Timestamp`.
|
35
|
+
# @!attribute [rw] year
|
36
|
+
# @return [::Integer]
|
37
|
+
# Year of the date. Must be from 1 to 9999, or 0 to specify a date without
|
38
|
+
# a year.
|
39
|
+
# @!attribute [rw] month
|
40
|
+
# @return [::Integer]
|
41
|
+
# Month of a year. Must be from 1 to 12, or 0 to specify a year without a
|
42
|
+
# month and day.
|
43
|
+
# @!attribute [rw] day
|
44
|
+
# @return [::Integer]
|
45
|
+
# Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
|
46
|
+
# to specify a year by itself or a year and month where the day isn't
|
47
|
+
# significant.
|
48
|
+
class Date
|
49
|
+
include ::Google::Protobuf::MessageExts
|
50
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -19,7 +19,9 @@
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Type
|
22
|
-
# Represents civil time
|
22
|
+
# Represents civil time (or occasionally physical time).
|
23
|
+
#
|
24
|
+
# This type can represent a civil time in one of a few possible ways:
|
23
25
|
#
|
24
26
|
# * When utc_offset is set and time_zone is unset: a civil time on a calendar
|
25
27
|
# day with a particular offset from UTC.
|
@@ -33,6 +35,12 @@ module Google
|
|
33
35
|
# If year is 0, the DateTime is considered not to have a specific year. month
|
34
36
|
# and day must have valid, non-zero values.
|
35
37
|
#
|
38
|
+
# This type may also be used to represent a physical time if all the date and
|
39
|
+
# time fields are set and either case of the `time_offset` oneof is set.
|
40
|
+
# Consider using `Timestamp` message for physical time instead. If your use
|
41
|
+
# case also would like to store the user's timezone, that can be done in
|
42
|
+
# another field.
|
43
|
+
#
|
36
44
|
# This type is more flexible than some applications may want. Make sure to
|
37
45
|
# document and validate your application's limitations.
|
38
46
|
# @!attribute [rw] year
|
@@ -19,30 +19,30 @@
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Type
|
22
|
-
# Represents a day of week.
|
22
|
+
# Represents a day of the week.
|
23
23
|
module DayOfWeek
|
24
|
-
# The
|
24
|
+
# The day of the week is unspecified.
|
25
25
|
DAY_OF_WEEK_UNSPECIFIED = 0
|
26
26
|
|
27
|
-
#
|
27
|
+
# Monday
|
28
28
|
MONDAY = 1
|
29
29
|
|
30
|
-
#
|
30
|
+
# Tuesday
|
31
31
|
TUESDAY = 2
|
32
32
|
|
33
|
-
#
|
33
|
+
# Wednesday
|
34
34
|
WEDNESDAY = 3
|
35
35
|
|
36
|
-
#
|
36
|
+
# Thursday
|
37
37
|
THURSDAY = 4
|
38
38
|
|
39
|
-
#
|
39
|
+
# Friday
|
40
40
|
FRIDAY = 5
|
41
41
|
|
42
|
-
#
|
42
|
+
# Saturday
|
43
43
|
SATURDAY = 6
|
44
44
|
|
45
|
-
#
|
45
|
+
# Sunday
|
46
46
|
SUNDAY = 7
|
47
47
|
end
|
48
48
|
end
|
@@ -21,7 +21,8 @@ module Google
|
|
21
21
|
module Type
|
22
22
|
# Represents a time of day. The date and time zone are either not significant
|
23
23
|
# or are specified elsewhere. An API may choose to allow leap seconds. Related
|
24
|
-
# types are
|
24
|
+
# types are {::Google::Type::Date google.type.Date} and
|
25
|
+
# `google.protobuf.Timestamp`.
|
25
26
|
# @!attribute [rw] hours
|
26
27
|
# @return [::Integer]
|
27
28
|
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-os_config-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.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-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.7'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.7'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -187,6 +193,7 @@ files:
|
|
187
193
|
- proto_docs/google/protobuf/duration.rb
|
188
194
|
- proto_docs/google/protobuf/empty.rb
|
189
195
|
- proto_docs/google/protobuf/timestamp.rb
|
196
|
+
- proto_docs/google/type/date.rb
|
190
197
|
- proto_docs/google/type/datetime.rb
|
191
198
|
- proto_docs/google/type/dayofweek.rb
|
192
199
|
- proto_docs/google/type/timeofday.rb
|
@@ -209,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
216
|
- !ruby/object:Gem::Version
|
210
217
|
version: '0'
|
211
218
|
requirements: []
|
212
|
-
rubygems_version: 3.2.
|
219
|
+
rubygems_version: 3.2.17
|
213
220
|
signing_key:
|
214
221
|
specification_version: 4
|
215
222
|
summary: API Client library for the Cloud OS Config V1 API
|