google-cloud-os_login-v1 0.4.3 → 0.4.4

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: e6140806dc2ce4fdf8bd921a10e52093ca1b6cca219cd87f75d4b5cef56b0152
4
- data.tar.gz: 93fda8a0125fdb6c7c9d2cbaec03eb2a7ee8791ae97aae03d426cb92bb16a58d
3
+ metadata.gz: 9efef2d5dea60dd3d333ab81cbec31ed164a265db93a01ea6e4e24ff1797c614
4
+ data.tar.gz: cd25ee975d2c66a210d5a1bc480f9a857e16b626c0a6a97e9b27ae6db214d7ff
5
5
  SHA512:
6
- metadata.gz: b2fb0549184ddac911b57cfad781db10db58e0887ba60b8bc21a883c56b48a495913f51018633bed5e42b86f63798b48dd1f1aea2acf4e5b88ab702f8258db39
7
- data.tar.gz: 3caf15cba0a2554fb960c741e08b5852f7b20e55910931a9dce1e3e70cff75385420465df909315d2201ab74943cfe1dd758a77dba7d08de1f04783c1a8eb670
6
+ metadata.gz: 35e2a536c42dcfe156e1079c89acc544ecb74edb7773d7fbc7f248192cd4dc0fa33bc87ff87c8a52e3122401aed200489d5942e488ce94ba964fa4a4a88ba93f
7
+ data.tar.gz: ae4fb26d819121538f077402f90c0220486f2f13bf6c0edff75e1e23a90bceca681575a4373c2b9a749434cebf6866ce96392daed16a8042022bd8e0cc97f585
@@ -208,6 +208,21 @@ module Google
208
208
  #
209
209
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
210
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
+ #
211
226
  def delete_posix_account request, options = nil
212
227
  raise ::ArgumentError, "request must be provided" if request.nil?
213
228
 
@@ -225,9 +240,11 @@ module Google
225
240
  gapic_version: ::Google::Cloud::OsLogin::V1::VERSION
226
241
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
227
242
 
228
- header_params = {
229
- "name" => request.name
230
- }
243
+ header_params = {}
244
+ if request.name
245
+ header_params["name"] = request.name
246
+ end
247
+
231
248
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
232
249
  metadata[:"x-goog-request-params"] ||= request_params_header
233
250
 
@@ -278,6 +295,21 @@ module Google
278
295
  #
279
296
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
280
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
+ #
281
313
  def delete_ssh_public_key request, options = nil
282
314
  raise ::ArgumentError, "request must be provided" if request.nil?
283
315
 
@@ -295,9 +327,11 @@ module Google
295
327
  gapic_version: ::Google::Cloud::OsLogin::V1::VERSION
296
328
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
297
329
 
298
- header_params = {
299
- "name" => request.name
300
- }
330
+ header_params = {}
331
+ if request.name
332
+ header_params["name"] = request.name
333
+ end
334
+
301
335
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
302
336
  metadata[:"x-goog-request-params"] ||= request_params_header
303
337
 
@@ -351,6 +385,21 @@ module Google
351
385
  #
352
386
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
353
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
+ #
354
403
  def get_login_profile request, options = nil
355
404
  raise ::ArgumentError, "request must be provided" if request.nil?
356
405
 
@@ -368,9 +417,11 @@ module Google
368
417
  gapic_version: ::Google::Cloud::OsLogin::V1::VERSION
369
418
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
370
419
 
371
- header_params = {
372
- "name" => request.name
373
- }
420
+ header_params = {}
421
+ if request.name
422
+ header_params["name"] = request.name
423
+ end
424
+
374
425
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
375
426
  metadata[:"x-goog-request-params"] ||= request_params_header
376
427
 
@@ -421,6 +472,21 @@ module Google
421
472
  #
422
473
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
423
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
+ #
424
490
  def get_ssh_public_key request, options = nil
425
491
  raise ::ArgumentError, "request must be provided" if request.nil?
426
492
 
@@ -438,9 +504,11 @@ module Google
438
504
  gapic_version: ::Google::Cloud::OsLogin::V1::VERSION
439
505
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
440
506
 
441
- header_params = {
442
- "name" => request.name
443
- }
507
+ header_params = {}
508
+ if request.name
509
+ header_params["name"] = request.name
510
+ end
511
+
444
512
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
445
513
  metadata[:"x-goog-request-params"] ||= request_params_header
446
514
 
@@ -495,6 +563,21 @@ module Google
495
563
  #
496
564
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
497
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
+ #
498
581
  def import_ssh_public_key request, options = nil
499
582
  raise ::ArgumentError, "request must be provided" if request.nil?
500
583
 
@@ -512,9 +595,11 @@ module Google
512
595
  gapic_version: ::Google::Cloud::OsLogin::V1::VERSION
513
596
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
514
597
 
515
- header_params = {
516
- "parent" => request.parent
517
- }
598
+ header_params = {}
599
+ if request.parent
600
+ header_params["parent"] = request.parent
601
+ end
602
+
518
603
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
519
604
  metadata[:"x-goog-request-params"] ||= request_params_header
520
605
 
@@ -570,6 +655,21 @@ module Google
570
655
  #
571
656
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
572
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
+ #
573
673
  def update_ssh_public_key request, options = nil
574
674
  raise ::ArgumentError, "request must be provided" if request.nil?
575
675
 
@@ -587,9 +687,11 @@ module Google
587
687
  gapic_version: ::Google::Cloud::OsLogin::V1::VERSION
588
688
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
589
689
 
590
- header_params = {
591
- "name" => request.name
592
- }
690
+ header_params = {}
691
+ if request.name
692
+ header_params["name"] = request.name
693
+ end
694
+
593
695
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
594
696
  metadata[:"x-goog-request-params"] ||= request_params_header
595
697
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module OsLogin
23
23
  module V1
24
- VERSION = "0.4.3"
24
+ VERSION = "0.4.4"
25
25
  end
26
26
  end
27
27
  end
@@ -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
@@ -31,7 +31,7 @@ module Google
31
31
  # public keys for logging into virtual machines on Google Cloud Platform.
32
32
  class Service
33
33
 
34
- include GRPC::GenericService
34
+ include ::GRPC::GenericService
35
35
 
36
36
  self.marshal_class_method = :encode
37
37
  self.unmarshal_class_method = :decode
metadata CHANGED
@@ -1,14 +1,14 @@
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.3
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-08-11 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common