google-cloud-redis-cluster-v1beta1 0.1.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.
Files changed (35) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +144 -0
  6. data/lib/google/cloud/redis/cluster/v1beta1/bindings_override.rb +104 -0
  7. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/client.rb +1048 -0
  8. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/credentials.rb +49 -0
  9. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/operations.rb +811 -0
  10. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/paths.rb +90 -0
  11. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/rest/client.rb +987 -0
  12. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/rest/operations.rb +903 -0
  13. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/rest/service_stub.rb +427 -0
  14. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/rest.rb +76 -0
  15. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.rb +78 -0
  16. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster_pb.rb +84 -0
  17. data/lib/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster_services_pb.rb +97 -0
  18. data/lib/google/cloud/redis/cluster/v1beta1/rest.rb +40 -0
  19. data/lib/google/cloud/redis/cluster/v1beta1/version.rb +30 -0
  20. data/lib/google/cloud/redis/cluster/v1beta1.rb +47 -0
  21. data/lib/google-cloud-redis-cluster-v1beta1.rb +21 -0
  22. data/proto_docs/README.md +4 -0
  23. data/proto_docs/google/api/client.rb +399 -0
  24. data/proto_docs/google/api/field_behavior.rb +85 -0
  25. data/proto_docs/google/api/launch_stage.rb +71 -0
  26. data/proto_docs/google/api/resource.rb +222 -0
  27. data/proto_docs/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.rb +564 -0
  28. data/proto_docs/google/longrunning/operations.rb +164 -0
  29. data/proto_docs/google/protobuf/any.rb +145 -0
  30. data/proto_docs/google/protobuf/duration.rb +98 -0
  31. data/proto_docs/google/protobuf/empty.rb +34 -0
  32. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  33. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  34. data/proto_docs/google/rpc/status.rb +48 -0
  35. metadata +132 -0
