google-cloud-access_approval-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 +4 -4
- data/lib/google/cloud/access_approval/v1/access_approval/client.rb +146 -21
- data/lib/google/cloud/access_approval/v1/version.rb +1 -1
- data/lib/google/cloud/accessapproval/v1/accessapproval_pb.rb +2 -2
- data/lib/google/cloud/accessapproval/v1/accessapproval_services_pb.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aaceebb716cb57bffd24524976b59ed3fd126ae6f893d61a457c3f3ae0edbdd1
|
4
|
+
data.tar.gz: ba9452d416c5a5aaac34330d523035f8de0989075b99b00e5b691d875b18de88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98643b03ca09b2ef679d4b11cd2e87a9e6711cedfd25aa3eba910a3f85b56d033344d21ec429af252241f7a090dc55cb5b248eb7eb6c2998744dc41d2ecc8dc2
|
7
|
+
data.tar.gz: d1135cf4bf0e24d7f8f666f0e9ea0edaac706e802042b504c5165c140939eeb64923846a323c07f160863e367e74895d62aa7d5ea59ff65ea731e339cf012c0d
|
@@ -242,6 +242,27 @@ module Google
|
|
242
242
|
#
|
243
243
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
244
244
|
#
|
245
|
+
# @example Basic example
|
246
|
+
# require "google/cloud/access_approval/v1"
|
247
|
+
#
|
248
|
+
# # Create a client object. The client can be reused for multiple calls.
|
249
|
+
# client = Google::Cloud::AccessApproval::V1::AccessApproval::Client.new
|
250
|
+
#
|
251
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
252
|
+
# request = Google::Cloud::AccessApproval::V1::ListApprovalRequestsMessage.new
|
253
|
+
#
|
254
|
+
# # Call the list_approval_requests method.
|
255
|
+
# result = client.list_approval_requests request
|
256
|
+
#
|
257
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
258
|
+
# # iterate over all elements by calling #each, and the enumerable
|
259
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
260
|
+
# # methods are also available for managing paging directly.
|
261
|
+
# result.each do |response|
|
262
|
+
# # Each element is of type ::Google::Cloud::AccessApproval::V1::ApprovalRequest.
|
263
|
+
# p response
|
264
|
+
# end
|
265
|
+
#
|
245
266
|
def list_approval_requests request, options = nil
|
246
267
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
247
268
|
|
@@ -259,9 +280,11 @@ module Google
|
|
259
280
|
gapic_version: ::Google::Cloud::AccessApproval::V1::VERSION
|
260
281
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
261
282
|
|
262
|
-
header_params = {
|
263
|
-
|
264
|
-
|
283
|
+
header_params = {}
|
284
|
+
if request.parent
|
285
|
+
header_params["parent"] = request.parent
|
286
|
+
end
|
287
|
+
|
265
288
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
266
289
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
267
290
|
|
@@ -311,6 +334,21 @@ module Google
|
|
311
334
|
#
|
312
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
313
336
|
#
|
337
|
+
# @example Basic example
|
338
|
+
# require "google/cloud/access_approval/v1"
|
339
|
+
#
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
341
|
+
# client = Google::Cloud::AccessApproval::V1::AccessApproval::Client.new
|
342
|
+
#
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
344
|
+
# request = Google::Cloud::AccessApproval::V1::GetApprovalRequestMessage.new
|
345
|
+
#
|
346
|
+
# # Call the get_approval_request method.
|
347
|
+
# result = client.get_approval_request request
|
348
|
+
#
|
349
|
+
# # The returned object is of type Google::Cloud::AccessApproval::V1::ApprovalRequest.
|
350
|
+
# p result
|
351
|
+
#
|
314
352
|
def get_approval_request request, options = nil
|
315
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
316
354
|
|
@@ -328,9 +366,11 @@ module Google
|
|
328
366
|
gapic_version: ::Google::Cloud::AccessApproval::V1::VERSION
|
329
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
330
368
|
|
331
|
-
header_params = {
|
332
|
-
|
333
|
-
|
369
|
+
header_params = {}
|
370
|
+
if request.name
|
371
|
+
header_params["name"] = request.name
|
372
|
+
end
|
373
|
+
|
334
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
335
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
336
376
|
|
@@ -384,6 +424,21 @@ module Google
|
|
384
424
|
#
|
385
425
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
386
426
|
#
|
427
|
+
# @example Basic example
|
428
|
+
# require "google/cloud/access_approval/v1"
|
429
|
+
#
|
430
|
+
# # Create a client object. The client can be reused for multiple calls.
|
431
|
+
# client = Google::Cloud::AccessApproval::V1::AccessApproval::Client.new
|
432
|
+
#
|
433
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
434
|
+
# request = Google::Cloud::AccessApproval::V1::ApproveApprovalRequestMessage.new
|
435
|
+
#
|
436
|
+
# # Call the approve_approval_request method.
|
437
|
+
# result = client.approve_approval_request request
|
438
|
+
#
|
439
|
+
# # The returned object is of type Google::Cloud::AccessApproval::V1::ApprovalRequest.
|
440
|
+
# p result
|
441
|
+
#
|
387
442
|
def approve_approval_request request, options = nil
|
388
443
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
389
444
|
|
@@ -401,9 +456,11 @@ module Google
|
|
401
456
|
gapic_version: ::Google::Cloud::AccessApproval::V1::VERSION
|
402
457
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
403
458
|
|
404
|
-
header_params = {
|
405
|
-
|
406
|
-
|
459
|
+
header_params = {}
|
460
|
+
if request.name
|
461
|
+
header_params["name"] = request.name
|
462
|
+
end
|
463
|
+
|
407
464
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
408
465
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
409
466
|
|
@@ -461,6 +518,21 @@ module Google
|
|
461
518
|
#
|
462
519
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
463
520
|
#
|
521
|
+
# @example Basic example
|
522
|
+
# require "google/cloud/access_approval/v1"
|
523
|
+
#
|
524
|
+
# # Create a client object. The client can be reused for multiple calls.
|
525
|
+
# client = Google::Cloud::AccessApproval::V1::AccessApproval::Client.new
|
526
|
+
#
|
527
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
528
|
+
# request = Google::Cloud::AccessApproval::V1::DismissApprovalRequestMessage.new
|
529
|
+
#
|
530
|
+
# # Call the dismiss_approval_request method.
|
531
|
+
# result = client.dismiss_approval_request request
|
532
|
+
#
|
533
|
+
# # The returned object is of type Google::Cloud::AccessApproval::V1::ApprovalRequest.
|
534
|
+
# p result
|
535
|
+
#
|
464
536
|
def dismiss_approval_request request, options = nil
|
465
537
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
466
538
|
|
@@ -478,9 +550,11 @@ module Google
|
|
478
550
|
gapic_version: ::Google::Cloud::AccessApproval::V1::VERSION
|
479
551
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
480
552
|
|
481
|
-
header_params = {
|
482
|
-
|
483
|
-
|
553
|
+
header_params = {}
|
554
|
+
if request.name
|
555
|
+
header_params["name"] = request.name
|
556
|
+
end
|
557
|
+
|
484
558
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
485
559
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
486
560
|
|
@@ -529,6 +603,21 @@ module Google
|
|
529
603
|
#
|
530
604
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
531
605
|
#
|
606
|
+
# @example Basic example
|
607
|
+
# require "google/cloud/access_approval/v1"
|
608
|
+
#
|
609
|
+
# # Create a client object. The client can be reused for multiple calls.
|
610
|
+
# client = Google::Cloud::AccessApproval::V1::AccessApproval::Client.new
|
611
|
+
#
|
612
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
613
|
+
# request = Google::Cloud::AccessApproval::V1::GetAccessApprovalSettingsMessage.new
|
614
|
+
#
|
615
|
+
# # Call the get_access_approval_settings method.
|
616
|
+
# result = client.get_access_approval_settings request
|
617
|
+
#
|
618
|
+
# # The returned object is of type Google::Cloud::AccessApproval::V1::AccessApprovalSettings.
|
619
|
+
# p result
|
620
|
+
#
|
532
621
|
def get_access_approval_settings request, options = nil
|
533
622
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
534
623
|
|
@@ -546,9 +635,11 @@ module Google
|
|
546
635
|
gapic_version: ::Google::Cloud::AccessApproval::V1::VERSION
|
547
636
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
548
637
|
|
549
|
-
header_params = {
|
550
|
-
|
551
|
-
|
638
|
+
header_params = {}
|
639
|
+
if request.name
|
640
|
+
header_params["name"] = request.name
|
641
|
+
end
|
642
|
+
|
552
643
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
553
644
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
554
645
|
|
@@ -609,6 +700,21 @@ module Google
|
|
609
700
|
#
|
610
701
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
611
702
|
#
|
703
|
+
# @example Basic example
|
704
|
+
# require "google/cloud/access_approval/v1"
|
705
|
+
#
|
706
|
+
# # Create a client object. The client can be reused for multiple calls.
|
707
|
+
# client = Google::Cloud::AccessApproval::V1::AccessApproval::Client.new
|
708
|
+
#
|
709
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
710
|
+
# request = Google::Cloud::AccessApproval::V1::UpdateAccessApprovalSettingsMessage.new
|
711
|
+
#
|
712
|
+
# # Call the update_access_approval_settings method.
|
713
|
+
# result = client.update_access_approval_settings request
|
714
|
+
#
|
715
|
+
# # The returned object is of type Google::Cloud::AccessApproval::V1::AccessApprovalSettings.
|
716
|
+
# p result
|
717
|
+
#
|
612
718
|
def update_access_approval_settings request, options = nil
|
613
719
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
614
720
|
|
@@ -626,9 +732,11 @@ module Google
|
|
626
732
|
gapic_version: ::Google::Cloud::AccessApproval::V1::VERSION
|
627
733
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
628
734
|
|
629
|
-
header_params = {
|
630
|
-
|
631
|
-
|
735
|
+
header_params = {}
|
736
|
+
if request.settings&.name
|
737
|
+
header_params["settings.name"] = request.settings.name
|
738
|
+
end
|
739
|
+
|
632
740
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
633
741
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
634
742
|
|
@@ -682,6 +790,21 @@ module Google
|
|
682
790
|
#
|
683
791
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
684
792
|
#
|
793
|
+
# @example Basic example
|
794
|
+
# require "google/cloud/access_approval/v1"
|
795
|
+
#
|
796
|
+
# # Create a client object. The client can be reused for multiple calls.
|
797
|
+
# client = Google::Cloud::AccessApproval::V1::AccessApproval::Client.new
|
798
|
+
#
|
799
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
800
|
+
# request = Google::Cloud::AccessApproval::V1::DeleteAccessApprovalSettingsMessage.new
|
801
|
+
#
|
802
|
+
# # Call the delete_access_approval_settings method.
|
803
|
+
# result = client.delete_access_approval_settings request
|
804
|
+
#
|
805
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
806
|
+
# p result
|
807
|
+
#
|
685
808
|
def delete_access_approval_settings request, options = nil
|
686
809
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
687
810
|
|
@@ -699,9 +822,11 @@ module Google
|
|
699
822
|
gapic_version: ::Google::Cloud::AccessApproval::V1::VERSION
|
700
823
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
701
824
|
|
702
|
-
header_params = {
|
703
|
-
|
704
|
-
|
825
|
+
header_params = {}
|
826
|
+
if request.name
|
827
|
+
header_params["name"] = request.name
|
828
|
+
end
|
829
|
+
|
705
830
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
706
831
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
707
832
|
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/accessapproval/v1/accessapproval.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'
|
9
7
|
require 'google/protobuf/empty_pb'
|
10
8
|
require 'google/protobuf/field_mask_pb'
|
11
9
|
require 'google/protobuf/timestamp_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/cloud/accessapproval/v1/accessapproval.proto", :syntax => :proto3) do
|
14
14
|
add_message "google.cloud.accessapproval.v1.AccessLocations" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-access_approval-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-08
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|