google-cloud-redis-cluster-v1 1.7.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/redis/cluster/v1/bindings_override.rb +1 -1
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/client.rb +1953 -339
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/credentials.rb +1 -1
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/operations.rb +1 -1
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/paths.rb +85 -1
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/rest/client.rb +1842 -333
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/rest/operations.rb +1 -1
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/rest/service_stub.rb +942 -23
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster/rest.rb +1 -1
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster.rb +1 -1
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster_pb.rb +32 -1
- data/lib/google/cloud/redis/cluster/v1/cloud_redis_cluster_services_pb.rb +52 -1
- data/lib/google/cloud/redis/cluster/v1/rest.rb +1 -1
- data/lib/google/cloud/redis/cluster/v1/version.rb +1 -1
- data/lib/google/cloud/redis/cluster/v1.rb +1 -1
- data/lib/google-cloud-redis-cluster-v1.rb +1 -1
- data/proto_docs/google/api/client.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +1 -1
- data/proto_docs/google/api/field_info.rb +1 -1
- data/proto_docs/google/api/launch_stage.rb +1 -1
- data/proto_docs/google/api/resource.rb +1 -1
- data/proto_docs/google/cloud/redis/cluster/v1/cloud_redis_cluster.rb +596 -1
- data/proto_docs/google/longrunning/operations.rb +1 -1
- data/proto_docs/google/protobuf/any.rb +1 -1
- data/proto_docs/google/protobuf/duration.rb +1 -1
- data/proto_docs/google/protobuf/empty.rb +1 -1
- data/proto_docs/google/protobuf/field_mask.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +8 -7
- data/proto_docs/google/rpc/status.rb +1 -1
- data/proto_docs/google/type/dayofweek.rb +1 -1
- data/proto_docs/google/type/timeofday.rb +1 -1
- metadata +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -90,14 +90,24 @@ module Google
|
|
|
90
90
|
|
|
91
91
|
default_config.rpcs.list_clusters.timeout = 600.0
|
|
92
92
|
|
|
93
|
+
default_config.rpcs.list_acl_policies.timeout = 600.0
|
|
94
|
+
|
|
93
95
|
default_config.rpcs.get_cluster.timeout = 600.0
|
|
94
96
|
|
|
97
|
+
default_config.rpcs.get_acl_policy.timeout = 600.0
|
|
98
|
+
|
|
95
99
|
default_config.rpcs.update_cluster.timeout = 600.0
|
|
96
100
|
|
|
101
|
+
default_config.rpcs.update_acl_policy.timeout = 600.0
|
|
102
|
+
|
|
97
103
|
default_config.rpcs.delete_cluster.timeout = 600.0
|
|
98
104
|
|
|
105
|
+
default_config.rpcs.delete_acl_policy.timeout = 600.0
|
|
106
|
+
|
|
99
107
|
default_config.rpcs.create_cluster.timeout = 600.0
|
|
100
108
|
|
|
109
|
+
default_config.rpcs.create_acl_policy.timeout = 600.0
|
|
110
|
+
|
|
101
111
|
default_config.rpcs.get_cluster_certificate_authority.timeout = 600.0
|
|
102
112
|
|
|
103
113
|
default_config.rpcs.reschedule_cluster_maintenance.timeout = 600.0
|
|
@@ -355,6 +365,113 @@ module Google
|
|
|
355
365
|
raise ::Google::Cloud::Error.from_error(e)
|
|
356
366
|
end
|
|
357
367
|
|
|
368
|
+
##
|
|
369
|
+
# Lists all ACL policies owned by a project in either the specified
|
|
370
|
+
# location (region) or all locations.
|
|
371
|
+
#
|
|
372
|
+
# The location should have the following format:
|
|
373
|
+
#
|
|
374
|
+
# * `projects/{project_id}/locations/{location_id}`
|
|
375
|
+
#
|
|
376
|
+
# If `location_id` is specified as `-` (wildcard), then all regions
|
|
377
|
+
# available to the project are queried, and the results are aggregated.
|
|
378
|
+
#
|
|
379
|
+
# @overload list_acl_policies(request, options = nil)
|
|
380
|
+
# Pass arguments to `list_acl_policies` via a request object, either of type
|
|
381
|
+
# {::Google::Cloud::Redis::Cluster::V1::ListAclPoliciesRequest} or an equivalent Hash.
|
|
382
|
+
#
|
|
383
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::ListAclPoliciesRequest, ::Hash]
|
|
384
|
+
# A request object representing the call parameters. Required. To specify no
|
|
385
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
386
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
387
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
388
|
+
#
|
|
389
|
+
# @overload list_acl_policies(parent: nil, page_size: nil, page_token: nil)
|
|
390
|
+
# Pass arguments to `list_acl_policies` via keyword arguments. Note that at
|
|
391
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
392
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
393
|
+
#
|
|
394
|
+
# @param parent [::String]
|
|
395
|
+
# Required. The resource name of the ACL policy location using the form:
|
|
396
|
+
# `projects/{project_id}/locations/{location_id}`
|
|
397
|
+
# where `location_id` refers to a Google Cloud region.
|
|
398
|
+
# @param page_size [::Integer]
|
|
399
|
+
# Optional. The maximum number of items to return.
|
|
400
|
+
#
|
|
401
|
+
# If not specified, a default value of 1000 will be used by the service.
|
|
402
|
+
# Regardless of the page_size value, the response may include a partial list
|
|
403
|
+
# and a caller should only rely on response's
|
|
404
|
+
# {::Google::Cloud::Redis::Cluster::V1::ListAclPoliciesResponse#next_page_token `next_page_token`}
|
|
405
|
+
# to determine if there are more ACL policies left to be queried.
|
|
406
|
+
#
|
|
407
|
+
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
408
|
+
# @param page_token [::String]
|
|
409
|
+
# Optional. The `next_page_token` value returned from a previous
|
|
410
|
+
# `ListAclPolicies` request, if any.
|
|
411
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
412
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Redis::Cluster::V1::AclPolicy>]
|
|
413
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
414
|
+
#
|
|
415
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Redis::Cluster::V1::AclPolicy>]
|
|
416
|
+
#
|
|
417
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
418
|
+
#
|
|
419
|
+
# @example Basic example
|
|
420
|
+
# require "google/cloud/redis/cluster/v1"
|
|
421
|
+
#
|
|
422
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
423
|
+
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
424
|
+
#
|
|
425
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
426
|
+
# request = Google::Cloud::Redis::Cluster::V1::ListAclPoliciesRequest.new
|
|
427
|
+
#
|
|
428
|
+
# # Call the list_acl_policies method.
|
|
429
|
+
# result = client.list_acl_policies request
|
|
430
|
+
#
|
|
431
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
432
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
433
|
+
# result.each do |item|
|
|
434
|
+
# # Each element is of type ::Google::Cloud::Redis::Cluster::V1::AclPolicy.
|
|
435
|
+
# p item
|
|
436
|
+
# end
|
|
437
|
+
#
|
|
438
|
+
def list_acl_policies request, options = nil
|
|
439
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
440
|
+
|
|
441
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::ListAclPoliciesRequest
|
|
442
|
+
|
|
443
|
+
# Converts hash and nil to an options object
|
|
444
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
445
|
+
|
|
446
|
+
# Customize the options with defaults
|
|
447
|
+
call_metadata = @config.rpcs.list_acl_policies.metadata.to_h
|
|
448
|
+
|
|
449
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
450
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
451
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
452
|
+
gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
|
|
453
|
+
transports_version_send: [:rest]
|
|
454
|
+
|
|
455
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
456
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
457
|
+
|
|
458
|
+
options.apply_defaults timeout: @config.rpcs.list_acl_policies.timeout,
|
|
459
|
+
metadata: call_metadata,
|
|
460
|
+
retry_policy: @config.rpcs.list_acl_policies.retry_policy
|
|
461
|
+
|
|
462
|
+
options.apply_defaults timeout: @config.timeout,
|
|
463
|
+
metadata: @config.metadata,
|
|
464
|
+
retry_policy: @config.retry_policy
|
|
465
|
+
|
|
466
|
+
@cloud_redis_cluster_stub.list_acl_policies request, options do |result, operation|
|
|
467
|
+
result = ::Gapic::Rest::PagedEnumerable.new @cloud_redis_cluster_stub, :list_acl_policies, "acl_policies", request, result, options
|
|
468
|
+
yield result, operation if block_given?
|
|
469
|
+
throw :response, result
|
|
470
|
+
end
|
|
471
|
+
rescue ::Gapic::Rest::Error => e
|
|
472
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
473
|
+
end
|
|
474
|
+
|
|
358
475
|
##
|
|
359
476
|
# Gets the details of a specific Redis cluster.
|
|
360
477
|
#
|
|
@@ -435,6 +552,86 @@ module Google
|
|
|
435
552
|
raise ::Google::Cloud::Error.from_error(e)
|
|
436
553
|
end
|
|
437
554
|
|
|
555
|
+
##
|
|
556
|
+
# Gets the details of a specific Redis Cluster ACL policy.
|
|
557
|
+
#
|
|
558
|
+
# @overload get_acl_policy(request, options = nil)
|
|
559
|
+
# Pass arguments to `get_acl_policy` via a request object, either of type
|
|
560
|
+
# {::Google::Cloud::Redis::Cluster::V1::GetAclPolicyRequest} or an equivalent Hash.
|
|
561
|
+
#
|
|
562
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::GetAclPolicyRequest, ::Hash]
|
|
563
|
+
# A request object representing the call parameters. Required. To specify no
|
|
564
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
565
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
566
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
567
|
+
#
|
|
568
|
+
# @overload get_acl_policy(name: nil)
|
|
569
|
+
# Pass arguments to `get_acl_policy` via keyword arguments. Note that at
|
|
570
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
571
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
572
|
+
#
|
|
573
|
+
# @param name [::String]
|
|
574
|
+
# Required. Redis ACL policy resource name using the form:
|
|
575
|
+
# `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
|
|
576
|
+
# where `location_id` refers to a Google Cloud region.
|
|
577
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
578
|
+
# @yieldparam result [::Google::Cloud::Redis::Cluster::V1::AclPolicy]
|
|
579
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
580
|
+
#
|
|
581
|
+
# @return [::Google::Cloud::Redis::Cluster::V1::AclPolicy]
|
|
582
|
+
#
|
|
583
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
584
|
+
#
|
|
585
|
+
# @example Basic example
|
|
586
|
+
# require "google/cloud/redis/cluster/v1"
|
|
587
|
+
#
|
|
588
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
589
|
+
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
590
|
+
#
|
|
591
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
592
|
+
# request = Google::Cloud::Redis::Cluster::V1::GetAclPolicyRequest.new
|
|
593
|
+
#
|
|
594
|
+
# # Call the get_acl_policy method.
|
|
595
|
+
# result = client.get_acl_policy request
|
|
596
|
+
#
|
|
597
|
+
# # The returned object is of type Google::Cloud::Redis::Cluster::V1::AclPolicy.
|
|
598
|
+
# p result
|
|
599
|
+
#
|
|
600
|
+
def get_acl_policy request, options = nil
|
|
601
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
602
|
+
|
|
603
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::GetAclPolicyRequest
|
|
604
|
+
|
|
605
|
+
# Converts hash and nil to an options object
|
|
606
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
607
|
+
|
|
608
|
+
# Customize the options with defaults
|
|
609
|
+
call_metadata = @config.rpcs.get_acl_policy.metadata.to_h
|
|
610
|
+
|
|
611
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
612
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
613
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
614
|
+
gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
|
|
615
|
+
transports_version_send: [:rest]
|
|
616
|
+
|
|
617
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
618
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
619
|
+
|
|
620
|
+
options.apply_defaults timeout: @config.rpcs.get_acl_policy.timeout,
|
|
621
|
+
metadata: call_metadata,
|
|
622
|
+
retry_policy: @config.rpcs.get_acl_policy.retry_policy
|
|
623
|
+
|
|
624
|
+
options.apply_defaults timeout: @config.timeout,
|
|
625
|
+
metadata: @config.metadata,
|
|
626
|
+
retry_policy: @config.retry_policy
|
|
627
|
+
|
|
628
|
+
@cloud_redis_cluster_stub.get_acl_policy request, options do |result, operation|
|
|
629
|
+
yield result, operation if block_given?
|
|
630
|
+
end
|
|
631
|
+
rescue ::Gapic::Rest::Error => e
|
|
632
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
633
|
+
end
|
|
634
|
+
|
|
438
635
|
##
|
|
439
636
|
# Updates the metadata and configuration of a specific Redis cluster.
|
|
440
637
|
#
|
|
@@ -537,30 +734,42 @@ module Google
|
|
|
537
734
|
end
|
|
538
735
|
|
|
539
736
|
##
|
|
540
|
-
#
|
|
541
|
-
# deleted.
|
|
737
|
+
# Updates the ACL policy.
|
|
542
738
|
#
|
|
543
|
-
#
|
|
544
|
-
#
|
|
545
|
-
#
|
|
739
|
+
# The operation applies the updated ACL policy to all of the linked clusters.
|
|
740
|
+
# If Memorystore can apply the policy to all clusters, then the operation
|
|
741
|
+
# returns a SUCCESS status. If Memorystore can't apply the policy to all
|
|
742
|
+
# clusters, then to ensure eventual consistency, Memorystore uses
|
|
743
|
+
# reconciliation to apply the policy to the failed clusters.
|
|
546
744
|
#
|
|
547
|
-
#
|
|
745
|
+
# Completed longrunning.Operation will contain the new ACL policy object in
|
|
746
|
+
# the response field.
|
|
747
|
+
#
|
|
748
|
+
# @overload update_acl_policy(request, options = nil)
|
|
749
|
+
# Pass arguments to `update_acl_policy` via a request object, either of type
|
|
750
|
+
# {::Google::Cloud::Redis::Cluster::V1::UpdateAclPolicyRequest} or an equivalent Hash.
|
|
751
|
+
#
|
|
752
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::UpdateAclPolicyRequest, ::Hash]
|
|
548
753
|
# A request object representing the call parameters. Required. To specify no
|
|
549
754
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
550
755
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
551
756
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
552
757
|
#
|
|
553
|
-
# @overload
|
|
554
|
-
# Pass arguments to `
|
|
758
|
+
# @overload update_acl_policy(acl_policy: nil, update_mask: nil, request_id: nil)
|
|
759
|
+
# Pass arguments to `update_acl_policy` via keyword arguments. Note that at
|
|
555
760
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
556
761
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
557
762
|
#
|
|
558
|
-
# @param
|
|
559
|
-
# Required.
|
|
560
|
-
#
|
|
561
|
-
#
|
|
763
|
+
# @param acl_policy [::Google::Cloud::Redis::Cluster::V1::AclPolicy, ::Hash]
|
|
764
|
+
# Required. The ACL policy to be updated.
|
|
765
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
766
|
+
# Optional. Mask of fields to be updated. At least one path must be supplied
|
|
767
|
+
# in this field. The elements of the repeated paths field may only include
|
|
768
|
+
# these fields from `AclPolicy`:
|
|
769
|
+
#
|
|
770
|
+
# * `rules`
|
|
562
771
|
# @param request_id [::String]
|
|
563
|
-
# Idempotent request UUID.
|
|
772
|
+
# Optional. Idempotent request UUID.
|
|
564
773
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
565
774
|
# @yieldparam result [::Gapic::Operation]
|
|
566
775
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -576,10 +785,10 @@ module Google
|
|
|
576
785
|
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
577
786
|
#
|
|
578
787
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
579
|
-
# request = Google::Cloud::Redis::Cluster::V1::
|
|
788
|
+
# request = Google::Cloud::Redis::Cluster::V1::UpdateAclPolicyRequest.new
|
|
580
789
|
#
|
|
581
|
-
# # Call the
|
|
582
|
-
# result = client.
|
|
790
|
+
# # Call the update_acl_policy method.
|
|
791
|
+
# result = client.update_acl_policy request
|
|
583
792
|
#
|
|
584
793
|
# # The returned object is of type Gapic::Operation. You can use it to
|
|
585
794
|
# # check the status of an operation, cancel it, or wait for results.
|
|
@@ -591,16 +800,16 @@ module Google
|
|
|
591
800
|
# puts "No response received."
|
|
592
801
|
# end
|
|
593
802
|
#
|
|
594
|
-
def
|
|
803
|
+
def update_acl_policy request, options = nil
|
|
595
804
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
596
805
|
|
|
597
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::
|
|
806
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::UpdateAclPolicyRequest
|
|
598
807
|
|
|
599
808
|
# Converts hash and nil to an options object
|
|
600
809
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
601
810
|
|
|
602
811
|
# Customize the options with defaults
|
|
603
|
-
call_metadata = @config.rpcs.
|
|
812
|
+
call_metadata = @config.rpcs.update_acl_policy.metadata.to_h
|
|
604
813
|
|
|
605
814
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
606
815
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -611,15 +820,15 @@ module Google
|
|
|
611
820
|
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
612
821
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
613
822
|
|
|
614
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
823
|
+
options.apply_defaults timeout: @config.rpcs.update_acl_policy.timeout,
|
|
615
824
|
metadata: call_metadata,
|
|
616
|
-
retry_policy: @config.rpcs.
|
|
825
|
+
retry_policy: @config.rpcs.update_acl_policy.retry_policy
|
|
617
826
|
|
|
618
827
|
options.apply_defaults timeout: @config.timeout,
|
|
619
828
|
metadata: @config.metadata,
|
|
620
829
|
retry_policy: @config.retry_policy
|
|
621
830
|
|
|
622
|
-
@cloud_redis_cluster_stub.
|
|
831
|
+
@cloud_redis_cluster_stub.update_acl_policy request, options do |result, operation|
|
|
623
832
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
624
833
|
yield result, operation if block_given?
|
|
625
834
|
throw :response, result
|
|
@@ -629,45 +838,28 @@ module Google
|
|
|
629
838
|
end
|
|
630
839
|
|
|
631
840
|
##
|
|
632
|
-
#
|
|
633
|
-
#
|
|
634
|
-
# operation to track its progress. Once the operation is completed the Redis
|
|
635
|
-
# cluster will be fully functional. The completed longrunning.Operation will
|
|
636
|
-
# contain the new cluster object in the response field.
|
|
637
|
-
#
|
|
638
|
-
# The returned operation is automatically deleted after a few hours, so there
|
|
639
|
-
# is no need to call DeleteOperation.
|
|
841
|
+
# Deletes a specific Redis cluster. Cluster stops serving and data is
|
|
842
|
+
# deleted.
|
|
640
843
|
#
|
|
641
|
-
# @overload
|
|
642
|
-
# Pass arguments to `
|
|
643
|
-
# {::Google::Cloud::Redis::Cluster::V1::
|
|
844
|
+
# @overload delete_cluster(request, options = nil)
|
|
845
|
+
# Pass arguments to `delete_cluster` via a request object, either of type
|
|
846
|
+
# {::Google::Cloud::Redis::Cluster::V1::DeleteClusterRequest} or an equivalent Hash.
|
|
644
847
|
#
|
|
645
|
-
# @param request [::Google::Cloud::Redis::Cluster::V1::
|
|
848
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::DeleteClusterRequest, ::Hash]
|
|
646
849
|
# A request object representing the call parameters. Required. To specify no
|
|
647
850
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
648
851
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
649
852
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
650
853
|
#
|
|
651
|
-
# @overload
|
|
652
|
-
# Pass arguments to `
|
|
854
|
+
# @overload delete_cluster(name: nil, request_id: nil)
|
|
855
|
+
# Pass arguments to `delete_cluster` via keyword arguments. Note that at
|
|
653
856
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
654
857
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
655
858
|
#
|
|
656
|
-
# @param
|
|
657
|
-
# Required.
|
|
658
|
-
# `projects/{project_id}/locations/{location_id}`
|
|
859
|
+
# @param name [::String]
|
|
860
|
+
# Required. Redis cluster resource name using the form:
|
|
861
|
+
# `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
|
|
659
862
|
# where `location_id` refers to a GCP region.
|
|
660
|
-
# @param cluster_id [::String]
|
|
661
|
-
# Required. The logical name of the Redis cluster in the customer project
|
|
662
|
-
# with the following restrictions:
|
|
663
|
-
#
|
|
664
|
-
# * Must contain only lowercase letters, numbers, and hyphens.
|
|
665
|
-
# * Must start with a letter.
|
|
666
|
-
# * Must be between 1-63 characters.
|
|
667
|
-
# * Must end with a number or a letter.
|
|
668
|
-
# * Must be unique within the customer project / location
|
|
669
|
-
# @param cluster [::Google::Cloud::Redis::Cluster::V1::Cluster, ::Hash]
|
|
670
|
-
# Required. The cluster that is to be created.
|
|
671
863
|
# @param request_id [::String]
|
|
672
864
|
# Idempotent request UUID.
|
|
673
865
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -685,10 +877,10 @@ module Google
|
|
|
685
877
|
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
686
878
|
#
|
|
687
879
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
688
|
-
# request = Google::Cloud::Redis::Cluster::V1::
|
|
880
|
+
# request = Google::Cloud::Redis::Cluster::V1::DeleteClusterRequest.new
|
|
689
881
|
#
|
|
690
|
-
# # Call the
|
|
691
|
-
# result = client.
|
|
882
|
+
# # Call the delete_cluster method.
|
|
883
|
+
# result = client.delete_cluster request
|
|
692
884
|
#
|
|
693
885
|
# # The returned object is of type Gapic::Operation. You can use it to
|
|
694
886
|
# # check the status of an operation, cancel it, or wait for results.
|
|
@@ -700,16 +892,16 @@ module Google
|
|
|
700
892
|
# puts "No response received."
|
|
701
893
|
# end
|
|
702
894
|
#
|
|
703
|
-
def
|
|
895
|
+
def delete_cluster request, options = nil
|
|
704
896
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
705
897
|
|
|
706
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::
|
|
898
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::DeleteClusterRequest
|
|
707
899
|
|
|
708
900
|
# Converts hash and nil to an options object
|
|
709
901
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
710
902
|
|
|
711
903
|
# Customize the options with defaults
|
|
712
|
-
call_metadata = @config.rpcs.
|
|
904
|
+
call_metadata = @config.rpcs.delete_cluster.metadata.to_h
|
|
713
905
|
|
|
714
906
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
715
907
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -720,15 +912,15 @@ module Google
|
|
|
720
912
|
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
721
913
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
722
914
|
|
|
723
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
915
|
+
options.apply_defaults timeout: @config.rpcs.delete_cluster.timeout,
|
|
724
916
|
metadata: call_metadata,
|
|
725
|
-
retry_policy: @config.rpcs.
|
|
917
|
+
retry_policy: @config.rpcs.delete_cluster.retry_policy
|
|
726
918
|
|
|
727
919
|
options.apply_defaults timeout: @config.timeout,
|
|
728
920
|
metadata: @config.metadata,
|
|
729
921
|
retry_policy: @config.retry_policy
|
|
730
922
|
|
|
731
|
-
@cloud_redis_cluster_stub.
|
|
923
|
+
@cloud_redis_cluster_stub.delete_cluster request, options do |result, operation|
|
|
732
924
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
733
925
|
yield result, operation if block_given?
|
|
734
926
|
throw :response, result
|
|
@@ -738,32 +930,39 @@ module Google
|
|
|
738
930
|
end
|
|
739
931
|
|
|
740
932
|
##
|
|
741
|
-
#
|
|
933
|
+
# Deletes a specific ACL policy. This action will delete the ACL policy and
|
|
934
|
+
# all the rules associated with it. An ACL policy cannot be deleted if it is
|
|
935
|
+
# attached to a cluster.
|
|
742
936
|
#
|
|
743
|
-
# @overload
|
|
744
|
-
# Pass arguments to `
|
|
745
|
-
# {::Google::Cloud::Redis::Cluster::V1::
|
|
937
|
+
# @overload delete_acl_policy(request, options = nil)
|
|
938
|
+
# Pass arguments to `delete_acl_policy` via a request object, either of type
|
|
939
|
+
# {::Google::Cloud::Redis::Cluster::V1::DeleteAclPolicyRequest} or an equivalent Hash.
|
|
746
940
|
#
|
|
747
|
-
# @param request [::Google::Cloud::Redis::Cluster::V1::
|
|
941
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::DeleteAclPolicyRequest, ::Hash]
|
|
748
942
|
# A request object representing the call parameters. Required. To specify no
|
|
749
943
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
750
944
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
751
945
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
752
946
|
#
|
|
753
|
-
# @overload
|
|
754
|
-
# Pass arguments to `
|
|
947
|
+
# @overload delete_acl_policy(name: nil, request_id: nil, etag: nil)
|
|
948
|
+
# Pass arguments to `delete_acl_policy` via keyword arguments. Note that at
|
|
755
949
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
756
950
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
757
951
|
#
|
|
758
952
|
# @param name [::String]
|
|
759
|
-
# Required. Redis
|
|
760
|
-
# `projects/{project_id}/locations/{location_id}/
|
|
761
|
-
# where `location_id` refers to a
|
|
953
|
+
# Required. Redis ACL policy resource name using the form:
|
|
954
|
+
# `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}`
|
|
955
|
+
# where `location_id` refers to a Google Cloud region.
|
|
956
|
+
# @param request_id [::String]
|
|
957
|
+
# Optional. Idempotent request UUID.
|
|
958
|
+
# @param etag [::String]
|
|
959
|
+
# Optional. Etag of the ACL policy. If this is different from the server's
|
|
960
|
+
# etag, the request will fail with an ABORTED error.
|
|
762
961
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
763
|
-
# @yieldparam result [::
|
|
962
|
+
# @yieldparam result [::Gapic::Operation]
|
|
764
963
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
765
964
|
#
|
|
766
|
-
# @return [::
|
|
965
|
+
# @return [::Gapic::Operation]
|
|
767
966
|
#
|
|
768
967
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
769
968
|
#
|
|
@@ -774,24 +973,1111 @@ module Google
|
|
|
774
973
|
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
775
974
|
#
|
|
776
975
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
777
|
-
# request = Google::Cloud::Redis::Cluster::V1::
|
|
976
|
+
# request = Google::Cloud::Redis::Cluster::V1::DeleteAclPolicyRequest.new
|
|
778
977
|
#
|
|
779
|
-
# # Call the
|
|
780
|
-
# result = client.
|
|
781
|
-
#
|
|
782
|
-
# # The returned object is of type Google::Cloud::Redis::Cluster::V1::CertificateAuthority.
|
|
783
|
-
# p result
|
|
978
|
+
# # Call the delete_acl_policy method.
|
|
979
|
+
# result = client.delete_acl_policy request
|
|
784
980
|
#
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
981
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
982
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
983
|
+
# # Here is how to wait for a response.
|
|
984
|
+
# result.wait_until_done! timeout: 60
|
|
985
|
+
# if result.response?
|
|
986
|
+
# p result.response
|
|
987
|
+
# else
|
|
988
|
+
# puts "No response received."
|
|
989
|
+
# end
|
|
990
|
+
#
|
|
991
|
+
def delete_acl_policy request, options = nil
|
|
992
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
993
|
+
|
|
994
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::DeleteAclPolicyRequest
|
|
995
|
+
|
|
996
|
+
# Converts hash and nil to an options object
|
|
997
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
998
|
+
|
|
999
|
+
# Customize the options with defaults
|
|
1000
|
+
call_metadata = @config.rpcs.delete_acl_policy.metadata.to_h
|
|
1001
|
+
|
|
1002
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1003
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1004
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1005
|
+
gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
|
|
1006
|
+
transports_version_send: [:rest]
|
|
1007
|
+
|
|
1008
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1009
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1010
|
+
|
|
1011
|
+
options.apply_defaults timeout: @config.rpcs.delete_acl_policy.timeout,
|
|
1012
|
+
metadata: call_metadata,
|
|
1013
|
+
retry_policy: @config.rpcs.delete_acl_policy.retry_policy
|
|
1014
|
+
|
|
1015
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1016
|
+
metadata: @config.metadata,
|
|
1017
|
+
retry_policy: @config.retry_policy
|
|
1018
|
+
|
|
1019
|
+
@cloud_redis_cluster_stub.delete_acl_policy request, options do |result, operation|
|
|
1020
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1021
|
+
yield result, operation if block_given?
|
|
1022
|
+
throw :response, result
|
|
1023
|
+
end
|
|
1024
|
+
rescue ::Gapic::Rest::Error => e
|
|
1025
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1026
|
+
end
|
|
1027
|
+
|
|
1028
|
+
##
|
|
1029
|
+
# Gets details of a specific ACL policy revision.
|
|
1030
|
+
#
|
|
1031
|
+
# @overload get_acl_policy_revision(request, options = nil)
|
|
1032
|
+
# Pass arguments to `get_acl_policy_revision` via a request object, either of type
|
|
1033
|
+
# {::Google::Cloud::Redis::Cluster::V1::GetAclPolicyRevisionRequest} or an equivalent Hash.
|
|
1034
|
+
#
|
|
1035
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::GetAclPolicyRevisionRequest, ::Hash]
|
|
1036
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1037
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1038
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1039
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1040
|
+
#
|
|
1041
|
+
# @overload get_acl_policy_revision(name: nil)
|
|
1042
|
+
# Pass arguments to `get_acl_policy_revision` via keyword arguments. Note that at
|
|
1043
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1044
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1045
|
+
#
|
|
1046
|
+
# @param name [::String]
|
|
1047
|
+
# Required. Redis ACL policy revision resource name using the form:
|
|
1048
|
+
# `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}`
|
|
1049
|
+
# where `location_id` refers to a Google Cloud region.
|
|
1050
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1051
|
+
# @yieldparam result [::Google::Cloud::Redis::Cluster::V1::AclPolicyRevision]
|
|
1052
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1053
|
+
#
|
|
1054
|
+
# @return [::Google::Cloud::Redis::Cluster::V1::AclPolicyRevision]
|
|
1055
|
+
#
|
|
1056
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1057
|
+
#
|
|
1058
|
+
# @example Basic example
|
|
1059
|
+
# require "google/cloud/redis/cluster/v1"
|
|
1060
|
+
#
|
|
1061
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1062
|
+
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
1063
|
+
#
|
|
1064
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1065
|
+
# request = Google::Cloud::Redis::Cluster::V1::GetAclPolicyRevisionRequest.new
|
|
1066
|
+
#
|
|
1067
|
+
# # Call the get_acl_policy_revision method.
|
|
1068
|
+
# result = client.get_acl_policy_revision request
|
|
1069
|
+
#
|
|
1070
|
+
# # The returned object is of type Google::Cloud::Redis::Cluster::V1::AclPolicyRevision.
|
|
1071
|
+
# p result
|
|
1072
|
+
#
|
|
1073
|
+
def get_acl_policy_revision request, options = nil
|
|
1074
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1075
|
+
|
|
1076
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::GetAclPolicyRevisionRequest
|
|
1077
|
+
|
|
1078
|
+
# Converts hash and nil to an options object
|
|
1079
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1080
|
+
|
|
1081
|
+
# Customize the options with defaults
|
|
1082
|
+
call_metadata = @config.rpcs.get_acl_policy_revision.metadata.to_h
|
|
1083
|
+
|
|
1084
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1085
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1086
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1087
|
+
gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
|
|
1088
|
+
transports_version_send: [:rest]
|
|
1089
|
+
|
|
1090
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1091
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1092
|
+
|
|
1093
|
+
options.apply_defaults timeout: @config.rpcs.get_acl_policy_revision.timeout,
|
|
1094
|
+
metadata: call_metadata,
|
|
1095
|
+
retry_policy: @config.rpcs.get_acl_policy_revision.retry_policy
|
|
1096
|
+
|
|
1097
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1098
|
+
metadata: @config.metadata,
|
|
1099
|
+
retry_policy: @config.retry_policy
|
|
1100
|
+
|
|
1101
|
+
@cloud_redis_cluster_stub.get_acl_policy_revision request, options do |result, operation|
|
|
1102
|
+
yield result, operation if block_given?
|
|
1103
|
+
end
|
|
1104
|
+
rescue ::Gapic::Rest::Error => e
|
|
1105
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1106
|
+
end
|
|
1107
|
+
|
|
1108
|
+
##
|
|
1109
|
+
# Lists all ACL policy revisions in a given ACL policy.
|
|
1110
|
+
#
|
|
1111
|
+
# @overload list_acl_policy_revisions(request, options = nil)
|
|
1112
|
+
# Pass arguments to `list_acl_policy_revisions` via a request object, either of type
|
|
1113
|
+
# {::Google::Cloud::Redis::Cluster::V1::ListAclPolicyRevisionsRequest} or an equivalent Hash.
|
|
1114
|
+
#
|
|
1115
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::ListAclPolicyRevisionsRequest, ::Hash]
|
|
1116
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1117
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1118
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1119
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1120
|
+
#
|
|
1121
|
+
# @overload list_acl_policy_revisions(parent: nil, page_size: nil, page_token: nil)
|
|
1122
|
+
# Pass arguments to `list_acl_policy_revisions` via keyword arguments. Note that at
|
|
1123
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1124
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1125
|
+
#
|
|
1126
|
+
# @param parent [::String]
|
|
1127
|
+
# Required. The name of the ACL policy to list revisions for.
|
|
1128
|
+
# Format:
|
|
1129
|
+
# "projects/\\{project_id}/locations/\\{location_id}/aclPolicies/\\{acl_policy_id}"
|
|
1130
|
+
# @param page_size [::Integer]
|
|
1131
|
+
# Optional. The maximum number of items to return.
|
|
1132
|
+
# @param page_token [::String]
|
|
1133
|
+
# Optional. The `next_page_token` value returned from a previous
|
|
1134
|
+
# `ListAclPolicyRevisions` request, if any.
|
|
1135
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1136
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Redis::Cluster::V1::AclPolicyRevision>]
|
|
1137
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1138
|
+
#
|
|
1139
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Redis::Cluster::V1::AclPolicyRevision>]
|
|
1140
|
+
#
|
|
1141
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1142
|
+
#
|
|
1143
|
+
# @example Basic example
|
|
1144
|
+
# require "google/cloud/redis/cluster/v1"
|
|
1145
|
+
#
|
|
1146
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1147
|
+
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
1148
|
+
#
|
|
1149
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1150
|
+
# request = Google::Cloud::Redis::Cluster::V1::ListAclPolicyRevisionsRequest.new
|
|
1151
|
+
#
|
|
1152
|
+
# # Call the list_acl_policy_revisions method.
|
|
1153
|
+
# result = client.list_acl_policy_revisions request
|
|
1154
|
+
#
|
|
1155
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
1156
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
1157
|
+
# result.each do |item|
|
|
1158
|
+
# # Each element is of type ::Google::Cloud::Redis::Cluster::V1::AclPolicyRevision.
|
|
1159
|
+
# p item
|
|
1160
|
+
# end
|
|
1161
|
+
#
|
|
1162
|
+
def list_acl_policy_revisions request, options = nil
|
|
1163
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1164
|
+
|
|
1165
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::ListAclPolicyRevisionsRequest
|
|
1166
|
+
|
|
1167
|
+
# Converts hash and nil to an options object
|
|
1168
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1169
|
+
|
|
1170
|
+
# Customize the options with defaults
|
|
1171
|
+
call_metadata = @config.rpcs.list_acl_policy_revisions.metadata.to_h
|
|
1172
|
+
|
|
1173
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1174
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1175
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1176
|
+
gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
|
|
1177
|
+
transports_version_send: [:rest]
|
|
1178
|
+
|
|
1179
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1180
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1181
|
+
|
|
1182
|
+
options.apply_defaults timeout: @config.rpcs.list_acl_policy_revisions.timeout,
|
|
1183
|
+
metadata: call_metadata,
|
|
1184
|
+
retry_policy: @config.rpcs.list_acl_policy_revisions.retry_policy
|
|
1185
|
+
|
|
1186
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1187
|
+
metadata: @config.metadata,
|
|
1188
|
+
retry_policy: @config.retry_policy
|
|
1189
|
+
|
|
1190
|
+
@cloud_redis_cluster_stub.list_acl_policy_revisions request, options do |result, operation|
|
|
1191
|
+
result = ::Gapic::Rest::PagedEnumerable.new @cloud_redis_cluster_stub, :list_acl_policy_revisions, "acl_policy_revisions", request, result, options
|
|
1192
|
+
yield result, operation if block_given?
|
|
1193
|
+
throw :response, result
|
|
1194
|
+
end
|
|
1195
|
+
rescue ::Gapic::Rest::Error => e
|
|
1196
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1197
|
+
end
|
|
1198
|
+
|
|
1199
|
+
##
|
|
1200
|
+
# Creates a Redis cluster based on the specified properties.
|
|
1201
|
+
# The creation is executed asynchronously and callers may check the returned
|
|
1202
|
+
# operation to track its progress. Once the operation is completed the Redis
|
|
1203
|
+
# cluster will be fully functional. The completed longrunning.Operation will
|
|
1204
|
+
# contain the new cluster object in the response field.
|
|
1205
|
+
#
|
|
1206
|
+
# The returned operation is automatically deleted after a few hours, so there
|
|
1207
|
+
# is no need to call DeleteOperation.
|
|
1208
|
+
#
|
|
1209
|
+
# @overload create_cluster(request, options = nil)
|
|
1210
|
+
# Pass arguments to `create_cluster` via a request object, either of type
|
|
1211
|
+
# {::Google::Cloud::Redis::Cluster::V1::CreateClusterRequest} or an equivalent Hash.
|
|
1212
|
+
#
|
|
1213
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::CreateClusterRequest, ::Hash]
|
|
1214
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1215
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1216
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1217
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1218
|
+
#
|
|
1219
|
+
# @overload create_cluster(parent: nil, cluster_id: nil, cluster: nil, request_id: nil)
|
|
1220
|
+
# Pass arguments to `create_cluster` via keyword arguments. Note that at
|
|
1221
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1222
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1223
|
+
#
|
|
1224
|
+
# @param parent [::String]
|
|
1225
|
+
# Required. The resource name of the cluster location using the form:
|
|
1226
|
+
# `projects/{project_id}/locations/{location_id}`
|
|
1227
|
+
# where `location_id` refers to a GCP region.
|
|
1228
|
+
# @param cluster_id [::String]
|
|
1229
|
+
# Required. The logical name of the Redis cluster in the customer project
|
|
1230
|
+
# with the following restrictions:
|
|
1231
|
+
#
|
|
1232
|
+
# * Must contain only lowercase letters, numbers, and hyphens.
|
|
1233
|
+
# * Must start with a letter.
|
|
1234
|
+
# * Must be between 1-63 characters.
|
|
1235
|
+
# * Must end with a number or a letter.
|
|
1236
|
+
# * Must be unique within the customer project / location
|
|
1237
|
+
# @param cluster [::Google::Cloud::Redis::Cluster::V1::Cluster, ::Hash]
|
|
1238
|
+
# Required. The cluster that is to be created.
|
|
1239
|
+
# @param request_id [::String]
|
|
1240
|
+
# Idempotent request UUID.
|
|
1241
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1242
|
+
# @yieldparam result [::Gapic::Operation]
|
|
1243
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1244
|
+
#
|
|
1245
|
+
# @return [::Gapic::Operation]
|
|
1246
|
+
#
|
|
1247
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1248
|
+
#
|
|
1249
|
+
# @example Basic example
|
|
1250
|
+
# require "google/cloud/redis/cluster/v1"
|
|
1251
|
+
#
|
|
1252
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1253
|
+
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
1254
|
+
#
|
|
1255
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1256
|
+
# request = Google::Cloud::Redis::Cluster::V1::CreateClusterRequest.new
|
|
1257
|
+
#
|
|
1258
|
+
# # Call the create_cluster method.
|
|
1259
|
+
# result = client.create_cluster request
|
|
1260
|
+
#
|
|
1261
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1262
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1263
|
+
# # Here is how to wait for a response.
|
|
1264
|
+
# result.wait_until_done! timeout: 60
|
|
1265
|
+
# if result.response?
|
|
1266
|
+
# p result.response
|
|
1267
|
+
# else
|
|
1268
|
+
# puts "No response received."
|
|
1269
|
+
# end
|
|
1270
|
+
#
|
|
1271
|
+
def create_cluster request, options = nil
|
|
1272
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1273
|
+
|
|
1274
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::CreateClusterRequest
|
|
1275
|
+
|
|
1276
|
+
# Converts hash and nil to an options object
|
|
1277
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1278
|
+
|
|
1279
|
+
# Customize the options with defaults
|
|
1280
|
+
call_metadata = @config.rpcs.create_cluster.metadata.to_h
|
|
1281
|
+
|
|
1282
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1283
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1284
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1285
|
+
gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
|
|
1286
|
+
transports_version_send: [:rest]
|
|
1287
|
+
|
|
1288
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1289
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1290
|
+
|
|
1291
|
+
options.apply_defaults timeout: @config.rpcs.create_cluster.timeout,
|
|
1292
|
+
metadata: call_metadata,
|
|
1293
|
+
retry_policy: @config.rpcs.create_cluster.retry_policy
|
|
1294
|
+
|
|
1295
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1296
|
+
metadata: @config.metadata,
|
|
1297
|
+
retry_policy: @config.retry_policy
|
|
1298
|
+
|
|
1299
|
+
@cloud_redis_cluster_stub.create_cluster request, options do |result, operation|
|
|
1300
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1301
|
+
yield result, operation if block_given?
|
|
1302
|
+
throw :response, result
|
|
1303
|
+
end
|
|
1304
|
+
rescue ::Gapic::Rest::Error => e
|
|
1305
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1306
|
+
end
|
|
1307
|
+
|
|
1308
|
+
##
|
|
1309
|
+
# Creates an ACL policy.
|
|
1310
|
+
# The creation is executed synchronously and the policy is available for use
|
|
1311
|
+
# immediately after the RPC returns.
|
|
1312
|
+
#
|
|
1313
|
+
# @overload create_acl_policy(request, options = nil)
|
|
1314
|
+
# Pass arguments to `create_acl_policy` via a request object, either of type
|
|
1315
|
+
# {::Google::Cloud::Redis::Cluster::V1::CreateAclPolicyRequest} or an equivalent Hash.
|
|
1316
|
+
#
|
|
1317
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::CreateAclPolicyRequest, ::Hash]
|
|
1318
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1319
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1320
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1321
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1322
|
+
#
|
|
1323
|
+
# @overload create_acl_policy(parent: nil, acl_policy_id: nil, acl_policy: nil, request_id: nil)
|
|
1324
|
+
# Pass arguments to `create_acl_policy` via keyword arguments. Note that at
|
|
1325
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1326
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1327
|
+
#
|
|
1328
|
+
# @param parent [::String]
|
|
1329
|
+
# Required. The resource name of the cluster location using the form:
|
|
1330
|
+
# `projects/{project_id}/locations/{location_id}`
|
|
1331
|
+
# where `location_id` refers to a Google Cloud region.
|
|
1332
|
+
# @param acl_policy_id [::String]
|
|
1333
|
+
# Required. The logical name of the ACL policy in the customer project
|
|
1334
|
+
# with the following restrictions:
|
|
1335
|
+
#
|
|
1336
|
+
# * Must contain only lowercase letters, numbers, and hyphens.
|
|
1337
|
+
# * Must start with a letter.
|
|
1338
|
+
# * Must be between 1-63 characters.
|
|
1339
|
+
# * Must end with a number or a letter.
|
|
1340
|
+
# * Must be unique within the customer project / location
|
|
1341
|
+
# @param acl_policy [::Google::Cloud::Redis::Cluster::V1::AclPolicy, ::Hash]
|
|
1342
|
+
# Required. The ACL policy that is to be created.
|
|
1343
|
+
# @param request_id [::String]
|
|
1344
|
+
# Optional. Idempotent request UUID.
|
|
1345
|
+
# .
|
|
1346
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1347
|
+
# @yieldparam result [::Google::Cloud::Redis::Cluster::V1::AclPolicy]
|
|
1348
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1349
|
+
#
|
|
1350
|
+
# @return [::Google::Cloud::Redis::Cluster::V1::AclPolicy]
|
|
1351
|
+
#
|
|
1352
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1353
|
+
#
|
|
1354
|
+
# @example Basic example
|
|
1355
|
+
# require "google/cloud/redis/cluster/v1"
|
|
1356
|
+
#
|
|
1357
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1358
|
+
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
1359
|
+
#
|
|
1360
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1361
|
+
# request = Google::Cloud::Redis::Cluster::V1::CreateAclPolicyRequest.new
|
|
1362
|
+
#
|
|
1363
|
+
# # Call the create_acl_policy method.
|
|
1364
|
+
# result = client.create_acl_policy request
|
|
1365
|
+
#
|
|
1366
|
+
# # The returned object is of type Google::Cloud::Redis::Cluster::V1::AclPolicy.
|
|
1367
|
+
# p result
|
|
1368
|
+
#
|
|
1369
|
+
def create_acl_policy request, options = nil
|
|
1370
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1371
|
+
|
|
1372
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::CreateAclPolicyRequest
|
|
1373
|
+
|
|
1374
|
+
# Converts hash and nil to an options object
|
|
1375
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1376
|
+
|
|
1377
|
+
# Customize the options with defaults
|
|
1378
|
+
call_metadata = @config.rpcs.create_acl_policy.metadata.to_h
|
|
1379
|
+
|
|
1380
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1381
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1382
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1383
|
+
gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
|
|
1384
|
+
transports_version_send: [:rest]
|
|
1385
|
+
|
|
1386
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1387
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1388
|
+
|
|
1389
|
+
options.apply_defaults timeout: @config.rpcs.create_acl_policy.timeout,
|
|
1390
|
+
metadata: call_metadata,
|
|
1391
|
+
retry_policy: @config.rpcs.create_acl_policy.retry_policy
|
|
1392
|
+
|
|
1393
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1394
|
+
metadata: @config.metadata,
|
|
1395
|
+
retry_policy: @config.retry_policy
|
|
1396
|
+
|
|
1397
|
+
@cloud_redis_cluster_stub.create_acl_policy request, options do |result, operation|
|
|
1398
|
+
yield result, operation if block_given?
|
|
1399
|
+
end
|
|
1400
|
+
rescue ::Gapic::Rest::Error => e
|
|
1401
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1402
|
+
end
|
|
1403
|
+
|
|
1404
|
+
##
|
|
1405
|
+
# Gets the details of certificate authority information for Redis cluster.
|
|
1406
|
+
#
|
|
1407
|
+
# @overload get_cluster_certificate_authority(request, options = nil)
|
|
1408
|
+
# Pass arguments to `get_cluster_certificate_authority` via a request object, either of type
|
|
1409
|
+
# {::Google::Cloud::Redis::Cluster::V1::GetClusterCertificateAuthorityRequest} or an equivalent Hash.
|
|
1410
|
+
#
|
|
1411
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::GetClusterCertificateAuthorityRequest, ::Hash]
|
|
1412
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1413
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1414
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1415
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1416
|
+
#
|
|
1417
|
+
# @overload get_cluster_certificate_authority(name: nil)
|
|
1418
|
+
# Pass arguments to `get_cluster_certificate_authority` via keyword arguments. Note that at
|
|
1419
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1420
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1421
|
+
#
|
|
1422
|
+
# @param name [::String]
|
|
1423
|
+
# Required. Redis cluster certificate authority resource name using the form:
|
|
1424
|
+
# `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
|
|
1425
|
+
# where `location_id` refers to a GCP region.
|
|
1426
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1427
|
+
# @yieldparam result [::Google::Cloud::Redis::Cluster::V1::CertificateAuthority]
|
|
1428
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1429
|
+
#
|
|
1430
|
+
# @return [::Google::Cloud::Redis::Cluster::V1::CertificateAuthority]
|
|
1431
|
+
#
|
|
1432
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1433
|
+
#
|
|
1434
|
+
# @example Basic example
|
|
1435
|
+
# require "google/cloud/redis/cluster/v1"
|
|
1436
|
+
#
|
|
1437
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1438
|
+
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
1439
|
+
#
|
|
1440
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1441
|
+
# request = Google::Cloud::Redis::Cluster::V1::GetClusterCertificateAuthorityRequest.new
|
|
1442
|
+
#
|
|
1443
|
+
# # Call the get_cluster_certificate_authority method.
|
|
1444
|
+
# result = client.get_cluster_certificate_authority request
|
|
1445
|
+
#
|
|
1446
|
+
# # The returned object is of type Google::Cloud::Redis::Cluster::V1::CertificateAuthority.
|
|
1447
|
+
# p result
|
|
1448
|
+
#
|
|
1449
|
+
def get_cluster_certificate_authority request, options = nil
|
|
1450
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1451
|
+
|
|
788
1452
|
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::GetClusterCertificateAuthorityRequest
|
|
789
1453
|
|
|
790
1454
|
# Converts hash and nil to an options object
|
|
791
1455
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
792
1456
|
|
|
793
1457
|
# Customize the options with defaults
|
|
794
|
-
call_metadata = @config.rpcs.get_cluster_certificate_authority.metadata.to_h
|
|
1458
|
+
call_metadata = @config.rpcs.get_cluster_certificate_authority.metadata.to_h
|
|
1459
|
+
|
|
1460
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1461
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1462
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1463
|
+
gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
|
|
1464
|
+
transports_version_send: [:rest]
|
|
1465
|
+
|
|
1466
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1467
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1468
|
+
|
|
1469
|
+
options.apply_defaults timeout: @config.rpcs.get_cluster_certificate_authority.timeout,
|
|
1470
|
+
metadata: call_metadata,
|
|
1471
|
+
retry_policy: @config.rpcs.get_cluster_certificate_authority.retry_policy
|
|
1472
|
+
|
|
1473
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1474
|
+
metadata: @config.metadata,
|
|
1475
|
+
retry_policy: @config.retry_policy
|
|
1476
|
+
|
|
1477
|
+
@cloud_redis_cluster_stub.get_cluster_certificate_authority request, options do |result, operation|
|
|
1478
|
+
yield result, operation if block_given?
|
|
1479
|
+
end
|
|
1480
|
+
rescue ::Gapic::Rest::Error => e
|
|
1481
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1482
|
+
end
|
|
1483
|
+
|
|
1484
|
+
##
|
|
1485
|
+
# Gets the details of regional certificate authority information for Redis
|
|
1486
|
+
# cluster.
|
|
1487
|
+
#
|
|
1488
|
+
# @overload get_shared_regional_certificate_authority(request, options = nil)
|
|
1489
|
+
# Pass arguments to `get_shared_regional_certificate_authority` via a request object, either of type
|
|
1490
|
+
# {::Google::Cloud::Redis::Cluster::V1::GetSharedRegionalCertificateAuthorityRequest} or an equivalent Hash.
|
|
1491
|
+
#
|
|
1492
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::GetSharedRegionalCertificateAuthorityRequest, ::Hash]
|
|
1493
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1494
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1495
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1496
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1497
|
+
#
|
|
1498
|
+
# @overload get_shared_regional_certificate_authority(name: nil)
|
|
1499
|
+
# Pass arguments to `get_shared_regional_certificate_authority` via keyword arguments. Note that at
|
|
1500
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1501
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1502
|
+
#
|
|
1503
|
+
# @param name [::String]
|
|
1504
|
+
# Required. Regional certificate authority resource name using the form:
|
|
1505
|
+
# `projects/{project_id}/locations/{location_id}/sharedRegionalCertificateAuthority`
|
|
1506
|
+
# where `location_id` refers to a Google Cloud region.
|
|
1507
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1508
|
+
# @yieldparam result [::Google::Cloud::Redis::Cluster::V1::SharedRegionalCertificateAuthority]
|
|
1509
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1510
|
+
#
|
|
1511
|
+
# @return [::Google::Cloud::Redis::Cluster::V1::SharedRegionalCertificateAuthority]
|
|
1512
|
+
#
|
|
1513
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1514
|
+
#
|
|
1515
|
+
# @example Basic example
|
|
1516
|
+
# require "google/cloud/redis/cluster/v1"
|
|
1517
|
+
#
|
|
1518
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1519
|
+
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
1520
|
+
#
|
|
1521
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1522
|
+
# request = Google::Cloud::Redis::Cluster::V1::GetSharedRegionalCertificateAuthorityRequest.new
|
|
1523
|
+
#
|
|
1524
|
+
# # Call the get_shared_regional_certificate_authority method.
|
|
1525
|
+
# result = client.get_shared_regional_certificate_authority request
|
|
1526
|
+
#
|
|
1527
|
+
# # The returned object is of type Google::Cloud::Redis::Cluster::V1::SharedRegionalCertificateAuthority.
|
|
1528
|
+
# p result
|
|
1529
|
+
#
|
|
1530
|
+
def get_shared_regional_certificate_authority request, options = nil
|
|
1531
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1532
|
+
|
|
1533
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::GetSharedRegionalCertificateAuthorityRequest
|
|
1534
|
+
|
|
1535
|
+
# Converts hash and nil to an options object
|
|
1536
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1537
|
+
|
|
1538
|
+
# Customize the options with defaults
|
|
1539
|
+
call_metadata = @config.rpcs.get_shared_regional_certificate_authority.metadata.to_h
|
|
1540
|
+
|
|
1541
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1542
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1543
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1544
|
+
gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
|
|
1545
|
+
transports_version_send: [:rest]
|
|
1546
|
+
|
|
1547
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1548
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1549
|
+
|
|
1550
|
+
options.apply_defaults timeout: @config.rpcs.get_shared_regional_certificate_authority.timeout,
|
|
1551
|
+
metadata: call_metadata,
|
|
1552
|
+
retry_policy: @config.rpcs.get_shared_regional_certificate_authority.retry_policy
|
|
1553
|
+
|
|
1554
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1555
|
+
metadata: @config.metadata,
|
|
1556
|
+
retry_policy: @config.retry_policy
|
|
1557
|
+
|
|
1558
|
+
@cloud_redis_cluster_stub.get_shared_regional_certificate_authority request, options do |result, operation|
|
|
1559
|
+
yield result, operation if block_given?
|
|
1560
|
+
end
|
|
1561
|
+
rescue ::Gapic::Rest::Error => e
|
|
1562
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1563
|
+
end
|
|
1564
|
+
|
|
1565
|
+
##
|
|
1566
|
+
# Reschedules upcoming maintenance event.
|
|
1567
|
+
#
|
|
1568
|
+
# @overload reschedule_cluster_maintenance(request, options = nil)
|
|
1569
|
+
# Pass arguments to `reschedule_cluster_maintenance` via a request object, either of type
|
|
1570
|
+
# {::Google::Cloud::Redis::Cluster::V1::RescheduleClusterMaintenanceRequest} or an equivalent Hash.
|
|
1571
|
+
#
|
|
1572
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::RescheduleClusterMaintenanceRequest, ::Hash]
|
|
1573
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1574
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1575
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1576
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1577
|
+
#
|
|
1578
|
+
# @overload reschedule_cluster_maintenance(name: nil, reschedule_type: nil, schedule_time: nil)
|
|
1579
|
+
# Pass arguments to `reschedule_cluster_maintenance` via keyword arguments. Note that at
|
|
1580
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1581
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1582
|
+
#
|
|
1583
|
+
# @param name [::String]
|
|
1584
|
+
# Required. Redis Cluster instance resource name using the form:
|
|
1585
|
+
# `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
|
|
1586
|
+
# where `location_id` refers to a GCP region.
|
|
1587
|
+
# @param reschedule_type [::Google::Cloud::Redis::Cluster::V1::RescheduleClusterMaintenanceRequest::RescheduleType]
|
|
1588
|
+
# Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
|
|
1589
|
+
# well.
|
|
1590
|
+
# @param schedule_time [::Google::Protobuf::Timestamp, ::Hash]
|
|
1591
|
+
# Optional. Timestamp when the maintenance shall be rescheduled to if
|
|
1592
|
+
# reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
|
|
1593
|
+
# example `2012-11-15T16:19:00.094Z`.
|
|
1594
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1595
|
+
# @yieldparam result [::Gapic::Operation]
|
|
1596
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1597
|
+
#
|
|
1598
|
+
# @return [::Gapic::Operation]
|
|
1599
|
+
#
|
|
1600
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1601
|
+
#
|
|
1602
|
+
# @example Basic example
|
|
1603
|
+
# require "google/cloud/redis/cluster/v1"
|
|
1604
|
+
#
|
|
1605
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1606
|
+
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
1607
|
+
#
|
|
1608
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1609
|
+
# request = Google::Cloud::Redis::Cluster::V1::RescheduleClusterMaintenanceRequest.new
|
|
1610
|
+
#
|
|
1611
|
+
# # Call the reschedule_cluster_maintenance method.
|
|
1612
|
+
# result = client.reschedule_cluster_maintenance request
|
|
1613
|
+
#
|
|
1614
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1615
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1616
|
+
# # Here is how to wait for a response.
|
|
1617
|
+
# result.wait_until_done! timeout: 60
|
|
1618
|
+
# if result.response?
|
|
1619
|
+
# p result.response
|
|
1620
|
+
# else
|
|
1621
|
+
# puts "No response received."
|
|
1622
|
+
# end
|
|
1623
|
+
#
|
|
1624
|
+
def reschedule_cluster_maintenance request, options = nil
|
|
1625
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1626
|
+
|
|
1627
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::RescheduleClusterMaintenanceRequest
|
|
1628
|
+
|
|
1629
|
+
# Converts hash and nil to an options object
|
|
1630
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1631
|
+
|
|
1632
|
+
# Customize the options with defaults
|
|
1633
|
+
call_metadata = @config.rpcs.reschedule_cluster_maintenance.metadata.to_h
|
|
1634
|
+
|
|
1635
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1636
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1637
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1638
|
+
gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
|
|
1639
|
+
transports_version_send: [:rest]
|
|
1640
|
+
|
|
1641
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1642
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1643
|
+
|
|
1644
|
+
options.apply_defaults timeout: @config.rpcs.reschedule_cluster_maintenance.timeout,
|
|
1645
|
+
metadata: call_metadata,
|
|
1646
|
+
retry_policy: @config.rpcs.reschedule_cluster_maintenance.retry_policy
|
|
1647
|
+
|
|
1648
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1649
|
+
metadata: @config.metadata,
|
|
1650
|
+
retry_policy: @config.retry_policy
|
|
1651
|
+
|
|
1652
|
+
@cloud_redis_cluster_stub.reschedule_cluster_maintenance request, options do |result, operation|
|
|
1653
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1654
|
+
yield result, operation if block_given?
|
|
1655
|
+
throw :response, result
|
|
1656
|
+
end
|
|
1657
|
+
rescue ::Gapic::Rest::Error => e
|
|
1658
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1659
|
+
end
|
|
1660
|
+
|
|
1661
|
+
##
|
|
1662
|
+
# Lists all backup collections owned by a consumer project in either the
|
|
1663
|
+
# specified location (region) or all locations.
|
|
1664
|
+
#
|
|
1665
|
+
# If `location_id` is specified as `-` (wildcard), then all regions
|
|
1666
|
+
# available to the project are queried, and the results are aggregated.
|
|
1667
|
+
#
|
|
1668
|
+
# @overload list_backup_collections(request, options = nil)
|
|
1669
|
+
# Pass arguments to `list_backup_collections` via a request object, either of type
|
|
1670
|
+
# {::Google::Cloud::Redis::Cluster::V1::ListBackupCollectionsRequest} or an equivalent Hash.
|
|
1671
|
+
#
|
|
1672
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::ListBackupCollectionsRequest, ::Hash]
|
|
1673
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1674
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1675
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1676
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1677
|
+
#
|
|
1678
|
+
# @overload list_backup_collections(parent: nil, page_size: nil, page_token: nil)
|
|
1679
|
+
# Pass arguments to `list_backup_collections` via keyword arguments. Note that at
|
|
1680
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1681
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1682
|
+
#
|
|
1683
|
+
# @param parent [::String]
|
|
1684
|
+
# Required. The resource name of the backupCollection location using the
|
|
1685
|
+
# form:
|
|
1686
|
+
# `projects/{project_id}/locations/{location_id}`
|
|
1687
|
+
# where `location_id` refers to a GCP region.
|
|
1688
|
+
# @param page_size [::Integer]
|
|
1689
|
+
# Optional. The maximum number of items to return.
|
|
1690
|
+
#
|
|
1691
|
+
# If not specified, a default value of 1000 will be used by the service.
|
|
1692
|
+
# Regardless of the page_size value, the response may include a partial list
|
|
1693
|
+
# and a caller should only rely on response's
|
|
1694
|
+
# {::Google::Cloud::Redis::Cluster::V1::ListBackupCollectionsResponse#next_page_token `next_page_token`}
|
|
1695
|
+
# to determine if there are more clusters left to be queried.
|
|
1696
|
+
# @param page_token [::String]
|
|
1697
|
+
# Optional. The `next_page_token` value returned from a previous
|
|
1698
|
+
# [ListBackupCollections] request, if any.
|
|
1699
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1700
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Redis::Cluster::V1::BackupCollection>]
|
|
1701
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1702
|
+
#
|
|
1703
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Redis::Cluster::V1::BackupCollection>]
|
|
1704
|
+
#
|
|
1705
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1706
|
+
#
|
|
1707
|
+
# @example Basic example
|
|
1708
|
+
# require "google/cloud/redis/cluster/v1"
|
|
1709
|
+
#
|
|
1710
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1711
|
+
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
1712
|
+
#
|
|
1713
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1714
|
+
# request = Google::Cloud::Redis::Cluster::V1::ListBackupCollectionsRequest.new
|
|
1715
|
+
#
|
|
1716
|
+
# # Call the list_backup_collections method.
|
|
1717
|
+
# result = client.list_backup_collections request
|
|
1718
|
+
#
|
|
1719
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
1720
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
1721
|
+
# result.each do |item|
|
|
1722
|
+
# # Each element is of type ::Google::Cloud::Redis::Cluster::V1::BackupCollection.
|
|
1723
|
+
# p item
|
|
1724
|
+
# end
|
|
1725
|
+
#
|
|
1726
|
+
def list_backup_collections request, options = nil
|
|
1727
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1728
|
+
|
|
1729
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::ListBackupCollectionsRequest
|
|
1730
|
+
|
|
1731
|
+
# Converts hash and nil to an options object
|
|
1732
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1733
|
+
|
|
1734
|
+
# Customize the options with defaults
|
|
1735
|
+
call_metadata = @config.rpcs.list_backup_collections.metadata.to_h
|
|
1736
|
+
|
|
1737
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1738
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1739
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1740
|
+
gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
|
|
1741
|
+
transports_version_send: [:rest]
|
|
1742
|
+
|
|
1743
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1744
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1745
|
+
|
|
1746
|
+
options.apply_defaults timeout: @config.rpcs.list_backup_collections.timeout,
|
|
1747
|
+
metadata: call_metadata,
|
|
1748
|
+
retry_policy: @config.rpcs.list_backup_collections.retry_policy
|
|
1749
|
+
|
|
1750
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1751
|
+
metadata: @config.metadata,
|
|
1752
|
+
retry_policy: @config.retry_policy
|
|
1753
|
+
|
|
1754
|
+
@cloud_redis_cluster_stub.list_backup_collections request, options do |result, operation|
|
|
1755
|
+
result = ::Gapic::Rest::PagedEnumerable.new @cloud_redis_cluster_stub, :list_backup_collections, "backup_collections", request, result, options
|
|
1756
|
+
yield result, operation if block_given?
|
|
1757
|
+
throw :response, result
|
|
1758
|
+
end
|
|
1759
|
+
rescue ::Gapic::Rest::Error => e
|
|
1760
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1761
|
+
end
|
|
1762
|
+
|
|
1763
|
+
##
|
|
1764
|
+
# Get a backup collection.
|
|
1765
|
+
#
|
|
1766
|
+
# @overload get_backup_collection(request, options = nil)
|
|
1767
|
+
# Pass arguments to `get_backup_collection` via a request object, either of type
|
|
1768
|
+
# {::Google::Cloud::Redis::Cluster::V1::GetBackupCollectionRequest} or an equivalent Hash.
|
|
1769
|
+
#
|
|
1770
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::GetBackupCollectionRequest, ::Hash]
|
|
1771
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1772
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1773
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1774
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1775
|
+
#
|
|
1776
|
+
# @overload get_backup_collection(name: nil)
|
|
1777
|
+
# Pass arguments to `get_backup_collection` via keyword arguments. Note that at
|
|
1778
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1779
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1780
|
+
#
|
|
1781
|
+
# @param name [::String]
|
|
1782
|
+
# Required. Redis backupCollection resource name using the form:
|
|
1783
|
+
# `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
|
|
1784
|
+
# where `location_id` refers to a GCP region.
|
|
1785
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1786
|
+
# @yieldparam result [::Google::Cloud::Redis::Cluster::V1::BackupCollection]
|
|
1787
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1788
|
+
#
|
|
1789
|
+
# @return [::Google::Cloud::Redis::Cluster::V1::BackupCollection]
|
|
1790
|
+
#
|
|
1791
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1792
|
+
#
|
|
1793
|
+
# @example Basic example
|
|
1794
|
+
# require "google/cloud/redis/cluster/v1"
|
|
1795
|
+
#
|
|
1796
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1797
|
+
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
1798
|
+
#
|
|
1799
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1800
|
+
# request = Google::Cloud::Redis::Cluster::V1::GetBackupCollectionRequest.new
|
|
1801
|
+
#
|
|
1802
|
+
# # Call the get_backup_collection method.
|
|
1803
|
+
# result = client.get_backup_collection request
|
|
1804
|
+
#
|
|
1805
|
+
# # The returned object is of type Google::Cloud::Redis::Cluster::V1::BackupCollection.
|
|
1806
|
+
# p result
|
|
1807
|
+
#
|
|
1808
|
+
def get_backup_collection request, options = nil
|
|
1809
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1810
|
+
|
|
1811
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::GetBackupCollectionRequest
|
|
1812
|
+
|
|
1813
|
+
# Converts hash and nil to an options object
|
|
1814
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1815
|
+
|
|
1816
|
+
# Customize the options with defaults
|
|
1817
|
+
call_metadata = @config.rpcs.get_backup_collection.metadata.to_h
|
|
1818
|
+
|
|
1819
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1820
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1821
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1822
|
+
gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
|
|
1823
|
+
transports_version_send: [:rest]
|
|
1824
|
+
|
|
1825
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1826
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1827
|
+
|
|
1828
|
+
options.apply_defaults timeout: @config.rpcs.get_backup_collection.timeout,
|
|
1829
|
+
metadata: call_metadata,
|
|
1830
|
+
retry_policy: @config.rpcs.get_backup_collection.retry_policy
|
|
1831
|
+
|
|
1832
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1833
|
+
metadata: @config.metadata,
|
|
1834
|
+
retry_policy: @config.retry_policy
|
|
1835
|
+
|
|
1836
|
+
@cloud_redis_cluster_stub.get_backup_collection request, options do |result, operation|
|
|
1837
|
+
yield result, operation if block_given?
|
|
1838
|
+
end
|
|
1839
|
+
rescue ::Gapic::Rest::Error => e
|
|
1840
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1841
|
+
end
|
|
1842
|
+
|
|
1843
|
+
##
|
|
1844
|
+
# Lists all backups owned by a backup collection.
|
|
1845
|
+
#
|
|
1846
|
+
# @overload list_backups(request, options = nil)
|
|
1847
|
+
# Pass arguments to `list_backups` via a request object, either of type
|
|
1848
|
+
# {::Google::Cloud::Redis::Cluster::V1::ListBackupsRequest} or an equivalent Hash.
|
|
1849
|
+
#
|
|
1850
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::ListBackupsRequest, ::Hash]
|
|
1851
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1852
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1853
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1854
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1855
|
+
#
|
|
1856
|
+
# @overload list_backups(parent: nil, page_size: nil, page_token: nil)
|
|
1857
|
+
# Pass arguments to `list_backups` via keyword arguments. Note that at
|
|
1858
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1859
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1860
|
+
#
|
|
1861
|
+
# @param parent [::String]
|
|
1862
|
+
# Required. The resource name of the backupCollection using the form:
|
|
1863
|
+
# `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
|
|
1864
|
+
# @param page_size [::Integer]
|
|
1865
|
+
# Optional. The maximum number of items to return.
|
|
1866
|
+
#
|
|
1867
|
+
# If not specified, a default value of 1000 will be used by the service.
|
|
1868
|
+
# Regardless of the page_size value, the response may include a partial list
|
|
1869
|
+
# and a caller should only rely on response's
|
|
1870
|
+
# {::Google::Cloud::Redis::Cluster::V1::ListBackupsResponse#next_page_token `next_page_token`}
|
|
1871
|
+
# to determine if there are more clusters left to be queried.
|
|
1872
|
+
# @param page_token [::String]
|
|
1873
|
+
# Optional. The `next_page_token` value returned from a previous
|
|
1874
|
+
# [ListBackupCollections] request, if any.
|
|
1875
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1876
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Redis::Cluster::V1::Backup>]
|
|
1877
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1878
|
+
#
|
|
1879
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Redis::Cluster::V1::Backup>]
|
|
1880
|
+
#
|
|
1881
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1882
|
+
#
|
|
1883
|
+
# @example Basic example
|
|
1884
|
+
# require "google/cloud/redis/cluster/v1"
|
|
1885
|
+
#
|
|
1886
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1887
|
+
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
1888
|
+
#
|
|
1889
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1890
|
+
# request = Google::Cloud::Redis::Cluster::V1::ListBackupsRequest.new
|
|
1891
|
+
#
|
|
1892
|
+
# # Call the list_backups method.
|
|
1893
|
+
# result = client.list_backups request
|
|
1894
|
+
#
|
|
1895
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
1896
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
1897
|
+
# result.each do |item|
|
|
1898
|
+
# # Each element is of type ::Google::Cloud::Redis::Cluster::V1::Backup.
|
|
1899
|
+
# p item
|
|
1900
|
+
# end
|
|
1901
|
+
#
|
|
1902
|
+
def list_backups request, options = nil
|
|
1903
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1904
|
+
|
|
1905
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::ListBackupsRequest
|
|
1906
|
+
|
|
1907
|
+
# Converts hash and nil to an options object
|
|
1908
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1909
|
+
|
|
1910
|
+
# Customize the options with defaults
|
|
1911
|
+
call_metadata = @config.rpcs.list_backups.metadata.to_h
|
|
1912
|
+
|
|
1913
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1914
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1915
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1916
|
+
gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
|
|
1917
|
+
transports_version_send: [:rest]
|
|
1918
|
+
|
|
1919
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1920
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1921
|
+
|
|
1922
|
+
options.apply_defaults timeout: @config.rpcs.list_backups.timeout,
|
|
1923
|
+
metadata: call_metadata,
|
|
1924
|
+
retry_policy: @config.rpcs.list_backups.retry_policy
|
|
1925
|
+
|
|
1926
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1927
|
+
metadata: @config.metadata,
|
|
1928
|
+
retry_policy: @config.retry_policy
|
|
1929
|
+
|
|
1930
|
+
@cloud_redis_cluster_stub.list_backups request, options do |result, operation|
|
|
1931
|
+
result = ::Gapic::Rest::PagedEnumerable.new @cloud_redis_cluster_stub, :list_backups, "backups", request, result, options
|
|
1932
|
+
yield result, operation if block_given?
|
|
1933
|
+
throw :response, result
|
|
1934
|
+
end
|
|
1935
|
+
rescue ::Gapic::Rest::Error => e
|
|
1936
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1937
|
+
end
|
|
1938
|
+
|
|
1939
|
+
##
|
|
1940
|
+
# Gets the details of a specific backup.
|
|
1941
|
+
#
|
|
1942
|
+
# @overload get_backup(request, options = nil)
|
|
1943
|
+
# Pass arguments to `get_backup` via a request object, either of type
|
|
1944
|
+
# {::Google::Cloud::Redis::Cluster::V1::GetBackupRequest} or an equivalent Hash.
|
|
1945
|
+
#
|
|
1946
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::GetBackupRequest, ::Hash]
|
|
1947
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1948
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1949
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1950
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1951
|
+
#
|
|
1952
|
+
# @overload get_backup(name: nil)
|
|
1953
|
+
# Pass arguments to `get_backup` via keyword arguments. Note that at
|
|
1954
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1955
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1956
|
+
#
|
|
1957
|
+
# @param name [::String]
|
|
1958
|
+
# Required. Redis backup resource name using the form:
|
|
1959
|
+
# `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
|
|
1960
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1961
|
+
# @yieldparam result [::Google::Cloud::Redis::Cluster::V1::Backup]
|
|
1962
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1963
|
+
#
|
|
1964
|
+
# @return [::Google::Cloud::Redis::Cluster::V1::Backup]
|
|
1965
|
+
#
|
|
1966
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1967
|
+
#
|
|
1968
|
+
# @example Basic example
|
|
1969
|
+
# require "google/cloud/redis/cluster/v1"
|
|
1970
|
+
#
|
|
1971
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1972
|
+
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
1973
|
+
#
|
|
1974
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1975
|
+
# request = Google::Cloud::Redis::Cluster::V1::GetBackupRequest.new
|
|
1976
|
+
#
|
|
1977
|
+
# # Call the get_backup method.
|
|
1978
|
+
# result = client.get_backup request
|
|
1979
|
+
#
|
|
1980
|
+
# # The returned object is of type Google::Cloud::Redis::Cluster::V1::Backup.
|
|
1981
|
+
# p result
|
|
1982
|
+
#
|
|
1983
|
+
def get_backup request, options = nil
|
|
1984
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1985
|
+
|
|
1986
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::GetBackupRequest
|
|
1987
|
+
|
|
1988
|
+
# Converts hash and nil to an options object
|
|
1989
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1990
|
+
|
|
1991
|
+
# Customize the options with defaults
|
|
1992
|
+
call_metadata = @config.rpcs.get_backup.metadata.to_h
|
|
1993
|
+
|
|
1994
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1995
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1996
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1997
|
+
gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
|
|
1998
|
+
transports_version_send: [:rest]
|
|
1999
|
+
|
|
2000
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
2001
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
2002
|
+
|
|
2003
|
+
options.apply_defaults timeout: @config.rpcs.get_backup.timeout,
|
|
2004
|
+
metadata: call_metadata,
|
|
2005
|
+
retry_policy: @config.rpcs.get_backup.retry_policy
|
|
2006
|
+
|
|
2007
|
+
options.apply_defaults timeout: @config.timeout,
|
|
2008
|
+
metadata: @config.metadata,
|
|
2009
|
+
retry_policy: @config.retry_policy
|
|
2010
|
+
|
|
2011
|
+
@cloud_redis_cluster_stub.get_backup request, options do |result, operation|
|
|
2012
|
+
yield result, operation if block_given?
|
|
2013
|
+
end
|
|
2014
|
+
rescue ::Gapic::Rest::Error => e
|
|
2015
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
2016
|
+
end
|
|
2017
|
+
|
|
2018
|
+
##
|
|
2019
|
+
# Deletes a specific backup.
|
|
2020
|
+
#
|
|
2021
|
+
# @overload delete_backup(request, options = nil)
|
|
2022
|
+
# Pass arguments to `delete_backup` via a request object, either of type
|
|
2023
|
+
# {::Google::Cloud::Redis::Cluster::V1::DeleteBackupRequest} or an equivalent Hash.
|
|
2024
|
+
#
|
|
2025
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::DeleteBackupRequest, ::Hash]
|
|
2026
|
+
# A request object representing the call parameters. Required. To specify no
|
|
2027
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
2028
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2029
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2030
|
+
#
|
|
2031
|
+
# @overload delete_backup(name: nil, request_id: nil)
|
|
2032
|
+
# Pass arguments to `delete_backup` via keyword arguments. Note that at
|
|
2033
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2034
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2035
|
+
#
|
|
2036
|
+
# @param name [::String]
|
|
2037
|
+
# Required. Redis backup resource name using the form:
|
|
2038
|
+
# `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
|
|
2039
|
+
# @param request_id [::String]
|
|
2040
|
+
# Optional. Idempotent request UUID.
|
|
2041
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2042
|
+
# @yieldparam result [::Gapic::Operation]
|
|
2043
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2044
|
+
#
|
|
2045
|
+
# @return [::Gapic::Operation]
|
|
2046
|
+
#
|
|
2047
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
2048
|
+
#
|
|
2049
|
+
# @example Basic example
|
|
2050
|
+
# require "google/cloud/redis/cluster/v1"
|
|
2051
|
+
#
|
|
2052
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
2053
|
+
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
2054
|
+
#
|
|
2055
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
2056
|
+
# request = Google::Cloud::Redis::Cluster::V1::DeleteBackupRequest.new
|
|
2057
|
+
#
|
|
2058
|
+
# # Call the delete_backup method.
|
|
2059
|
+
# result = client.delete_backup request
|
|
2060
|
+
#
|
|
2061
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
2062
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
2063
|
+
# # Here is how to wait for a response.
|
|
2064
|
+
# result.wait_until_done! timeout: 60
|
|
2065
|
+
# if result.response?
|
|
2066
|
+
# p result.response
|
|
2067
|
+
# else
|
|
2068
|
+
# puts "No response received."
|
|
2069
|
+
# end
|
|
2070
|
+
#
|
|
2071
|
+
def delete_backup request, options = nil
|
|
2072
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
2073
|
+
|
|
2074
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::DeleteBackupRequest
|
|
2075
|
+
|
|
2076
|
+
# Converts hash and nil to an options object
|
|
2077
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
2078
|
+
|
|
2079
|
+
# Customize the options with defaults
|
|
2080
|
+
call_metadata = @config.rpcs.delete_backup.metadata.to_h
|
|
795
2081
|
|
|
796
2082
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
797
2083
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -802,49 +2088,51 @@ module Google
|
|
|
802
2088
|
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
803
2089
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
804
2090
|
|
|
805
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
2091
|
+
options.apply_defaults timeout: @config.rpcs.delete_backup.timeout,
|
|
806
2092
|
metadata: call_metadata,
|
|
807
|
-
retry_policy: @config.rpcs.
|
|
2093
|
+
retry_policy: @config.rpcs.delete_backup.retry_policy
|
|
808
2094
|
|
|
809
2095
|
options.apply_defaults timeout: @config.timeout,
|
|
810
2096
|
metadata: @config.metadata,
|
|
811
2097
|
retry_policy: @config.retry_policy
|
|
812
2098
|
|
|
813
|
-
@cloud_redis_cluster_stub.
|
|
2099
|
+
@cloud_redis_cluster_stub.delete_backup request, options do |result, operation|
|
|
2100
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
814
2101
|
yield result, operation if block_given?
|
|
2102
|
+
throw :response, result
|
|
815
2103
|
end
|
|
816
2104
|
rescue ::Gapic::Rest::Error => e
|
|
817
2105
|
raise ::Google::Cloud::Error.from_error(e)
|
|
818
2106
|
end
|
|
819
2107
|
|
|
820
2108
|
##
|
|
821
|
-
#
|
|
822
|
-
# cluster.
|
|
2109
|
+
# Exports a specific backup to a customer target Cloud Storage URI.
|
|
823
2110
|
#
|
|
824
|
-
# @overload
|
|
825
|
-
# Pass arguments to `
|
|
826
|
-
# {::Google::Cloud::Redis::Cluster::V1::
|
|
2111
|
+
# @overload export_backup(request, options = nil)
|
|
2112
|
+
# Pass arguments to `export_backup` via a request object, either of type
|
|
2113
|
+
# {::Google::Cloud::Redis::Cluster::V1::ExportBackupRequest} or an equivalent Hash.
|
|
827
2114
|
#
|
|
828
|
-
# @param request [::Google::Cloud::Redis::Cluster::V1::
|
|
2115
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::ExportBackupRequest, ::Hash]
|
|
829
2116
|
# A request object representing the call parameters. Required. To specify no
|
|
830
2117
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
831
2118
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
832
2119
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
833
2120
|
#
|
|
834
|
-
# @overload
|
|
835
|
-
# Pass arguments to `
|
|
2121
|
+
# @overload export_backup(gcs_bucket: nil, name: nil)
|
|
2122
|
+
# Pass arguments to `export_backup` via keyword arguments. Note that at
|
|
836
2123
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
837
2124
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
838
2125
|
#
|
|
2126
|
+
# @param gcs_bucket [::String]
|
|
2127
|
+
# Google Cloud Storage bucket, like "my-bucket".
|
|
839
2128
|
# @param name [::String]
|
|
840
|
-
# Required.
|
|
841
|
-
#
|
|
842
|
-
# where `location_id` refers to a Google Cloud region.
|
|
2129
|
+
# Required. Redis backup resource name using the form:
|
|
2130
|
+
# `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
|
|
843
2131
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
844
|
-
# @yieldparam result [::
|
|
2132
|
+
# @yieldparam result [::Gapic::Operation]
|
|
845
2133
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
846
2134
|
#
|
|
847
|
-
# @return [::
|
|
2135
|
+
# @return [::Gapic::Operation]
|
|
848
2136
|
#
|
|
849
2137
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
850
2138
|
#
|
|
@@ -855,24 +2143,31 @@ module Google
|
|
|
855
2143
|
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
856
2144
|
#
|
|
857
2145
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
858
|
-
# request = Google::Cloud::Redis::Cluster::V1::
|
|
2146
|
+
# request = Google::Cloud::Redis::Cluster::V1::ExportBackupRequest.new
|
|
859
2147
|
#
|
|
860
|
-
# # Call the
|
|
861
|
-
# result = client.
|
|
2148
|
+
# # Call the export_backup method.
|
|
2149
|
+
# result = client.export_backup request
|
|
862
2150
|
#
|
|
863
|
-
# # The returned object is of type
|
|
864
|
-
#
|
|
2151
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
2152
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
2153
|
+
# # Here is how to wait for a response.
|
|
2154
|
+
# result.wait_until_done! timeout: 60
|
|
2155
|
+
# if result.response?
|
|
2156
|
+
# p result.response
|
|
2157
|
+
# else
|
|
2158
|
+
# puts "No response received."
|
|
2159
|
+
# end
|
|
865
2160
|
#
|
|
866
|
-
def
|
|
2161
|
+
def export_backup request, options = nil
|
|
867
2162
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
868
2163
|
|
|
869
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::
|
|
2164
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::ExportBackupRequest
|
|
870
2165
|
|
|
871
2166
|
# Converts hash and nil to an options object
|
|
872
2167
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
873
2168
|
|
|
874
2169
|
# Customize the options with defaults
|
|
875
|
-
call_metadata = @config.rpcs.
|
|
2170
|
+
call_metadata = @config.rpcs.export_backup.metadata.to_h
|
|
876
2171
|
|
|
877
2172
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
878
2173
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -883,50 +2178,62 @@ module Google
|
|
|
883
2178
|
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
884
2179
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
885
2180
|
|
|
886
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
2181
|
+
options.apply_defaults timeout: @config.rpcs.export_backup.timeout,
|
|
887
2182
|
metadata: call_metadata,
|
|
888
|
-
retry_policy: @config.rpcs.
|
|
2183
|
+
retry_policy: @config.rpcs.export_backup.retry_policy
|
|
889
2184
|
|
|
890
2185
|
options.apply_defaults timeout: @config.timeout,
|
|
891
2186
|
metadata: @config.metadata,
|
|
892
2187
|
retry_policy: @config.retry_policy
|
|
893
2188
|
|
|
894
|
-
@cloud_redis_cluster_stub.
|
|
2189
|
+
@cloud_redis_cluster_stub.export_backup request, options do |result, operation|
|
|
2190
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
895
2191
|
yield result, operation if block_given?
|
|
2192
|
+
throw :response, result
|
|
896
2193
|
end
|
|
897
2194
|
rescue ::Gapic::Rest::Error => e
|
|
898
2195
|
raise ::Google::Cloud::Error.from_error(e)
|
|
899
2196
|
end
|
|
900
2197
|
|
|
901
2198
|
##
|
|
902
|
-
#
|
|
2199
|
+
# Backup Redis Cluster.
|
|
2200
|
+
# If this is the first time a backup is being created, a backup collection
|
|
2201
|
+
# will be created at the backend, and this backup belongs to this collection.
|
|
2202
|
+
# Both collection and backup will have a resource name. Backup will be
|
|
2203
|
+
# executed for each shard. A replica (primary if nonHA) will be selected to
|
|
2204
|
+
# perform the execution. Backup call will be rejected if there is an ongoing
|
|
2205
|
+
# backup or update operation. Be aware that during preview, if the cluster's
|
|
2206
|
+
# internal software version is too old, critical update will be performed
|
|
2207
|
+
# before actual backup. Once the internal software version is updated to the
|
|
2208
|
+
# minimum version required by the backup feature, subsequent backups will not
|
|
2209
|
+
# require critical update. After preview, there will be no critical update
|
|
2210
|
+
# needed for backup.
|
|
903
2211
|
#
|
|
904
|
-
# @overload
|
|
905
|
-
# Pass arguments to `
|
|
906
|
-
# {::Google::Cloud::Redis::Cluster::V1::
|
|
2212
|
+
# @overload backup_cluster(request, options = nil)
|
|
2213
|
+
# Pass arguments to `backup_cluster` via a request object, either of type
|
|
2214
|
+
# {::Google::Cloud::Redis::Cluster::V1::BackupClusterRequest} or an equivalent Hash.
|
|
907
2215
|
#
|
|
908
|
-
# @param request [::Google::Cloud::Redis::Cluster::V1::
|
|
2216
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::BackupClusterRequest, ::Hash]
|
|
909
2217
|
# A request object representing the call parameters. Required. To specify no
|
|
910
2218
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
911
2219
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
912
2220
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
913
2221
|
#
|
|
914
|
-
# @overload
|
|
915
|
-
# Pass arguments to `
|
|
2222
|
+
# @overload backup_cluster(name: nil, ttl: nil, backup_id: nil)
|
|
2223
|
+
# Pass arguments to `backup_cluster` via keyword arguments. Note that at
|
|
916
2224
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
917
2225
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
918
2226
|
#
|
|
919
2227
|
# @param name [::String]
|
|
920
|
-
# Required. Redis
|
|
921
|
-
#
|
|
2228
|
+
# Required. Redis cluster resource name using the form:
|
|
2229
|
+
# `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
|
|
922
2230
|
# where `location_id` refers to a GCP region.
|
|
923
|
-
# @param
|
|
924
|
-
#
|
|
925
|
-
#
|
|
926
|
-
# @param
|
|
927
|
-
# Optional.
|
|
928
|
-
#
|
|
929
|
-
# example `2012-11-15T16:19:00.094Z`.
|
|
2231
|
+
# @param ttl [::Google::Protobuf::Duration, ::Hash]
|
|
2232
|
+
# Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
|
|
2233
|
+
# If not specified, the default value is 100 years.
|
|
2234
|
+
# @param backup_id [::String]
|
|
2235
|
+
# Optional. The id of the backup to be created. If not specified, the
|
|
2236
|
+
# default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
|
|
930
2237
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
931
2238
|
# @yieldparam result [::Gapic::Operation]
|
|
932
2239
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -942,10 +2249,10 @@ module Google
|
|
|
942
2249
|
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
943
2250
|
#
|
|
944
2251
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
945
|
-
# request = Google::Cloud::Redis::Cluster::V1::
|
|
2252
|
+
# request = Google::Cloud::Redis::Cluster::V1::BackupClusterRequest.new
|
|
946
2253
|
#
|
|
947
|
-
# # Call the
|
|
948
|
-
# result = client.
|
|
2254
|
+
# # Call the backup_cluster method.
|
|
2255
|
+
# result = client.backup_cluster request
|
|
949
2256
|
#
|
|
950
2257
|
# # The returned object is of type Gapic::Operation. You can use it to
|
|
951
2258
|
# # check the status of an operation, cancel it, or wait for results.
|
|
@@ -957,16 +2264,16 @@ module Google
|
|
|
957
2264
|
# puts "No response received."
|
|
958
2265
|
# end
|
|
959
2266
|
#
|
|
960
|
-
def
|
|
2267
|
+
def backup_cluster request, options = nil
|
|
961
2268
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
962
2269
|
|
|
963
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::
|
|
2270
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::BackupClusterRequest
|
|
964
2271
|
|
|
965
2272
|
# Converts hash and nil to an options object
|
|
966
2273
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
967
2274
|
|
|
968
2275
|
# Customize the options with defaults
|
|
969
|
-
call_metadata = @config.rpcs.
|
|
2276
|
+
call_metadata = @config.rpcs.backup_cluster.metadata.to_h
|
|
970
2277
|
|
|
971
2278
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
972
2279
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -977,15 +2284,15 @@ module Google
|
|
|
977
2284
|
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
978
2285
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
979
2286
|
|
|
980
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
2287
|
+
options.apply_defaults timeout: @config.rpcs.backup_cluster.timeout,
|
|
981
2288
|
metadata: call_metadata,
|
|
982
|
-
retry_policy: @config.rpcs.
|
|
2289
|
+
retry_policy: @config.rpcs.backup_cluster.retry_policy
|
|
983
2290
|
|
|
984
2291
|
options.apply_defaults timeout: @config.timeout,
|
|
985
2292
|
metadata: @config.metadata,
|
|
986
2293
|
retry_policy: @config.retry_policy
|
|
987
2294
|
|
|
988
|
-
@cloud_redis_cluster_stub.
|
|
2295
|
+
@cloud_redis_cluster_stub.backup_cluster request, options do |result, operation|
|
|
989
2296
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
990
2297
|
yield result, operation if block_given?
|
|
991
2298
|
throw :response, result
|
|
@@ -995,48 +2302,134 @@ module Google
|
|
|
995
2302
|
end
|
|
996
2303
|
|
|
997
2304
|
##
|
|
998
|
-
# Lists all
|
|
999
|
-
# specified location (region) or all locations.
|
|
2305
|
+
# Lists all the token auth users for a token based auth enabled cluster.
|
|
1000
2306
|
#
|
|
1001
|
-
#
|
|
1002
|
-
#
|
|
1003
|
-
#
|
|
1004
|
-
# @overload list_backup_collections(request, options = nil)
|
|
1005
|
-
# Pass arguments to `list_backup_collections` via a request object, either of type
|
|
1006
|
-
# {::Google::Cloud::Redis::Cluster::V1::ListBackupCollectionsRequest} or an equivalent Hash.
|
|
2307
|
+
# @overload list_token_auth_users(request, options = nil)
|
|
2308
|
+
# Pass arguments to `list_token_auth_users` via a request object, either of type
|
|
2309
|
+
# {::Google::Cloud::Redis::Cluster::V1::ListTokenAuthUsersRequest} or an equivalent Hash.
|
|
1007
2310
|
#
|
|
1008
|
-
# @param request [::Google::Cloud::Redis::Cluster::V1::
|
|
2311
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::ListTokenAuthUsersRequest, ::Hash]
|
|
1009
2312
|
# A request object representing the call parameters. Required. To specify no
|
|
1010
2313
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1011
2314
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1012
2315
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1013
2316
|
#
|
|
1014
|
-
# @overload
|
|
1015
|
-
# Pass arguments to `
|
|
2317
|
+
# @overload list_token_auth_users(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
|
2318
|
+
# Pass arguments to `list_token_auth_users` via keyword arguments. Note that at
|
|
1016
2319
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1017
2320
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1018
2321
|
#
|
|
1019
2322
|
# @param parent [::String]
|
|
1020
|
-
# Required. The resource
|
|
1021
|
-
#
|
|
1022
|
-
#
|
|
1023
|
-
# where `location_id` refers to a GCP region.
|
|
2323
|
+
# Required. The parent resource that this token based auth user will be
|
|
2324
|
+
# listed for. Format:
|
|
2325
|
+
# projects/\\{project}/locations/\\{location}/clusters/\\{cluster}
|
|
1024
2326
|
# @param page_size [::Integer]
|
|
1025
2327
|
# Optional. The maximum number of items to return.
|
|
1026
2328
|
#
|
|
1027
2329
|
# If not specified, a default value of 1000 will be used by the service.
|
|
1028
2330
|
# Regardless of the page_size value, the response may include a partial list
|
|
1029
2331
|
# and a caller should only rely on response's
|
|
1030
|
-
#
|
|
2332
|
+
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
2333
|
+
# {::Google::Cloud::Redis::Cluster::V1::ListTokenAuthUsersResponse#next_page_token `next_page_token`}
|
|
1031
2334
|
# to determine if there are more clusters left to be queried.
|
|
1032
2335
|
# @param page_token [::String]
|
|
1033
2336
|
# Optional. The `next_page_token` value returned from a previous
|
|
1034
|
-
# [
|
|
2337
|
+
# [ListTokenAuthUsers] request, if any.
|
|
2338
|
+
# @param filter [::String]
|
|
2339
|
+
# Optional. Expression for filtering results.
|
|
2340
|
+
# @param order_by [::String]
|
|
2341
|
+
# Optional. Sort results by a defined order.
|
|
2342
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2343
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Redis::Cluster::V1::TokenAuthUser>]
|
|
2344
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2345
|
+
#
|
|
2346
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Redis::Cluster::V1::TokenAuthUser>]
|
|
2347
|
+
#
|
|
2348
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
2349
|
+
#
|
|
2350
|
+
# @example Basic example
|
|
2351
|
+
# require "google/cloud/redis/cluster/v1"
|
|
2352
|
+
#
|
|
2353
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
2354
|
+
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
2355
|
+
#
|
|
2356
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
2357
|
+
# request = Google::Cloud::Redis::Cluster::V1::ListTokenAuthUsersRequest.new
|
|
2358
|
+
#
|
|
2359
|
+
# # Call the list_token_auth_users method.
|
|
2360
|
+
# result = client.list_token_auth_users request
|
|
2361
|
+
#
|
|
2362
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
2363
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
2364
|
+
# result.each do |item|
|
|
2365
|
+
# # Each element is of type ::Google::Cloud::Redis::Cluster::V1::TokenAuthUser.
|
|
2366
|
+
# p item
|
|
2367
|
+
# end
|
|
2368
|
+
#
|
|
2369
|
+
def list_token_auth_users request, options = nil
|
|
2370
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
2371
|
+
|
|
2372
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::ListTokenAuthUsersRequest
|
|
2373
|
+
|
|
2374
|
+
# Converts hash and nil to an options object
|
|
2375
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
2376
|
+
|
|
2377
|
+
# Customize the options with defaults
|
|
2378
|
+
call_metadata = @config.rpcs.list_token_auth_users.metadata.to_h
|
|
2379
|
+
|
|
2380
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
2381
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
2382
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
2383
|
+
gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
|
|
2384
|
+
transports_version_send: [:rest]
|
|
2385
|
+
|
|
2386
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
2387
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
2388
|
+
|
|
2389
|
+
options.apply_defaults timeout: @config.rpcs.list_token_auth_users.timeout,
|
|
2390
|
+
metadata: call_metadata,
|
|
2391
|
+
retry_policy: @config.rpcs.list_token_auth_users.retry_policy
|
|
2392
|
+
|
|
2393
|
+
options.apply_defaults timeout: @config.timeout,
|
|
2394
|
+
metadata: @config.metadata,
|
|
2395
|
+
retry_policy: @config.retry_policy
|
|
2396
|
+
|
|
2397
|
+
@cloud_redis_cluster_stub.list_token_auth_users request, options do |result, operation|
|
|
2398
|
+
result = ::Gapic::Rest::PagedEnumerable.new @cloud_redis_cluster_stub, :list_token_auth_users, "token_auth_users", request, result, options
|
|
2399
|
+
yield result, operation if block_given?
|
|
2400
|
+
throw :response, result
|
|
2401
|
+
end
|
|
2402
|
+
rescue ::Gapic::Rest::Error => e
|
|
2403
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
2404
|
+
end
|
|
2405
|
+
|
|
2406
|
+
##
|
|
2407
|
+
# Gets a specific token auth user for a basic auth enabled cluster.
|
|
2408
|
+
#
|
|
2409
|
+
# @overload get_token_auth_user(request, options = nil)
|
|
2410
|
+
# Pass arguments to `get_token_auth_user` via a request object, either of type
|
|
2411
|
+
# {::Google::Cloud::Redis::Cluster::V1::GetTokenAuthUserRequest} or an equivalent Hash.
|
|
2412
|
+
#
|
|
2413
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::GetTokenAuthUserRequest, ::Hash]
|
|
2414
|
+
# A request object representing the call parameters. Required. To specify no
|
|
2415
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
2416
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2417
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2418
|
+
#
|
|
2419
|
+
# @overload get_token_auth_user(name: nil)
|
|
2420
|
+
# Pass arguments to `get_token_auth_user` via keyword arguments. Note that at
|
|
2421
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2422
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2423
|
+
#
|
|
2424
|
+
# @param name [::String]
|
|
2425
|
+
# Required. The name of token auth user for a token based auth enabled
|
|
2426
|
+
# cluster. Format:
|
|
2427
|
+
# projects/\\{project}/locations/\\{location}/clusters/\\{cluster}/tokenAuthUsers/\\{token_auth_user}
|
|
1035
2428
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1036
|
-
# @yieldparam result [::
|
|
2429
|
+
# @yieldparam result [::Google::Cloud::Redis::Cluster::V1::TokenAuthUser]
|
|
1037
2430
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1038
2431
|
#
|
|
1039
|
-
# @return [::
|
|
2432
|
+
# @return [::Google::Cloud::Redis::Cluster::V1::TokenAuthUser]
|
|
1040
2433
|
#
|
|
1041
2434
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1042
2435
|
#
|
|
@@ -1047,28 +2440,24 @@ module Google
|
|
|
1047
2440
|
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
1048
2441
|
#
|
|
1049
2442
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1050
|
-
# request = Google::Cloud::Redis::Cluster::V1::
|
|
2443
|
+
# request = Google::Cloud::Redis::Cluster::V1::GetTokenAuthUserRequest.new
|
|
1051
2444
|
#
|
|
1052
|
-
# # Call the
|
|
1053
|
-
# result = client.
|
|
2445
|
+
# # Call the get_token_auth_user method.
|
|
2446
|
+
# result = client.get_token_auth_user request
|
|
1054
2447
|
#
|
|
1055
|
-
# # The returned object is of type
|
|
1056
|
-
#
|
|
1057
|
-
# result.each do |item|
|
|
1058
|
-
# # Each element is of type ::Google::Cloud::Redis::Cluster::V1::BackupCollection.
|
|
1059
|
-
# p item
|
|
1060
|
-
# end
|
|
2448
|
+
# # The returned object is of type Google::Cloud::Redis::Cluster::V1::TokenAuthUser.
|
|
2449
|
+
# p result
|
|
1061
2450
|
#
|
|
1062
|
-
def
|
|
2451
|
+
def get_token_auth_user request, options = nil
|
|
1063
2452
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1064
2453
|
|
|
1065
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::
|
|
2454
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::GetTokenAuthUserRequest
|
|
1066
2455
|
|
|
1067
2456
|
# Converts hash and nil to an options object
|
|
1068
2457
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1069
2458
|
|
|
1070
2459
|
# Customize the options with defaults
|
|
1071
|
-
call_metadata = @config.rpcs.
|
|
2460
|
+
call_metadata = @config.rpcs.get_token_auth_user.metadata.to_h
|
|
1072
2461
|
|
|
1073
2462
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1074
2463
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -1079,50 +2468,63 @@ module Google
|
|
|
1079
2468
|
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1080
2469
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1081
2470
|
|
|
1082
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
2471
|
+
options.apply_defaults timeout: @config.rpcs.get_token_auth_user.timeout,
|
|
1083
2472
|
metadata: call_metadata,
|
|
1084
|
-
retry_policy: @config.rpcs.
|
|
2473
|
+
retry_policy: @config.rpcs.get_token_auth_user.retry_policy
|
|
1085
2474
|
|
|
1086
2475
|
options.apply_defaults timeout: @config.timeout,
|
|
1087
2476
|
metadata: @config.metadata,
|
|
1088
2477
|
retry_policy: @config.retry_policy
|
|
1089
2478
|
|
|
1090
|
-
@cloud_redis_cluster_stub.
|
|
1091
|
-
result = ::Gapic::Rest::PagedEnumerable.new @cloud_redis_cluster_stub, :list_backup_collections, "backup_collections", request, result, options
|
|
2479
|
+
@cloud_redis_cluster_stub.get_token_auth_user request, options do |result, operation|
|
|
1092
2480
|
yield result, operation if block_given?
|
|
1093
|
-
throw :response, result
|
|
1094
2481
|
end
|
|
1095
2482
|
rescue ::Gapic::Rest::Error => e
|
|
1096
2483
|
raise ::Google::Cloud::Error.from_error(e)
|
|
1097
2484
|
end
|
|
1098
2485
|
|
|
1099
2486
|
##
|
|
1100
|
-
#
|
|
2487
|
+
# Lists all the auth tokens for a specific token auth user.
|
|
1101
2488
|
#
|
|
1102
|
-
# @overload
|
|
1103
|
-
# Pass arguments to `
|
|
1104
|
-
# {::Google::Cloud::Redis::Cluster::V1::
|
|
2489
|
+
# @overload list_auth_tokens(request, options = nil)
|
|
2490
|
+
# Pass arguments to `list_auth_tokens` via a request object, either of type
|
|
2491
|
+
# {::Google::Cloud::Redis::Cluster::V1::ListAuthTokensRequest} or an equivalent Hash.
|
|
1105
2492
|
#
|
|
1106
|
-
# @param request [::Google::Cloud::Redis::Cluster::V1::
|
|
2493
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::ListAuthTokensRequest, ::Hash]
|
|
1107
2494
|
# A request object representing the call parameters. Required. To specify no
|
|
1108
2495
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1109
2496
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1110
2497
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1111
2498
|
#
|
|
1112
|
-
# @overload
|
|
1113
|
-
# Pass arguments to `
|
|
2499
|
+
# @overload list_auth_tokens(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
|
2500
|
+
# Pass arguments to `list_auth_tokens` via keyword arguments. Note that at
|
|
1114
2501
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1115
2502
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1116
2503
|
#
|
|
1117
|
-
# @param
|
|
1118
|
-
# Required.
|
|
1119
|
-
#
|
|
1120
|
-
#
|
|
2504
|
+
# @param parent [::String]
|
|
2505
|
+
# Required. The parent resource that this auth token will be listed for.
|
|
2506
|
+
# Format:
|
|
2507
|
+
# projects/\\{project}/locations/\\{location}/clusters/\\{cluster}/tokenAuthUsers/\\{token_auth_user}
|
|
2508
|
+
# @param page_size [::Integer]
|
|
2509
|
+
# Optional. The maximum number of items to return. The maximum value is 1000;
|
|
2510
|
+
# values above 1000 will be coerced to 1000. If not specified, a default
|
|
2511
|
+
# value of 1000 will be used by the service. Regardless of the page_size
|
|
2512
|
+
# value, the response may include a partial list and a caller should only
|
|
2513
|
+
# rely on response's
|
|
2514
|
+
# {::Google::Cloud::Redis::Cluster::V1::ListTokenAuthUsersResponse#next_page_token `next_page_token`}
|
|
2515
|
+
# to determine if there are more clusters left to be queried.
|
|
2516
|
+
# @param page_token [::String]
|
|
2517
|
+
# Optional. The `next_page_token` value returned from a previous
|
|
2518
|
+
# [ListTokenAuthUsers] request, if any.
|
|
2519
|
+
# @param filter [::String]
|
|
2520
|
+
# Optional. Expression for filtering results.
|
|
2521
|
+
# @param order_by [::String]
|
|
2522
|
+
# Optional. Sort results by a defined order.
|
|
1121
2523
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1122
|
-
# @yieldparam result [::Google::Cloud::Redis::Cluster::V1::
|
|
2524
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Redis::Cluster::V1::AuthToken>]
|
|
1123
2525
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1124
2526
|
#
|
|
1125
|
-
# @return [::Google::Cloud::Redis::Cluster::V1::
|
|
2527
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Redis::Cluster::V1::AuthToken>]
|
|
1126
2528
|
#
|
|
1127
2529
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1128
2530
|
#
|
|
@@ -1133,24 +2535,28 @@ module Google
|
|
|
1133
2535
|
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
1134
2536
|
#
|
|
1135
2537
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1136
|
-
# request = Google::Cloud::Redis::Cluster::V1::
|
|
2538
|
+
# request = Google::Cloud::Redis::Cluster::V1::ListAuthTokensRequest.new
|
|
1137
2539
|
#
|
|
1138
|
-
# # Call the
|
|
1139
|
-
# result = client.
|
|
2540
|
+
# # Call the list_auth_tokens method.
|
|
2541
|
+
# result = client.list_auth_tokens request
|
|
1140
2542
|
#
|
|
1141
|
-
# # The returned object is of type
|
|
1142
|
-
#
|
|
2543
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
2544
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
2545
|
+
# result.each do |item|
|
|
2546
|
+
# # Each element is of type ::Google::Cloud::Redis::Cluster::V1::AuthToken.
|
|
2547
|
+
# p item
|
|
2548
|
+
# end
|
|
1143
2549
|
#
|
|
1144
|
-
def
|
|
2550
|
+
def list_auth_tokens request, options = nil
|
|
1145
2551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1146
2552
|
|
|
1147
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::
|
|
2553
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::ListAuthTokensRequest
|
|
1148
2554
|
|
|
1149
2555
|
# Converts hash and nil to an options object
|
|
1150
2556
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1151
2557
|
|
|
1152
2558
|
# Customize the options with defaults
|
|
1153
|
-
call_metadata = @config.rpcs.
|
|
2559
|
+
call_metadata = @config.rpcs.list_auth_tokens.metadata.to_h
|
|
1154
2560
|
|
|
1155
2561
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1156
2562
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -1161,58 +2567,50 @@ module Google
|
|
|
1161
2567
|
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1162
2568
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1163
2569
|
|
|
1164
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
2570
|
+
options.apply_defaults timeout: @config.rpcs.list_auth_tokens.timeout,
|
|
1165
2571
|
metadata: call_metadata,
|
|
1166
|
-
retry_policy: @config.rpcs.
|
|
2572
|
+
retry_policy: @config.rpcs.list_auth_tokens.retry_policy
|
|
1167
2573
|
|
|
1168
2574
|
options.apply_defaults timeout: @config.timeout,
|
|
1169
2575
|
metadata: @config.metadata,
|
|
1170
2576
|
retry_policy: @config.retry_policy
|
|
1171
2577
|
|
|
1172
|
-
@cloud_redis_cluster_stub.
|
|
2578
|
+
@cloud_redis_cluster_stub.list_auth_tokens request, options do |result, operation|
|
|
2579
|
+
result = ::Gapic::Rest::PagedEnumerable.new @cloud_redis_cluster_stub, :list_auth_tokens, "auth_tokens", request, result, options
|
|
1173
2580
|
yield result, operation if block_given?
|
|
2581
|
+
throw :response, result
|
|
1174
2582
|
end
|
|
1175
2583
|
rescue ::Gapic::Rest::Error => e
|
|
1176
2584
|
raise ::Google::Cloud::Error.from_error(e)
|
|
1177
2585
|
end
|
|
1178
2586
|
|
|
1179
2587
|
##
|
|
1180
|
-
#
|
|
2588
|
+
# Gets a specific auth token for a specific token auth user.
|
|
1181
2589
|
#
|
|
1182
|
-
# @overload
|
|
1183
|
-
# Pass arguments to `
|
|
1184
|
-
# {::Google::Cloud::Redis::Cluster::V1::
|
|
2590
|
+
# @overload get_auth_token(request, options = nil)
|
|
2591
|
+
# Pass arguments to `get_auth_token` via a request object, either of type
|
|
2592
|
+
# {::Google::Cloud::Redis::Cluster::V1::GetAuthTokenRequest} or an equivalent Hash.
|
|
1185
2593
|
#
|
|
1186
|
-
# @param request [::Google::Cloud::Redis::Cluster::V1::
|
|
2594
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::GetAuthTokenRequest, ::Hash]
|
|
1187
2595
|
# A request object representing the call parameters. Required. To specify no
|
|
1188
2596
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1189
2597
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1190
2598
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1191
2599
|
#
|
|
1192
|
-
# @overload
|
|
1193
|
-
# Pass arguments to `
|
|
2600
|
+
# @overload get_auth_token(name: nil)
|
|
2601
|
+
# Pass arguments to `get_auth_token` via keyword arguments. Note that at
|
|
1194
2602
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1195
2603
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1196
2604
|
#
|
|
1197
|
-
# @param
|
|
1198
|
-
# Required. The
|
|
1199
|
-
#
|
|
1200
|
-
#
|
|
1201
|
-
# Optional. The maximum number of items to return.
|
|
1202
|
-
#
|
|
1203
|
-
# If not specified, a default value of 1000 will be used by the service.
|
|
1204
|
-
# Regardless of the page_size value, the response may include a partial list
|
|
1205
|
-
# and a caller should only rely on response's
|
|
1206
|
-
# {::Google::Cloud::Redis::Cluster::V1::ListBackupsResponse#next_page_token `next_page_token`}
|
|
1207
|
-
# to determine if there are more clusters left to be queried.
|
|
1208
|
-
# @param page_token [::String]
|
|
1209
|
-
# Optional. The `next_page_token` value returned from a previous
|
|
1210
|
-
# [ListBackupCollections] request, if any.
|
|
2605
|
+
# @param name [::String]
|
|
2606
|
+
# Required. The name of auth token for a token based auth enabled cluster.
|
|
2607
|
+
# Format:
|
|
2608
|
+
# projects/\\{project}/locations/\\{location}/clusters/\\{cluster}/tokenAuthUsers/\\{token_auth_user}/authTokens/\\{auth_token}
|
|
1211
2609
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1212
|
-
# @yieldparam result [::
|
|
2610
|
+
# @yieldparam result [::Google::Cloud::Redis::Cluster::V1::AuthToken]
|
|
1213
2611
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1214
2612
|
#
|
|
1215
|
-
# @return [::
|
|
2613
|
+
# @return [::Google::Cloud::Redis::Cluster::V1::AuthToken]
|
|
1216
2614
|
#
|
|
1217
2615
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1218
2616
|
#
|
|
@@ -1223,28 +2621,24 @@ module Google
|
|
|
1223
2621
|
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
1224
2622
|
#
|
|
1225
2623
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1226
|
-
# request = Google::Cloud::Redis::Cluster::V1::
|
|
2624
|
+
# request = Google::Cloud::Redis::Cluster::V1::GetAuthTokenRequest.new
|
|
1227
2625
|
#
|
|
1228
|
-
# # Call the
|
|
1229
|
-
# result = client.
|
|
2626
|
+
# # Call the get_auth_token method.
|
|
2627
|
+
# result = client.get_auth_token request
|
|
1230
2628
|
#
|
|
1231
|
-
# # The returned object is of type
|
|
1232
|
-
#
|
|
1233
|
-
# result.each do |item|
|
|
1234
|
-
# # Each element is of type ::Google::Cloud::Redis::Cluster::V1::Backup.
|
|
1235
|
-
# p item
|
|
1236
|
-
# end
|
|
2629
|
+
# # The returned object is of type Google::Cloud::Redis::Cluster::V1::AuthToken.
|
|
2630
|
+
# p result
|
|
1237
2631
|
#
|
|
1238
|
-
def
|
|
2632
|
+
def get_auth_token request, options = nil
|
|
1239
2633
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1240
2634
|
|
|
1241
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::
|
|
2635
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::GetAuthTokenRequest
|
|
1242
2636
|
|
|
1243
2637
|
# Converts hash and nil to an options object
|
|
1244
2638
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1245
2639
|
|
|
1246
2640
|
# Customize the options with defaults
|
|
1247
|
-
call_metadata = @config.rpcs.
|
|
2641
|
+
call_metadata = @config.rpcs.get_auth_token.metadata.to_h
|
|
1248
2642
|
|
|
1249
2643
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1250
2644
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -1255,49 +2649,49 @@ module Google
|
|
|
1255
2649
|
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1256
2650
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1257
2651
|
|
|
1258
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
2652
|
+
options.apply_defaults timeout: @config.rpcs.get_auth_token.timeout,
|
|
1259
2653
|
metadata: call_metadata,
|
|
1260
|
-
retry_policy: @config.rpcs.
|
|
2654
|
+
retry_policy: @config.rpcs.get_auth_token.retry_policy
|
|
1261
2655
|
|
|
1262
2656
|
options.apply_defaults timeout: @config.timeout,
|
|
1263
2657
|
metadata: @config.metadata,
|
|
1264
2658
|
retry_policy: @config.retry_policy
|
|
1265
2659
|
|
|
1266
|
-
@cloud_redis_cluster_stub.
|
|
1267
|
-
result = ::Gapic::Rest::PagedEnumerable.new @cloud_redis_cluster_stub, :list_backups, "backups", request, result, options
|
|
2660
|
+
@cloud_redis_cluster_stub.get_auth_token request, options do |result, operation|
|
|
1268
2661
|
yield result, operation if block_given?
|
|
1269
|
-
throw :response, result
|
|
1270
2662
|
end
|
|
1271
2663
|
rescue ::Gapic::Rest::Error => e
|
|
1272
2664
|
raise ::Google::Cloud::Error.from_error(e)
|
|
1273
2665
|
end
|
|
1274
2666
|
|
|
1275
2667
|
##
|
|
1276
|
-
#
|
|
2668
|
+
# Adds a token auth user for a token based auth enabled cluster.
|
|
1277
2669
|
#
|
|
1278
|
-
# @overload
|
|
1279
|
-
# Pass arguments to `
|
|
1280
|
-
# {::Google::Cloud::Redis::Cluster::V1::
|
|
2670
|
+
# @overload add_token_auth_user(request, options = nil)
|
|
2671
|
+
# Pass arguments to `add_token_auth_user` via a request object, either of type
|
|
2672
|
+
# {::Google::Cloud::Redis::Cluster::V1::AddTokenAuthUserRequest} or an equivalent Hash.
|
|
1281
2673
|
#
|
|
1282
|
-
# @param request [::Google::Cloud::Redis::Cluster::V1::
|
|
2674
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::AddTokenAuthUserRequest, ::Hash]
|
|
1283
2675
|
# A request object representing the call parameters. Required. To specify no
|
|
1284
2676
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1285
2677
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1286
2678
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1287
2679
|
#
|
|
1288
|
-
# @overload
|
|
1289
|
-
# Pass arguments to `
|
|
2680
|
+
# @overload add_token_auth_user(cluster: nil, token_auth_user: nil)
|
|
2681
|
+
# Pass arguments to `add_token_auth_user` via keyword arguments. Note that at
|
|
1290
2682
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1291
2683
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1292
2684
|
#
|
|
1293
|
-
# @param
|
|
1294
|
-
# Required.
|
|
1295
|
-
#
|
|
2685
|
+
# @param cluster [::String]
|
|
2686
|
+
# Required. The cluster resource that this token auth user will be added for.
|
|
2687
|
+
# Format: projects/\\{project}/locations/\\{location}/clusters/\\{cluster}
|
|
2688
|
+
# @param token_auth_user [::String]
|
|
2689
|
+
# Required. The id of the token auth user to add.
|
|
1296
2690
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1297
|
-
# @yieldparam result [::
|
|
2691
|
+
# @yieldparam result [::Gapic::Operation]
|
|
1298
2692
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1299
2693
|
#
|
|
1300
|
-
# @return [::
|
|
2694
|
+
# @return [::Gapic::Operation]
|
|
1301
2695
|
#
|
|
1302
2696
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1303
2697
|
#
|
|
@@ -1308,24 +2702,31 @@ module Google
|
|
|
1308
2702
|
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
1309
2703
|
#
|
|
1310
2704
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1311
|
-
# request = Google::Cloud::Redis::Cluster::V1::
|
|
2705
|
+
# request = Google::Cloud::Redis::Cluster::V1::AddTokenAuthUserRequest.new
|
|
1312
2706
|
#
|
|
1313
|
-
# # Call the
|
|
1314
|
-
# result = client.
|
|
2707
|
+
# # Call the add_token_auth_user method.
|
|
2708
|
+
# result = client.add_token_auth_user request
|
|
1315
2709
|
#
|
|
1316
|
-
# # The returned object is of type
|
|
1317
|
-
#
|
|
2710
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
2711
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
2712
|
+
# # Here is how to wait for a response.
|
|
2713
|
+
# result.wait_until_done! timeout: 60
|
|
2714
|
+
# if result.response?
|
|
2715
|
+
# p result.response
|
|
2716
|
+
# else
|
|
2717
|
+
# puts "No response received."
|
|
2718
|
+
# end
|
|
1318
2719
|
#
|
|
1319
|
-
def
|
|
2720
|
+
def add_token_auth_user request, options = nil
|
|
1320
2721
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1321
2722
|
|
|
1322
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::
|
|
2723
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::AddTokenAuthUserRequest
|
|
1323
2724
|
|
|
1324
2725
|
# Converts hash and nil to an options object
|
|
1325
2726
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1326
2727
|
|
|
1327
2728
|
# Customize the options with defaults
|
|
1328
|
-
call_metadata = @config.rpcs.
|
|
2729
|
+
call_metadata = @config.rpcs.add_token_auth_user.metadata.to_h
|
|
1329
2730
|
|
|
1330
2731
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1331
2732
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -1336,44 +2737,63 @@ module Google
|
|
|
1336
2737
|
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1337
2738
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1338
2739
|
|
|
1339
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
2740
|
+
options.apply_defaults timeout: @config.rpcs.add_token_auth_user.timeout,
|
|
1340
2741
|
metadata: call_metadata,
|
|
1341
|
-
retry_policy: @config.rpcs.
|
|
2742
|
+
retry_policy: @config.rpcs.add_token_auth_user.retry_policy
|
|
1342
2743
|
|
|
1343
2744
|
options.apply_defaults timeout: @config.timeout,
|
|
1344
2745
|
metadata: @config.metadata,
|
|
1345
2746
|
retry_policy: @config.retry_policy
|
|
1346
2747
|
|
|
1347
|
-
@cloud_redis_cluster_stub.
|
|
2748
|
+
@cloud_redis_cluster_stub.add_token_auth_user request, options do |result, operation|
|
|
2749
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1348
2750
|
yield result, operation if block_given?
|
|
2751
|
+
throw :response, result
|
|
1349
2752
|
end
|
|
1350
2753
|
rescue ::Gapic::Rest::Error => e
|
|
1351
2754
|
raise ::Google::Cloud::Error.from_error(e)
|
|
1352
2755
|
end
|
|
1353
2756
|
|
|
1354
2757
|
##
|
|
1355
|
-
# Deletes a
|
|
2758
|
+
# Deletes a token auth user for a token based auth enabled cluster.
|
|
1356
2759
|
#
|
|
1357
|
-
# @overload
|
|
1358
|
-
# Pass arguments to `
|
|
1359
|
-
# {::Google::Cloud::Redis::Cluster::V1::
|
|
2760
|
+
# @overload delete_token_auth_user(request, options = nil)
|
|
2761
|
+
# Pass arguments to `delete_token_auth_user` via a request object, either of type
|
|
2762
|
+
# {::Google::Cloud::Redis::Cluster::V1::DeleteTokenAuthUserRequest} or an equivalent Hash.
|
|
1360
2763
|
#
|
|
1361
|
-
# @param request [::Google::Cloud::Redis::Cluster::V1::
|
|
2764
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::DeleteTokenAuthUserRequest, ::Hash]
|
|
1362
2765
|
# A request object representing the call parameters. Required. To specify no
|
|
1363
2766
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1364
2767
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1365
2768
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1366
2769
|
#
|
|
1367
|
-
# @overload
|
|
1368
|
-
# Pass arguments to `
|
|
2770
|
+
# @overload delete_token_auth_user(name: nil, request_id: nil, force: nil)
|
|
2771
|
+
# Pass arguments to `delete_token_auth_user` via keyword arguments. Note that at
|
|
1369
2772
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1370
2773
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1371
2774
|
#
|
|
1372
2775
|
# @param name [::String]
|
|
1373
|
-
# Required.
|
|
1374
|
-
#
|
|
2776
|
+
# Required. The name of the token auth user to delete.
|
|
2777
|
+
# Format:
|
|
2778
|
+
# projects/\\{project}/locations/\\{location}/clusters/\\{cluster}/tokenAuthUsers/\\{token_auth_user}
|
|
1375
2779
|
# @param request_id [::String]
|
|
1376
|
-
# Optional.
|
|
2780
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
2781
|
+
# request ID so that if you must retry your request, the server will know to
|
|
2782
|
+
# ignore the request if it has already been completed. The server will
|
|
2783
|
+
# guarantee that for at least 60 minutes after the first request.
|
|
2784
|
+
#
|
|
2785
|
+
# For example, consider a situation where you make an initial request and the
|
|
2786
|
+
# request times out. If you make the request again with the same request
|
|
2787
|
+
# ID, the server can check if original operation with the same request ID
|
|
2788
|
+
# was received, and if so, will ignore the second request. This prevents
|
|
2789
|
+
# clients from accidentally creating duplicate commitments.
|
|
2790
|
+
#
|
|
2791
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
2792
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
2793
|
+
# @param force [::Boolean]
|
|
2794
|
+
# Optional. If set to true, any child auth tokens of this user will also be
|
|
2795
|
+
# deleted. Otherwise, the request will only work if the user has no auth
|
|
2796
|
+
# tokens.
|
|
1377
2797
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1378
2798
|
# @yieldparam result [::Gapic::Operation]
|
|
1379
2799
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -1389,10 +2809,10 @@ module Google
|
|
|
1389
2809
|
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
1390
2810
|
#
|
|
1391
2811
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1392
|
-
# request = Google::Cloud::Redis::Cluster::V1::
|
|
2812
|
+
# request = Google::Cloud::Redis::Cluster::V1::DeleteTokenAuthUserRequest.new
|
|
1393
2813
|
#
|
|
1394
|
-
# # Call the
|
|
1395
|
-
# result = client.
|
|
2814
|
+
# # Call the delete_token_auth_user method.
|
|
2815
|
+
# result = client.delete_token_auth_user request
|
|
1396
2816
|
#
|
|
1397
2817
|
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1398
2818
|
# # check the status of an operation, cancel it, or wait for results.
|
|
@@ -1404,16 +2824,16 @@ module Google
|
|
|
1404
2824
|
# puts "No response received."
|
|
1405
2825
|
# end
|
|
1406
2826
|
#
|
|
1407
|
-
def
|
|
2827
|
+
def delete_token_auth_user request, options = nil
|
|
1408
2828
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1409
2829
|
|
|
1410
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::
|
|
2830
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::DeleteTokenAuthUserRequest
|
|
1411
2831
|
|
|
1412
2832
|
# Converts hash and nil to an options object
|
|
1413
2833
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1414
2834
|
|
|
1415
2835
|
# Customize the options with defaults
|
|
1416
|
-
call_metadata = @config.rpcs.
|
|
2836
|
+
call_metadata = @config.rpcs.delete_token_auth_user.metadata.to_h
|
|
1417
2837
|
|
|
1418
2838
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1419
2839
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -1424,15 +2844,15 @@ module Google
|
|
|
1424
2844
|
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1425
2845
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1426
2846
|
|
|
1427
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
2847
|
+
options.apply_defaults timeout: @config.rpcs.delete_token_auth_user.timeout,
|
|
1428
2848
|
metadata: call_metadata,
|
|
1429
|
-
retry_policy: @config.rpcs.
|
|
2849
|
+
retry_policy: @config.rpcs.delete_token_auth_user.retry_policy
|
|
1430
2850
|
|
|
1431
2851
|
options.apply_defaults timeout: @config.timeout,
|
|
1432
2852
|
metadata: @config.metadata,
|
|
1433
2853
|
retry_policy: @config.retry_policy
|
|
1434
2854
|
|
|
1435
|
-
@cloud_redis_cluster_stub.
|
|
2855
|
+
@cloud_redis_cluster_stub.delete_token_auth_user request, options do |result, operation|
|
|
1436
2856
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1437
2857
|
yield result, operation if block_given?
|
|
1438
2858
|
throw :response, result
|
|
@@ -1442,28 +2862,29 @@ module Google
|
|
|
1442
2862
|
end
|
|
1443
2863
|
|
|
1444
2864
|
##
|
|
1445
|
-
#
|
|
2865
|
+
# Adds a auth token for a user of a token based auth enabled cluster.
|
|
1446
2866
|
#
|
|
1447
|
-
# @overload
|
|
1448
|
-
# Pass arguments to `
|
|
1449
|
-
# {::Google::Cloud::Redis::Cluster::V1::
|
|
2867
|
+
# @overload add_auth_token(request, options = nil)
|
|
2868
|
+
# Pass arguments to `add_auth_token` via a request object, either of type
|
|
2869
|
+
# {::Google::Cloud::Redis::Cluster::V1::AddAuthTokenRequest} or an equivalent Hash.
|
|
1450
2870
|
#
|
|
1451
|
-
# @param request [::Google::Cloud::Redis::Cluster::V1::
|
|
2871
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::AddAuthTokenRequest, ::Hash]
|
|
1452
2872
|
# A request object representing the call parameters. Required. To specify no
|
|
1453
2873
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1454
2874
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1455
2875
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1456
2876
|
#
|
|
1457
|
-
# @overload
|
|
1458
|
-
# Pass arguments to `
|
|
2877
|
+
# @overload add_auth_token(token_auth_user: nil, auth_token: nil)
|
|
2878
|
+
# Pass arguments to `add_auth_token` via keyword arguments. Note that at
|
|
1459
2879
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1460
2880
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1461
2881
|
#
|
|
1462
|
-
# @param
|
|
1463
|
-
#
|
|
1464
|
-
#
|
|
1465
|
-
#
|
|
1466
|
-
#
|
|
2882
|
+
# @param token_auth_user [::String]
|
|
2883
|
+
# Required. The name of the token auth user resource that this auth token
|
|
2884
|
+
# will be added for. Format:
|
|
2885
|
+
# projects/\\{project}/locations/\\{location}/clusters/\\{cluster}/tokenAuthUsers/\\{token_auth_user}
|
|
2886
|
+
# @param auth_token [::Google::Cloud::Redis::Cluster::V1::AuthToken, ::Hash]
|
|
2887
|
+
# Required. The auth token to add.
|
|
1467
2888
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1468
2889
|
# @yieldparam result [::Gapic::Operation]
|
|
1469
2890
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -1479,10 +2900,10 @@ module Google
|
|
|
1479
2900
|
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
1480
2901
|
#
|
|
1481
2902
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1482
|
-
# request = Google::Cloud::Redis::Cluster::V1::
|
|
2903
|
+
# request = Google::Cloud::Redis::Cluster::V1::AddAuthTokenRequest.new
|
|
1483
2904
|
#
|
|
1484
|
-
# # Call the
|
|
1485
|
-
# result = client.
|
|
2905
|
+
# # Call the add_auth_token method.
|
|
2906
|
+
# result = client.add_auth_token request
|
|
1486
2907
|
#
|
|
1487
2908
|
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1488
2909
|
# # check the status of an operation, cancel it, or wait for results.
|
|
@@ -1494,16 +2915,16 @@ module Google
|
|
|
1494
2915
|
# puts "No response received."
|
|
1495
2916
|
# end
|
|
1496
2917
|
#
|
|
1497
|
-
def
|
|
2918
|
+
def add_auth_token request, options = nil
|
|
1498
2919
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1499
2920
|
|
|
1500
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::
|
|
2921
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::AddAuthTokenRequest
|
|
1501
2922
|
|
|
1502
2923
|
# Converts hash and nil to an options object
|
|
1503
2924
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1504
2925
|
|
|
1505
2926
|
# Customize the options with defaults
|
|
1506
|
-
call_metadata = @config.rpcs.
|
|
2927
|
+
call_metadata = @config.rpcs.add_auth_token.metadata.to_h
|
|
1507
2928
|
|
|
1508
2929
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1509
2930
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -1514,15 +2935,15 @@ module Google
|
|
|
1514
2935
|
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1515
2936
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1516
2937
|
|
|
1517
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
2938
|
+
options.apply_defaults timeout: @config.rpcs.add_auth_token.timeout,
|
|
1518
2939
|
metadata: call_metadata,
|
|
1519
|
-
retry_policy: @config.rpcs.
|
|
2940
|
+
retry_policy: @config.rpcs.add_auth_token.retry_policy
|
|
1520
2941
|
|
|
1521
2942
|
options.apply_defaults timeout: @config.timeout,
|
|
1522
2943
|
metadata: @config.metadata,
|
|
1523
2944
|
retry_policy: @config.retry_policy
|
|
1524
2945
|
|
|
1525
|
-
@cloud_redis_cluster_stub.
|
|
2946
|
+
@cloud_redis_cluster_stub.add_auth_token request, options do |result, operation|
|
|
1526
2947
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1527
2948
|
yield result, operation if block_given?
|
|
1528
2949
|
throw :response, result
|
|
@@ -1532,44 +2953,27 @@ module Google
|
|
|
1532
2953
|
end
|
|
1533
2954
|
|
|
1534
2955
|
##
|
|
1535
|
-
#
|
|
1536
|
-
# If this is the first time a backup is being created, a backup collection
|
|
1537
|
-
# will be created at the backend, and this backup belongs to this collection.
|
|
1538
|
-
# Both collection and backup will have a resource name. Backup will be
|
|
1539
|
-
# executed for each shard. A replica (primary if nonHA) will be selected to
|
|
1540
|
-
# perform the execution. Backup call will be rejected if there is an ongoing
|
|
1541
|
-
# backup or update operation. Be aware that during preview, if the cluster's
|
|
1542
|
-
# internal software version is too old, critical update will be performed
|
|
1543
|
-
# before actual backup. Once the internal software version is updated to the
|
|
1544
|
-
# minimum version required by the backup feature, subsequent backups will not
|
|
1545
|
-
# require critical update. After preview, there will be no critical update
|
|
1546
|
-
# needed for backup.
|
|
2956
|
+
# Removes a auth token for a user of a token based auth enabled instance.
|
|
1547
2957
|
#
|
|
1548
|
-
# @overload
|
|
1549
|
-
# Pass arguments to `
|
|
1550
|
-
# {::Google::Cloud::Redis::Cluster::V1::
|
|
2958
|
+
# @overload delete_auth_token(request, options = nil)
|
|
2959
|
+
# Pass arguments to `delete_auth_token` via a request object, either of type
|
|
2960
|
+
# {::Google::Cloud::Redis::Cluster::V1::DeleteAuthTokenRequest} or an equivalent Hash.
|
|
1551
2961
|
#
|
|
1552
|
-
# @param request [::Google::Cloud::Redis::Cluster::V1::
|
|
2962
|
+
# @param request [::Google::Cloud::Redis::Cluster::V1::DeleteAuthTokenRequest, ::Hash]
|
|
1553
2963
|
# A request object representing the call parameters. Required. To specify no
|
|
1554
2964
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1555
2965
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1556
2966
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1557
2967
|
#
|
|
1558
|
-
# @overload
|
|
1559
|
-
# Pass arguments to `
|
|
2968
|
+
# @overload delete_auth_token(name: nil)
|
|
2969
|
+
# Pass arguments to `delete_auth_token` via keyword arguments. Note that at
|
|
1560
2970
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1561
2971
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1562
2972
|
#
|
|
1563
2973
|
# @param name [::String]
|
|
1564
|
-
# Required.
|
|
1565
|
-
#
|
|
1566
|
-
#
|
|
1567
|
-
# @param ttl [::Google::Protobuf::Duration, ::Hash]
|
|
1568
|
-
# Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
|
|
1569
|
-
# If not specified, the default value is 100 years.
|
|
1570
|
-
# @param backup_id [::String]
|
|
1571
|
-
# Optional. The id of the backup to be created. If not specified, the
|
|
1572
|
-
# default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
|
|
2974
|
+
# Required. The name of the token auth user resource that this auth token
|
|
2975
|
+
# will be deleted from. Format:
|
|
2976
|
+
# projects/\\{project}/locations/\\{location}/clusters/\\{cluster}/tokenAuthUsers/\\{token_auth_user}/authTokens/\\{auth_token}
|
|
1573
2977
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1574
2978
|
# @yieldparam result [::Gapic::Operation]
|
|
1575
2979
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -1585,10 +2989,10 @@ module Google
|
|
|
1585
2989
|
# client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
|
|
1586
2990
|
#
|
|
1587
2991
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1588
|
-
# request = Google::Cloud::Redis::Cluster::V1::
|
|
2992
|
+
# request = Google::Cloud::Redis::Cluster::V1::DeleteAuthTokenRequest.new
|
|
1589
2993
|
#
|
|
1590
|
-
# # Call the
|
|
1591
|
-
# result = client.
|
|
2994
|
+
# # Call the delete_auth_token method.
|
|
2995
|
+
# result = client.delete_auth_token request
|
|
1592
2996
|
#
|
|
1593
2997
|
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1594
2998
|
# # check the status of an operation, cancel it, or wait for results.
|
|
@@ -1600,16 +3004,16 @@ module Google
|
|
|
1600
3004
|
# puts "No response received."
|
|
1601
3005
|
# end
|
|
1602
3006
|
#
|
|
1603
|
-
def
|
|
3007
|
+
def delete_auth_token request, options = nil
|
|
1604
3008
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1605
3009
|
|
|
1606
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::
|
|
3010
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::DeleteAuthTokenRequest
|
|
1607
3011
|
|
|
1608
3012
|
# Converts hash and nil to an options object
|
|
1609
3013
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1610
3014
|
|
|
1611
3015
|
# Customize the options with defaults
|
|
1612
|
-
call_metadata = @config.rpcs.
|
|
3016
|
+
call_metadata = @config.rpcs.delete_auth_token.metadata.to_h
|
|
1613
3017
|
|
|
1614
3018
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1615
3019
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -1620,15 +3024,15 @@ module Google
|
|
|
1620
3024
|
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1621
3025
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1622
3026
|
|
|
1623
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
3027
|
+
options.apply_defaults timeout: @config.rpcs.delete_auth_token.timeout,
|
|
1624
3028
|
metadata: call_metadata,
|
|
1625
|
-
retry_policy: @config.rpcs.
|
|
3029
|
+
retry_policy: @config.rpcs.delete_auth_token.retry_policy
|
|
1626
3030
|
|
|
1627
3031
|
options.apply_defaults timeout: @config.timeout,
|
|
1628
3032
|
metadata: @config.metadata,
|
|
1629
3033
|
retry_policy: @config.retry_policy
|
|
1630
3034
|
|
|
1631
|
-
@cloud_redis_cluster_stub.
|
|
3035
|
+
@cloud_redis_cluster_stub.delete_auth_token request, options do |result, operation|
|
|
1632
3036
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1633
3037
|
yield result, operation if block_given?
|
|
1634
3038
|
throw :response, result
|
|
@@ -1798,26 +3202,61 @@ module Google
|
|
|
1798
3202
|
#
|
|
1799
3203
|
attr_reader :list_clusters
|
|
1800
3204
|
##
|
|
3205
|
+
# RPC-specific configuration for `list_acl_policies`
|
|
3206
|
+
# @return [::Gapic::Config::Method]
|
|
3207
|
+
#
|
|
3208
|
+
attr_reader :list_acl_policies
|
|
3209
|
+
##
|
|
1801
3210
|
# RPC-specific configuration for `get_cluster`
|
|
1802
3211
|
# @return [::Gapic::Config::Method]
|
|
1803
3212
|
#
|
|
1804
3213
|
attr_reader :get_cluster
|
|
1805
3214
|
##
|
|
3215
|
+
# RPC-specific configuration for `get_acl_policy`
|
|
3216
|
+
# @return [::Gapic::Config::Method]
|
|
3217
|
+
#
|
|
3218
|
+
attr_reader :get_acl_policy
|
|
3219
|
+
##
|
|
1806
3220
|
# RPC-specific configuration for `update_cluster`
|
|
1807
3221
|
# @return [::Gapic::Config::Method]
|
|
1808
3222
|
#
|
|
1809
3223
|
attr_reader :update_cluster
|
|
1810
3224
|
##
|
|
3225
|
+
# RPC-specific configuration for `update_acl_policy`
|
|
3226
|
+
# @return [::Gapic::Config::Method]
|
|
3227
|
+
#
|
|
3228
|
+
attr_reader :update_acl_policy
|
|
3229
|
+
##
|
|
1811
3230
|
# RPC-specific configuration for `delete_cluster`
|
|
1812
3231
|
# @return [::Gapic::Config::Method]
|
|
1813
3232
|
#
|
|
1814
3233
|
attr_reader :delete_cluster
|
|
1815
3234
|
##
|
|
3235
|
+
# RPC-specific configuration for `delete_acl_policy`
|
|
3236
|
+
# @return [::Gapic::Config::Method]
|
|
3237
|
+
#
|
|
3238
|
+
attr_reader :delete_acl_policy
|
|
3239
|
+
##
|
|
3240
|
+
# RPC-specific configuration for `get_acl_policy_revision`
|
|
3241
|
+
# @return [::Gapic::Config::Method]
|
|
3242
|
+
#
|
|
3243
|
+
attr_reader :get_acl_policy_revision
|
|
3244
|
+
##
|
|
3245
|
+
# RPC-specific configuration for `list_acl_policy_revisions`
|
|
3246
|
+
# @return [::Gapic::Config::Method]
|
|
3247
|
+
#
|
|
3248
|
+
attr_reader :list_acl_policy_revisions
|
|
3249
|
+
##
|
|
1816
3250
|
# RPC-specific configuration for `create_cluster`
|
|
1817
3251
|
# @return [::Gapic::Config::Method]
|
|
1818
3252
|
#
|
|
1819
3253
|
attr_reader :create_cluster
|
|
1820
3254
|
##
|
|
3255
|
+
# RPC-specific configuration for `create_acl_policy`
|
|
3256
|
+
# @return [::Gapic::Config::Method]
|
|
3257
|
+
#
|
|
3258
|
+
attr_reader :create_acl_policy
|
|
3259
|
+
##
|
|
1821
3260
|
# RPC-specific configuration for `get_cluster_certificate_authority`
|
|
1822
3261
|
# @return [::Gapic::Config::Method]
|
|
1823
3262
|
#
|
|
@@ -1867,19 +3306,73 @@ module Google
|
|
|
1867
3306
|
# @return [::Gapic::Config::Method]
|
|
1868
3307
|
#
|
|
1869
3308
|
attr_reader :backup_cluster
|
|
3309
|
+
##
|
|
3310
|
+
# RPC-specific configuration for `list_token_auth_users`
|
|
3311
|
+
# @return [::Gapic::Config::Method]
|
|
3312
|
+
#
|
|
3313
|
+
attr_reader :list_token_auth_users
|
|
3314
|
+
##
|
|
3315
|
+
# RPC-specific configuration for `get_token_auth_user`
|
|
3316
|
+
# @return [::Gapic::Config::Method]
|
|
3317
|
+
#
|
|
3318
|
+
attr_reader :get_token_auth_user
|
|
3319
|
+
##
|
|
3320
|
+
# RPC-specific configuration for `list_auth_tokens`
|
|
3321
|
+
# @return [::Gapic::Config::Method]
|
|
3322
|
+
#
|
|
3323
|
+
attr_reader :list_auth_tokens
|
|
3324
|
+
##
|
|
3325
|
+
# RPC-specific configuration for `get_auth_token`
|
|
3326
|
+
# @return [::Gapic::Config::Method]
|
|
3327
|
+
#
|
|
3328
|
+
attr_reader :get_auth_token
|
|
3329
|
+
##
|
|
3330
|
+
# RPC-specific configuration for `add_token_auth_user`
|
|
3331
|
+
# @return [::Gapic::Config::Method]
|
|
3332
|
+
#
|
|
3333
|
+
attr_reader :add_token_auth_user
|
|
3334
|
+
##
|
|
3335
|
+
# RPC-specific configuration for `delete_token_auth_user`
|
|
3336
|
+
# @return [::Gapic::Config::Method]
|
|
3337
|
+
#
|
|
3338
|
+
attr_reader :delete_token_auth_user
|
|
3339
|
+
##
|
|
3340
|
+
# RPC-specific configuration for `add_auth_token`
|
|
3341
|
+
# @return [::Gapic::Config::Method]
|
|
3342
|
+
#
|
|
3343
|
+
attr_reader :add_auth_token
|
|
3344
|
+
##
|
|
3345
|
+
# RPC-specific configuration for `delete_auth_token`
|
|
3346
|
+
# @return [::Gapic::Config::Method]
|
|
3347
|
+
#
|
|
3348
|
+
attr_reader :delete_auth_token
|
|
1870
3349
|
|
|
1871
3350
|
# @private
|
|
1872
3351
|
def initialize parent_rpcs = nil
|
|
1873
3352
|
list_clusters_config = parent_rpcs.list_clusters if parent_rpcs.respond_to? :list_clusters
|
|
1874
3353
|
@list_clusters = ::Gapic::Config::Method.new list_clusters_config
|
|
3354
|
+
list_acl_policies_config = parent_rpcs.list_acl_policies if parent_rpcs.respond_to? :list_acl_policies
|
|
3355
|
+
@list_acl_policies = ::Gapic::Config::Method.new list_acl_policies_config
|
|
1875
3356
|
get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
|
|
1876
3357
|
@get_cluster = ::Gapic::Config::Method.new get_cluster_config
|
|
3358
|
+
get_acl_policy_config = parent_rpcs.get_acl_policy if parent_rpcs.respond_to? :get_acl_policy
|
|
3359
|
+
@get_acl_policy = ::Gapic::Config::Method.new get_acl_policy_config
|
|
1877
3360
|
update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
|
|
1878
3361
|
@update_cluster = ::Gapic::Config::Method.new update_cluster_config
|
|
3362
|
+
update_acl_policy_config = parent_rpcs.update_acl_policy if parent_rpcs.respond_to? :update_acl_policy
|
|
3363
|
+
@update_acl_policy = ::Gapic::Config::Method.new update_acl_policy_config
|
|
1879
3364
|
delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
|
|
1880
3365
|
@delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
|
|
3366
|
+
delete_acl_policy_config = parent_rpcs.delete_acl_policy if parent_rpcs.respond_to? :delete_acl_policy
|
|
3367
|
+
@delete_acl_policy = ::Gapic::Config::Method.new delete_acl_policy_config
|
|
3368
|
+
get_acl_policy_revision_config = parent_rpcs.get_acl_policy_revision if parent_rpcs.respond_to? :get_acl_policy_revision
|
|
3369
|
+
@get_acl_policy_revision = ::Gapic::Config::Method.new get_acl_policy_revision_config
|
|
3370
|
+
list_acl_policy_revisions_config = parent_rpcs.list_acl_policy_revisions if parent_rpcs.respond_to? :list_acl_policy_revisions
|
|
3371
|
+
@list_acl_policy_revisions = ::Gapic::Config::Method.new list_acl_policy_revisions_config
|
|
1881
3372
|
create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
|
|
1882
3373
|
@create_cluster = ::Gapic::Config::Method.new create_cluster_config
|
|
3374
|
+
create_acl_policy_config = parent_rpcs.create_acl_policy if parent_rpcs.respond_to? :create_acl_policy
|
|
3375
|
+
@create_acl_policy = ::Gapic::Config::Method.new create_acl_policy_config
|
|
1883
3376
|
get_cluster_certificate_authority_config = parent_rpcs.get_cluster_certificate_authority if parent_rpcs.respond_to? :get_cluster_certificate_authority
|
|
1884
3377
|
@get_cluster_certificate_authority = ::Gapic::Config::Method.new get_cluster_certificate_authority_config
|
|
1885
3378
|
get_shared_regional_certificate_authority_config = parent_rpcs.get_shared_regional_certificate_authority if parent_rpcs.respond_to? :get_shared_regional_certificate_authority
|
|
@@ -1900,6 +3393,22 @@ module Google
|
|
|
1900
3393
|
@export_backup = ::Gapic::Config::Method.new export_backup_config
|
|
1901
3394
|
backup_cluster_config = parent_rpcs.backup_cluster if parent_rpcs.respond_to? :backup_cluster
|
|
1902
3395
|
@backup_cluster = ::Gapic::Config::Method.new backup_cluster_config
|
|
3396
|
+
list_token_auth_users_config = parent_rpcs.list_token_auth_users if parent_rpcs.respond_to? :list_token_auth_users
|
|
3397
|
+
@list_token_auth_users = ::Gapic::Config::Method.new list_token_auth_users_config
|
|
3398
|
+
get_token_auth_user_config = parent_rpcs.get_token_auth_user if parent_rpcs.respond_to? :get_token_auth_user
|
|
3399
|
+
@get_token_auth_user = ::Gapic::Config::Method.new get_token_auth_user_config
|
|
3400
|
+
list_auth_tokens_config = parent_rpcs.list_auth_tokens if parent_rpcs.respond_to? :list_auth_tokens
|
|
3401
|
+
@list_auth_tokens = ::Gapic::Config::Method.new list_auth_tokens_config
|
|
3402
|
+
get_auth_token_config = parent_rpcs.get_auth_token if parent_rpcs.respond_to? :get_auth_token
|
|
3403
|
+
@get_auth_token = ::Gapic::Config::Method.new get_auth_token_config
|
|
3404
|
+
add_token_auth_user_config = parent_rpcs.add_token_auth_user if parent_rpcs.respond_to? :add_token_auth_user
|
|
3405
|
+
@add_token_auth_user = ::Gapic::Config::Method.new add_token_auth_user_config
|
|
3406
|
+
delete_token_auth_user_config = parent_rpcs.delete_token_auth_user if parent_rpcs.respond_to? :delete_token_auth_user
|
|
3407
|
+
@delete_token_auth_user = ::Gapic::Config::Method.new delete_token_auth_user_config
|
|
3408
|
+
add_auth_token_config = parent_rpcs.add_auth_token if parent_rpcs.respond_to? :add_auth_token
|
|
3409
|
+
@add_auth_token = ::Gapic::Config::Method.new add_auth_token_config
|
|
3410
|
+
delete_auth_token_config = parent_rpcs.delete_auth_token if parent_rpcs.respond_to? :delete_auth_token
|
|
3411
|
+
@delete_auth_token = ::Gapic::Config::Method.new delete_auth_token_config
|
|
1903
3412
|
|
|
1904
3413
|
yield self if block_given?
|
|
1905
3414
|
end
|