google-cloud-os_login-v1 0.4.0 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/os_login/v1/os_login_service/client.rb +174 -85
- data/lib/google/cloud/os_login/v1/version.rb +1 -1
- data/lib/google/cloud/oslogin/common/common_pb.rb +2 -2
- data/lib/google/cloud/oslogin/v1/oslogin_pb.rb +2 -2
- data/lib/google/cloud/oslogin/v1/oslogin_services_pb.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9efef2d5dea60dd3d333ab81cbec31ed164a265db93a01ea6e4e24ff1797c614
|
4
|
+
data.tar.gz: cd25ee975d2c66a210d5a1bc480f9a857e16b626c0a6a97e9b27ae6db214d7ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35e2a536c42dcfe156e1079c89acc544ecb74edb7773d7fbc7f248192cd4dc0fa33bc87ff87c8a52e3122401aed200489d5942e488ce94ba964fa4a4a88ba93f
|
7
|
+
data.tar.gz: ae4fb26d819121538f077402f90c0220486f2f13bf6c0edff75e1e23a90bceca681575a4373c2b9a749434cebf6866ce96392daed16a8042022bd8e0cc97f585
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-os_login-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::OsLogin::V1::OsLoginService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `OS_LOGIN_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `OS_LOGIN_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_login/v1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::OsLogin::V1::OsLoginService::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_login/v1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::OsLogin::V1::OsLoginService::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_login/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_login/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::OsLogin::V1::OsLoginService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::OsLogin::V1::DeletePosixAccountRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.delete_posix_account request
|
38
38
|
```
|
39
39
|
|
@@ -44,13 +44,12 @@ module Google
|
|
44
44
|
# See {::Google::Cloud::OsLogin::V1::OsLoginService::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 OsLoginService clients
|
50
|
+
# ::Google::Cloud::OsLogin::V1::OsLoginService::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,50 +69,32 @@ module Google
|
|
70
69
|
|
71
70
|
default_config.rpcs.delete_posix_account.timeout = 10.0
|
72
71
|
default_config.rpcs.delete_posix_account.retry_policy = {
|
73
|
-
initial_delay: 0.1,
|
74
|
-
max_delay: 60.0,
|
75
|
-
multiplier: 1.3,
|
76
|
-
retry_codes: [14, 4]
|
72
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
77
73
|
}
|
78
74
|
|
79
75
|
default_config.rpcs.delete_ssh_public_key.timeout = 10.0
|
80
76
|
default_config.rpcs.delete_ssh_public_key.retry_policy = {
|
81
|
-
initial_delay: 0.1,
|
82
|
-
max_delay: 60.0,
|
83
|
-
multiplier: 1.3,
|
84
|
-
retry_codes: [14, 4]
|
77
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
85
78
|
}
|
86
79
|
|
87
80
|
default_config.rpcs.get_login_profile.timeout = 10.0
|
88
81
|
default_config.rpcs.get_login_profile.retry_policy = {
|
89
|
-
initial_delay: 0.1,
|
90
|
-
max_delay: 60.0,
|
91
|
-
multiplier: 1.3,
|
92
|
-
retry_codes: [14, 4]
|
82
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
93
83
|
}
|
94
84
|
|
95
85
|
default_config.rpcs.get_ssh_public_key.timeout = 10.0
|
96
86
|
default_config.rpcs.get_ssh_public_key.retry_policy = {
|
97
|
-
initial_delay: 0.1,
|
98
|
-
max_delay: 60.0,
|
99
|
-
multiplier: 1.3,
|
100
|
-
retry_codes: [14, 4]
|
87
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
101
88
|
}
|
102
89
|
|
103
90
|
default_config.rpcs.import_ssh_public_key.timeout = 10.0
|
104
91
|
default_config.rpcs.import_ssh_public_key.retry_policy = {
|
105
|
-
initial_delay: 0.1,
|
106
|
-
max_delay: 60.0,
|
107
|
-
multiplier: 1.3,
|
108
|
-
retry_codes: [14, 4]
|
92
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
109
93
|
}
|
110
94
|
|
111
95
|
default_config.rpcs.update_ssh_public_key.timeout = 10.0
|
112
96
|
default_config.rpcs.update_ssh_public_key.retry_policy = {
|
113
|
-
initial_delay: 0.1,
|
114
|
-
max_delay: 60.0,
|
115
|
-
multiplier: 1.3,
|
116
|
-
retry_codes: [14, 4]
|
97
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
117
98
|
}
|
118
99
|
|
119
100
|
default_config
|
@@ -145,19 +126,15 @@ module Google
|
|
145
126
|
##
|
146
127
|
# Create a new OsLoginService client object.
|
147
128
|
#
|
148
|
-
#
|
149
|
-
#
|
150
|
-
# To create a new OsLoginService client with the default
|
151
|
-
# configuration:
|
129
|
+
# @example
|
152
130
|
#
|
153
|
-
#
|
131
|
+
# # Create a client using the default configuration
|
132
|
+
# client = ::Google::Cloud::OsLogin::V1::OsLoginService::Client.new
|
154
133
|
#
|
155
|
-
#
|
156
|
-
#
|
157
|
-
#
|
158
|
-
#
|
159
|
-
# config.timeout = 10.0
|
160
|
-
# end
|
134
|
+
# # Create a client using a custom configuration
|
135
|
+
# client = ::Google::Cloud::OsLogin::V1::OsLoginService::Client.new do |config|
|
136
|
+
# config.timeout = 10.0
|
137
|
+
# end
|
161
138
|
#
|
162
139
|
# @yield [config] Configure the OsLoginService client.
|
163
140
|
# @yieldparam config [Client::Configuration]
|
@@ -177,14 +154,13 @@ module Google
|
|
177
154
|
|
178
155
|
# Create credentials
|
179
156
|
credentials = @config.credentials
|
180
|
-
# Use self-signed JWT if the
|
157
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
181
158
|
# but only if the default endpoint does not have a region prefix.
|
182
|
-
enable_self_signed_jwt = @config.
|
183
|
-
@config.endpoint == Client.configure.endpoint &&
|
159
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
184
160
|
!@config.endpoint.split(".").first.include?("-")
|
185
161
|
credentials ||= Credentials.default scope: @config.scope,
|
186
162
|
enable_self_signed_jwt: enable_self_signed_jwt
|
187
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
163
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
188
164
|
credentials = Credentials.new credentials, scope: @config.scope
|
189
165
|
end
|
190
166
|
@quota_project_id = @config.quota_project
|
@@ -232,6 +208,21 @@ module Google
|
|
232
208
|
#
|
233
209
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
234
210
|
#
|
211
|
+
# @example Basic example
|
212
|
+
# require "google/cloud/os_login/v1"
|
213
|
+
#
|
214
|
+
# # Create a client object. The client can be reused for multiple calls.
|
215
|
+
# client = Google::Cloud::OsLogin::V1::OsLoginService::Client.new
|
216
|
+
#
|
217
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
218
|
+
# request = Google::Cloud::OsLogin::V1::DeletePosixAccountRequest.new
|
219
|
+
#
|
220
|
+
# # Call the delete_posix_account method.
|
221
|
+
# result = client.delete_posix_account request
|
222
|
+
#
|
223
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
224
|
+
# p result
|
225
|
+
#
|
235
226
|
def delete_posix_account request, options = nil
|
236
227
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
237
228
|
|
@@ -249,16 +240,20 @@ module Google
|
|
249
240
|
gapic_version: ::Google::Cloud::OsLogin::V1::VERSION
|
250
241
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
251
242
|
|
252
|
-
header_params = {
|
253
|
-
|
254
|
-
|
243
|
+
header_params = {}
|
244
|
+
if request.name
|
245
|
+
header_params["name"] = request.name
|
246
|
+
end
|
247
|
+
|
255
248
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
256
249
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
257
250
|
|
258
251
|
options.apply_defaults timeout: @config.rpcs.delete_posix_account.timeout,
|
259
252
|
metadata: metadata,
|
260
253
|
retry_policy: @config.rpcs.delete_posix_account.retry_policy
|
261
|
-
|
254
|
+
|
255
|
+
options.apply_defaults timeout: @config.timeout,
|
256
|
+
metadata: @config.metadata,
|
262
257
|
retry_policy: @config.retry_policy
|
263
258
|
|
264
259
|
@os_login_service_stub.call_rpc :delete_posix_account, request, options: options do |response, operation|
|
@@ -300,6 +295,21 @@ module Google
|
|
300
295
|
#
|
301
296
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
302
297
|
#
|
298
|
+
# @example Basic example
|
299
|
+
# require "google/cloud/os_login/v1"
|
300
|
+
#
|
301
|
+
# # Create a client object. The client can be reused for multiple calls.
|
302
|
+
# client = Google::Cloud::OsLogin::V1::OsLoginService::Client.new
|
303
|
+
#
|
304
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
305
|
+
# request = Google::Cloud::OsLogin::V1::DeleteSshPublicKeyRequest.new
|
306
|
+
#
|
307
|
+
# # Call the delete_ssh_public_key method.
|
308
|
+
# result = client.delete_ssh_public_key request
|
309
|
+
#
|
310
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
311
|
+
# p result
|
312
|
+
#
|
303
313
|
def delete_ssh_public_key request, options = nil
|
304
314
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
305
315
|
|
@@ -317,16 +327,20 @@ module Google
|
|
317
327
|
gapic_version: ::Google::Cloud::OsLogin::V1::VERSION
|
318
328
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
319
329
|
|
320
|
-
header_params = {
|
321
|
-
|
322
|
-
|
330
|
+
header_params = {}
|
331
|
+
if request.name
|
332
|
+
header_params["name"] = request.name
|
333
|
+
end
|
334
|
+
|
323
335
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
324
336
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
325
337
|
|
326
338
|
options.apply_defaults timeout: @config.rpcs.delete_ssh_public_key.timeout,
|
327
339
|
metadata: metadata,
|
328
340
|
retry_policy: @config.rpcs.delete_ssh_public_key.retry_policy
|
329
|
-
|
341
|
+
|
342
|
+
options.apply_defaults timeout: @config.timeout,
|
343
|
+
metadata: @config.metadata,
|
330
344
|
retry_policy: @config.retry_policy
|
331
345
|
|
332
346
|
@os_login_service_stub.call_rpc :delete_ssh_public_key, request, options: options do |response, operation|
|
@@ -371,6 +385,21 @@ module Google
|
|
371
385
|
#
|
372
386
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
373
387
|
#
|
388
|
+
# @example Basic example
|
389
|
+
# require "google/cloud/os_login/v1"
|
390
|
+
#
|
391
|
+
# # Create a client object. The client can be reused for multiple calls.
|
392
|
+
# client = Google::Cloud::OsLogin::V1::OsLoginService::Client.new
|
393
|
+
#
|
394
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
395
|
+
# request = Google::Cloud::OsLogin::V1::GetLoginProfileRequest.new
|
396
|
+
#
|
397
|
+
# # Call the get_login_profile method.
|
398
|
+
# result = client.get_login_profile request
|
399
|
+
#
|
400
|
+
# # The returned object is of type Google::Cloud::OsLogin::V1::LoginProfile.
|
401
|
+
# p result
|
402
|
+
#
|
374
403
|
def get_login_profile request, options = nil
|
375
404
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
376
405
|
|
@@ -388,16 +417,20 @@ module Google
|
|
388
417
|
gapic_version: ::Google::Cloud::OsLogin::V1::VERSION
|
389
418
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
390
419
|
|
391
|
-
header_params = {
|
392
|
-
|
393
|
-
|
420
|
+
header_params = {}
|
421
|
+
if request.name
|
422
|
+
header_params["name"] = request.name
|
423
|
+
end
|
424
|
+
|
394
425
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
395
426
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
396
427
|
|
397
428
|
options.apply_defaults timeout: @config.rpcs.get_login_profile.timeout,
|
398
429
|
metadata: metadata,
|
399
430
|
retry_policy: @config.rpcs.get_login_profile.retry_policy
|
400
|
-
|
431
|
+
|
432
|
+
options.apply_defaults timeout: @config.timeout,
|
433
|
+
metadata: @config.metadata,
|
401
434
|
retry_policy: @config.retry_policy
|
402
435
|
|
403
436
|
@os_login_service_stub.call_rpc :get_login_profile, request, options: options do |response, operation|
|
@@ -439,6 +472,21 @@ module Google
|
|
439
472
|
#
|
440
473
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
441
474
|
#
|
475
|
+
# @example Basic example
|
476
|
+
# require "google/cloud/os_login/v1"
|
477
|
+
#
|
478
|
+
# # Create a client object. The client can be reused for multiple calls.
|
479
|
+
# client = Google::Cloud::OsLogin::V1::OsLoginService::Client.new
|
480
|
+
#
|
481
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
482
|
+
# request = Google::Cloud::OsLogin::V1::GetSshPublicKeyRequest.new
|
483
|
+
#
|
484
|
+
# # Call the get_ssh_public_key method.
|
485
|
+
# result = client.get_ssh_public_key request
|
486
|
+
#
|
487
|
+
# # The returned object is of type Google::Cloud::OsLogin::Common::SshPublicKey.
|
488
|
+
# p result
|
489
|
+
#
|
442
490
|
def get_ssh_public_key request, options = nil
|
443
491
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
444
492
|
|
@@ -456,16 +504,20 @@ module Google
|
|
456
504
|
gapic_version: ::Google::Cloud::OsLogin::V1::VERSION
|
457
505
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
458
506
|
|
459
|
-
header_params = {
|
460
|
-
|
461
|
-
|
507
|
+
header_params = {}
|
508
|
+
if request.name
|
509
|
+
header_params["name"] = request.name
|
510
|
+
end
|
511
|
+
|
462
512
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
463
513
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
464
514
|
|
465
515
|
options.apply_defaults timeout: @config.rpcs.get_ssh_public_key.timeout,
|
466
516
|
metadata: metadata,
|
467
517
|
retry_policy: @config.rpcs.get_ssh_public_key.retry_policy
|
468
|
-
|
518
|
+
|
519
|
+
options.apply_defaults timeout: @config.timeout,
|
520
|
+
metadata: @config.metadata,
|
469
521
|
retry_policy: @config.retry_policy
|
470
522
|
|
471
523
|
@os_login_service_stub.call_rpc :get_ssh_public_key, request, options: options do |response, operation|
|
@@ -511,6 +563,21 @@ module Google
|
|
511
563
|
#
|
512
564
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
513
565
|
#
|
566
|
+
# @example Basic example
|
567
|
+
# require "google/cloud/os_login/v1"
|
568
|
+
#
|
569
|
+
# # Create a client object. The client can be reused for multiple calls.
|
570
|
+
# client = Google::Cloud::OsLogin::V1::OsLoginService::Client.new
|
571
|
+
#
|
572
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
573
|
+
# request = Google::Cloud::OsLogin::V1::ImportSshPublicKeyRequest.new
|
574
|
+
#
|
575
|
+
# # Call the import_ssh_public_key method.
|
576
|
+
# result = client.import_ssh_public_key request
|
577
|
+
#
|
578
|
+
# # The returned object is of type Google::Cloud::OsLogin::V1::ImportSshPublicKeyResponse.
|
579
|
+
# p result
|
580
|
+
#
|
514
581
|
def import_ssh_public_key request, options = nil
|
515
582
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
516
583
|
|
@@ -528,16 +595,20 @@ module Google
|
|
528
595
|
gapic_version: ::Google::Cloud::OsLogin::V1::VERSION
|
529
596
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
530
597
|
|
531
|
-
header_params = {
|
532
|
-
|
533
|
-
|
598
|
+
header_params = {}
|
599
|
+
if request.parent
|
600
|
+
header_params["parent"] = request.parent
|
601
|
+
end
|
602
|
+
|
534
603
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
535
604
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
536
605
|
|
537
606
|
options.apply_defaults timeout: @config.rpcs.import_ssh_public_key.timeout,
|
538
607
|
metadata: metadata,
|
539
608
|
retry_policy: @config.rpcs.import_ssh_public_key.retry_policy
|
540
|
-
|
609
|
+
|
610
|
+
options.apply_defaults timeout: @config.timeout,
|
611
|
+
metadata: @config.metadata,
|
541
612
|
retry_policy: @config.retry_policy
|
542
613
|
|
543
614
|
@os_login_service_stub.call_rpc :import_ssh_public_key, request, options: options do |response, operation|
|
@@ -584,6 +655,21 @@ module Google
|
|
584
655
|
#
|
585
656
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
586
657
|
#
|
658
|
+
# @example Basic example
|
659
|
+
# require "google/cloud/os_login/v1"
|
660
|
+
#
|
661
|
+
# # Create a client object. The client can be reused for multiple calls.
|
662
|
+
# client = Google::Cloud::OsLogin::V1::OsLoginService::Client.new
|
663
|
+
#
|
664
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
665
|
+
# request = Google::Cloud::OsLogin::V1::UpdateSshPublicKeyRequest.new
|
666
|
+
#
|
667
|
+
# # Call the update_ssh_public_key method.
|
668
|
+
# result = client.update_ssh_public_key request
|
669
|
+
#
|
670
|
+
# # The returned object is of type Google::Cloud::OsLogin::Common::SshPublicKey.
|
671
|
+
# p result
|
672
|
+
#
|
587
673
|
def update_ssh_public_key request, options = nil
|
588
674
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
589
675
|
|
@@ -601,16 +687,20 @@ module Google
|
|
601
687
|
gapic_version: ::Google::Cloud::OsLogin::V1::VERSION
|
602
688
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
603
689
|
|
604
|
-
header_params = {
|
605
|
-
|
606
|
-
|
690
|
+
header_params = {}
|
691
|
+
if request.name
|
692
|
+
header_params["name"] = request.name
|
693
|
+
end
|
694
|
+
|
607
695
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
608
696
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
609
697
|
|
610
698
|
options.apply_defaults timeout: @config.rpcs.update_ssh_public_key.timeout,
|
611
699
|
metadata: metadata,
|
612
700
|
retry_policy: @config.rpcs.update_ssh_public_key.retry_policy
|
613
|
-
|
701
|
+
|
702
|
+
options.apply_defaults timeout: @config.timeout,
|
703
|
+
metadata: @config.metadata,
|
614
704
|
retry_policy: @config.retry_policy
|
615
705
|
|
616
706
|
@os_login_service_stub.call_rpc :update_ssh_public_key, request, options: options do |response, operation|
|
@@ -634,22 +724,21 @@ module Google
|
|
634
724
|
# Configuration can be applied globally to all clients, or to a single client
|
635
725
|
# on construction.
|
636
726
|
#
|
637
|
-
#
|
638
|
-
#
|
639
|
-
#
|
640
|
-
# to 20 seconds,
|
641
|
-
#
|
642
|
-
#
|
643
|
-
#
|
644
|
-
#
|
645
|
-
#
|
646
|
-
#
|
647
|
-
#
|
648
|
-
#
|
649
|
-
#
|
650
|
-
#
|
651
|
-
#
|
652
|
-
# end
|
727
|
+
# @example
|
728
|
+
#
|
729
|
+
# # Modify the global config, setting the timeout for
|
730
|
+
# # delete_posix_account to 20 seconds,
|
731
|
+
# # and all remaining timeouts to 10 seconds.
|
732
|
+
# ::Google::Cloud::OsLogin::V1::OsLoginService::Client.configure do |config|
|
733
|
+
# config.timeout = 10.0
|
734
|
+
# config.rpcs.delete_posix_account.timeout = 20.0
|
735
|
+
# end
|
736
|
+
#
|
737
|
+
# # Apply the above configuration only to a new client.
|
738
|
+
# client = ::Google::Cloud::OsLogin::V1::OsLoginService::Client.new do |config|
|
739
|
+
# config.timeout = 10.0
|
740
|
+
# config.rpcs.delete_posix_account.timeout = 20.0
|
741
|
+
# end
|
653
742
|
#
|
654
743
|
# @!attribute [rw] endpoint
|
655
744
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/oslogin/common/common.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/oslogin/common/common.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.cloud.oslogin.common.PosixAccount" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/oslogin/v1/oslogin.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
|
|
10
8
|
require 'google/cloud/oslogin/common/common_pb'
|
11
9
|
require 'google/protobuf/empty_pb'
|
12
10
|
require 'google/protobuf/field_mask_pb'
|
11
|
+
require 'google/protobuf'
|
12
|
+
|
13
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
14
|
add_file("google/cloud/oslogin/v1/oslogin.proto", :syntax => :proto3) do
|
15
15
|
add_message "google.cloud.oslogin.v1.LoginProfile" do
|
@@ -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
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-os_login-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
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-11-08 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
|
@@ -201,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
207
|
- !ruby/object:Gem::Version
|
202
208
|
version: '0'
|
203
209
|
requirements: []
|
204
|
-
rubygems_version: 3.2.
|
210
|
+
rubygems_version: 3.2.17
|
205
211
|
signing_key:
|
206
212
|
specification_version: 4
|
207
213
|
summary: API Client library for the Cloud OS Login V1 API
|