google-cloud-os_config-v1alpha 0.1.0 → 0.1.1

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: e6235bea1c95a6059e2854f37f485cfc4a1ce1f96c0ecd05ce6369c3dfda1e13
4
- data.tar.gz: f027f22c24d1c9fc62d5971abf8a2fc5e160afe82444e6c3e3686f04d3423e3b
3
+ metadata.gz: c1c95fc1a54458bf0266685c362ed0a9374073d4807c92880170bf0dd2ed7041
4
+ data.tar.gz: e283e62cb4b00f4a186686e389dc60d84bd76c5a5280a6d81f8e7be17af0d24d
5
5
  SHA512:
6
- metadata.gz: 2045f8b3d382747c77ece5cbe06d88b8991f55f93c3edfcf3701eb48dd0e9da3943094acdae91518f375004800756a2ae1f778b63d215c165bf7aa37ebcd7e59
7
- data.tar.gz: eb07d6ad17d2b865a59c7c4f33eb3a2dd13048795bd384ce9c4c86b9b87dd32fc82e55e526b65e849f7c5c84367163cdb58fb46d001d1abdb8f8a16a965fe6c0
6
+ metadata.gz: 161d2e0760399789104708df244609dc9c5f12a53bd5eb9f749174cb747a3bb4e5cd5444029ed06945db66d2a06650ed685ceeee8aaa63e6d1f2caeba69ab57a
7
+ data.tar.gz: c588603d93ff23248fdb41f83a76e78c5b3e70095b03d2cfc06329958d9643b75df284c095c8366616a4e3e292cf1895408de1e533f2d29ff60c1083cc799b0d
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-os_config-v1alpha
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::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/v1alpha"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::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/v1alpha"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new do
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/v1alpha"
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/v1alpha"
34
34
 
35
35
  client = ::Google::Cloud::OsConfig::V1alpha::OsConfigZonalService::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::OsConfig::V1alpha::CreateOSPolicyAssignmentRequest.new # (request fields as keyword arguments...)
37
37
  response = client.create_os_policy_assignment 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
@@ -82,7 +82,7 @@ module Google
82
82
  # Create credentials
83
83
  credentials = @config.credentials
84
84
  credentials ||= Credentials.default scope: @config.scope
85
- if credentials.is_a?(String) || credentials.is_a?(Hash)
85
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
88
  @quota_project_id = @config.quota_project
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module OsConfig
23
23
  module V1alpha
24
- VERSION = "0.1.0"
24
+ VERSION = "0.1.1"
25
25
  end
26
26
  end
27
27
  end
@@ -60,6 +60,12 @@ module Google
60
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
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-os_config-v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
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-21 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