google-cloud-shell-v1 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: 9a4ecd15e91378e74dea208ee6afaf2c5799b499eba1223ca8b75da3ce3d0f6e
4
- data.tar.gz: 4dbb08d203e5a1243b0c152856e1ed303050b76f2ec21ce675bd5cbfce93533f
3
+ metadata.gz: 2fda838ca63ab959f1d4143f8ee03551c2b065ca9d7f2cc38e4c78e1a8907de6
4
+ data.tar.gz: c0b4dafacc5cc5cdd49a0710ca2472c00e07f8a39c4652700a9cc3e267c4467c
5
5
  SHA512:
6
- metadata.gz: e3b40a39975c6623a3037514c7f47fc8111bda8b7e2f294ba428fd4c2715cf94c920751d7656bab61404b995058b0a0956728d1b1a287b515182a12e62241212
7
- data.tar.gz: d8c81851dca70f649edd3b7556317782a2c89ed3be5f715f354e52b3748238987236e9600aa1e2e8bed1a4b75f6036ba2e0952c5b65df697445cd640d245c044
6
+ metadata.gz: 04e20fbeb2cb8fb32e2758e62ef5d87a3f0b6f4ca16ff5be1e4b30b41050dad0252efa4176fec8e88b36c7a67c3cad1d033a490fd39c82cfea1c725ce856e07c
7
+ data.tar.gz: ae3307ccd102c55be4ab217ce77a57b8ffd9d548e662b61899d6916632b9af9de3f8fc1af3feb2c4aa076905cabc4ea2f11027bc3b75c65d0850d89b90905edd
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-shell-v1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::Shell::V1::CloudShellService::Credentials}):
68
68
 
69
- 1. `CLOUD_SHELL_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `CLOUD_SHELL_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
+ * `CLOUD_SHELL_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `CLOUD_SHELL_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/shell/v1"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Shell::V1::CloudShellService::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/shell/v1"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Shell::V1::CloudShellService::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/shell/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/shell/v1"
34
34
 
35
35
  client = ::Google::Cloud::Shell::V1::CloudShellService::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::Shell::V1::GetEnvironmentRequest.new # (request fields as keyword arguments...)
37
37
  response = client.get_environment request
38
38
  ```
39
39
 
@@ -73,10 +73,7 @@ module Google
73
73
 
74
74
  default_config.rpcs.get_environment.timeout = 60.0
75
75
  default_config.rpcs.get_environment.retry_policy = {
76
- initial_delay: 1.0,
77
- max_delay: 60.0,
78
- multiplier: 1.3,
79
- retry_codes: [14, 2]
76
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
80
77
  }
81
78
 
82
79
  default_config.rpcs.start_environment.timeout = 60.0
@@ -155,7 +152,7 @@ module Google
155
152
  !@config.endpoint.split(".").first.include?("-")
156
153
  credentials ||= Credentials.default scope: @config.scope,
157
154
  enable_self_signed_jwt: enable_self_signed_jwt
158
- if credentials.is_a?(String) || credentials.is_a?(Hash)
155
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
159
156
  credentials = Credentials.new credentials, scope: @config.scope
160
157
  end
161
158
  @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 Shell
23
23
  module V1
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-shell-v1
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