google-cloud-redis-v1beta1 0.2.0 → 0.2.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 076eb50baeb8f4c67453f537c5794979b33d185eccdf339f41bc4194f3a972ee
4
- data.tar.gz: 958da724969c3297e54bfe2c75ff7f4e7d993f6df107c865c5ec7f790acb39e3
3
+ metadata.gz: ef6d0247c8831c0d847089395839183837b333ac1428fad8a552be96f0a668d0
4
+ data.tar.gz: a69c5cb079aea49d64584e14d98b43529af5aa303566610dbf37b3f334ee1779
5
5
  SHA512:
6
- metadata.gz: ebae632bd32c5d36fd93a6c66d51aa48a1637f8287b009687cf1e177e6c4fff82648c0e3b7d7d068a5774758af7994b46f95158fca84e8361fd0117bda391892
7
- data.tar.gz: b969807219e9a6a1dbf15293318b4d648e4feaadd17bc54347abe48fec5540ff872117c57d62c0e9f2a2fed29b2b9adabe2e53013da9efed57ce4ad2ff11a5fd
6
+ metadata.gz: 4c5cdaae564a476d4a3517ade6f0149e3e1a6872a05ee9e4f72f64fc20d626c55843562339c382f19c0b5598279f642a3883a904983766bc11c069024e8cbfcd
7
+ data.tar.gz: 47b05fc1541feff7dfb2bb3b1302fd1b5e64687e134458b680982c03dcd473b7d5a5b353f07c8d64bf127ee05b5cbb669fc1880fa4f0fe87fd84df775dc9b95b
data/README.md CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
18
18
 
19
19
  1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
20
20
  1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
21
+ 1. [Enable the API.](https://console.cloud.google.com/apis/library/redis.googleapis.com)
21
22
  1. {file:AUTHENTICATION.md Set up authentication.}
22
23
 
23
24
  ## Quick Start
@@ -33,6 +34,9 @@ response = client.list_instances request
33
34
  View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-redis-v1beta1/latest)
34
35
  for class and method documentation.
35
36
 
