google-cloud-os_config-v1 0.4.1 → 0.4.2

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: 818d06ac84b6929d933a1699f4bba5b1872d82839f338dc70225afb3267d9aac
4
- data.tar.gz: 95df03f87ab1dc9e926ec8ff33c975b2155e5b593420e3aee7a4ec7f450e6d29
3
+ metadata.gz: ef4008c275fa80219d26e3871e4e780acf551365f250eae0504c1238ca25dd0a
4
+ data.tar.gz: 1a57f3911db1948be4c8b9a75286dda9cb9144f48f4a4220d3ea82d57230af36
5
5
  SHA512:
6
- metadata.gz: 0b21a4187a14b98269193b6a96bcd9c756cd7f03f8dc27383cd0c4f5a14d256ffd5969c758d393e4b8f0cddca22d3564c550feea47cbcfa30612d7127cd00910
7
- data.tar.gz: ef4f4006ce56ba4d42fdcee0b57b0b5205574ba77a6ec1f1e4fdeb896a4cea37780c2dd71ddf798184d6d32083ecc14b731737ecbd96f00feb65066e8b73a4c4
6
+ metadata.gz: 9592264d6d741d06a06b11e3c87eb0fdbf055884b61a80a9aa1bfa0cd423c67d9d3580656a5fdaaa98b72db4e2bfe8c76c76ca8c054c463e2c6f7dd3cabe01b8
7
+ data.tar.gz: d102cc49ff30bc034810ca5737abcd5e8f86389ae0f3e3799847899bc149b87adedd185db56f13ae32187413511c3b38688694ad44a37467fead305216d63d57
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
- 1. `OS_CONFIG_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `OS_CONFIG_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
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 placing them in
86
- environment variables. Either on an individual client initialization:
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 configured globally for all clients:
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 = my_create_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
 
@@ -70,10 +70,7 @@ module Google
70
70
 
71
71
  default_config.timeout = 60.0
72
72
  default_config.retry_policy = {
73
- initial_delay: 1.0,
74
- max_delay: 60.0,
75
- multiplier: 1.3,
76
- retry_codes: [14]
73
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
77
74
  }
78
75
 
79
76
  default_config
@@ -144,7 +141,7 @@ module Google
144
141
  !@config.endpoint.split(".").first.include?("-")
145
142
  credentials ||= Credentials.default scope: @config.scope,
146
143
  enable_self_signed_jwt: enable_self_signed_jwt
147
- if credentials.is_a?(String) || credentials.is_a?(Hash)
144
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
148
145
  credentials = Credentials.new credentials, scope: @config.scope
149
146
  end
150
147
  @quota_project_id = @config.quota_project
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module OsConfig
23
23
  module V1
24
- VERSION = "0.4.1"
24
+ VERSION = "0.4.2"
25
25
  end
26
26
  end
27
27
  end
@@ -30,7 +30,7 @@ module Google
30
30
  # manage package installations and patch jobs for virtual machine instances.
31
31
  class Service
32
32
 
33
- include ::GRPC::GenericService
33
+ include GRPC::GenericService
34
34
 
35
35
  self.marshal_class_method = :encode
36
36
  self.unmarshal_class_method = :decode
@@ -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 order, rather than the order the user originally
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
@@ -19,7 +19,9 @@
19
19
 
20
20
  module Google
21
21
  module Type
22
- # Represents civil time in one of a few possible ways:
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 unspecified day-of-week.
24
+ # The day of the week is unspecified.
25
25
  DAY_OF_WEEK_UNSPECIFIED = 0
26
26
 
27
- # The day-of-week of Monday.
27
+ # Monday
28
28
  MONDAY = 1
29
29
 
30
- # The day-of-week of Tuesday.
30
+ # Tuesday
31
31
  TUESDAY = 2
32
32
 
33
- # The day-of-week of Wednesday.
33
+ # Wednesday
34
34
  WEDNESDAY = 3
35
35
 
36
- # The day-of-week of Thursday.
36
+ # Thursday
37
37
  THURSDAY = 4
38
38
 
39
- # The day-of-week of Friday.
39
+ # Friday
40
40
  FRIDAY = 5
41
41
 
42
- # The day-of-week of Saturday.
42
+ # Saturday
43
43
  SATURDAY = 6
44
44
 
45
- # The day-of-week of Sunday.
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 [google.type.Date][google.type.Date] and `google.protobuf.Timestamp`.
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,14 +1,14 @@
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.1
4
+ version: 0.4.2
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-06-17 00:00:00.000000000 Z
11
+ date: 2021-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common