@@ -0,0 +1,84 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+ require 'google/longrunning/operations_pb'
12
+ require 'google/protobuf/any_pb'
13
+ require 'google/protobuf/empty_pb'
14
+ require 'google/protobuf/field_mask_pb'
15
+ require 'google/protobuf/timestamp_pb'
16
+
17
+
18
+ descriptor_data = "\n<google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto\x12\"google.cloud.redis.cluster.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x19google/protobuf/any.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc1\x01\n\x14\x43reateClusterRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x17\n\ncluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x07\x63luster\x18\x03 \x01(\x0b\x32+.google.cloud.redis.cluster.v1beta1.ClusterB\x03\xe0\x41\x02\x12\x12\n\nrequest_id\x18\x04 \x01(\t\"w\n\x13ListClustersRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x83\x01\n\x14ListClustersResponse\x12=\n\x08\x63lusters\x18\x01 \x03(\x0b\x32+.google.cloud.redis.cluster.v1beta1.Cluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xa3\x01\n\x14UpdateClusterRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x41\n\x07\x63luster\x18\x02 \x01(\x0b\x32+.google.cloud.redis.cluster.v1beta1.ClusterB\x03\xe0\x41\x02\x12\x12\n\nrequest_id\x18\x03 \x01(\t\"G\n\x11GetClusterRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1credis.googleapis.com/Cluster\"^\n\x14\x44\x65leteClusterRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1credis.googleapis.com/Cluster\x12\x12\n\nrequest_id\x18\x02 \x01(\t\"h\n%GetClusterCertificateAuthorityRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)redis.googleapis.com/CertificateAuthority\"\xf5\r\n\x07\x43luster\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x45\n\x05state\x18\x04 \x01(\x0e\x32\x31.google.cloud.redis.cluster.v1beta1.Cluster.StateB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\rreplica_count\x18\x08 \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12V\n\x12\x61uthorization_mode\x18\x0b \x01(\x0e\x32\x35.google.cloud.redis.cluster.v1beta1.AuthorizationModeB\x03\xe0\x41\x01\x12_\n\x17transit_encryption_mode\x18\x0c \x01(\x0e\x32\x39.google.cloud.redis.cluster.v1beta1.TransitEncryptionModeB\x03\xe0\x41\x01\x12\x19\n\x07size_gb\x18\r \x01(\x05\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1d\n\x0bshard_count\x18\x0e \x01(\x05\x42\x03\xe0\x41\x02H\x02\x88\x01\x01\x12G\n\x0bpsc_configs\x18\x0f \x03(\x0b\x32-.google.cloud.redis.cluster.v1beta1.PscConfigB\x03\xe0\x41\x02\x12W\n\x13\x64iscovery_endpoints\x18\x10 \x03(\x0b\x32\x35.google.cloud.redis.cluster.v1beta1.DiscoveryEndpointB\x03\xe0\x41\x03\x12O\n\x0fpsc_connections\x18\x11 \x03(\x0b\x32\x31.google.cloud.redis.cluster.v1beta1.PscConnectionB\x03\xe0\x41\x03\x12N\n\nstate_info\x18\x12 \x01(\x0b\x32\x35.google.cloud.redis.cluster.v1beta1.Cluster.StateInfoB\x03\xe0\x41\x03\x12\x44\n\tnode_type\x18\x13 \x01(\x0e\x32,.google.cloud.redis.cluster.v1beta1.NodeTypeB\x03\xe0\x41\x01\x12]\n\x12persistence_config\x18\x14 \x01(\x0b\x32<.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfigB\x03\xe0\x41\x01\x12Y\n\rredis_configs\x18\x15 \x03(\x0b\x32=.google.cloud.redis.cluster.v1beta1.Cluster.RedisConfigsEntryB\x03\xe0\x41\x01\x12!\n\x0fprecise_size_gb\x18\x16 \x01(\x01\x42\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\x61\n\x18zone_distribution_config\x18\x17 \x01(\x0b\x32:.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfigB\x03\xe0\x41\x01\x12-\n\x1b\x64\x65letion_protection_enabled\x18\x19 \x01(\x08\x42\x03\xe0\x41\x01H\x04\x88\x01\x01\x1a\xef\x01\n\tStateInfo\x12W\n\x0bupdate_info\x18\x01 \x01(\x0b\x32@.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.UpdateInfoH\x00\x1a\x80\x01\n\nUpdateInfo\x12\x1f\n\x12target_shard_count\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12!\n\x14target_replica_count\x18\x02 \x01(\x05H\x01\x88\x01\x01\x42\x15\n\x13_target_shard_countB\x17\n\x15_target_replica_countB\x06\n\x04info\x1a\x33\n\x11RedisConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"T\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04:]\xea\x41Z\n\x1credis.googleapis.com/Cluster\x12:projects/{project}/locations/{location}/clusters/{cluster}B\x10\n\x0e_replica_countB\n\n\x08_size_gbB\x0e\n\x0c_shard_countB\x12\n\x10_precise_size_gbB\x1e\n\x1c_deletion_protection_enabled\"!\n\tPscConfig\x12\x14\n\x07network\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x84\x01\n\x11\x44iscoveryEndpoint\x12\x14\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04port\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x12\x46\n\npsc_config\x18\x03 \x01(\x0b\x32-.google.cloud.redis.cluster.v1beta1.PscConfigB\x03\xe0\x41\x03\"\x8d\x01\n\rPscConnection\x12\x1e\n\x11psc_connection_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07\x61\x64\x64ress\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0f\x66orwarding_rule\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nproject_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x0f\n\x07network\x18\x05 \x01(\t\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"\xdf\x03\n\x14\x43\x65rtificateAuthority\x12q\n\x11managed_server_ca\x18\x01 \x01(\x0b\x32T.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthorityH\x00\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x08\x1a\xb2\x01\n\x1bManagedCertificateAuthority\x12p\n\x08\x63\x61_certs\x18\x01 \x03(\x0b\x32^.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain\x1a!\n\tCertChain\x12\x14\n\x0c\x63\x65rtificates\x18\x01 \x03(\t:\x7f\xea\x41|\n)redis.googleapis.com/CertificateAuthority\x12Oprojects/{project}/locations/{location}/clusters/{cluster}/certificateAuthorityB\x0b\n\tserver_ca\"\xa0\x07\n\x18\x43lusterPersistenceConfig\x12_\n\x04mode\x18\x01 \x01(\x0e\x32L.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceModeB\x03\xe0\x41\x01\x12_\n\nrdb_config\x18\x02 \x01(\x0b\x32\x46.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfigB\x03\xe0\x41\x01\x12_\n\naof_config\x18\x03 \x01(\x0b\x32\x46.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfigB\x03\xe0\x41\x01\x1a\xbf\x02\n\tRDBConfig\x12w\n\x13rdb_snapshot_period\x18\x01 \x01(\x0e\x32U.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriodB\x03\xe0\x41\x01\x12@\n\x17rdb_snapshot_start_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"w\n\x0eSnapshotPeriod\x12\x1f\n\x1bSNAPSHOT_PERIOD_UNSPECIFIED\x10\x00\x12\x0c\n\x08ONE_HOUR\x10\x01\x12\r\n\tSIX_HOURS\x10\x02\x12\x10\n\x0cTWELVE_HOURS\x10\x03\x12\x15\n\x11TWENTY_FOUR_HOURS\x10\x04\x1a\xc9\x01\n\tAOFConfig\x12m\n\x0c\x61ppend_fsync\x18\x01 \x01(\x0e\x32R.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsyncB\x03\xe0\x41\x01\"M\n\x0b\x41ppendFsync\x12\x1c\n\x18\x41PPEND_FSYNC_UNSPECIFIED\x10\x00\x12\x06\n\x02NO\x10\x01\x12\x0c\n\x08\x45VERYSEC\x10\x02\x12\n\n\x06\x41LWAYS\x10\x03\"S\n\x0fPersistenceMode\x12 \n\x1cPERSISTENCE_MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\x07\n\x03RDB\x10\x02\x12\x07\n\x03\x41OF\x10\x03\"\xf0\x01\n\x16ZoneDistributionConfig\x12\x62\n\x04mode\x18\x01 \x01(\x0e\x32O.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionModeB\x03\xe0\x41\x01\x12\x11\n\x04zone\x18\x02 \x01(\tB\x03\xe0\x41\x01\"_\n\x14ZoneDistributionMode\x12&\n\"ZONE_DISTRIBUTION_MODE_UNSPECIFIED\x10\x00\x12\x0e\n\nMULTI_ZONE\x10\x01\x12\x0f\n\x0bSINGLE_ZONE\x10\x02*^\n\x11\x41uthorizationMode\x12\x19\n\x15\x41UTH_MODE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x41UTH_MODE_IAM_AUTH\x10\x01\x12\x16\n\x12\x41UTH_MODE_DISABLED\x10\x02*\x8f\x01\n\x08NodeType\x12\x19\n\x15NODE_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16REDIS_SHARED_CORE_NANO\x10\x01\x12\x18\n\x14REDIS_HIGHMEM_MEDIUM\x10\x02\x12\x18\n\x14REDIS_HIGHMEM_XLARGE\x10\x03\x12\x18\n\x14REDIS_STANDARD_SMALL\x10\x04*\x99\x01\n\x15TransitEncryptionMode\x12\'\n#TRANSIT_ENCRYPTION_MODE_UNSPECIFIED\x10\x00\x12$\n TRANSIT_ENCRYPTION_MODE_DISABLED\x10\x01\x12\x31\n-TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION\x10\x02\x32\x90\x0b\n\x11\x43loudRedisCluster\x12\xc5\x01\n\x0cListClusters\x12\x37.google.cloud.redis.cluster.v1beta1.ListClustersRequest\x1a\x38.google.cloud.redis.cluster.v1beta1.ListClustersResponse\"B\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x33\x12\x31/v1beta1/{parent=projects/*/locations/*}/clusters\x12\xb2\x01\n\nGetCluster\x12\x35.google.cloud.redis.cluster.v1beta1.GetClusterRequest\x1a+.google.cloud.redis.cluster.v1beta1.Cluster\"@\xda\x41\x04name\x82\xd3\xe4\x93\x02\x33\x12\x31/v1beta1/{name=projects/*/locations/*/clusters/*}\x12\xec\x01\n\rUpdateCluster\x12\x38.google.cloud.redis.cluster.v1beta1.UpdateClusterRequest\x1a\x1d.google.longrunning.Operation\"\x81\x01\xca\x41\x1e\n\x07\x43luster\x12\x13google.protobuf.Any\xda\x41\x13\x63luster,update_mask\x82\xd3\xe4\x93\x02\x44\x32\x39/v1beta1/{cluster.name=projects/*/locations/*/clusters/*}:\x07\x63luster\x12\xd9\x01\n\rDeleteCluster\x12\x38.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest\x1a\x1d.google.longrunning.Operation\"o\xca\x41,\n\x15google.protobuf.Empty\x12\x13google.protobuf.Any\xda\x41\x04name\x82\xd3\xe4\x93\x02\x33*1/v1beta1/{name=projects/*/locations/*/clusters/*}\x12\xe9\x01\n\rCreateCluster\x12\x38.google.cloud.redis.cluster.v1beta1.CreateClusterRequest\x1a\x1d.google.longrunning.Operation\"\x7f\xca\x41\x1e\n\x07\x43luster\x12\x13google.protobuf.Any\xda\x41\x19parent,cluster,cluster_id\x82\xd3\xe4\x93\x02<\"1/v1beta1/{parent=projects/*/locations/*}/clusters:\x07\x63luster\x12\xfc\x01\n\x1eGetClusterCertificateAuthority\x12I.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest\x1a\x38.google.cloud.redis.cluster.v1beta1.CertificateAuthority\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H\x12\x46/v1beta1/{name=projects/*/locations/*/clusters/*/certificateAuthority}\x1aH\xca\x41\x14redis.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xad\x01\n&com.google.cloud.redis.cluster.v1beta1B\x16\x43loudRedisClusterProtoP\x01Z@cloud.google.com/go/redis/cluster/apiv1beta1/clusterpb;clusterpb\xea\x02&Google::Cloud::Redis::Cluster::V1beta1b\x06proto3"
19
+
20
+ pool = Google::Protobuf::DescriptorPool.generated_pool
21
+
22
+ begin
23
+ pool.add_serialized_file(descriptor_data)
24
+ rescue TypeError
25
+ # Compatibility code: will be removed in the next major version.
26
+ require 'google/protobuf/descriptor_pb'
27
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
28
+ parsed.clear_dependency
29
+ serialized = parsed.class.encode(parsed)
30
+ file = pool.add_serialized_file(serialized)
31
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
32
+ imports = [
33
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
34
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
35
+ ]
36
+ imports.each do |type_name, expected_filename|
37
+ import_file = pool.lookup(type_name).file_descriptor
38
+ if import_file.name != expected_filename
39
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
40
+ end
41
+ end
42
+ warn "Each proto file must use a consistent fully-qualified name."
43
+ warn "This will become an error in the next major version."
44
+ end
45
+
46
+ module Google
47
+ module Cloud
48
+ module Redis
49
+ module Cluster
50
+ module V1beta1
51
+ CreateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.CreateClusterRequest").msgclass
52
+ ListClustersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.ListClustersRequest").msgclass
53
+ ListClustersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.ListClustersResponse").msgclass
54
+ UpdateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.UpdateClusterRequest").msgclass
55
+ GetClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.GetClusterRequest").msgclass
56
+ DeleteClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.DeleteClusterRequest").msgclass
57
+ GetClusterCertificateAuthorityRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest").msgclass
58
+ Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.Cluster").msgclass
59
+ Cluster::StateInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.Cluster.StateInfo").msgclass
60
+ Cluster::StateInfo::UpdateInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.UpdateInfo").msgclass
61
+ Cluster::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.Cluster.State").enummodule
62
+ PscConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.PscConfig").msgclass
63
+ DiscoveryEndpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint").msgclass
64
+ PscConnection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.PscConnection").msgclass
65
+ OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.OperationMetadata").msgclass
66
+ CertificateAuthority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.CertificateAuthority").msgclass
67
+ CertificateAuthority::ManagedCertificateAuthority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority").msgclass
68
+ CertificateAuthority::ManagedCertificateAuthority::CertChain = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain").msgclass
69
+ ClusterPersistenceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig").msgclass
70
+ ClusterPersistenceConfig::RDBConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig").msgclass
71
+ ClusterPersistenceConfig::RDBConfig::SnapshotPeriod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod").enummodule
72
+ ClusterPersistenceConfig::AOFConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig").msgclass
73
+ ClusterPersistenceConfig::AOFConfig::AppendFsync = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync").enummodule
74
+ ClusterPersistenceConfig::PersistenceMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode").enummodule
75
+ ZoneDistributionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig").msgclass
76
+ ZoneDistributionConfig::ZoneDistributionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode").enummodule
77
+ AuthorizationMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.AuthorizationMode").enummodule
78
+ NodeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.NodeType").enummodule
79
+ TransitEncryptionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1beta1.TransitEncryptionMode").enummodule
80
+ end
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,97 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto for package 'Google.Cloud.Redis.Cluster.V1beta1'
3
+ # Original file comments:
4
+ # Copyright 2024 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/redis/cluster/v1beta1/cloud_redis_cluster_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Redis
25
+ module Cluster
26
+ module V1beta1
27
+ module CloudRedisCluster
28
+ # Configures and manages Cloud Memorystore for Redis clusters
29
+ #
30
+ # Google Cloud Memorystore for Redis Cluster
31
+ #
32
+ # The `redis.googleapis.com` service implements the Google Cloud Memorystore
33
+ # for Redis API and defines the following resource model for managing Redis
34
+ # clusters:
35
+ # * The service works with a collection of cloud projects, named: `/projects/*`
36
+ # * Each project has a collection of available locations, named: `/locations/*`
37
+ # * Each location has a collection of Redis clusters, named: `/clusters/*`
38
+ # * As such, Redis clusters are resources of the form:
39
+ # `/projects/{project_id}/locations/{location_id}/clusters/{instance_id}`
40
+ #
41
+ # Note that location_id must be a GCP `region`; for example:
42
+ # * `projects/redpepper-1290/locations/us-central1/clusters/my-redis`
43
+ #
44
+ # We use API version selector for Flex APIs
45
+ # * The versioning strategy is release-based versioning
46
+ # * Our backend CLH only deals with the superset version (called v1main)
47
+ # * Existing backend for Redis Gen1 and MRR is not touched.
48
+ # * More details in go/redis-flex-api-versioning
49
+ class Service
50
+
51
+ include ::GRPC::GenericService
52
+
53
+ self.marshal_class_method = :encode
54
+ self.unmarshal_class_method = :decode
55
+ self.service_name = 'google.cloud.redis.cluster.v1beta1.CloudRedisCluster'
56
+
57
+ # Lists all Redis clusters owned by a project in either the specified
58
+ # location (region) or all locations.
59
+ #
60
+ # The location should have the following format:
61
+ #
62
+ # * `projects/{project_id}/locations/{location_id}`
63
+ #
64
+ # If `location_id` is specified as `-` (wildcard), then all regions
65
+ # available to the project are queried, and the results are aggregated.
66
+ rpc :ListClusters, ::Google::Cloud::Redis::Cluster::V1beta1::ListClustersRequest, ::Google::Cloud::Redis::Cluster::V1beta1::ListClustersResponse
67
+ # Gets the details of a specific Redis cluster.
68
+ rpc :GetCluster, ::Google::Cloud::Redis::Cluster::V1beta1::GetClusterRequest, ::Google::Cloud::Redis::Cluster::V1beta1::Cluster
69
+ # Updates the metadata and configuration of a specific Redis cluster.
70
+ #
71
+ # Completed longrunning.Operation will contain the new cluster object
72
+ # in the response field. The returned operation is automatically deleted
73
+ # after a few hours, so there is no need to call DeleteOperation.
74
+ rpc :UpdateCluster, ::Google::Cloud::Redis::Cluster::V1beta1::UpdateClusterRequest, ::Google::Longrunning::Operation
75
+ # Deletes a specific Redis cluster. Cluster stops serving and data is
76
+ # deleted.
77
+ rpc :DeleteCluster, ::Google::Cloud::Redis::Cluster::V1beta1::DeleteClusterRequest, ::Google::Longrunning::Operation
78
+ # Creates a Redis cluster based on the specified properties.
79
+ # The creation is executed asynchronously and callers may check the returned
80
+ # operation to track its progress. Once the operation is completed the Redis
81
+ # cluster will be fully functional. The completed longrunning.Operation will
82
+ # contain the new cluster object in the response field.
83
+ #
84
+ # The returned operation is automatically deleted after a few hours, so there
85
+ # is no need to call DeleteOperation.
86
+ rpc :CreateCluster, ::Google::Cloud::Redis::Cluster::V1beta1::CreateClusterRequest, ::Google::Longrunning::Operation
87
+ # Gets the details of certificate authority information for Redis cluster.
88
+ rpc :GetClusterCertificateAuthority, ::Google::Cloud::Redis::Cluster::V1beta1::GetClusterCertificateAuthorityRequest, ::Google::Cloud::Redis::Cluster::V1beta1::CertificateAuthority
89
+ end
90
+
91
+ Stub = Service.rpc_stub_class
92
+ end
93
+ end
94
+ end
95
+ end
96
+ end
97
+ end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/redis/cluster/v1beta1/cloud_redis_cluster/rest"
20
+ require "google/cloud/redis/cluster/v1beta1/bindings_override"
21
+ require "google/cloud/redis/cluster/v1beta1/version"
22
+
23
+ module Google
24
+ module Cloud
25
+ module Redis
26
+ module Cluster
27
+ ##
28
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
29
+ #
30
+ # @example
31
+ #
32
+ # require "google/cloud/redis/cluster/v1beta1/rest"
33
+ # client = ::Google::Cloud::Redis::Cluster::V1beta1::CloudRedisCluster::Rest::Client.new
34
+ #
35
+ module V1beta1
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Redis
23
+ module Cluster
24
+ module V1beta1
25
+ VERSION = "0.1.0"
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/redis/cluster/v1beta1/cloud_redis_cluster"
20
+ require "google/cloud/redis/cluster/v1beta1/version"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Redis
25
+ module Cluster
26
+ ##
27
+ # API client module.
28
+ #
29
+ # @example Load this package, including all its services, and instantiate a gRPC client
30
+ #
31
+ # require "google/cloud/redis/cluster/v1beta1"
32
+ # client = ::Google::Cloud::Redis::Cluster::V1beta1::CloudRedisCluster::Client.new
33
+ #
34
+ # @example Load this package, including all its services, and instantiate a REST client
35
+ #
36
+ # require "google/cloud/redis/cluster/v1beta1"
37
+ # client = ::Google::Cloud::Redis::Cluster::V1beta1::CloudRedisCluster::Rest::Client.new
38
+ #
39
+ module V1beta1
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
45
+
46
+ helper_path = ::File.join __dir__, "v1beta1", "_helpers.rb"
47
+ require "google/cloud/redis/cluster/v1beta1/_helpers" if ::File.file? helper_path
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ # This gem does not autoload during Bundler.require. To load this gem,
20
+ # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/cloud/redis/cluster/v1beta1"
@@ -0,0 +1,4 @@
1
+ # Google Cloud Memorystore for Redis V1BETA1 Protocol Buffer Documentation
2
+
3
+ These files are for the YARD documentation of the generated protobuf files.
4
+ They are not intended to be required or loaded at runtime.