37
+ See also the [Product Documentation](https://cloud.google.com/memorystore/docs/redis)
38
+ for general usage information.
39
+
36
40
  ## Enabling Logging
37
41
 
38
42
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
@@ -348,7 +348,7 @@ module Google
348
348
  # Creates a Redis instance based on the specified tier and memory size.
349
349
  #
350
350
  # By default, the instance is accessible from the project's
351
- # [default network](/compute/docs/networks-and-firewalls#networks).
351
+ # [default network](https://cloud.google.com/vpc/docs/vpc).
352
352
  #
353
353
  # The creation is executed asynchronously and callers may check the returned
354
354
  # operation to track its progress. Once the operation is completed the Redis
@@ -970,7 +970,7 @@ module Google
970
970
 
971
971
  config_attr :endpoint, "redis.googleapis.com", ::String
972
972
  config_attr :credentials, nil do |value|
973
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
973
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
974
974
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
975
975
  allowed.any? { |klass| klass === value }
976
976
  end
@@ -998,7 +998,7 @@ module Google
998
998
  def rpcs
999
999
  @rpcs ||= begin
1000
1000
  parent_rpcs = nil
1001
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
1001
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
1002
1002
  Rpcs.new parent_rpcs
1003
1003
  end
1004
1004
  end
@@ -85,6 +85,8 @@ module Google
85
85
  if credentials.is_a?(String) || credentials.is_a?(Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
+ @quota_project_id = @config.quota_project
89
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
88
90
 
89
91
  @operations_stub = ::Gapic::ServiceStub.new(
90
92
  ::Google::Longrunning::Operations::Stub,
@@ -473,7 +475,7 @@ module Google
473
475
 
474
476
  config_attr :endpoint, "redis.googleapis.com", ::String
475
477
  config_attr :credentials, nil do |value|
476
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
478
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
477
479
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
478
480
  allowed.any? { |klass| klass === value }
479
481
  end
@@ -501,7 +503,7 @@ module Google
501
503
  def rpcs
502
504
  @rpcs ||= begin
503
505
  parent_rpcs = nil
504
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
506
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
505
507
  Rpcs.new parent_rpcs
506
508
  end
507
509
  end
@@ -56,13 +56,13 @@ module Google
56
56
  #
57
57
  # If `location_id` is specified as `-` (wildcard), then all regions
58
58
  # available to the project are queried, and the results are aggregated.
59
- rpc :ListInstances, ListInstancesRequest, ListInstancesResponse
59
+ rpc :ListInstances, Google::Cloud::Redis::V1beta1::ListInstancesRequest, Google::Cloud::Redis::V1beta1::ListInstancesResponse
60
60
  # Gets the details of a specific Redis instance.
61
- rpc :GetInstance, GetInstanceRequest, Instance
61
+ rpc :GetInstance, Google::Cloud::Redis::V1beta1::GetInstanceRequest, Google::Cloud::Redis::V1beta1::Instance
62
62
  # Creates a Redis instance based on the specified tier and memory size.
63
63
  #
64
64
  # By default, the instance is accessible from the project's
65
- # [default network](/compute/docs/networks-and-firewalls#networks).
65
+ # [default network](https://cloud.google.com/vpc/docs/vpc).
66
66
  #
67
67
  # The creation is executed asynchronously and callers may check the returned
68
68
  # operation to track its progress. Once the operation is completed the Redis
@@ -71,16 +71,16 @@ module Google
71
71
  #
72
72
  # The returned operation is automatically deleted after a few hours, so there
73
73
  # is no need to call DeleteOperation.
74
- rpc :CreateInstance, CreateInstanceRequest, Google::Longrunning::Operation
74
+ rpc :CreateInstance, Google::Cloud::Redis::V1beta1::CreateInstanceRequest, Google::Longrunning::Operation
75
75
  # Updates the metadata and configuration of a specific Redis instance.
76
76
  #
77
77
  # Completed longrunning.Operation will contain the new instance object
78
78
  # in the response field. The returned operation is automatically deleted
79
79
  # after a few hours, so there is no need to call DeleteOperation.
80
- rpc :UpdateInstance, UpdateInstanceRequest, Google::Longrunning::Operation
80
+ rpc :UpdateInstance, Google::Cloud::Redis::V1beta1::UpdateInstanceRequest, Google::Longrunning::Operation
81
81
  # Upgrades Redis instance to the newer Redis version specified in the
82
82
  # request.
83
- rpc :UpgradeInstance, UpgradeInstanceRequest, Google::Longrunning::Operation
83
+ rpc :UpgradeInstance, Google::Cloud::Redis::V1beta1::UpgradeInstanceRequest, Google::Longrunning::Operation
84
84
  # Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
85
85
  #
86
86
  # Redis may stop serving during this operation. Instance state will be
@@ -89,20 +89,20 @@ module Google
89
89
  #
90
90
  # The returned operation is automatically deleted after a few hours, so
91
91
  # there is no need to call DeleteOperation.
92
- rpc :ImportInstance, ImportInstanceRequest, Google::Longrunning::Operation
92
+ rpc :ImportInstance, Google::Cloud::Redis::V1beta1::ImportInstanceRequest, Google::Longrunning::Operation
93
93
  # Export Redis instance data into a Redis RDB format file in Cloud Storage.
94
94
  #
95
95
  # Redis will continue serving during this operation.
96
96
  #
97
97
  # The returned operation is automatically deleted after a few hours, so
98
98
  # there is no need to call DeleteOperation.
99
- rpc :ExportInstance, ExportInstanceRequest, Google::Longrunning::Operation
99
+ rpc :ExportInstance, Google::Cloud::Redis::V1beta1::ExportInstanceRequest, Google::Longrunning::Operation
100
100
  # Initiates a failover of the master node to current replica node for a
101
101
  # specific STANDARD tier Cloud Memorystore for Redis instance.
102
- rpc :FailoverInstance, FailoverInstanceRequest, Google::Longrunning::Operation
102
+ rpc :FailoverInstance, Google::Cloud::Redis::V1beta1::FailoverInstanceRequest, Google::Longrunning::Operation
103
103
  # Deletes a specific Redis instance. Instance stops serving and data is
104
104
  # deleted.
105
- rpc :DeleteInstance, DeleteInstanceRequest, Google::Longrunning::Operation
105
+ rpc :DeleteInstance, Google::Cloud::Redis::V1beta1::DeleteInstanceRequest, Google::Longrunning::Operation
106
106
  end
107
107
 
108
108
  Stub = Service.rpc_stub_class
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Redis
23
23
  module V1beta1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.2.5"
25
25
  end
26
26
  end
27
27
  end
@@ -121,7 +121,7 @@ module Google
121
121
  # @!attribute [rw] authorized_network
122
122
  # @return [::String]
123
123
  # Optional. The full name of the Google Compute Engine
124
- # [network](/compute/docs/networks-and-firewalls#networks) to which the
124
+ # [network](https://cloud.google.com/vpc/docs/vpc) to which the
125
125
  # instance is connected. If left unspecified, the `default` network
126
126
  # will be used.
127
127
  # @!attribute [r] persistence_iam_identity
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-redis-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-21 00:00:00.000000000 Z
11
+ date: 2020-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
19
+ version: '0.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.2'
26
+ version: '0.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-errors
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -161,7 +161,6 @@ files:
161
161
  - LICENSE.md
162
162
  - README.md
163
163
  - lib/google-cloud-redis-v1beta1.rb
164
- - lib/google/cloud/common_resources_pb.rb
165
164
  - lib/google/cloud/redis/v1beta1.rb
166
165
  - lib/google/cloud/redis/v1beta1/cloud_redis.rb
167
166
  - lib/google/cloud/redis/v1beta1/cloud_redis/client.rb
@@ -200,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
199
  - !ruby/object:Gem::Version
201
200
  version: '0'
202
201
  requirements: []
203
- rubygems_version: 3.0.6
202
+ rubygems_version: 3.1.3
204
203
  signing_key:
205
204
  specification_version: 4
206
205
  summary: API Client library for the Google Cloud Memorystore for Redis V1beta1 API
@@ -1,15 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/common_resources.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'google/api/resource_pb'
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
9
- end
10
- end
11
-
12
- module Google
13
- module Cloud
14
- end
15
- end