google-cloud-redis 0.5.1 → 0.5.2

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: a00130c45535e7df784030b0e82ab7e18584a6a5da726df055f8673ecc72c9d1
4
- data.tar.gz: b6fbb046b0707495b3a249c339db98cdd085e613380af91b9d9a546400eec8dc
3
+ metadata.gz: ca9b07cfa409f2aaf8ac8f72a0c367b45e6631700c56d727b2f63fdd054f7ea3
4
+ data.tar.gz: 859bd947d44cd6b5cd3afc0c368f4d5c10e2836fddfb72da546e44537364faff
5
5
  SHA512:
6
- metadata.gz: c21b113710e5af2d3747f377d8a9bb6d6f5cc410cf7dcfc938077a6b03125b793977d127fb8dc31d891c72f46e12e6d8694dd1a2c72806b5df394fb5ab6c7e5d
7
- data.tar.gz: f2dabbb67edfc05fd9ac219f08253338243e5e18b732aaa86ba6e1c0162c19e413e6bca23d6daa1031d089ea44792a889b61f0ae135be2d549fd28156e3b6830
6
+ metadata.gz: 188e21a0287759383fd0d27a19ff10ed0451d767eac15cc935bb733935796838345bac27f5dfa99e8049bec5ab27a23ce5de6876973b3cf506d47d03f5fb9476
7
+ data.tar.gz: 2c687f11bfa05bd92e0ecb5d14af228a9d2d91b5a18bac7b7612fa2339d823ac6c1ef858028ab988c9ac3d65202b76ddaaa7d6e4c4841caadb4a83a97566fc03
@@ -538,7 +538,7 @@ module Google
538
538
  # paths_element_2 = "memory_size_gb"
539
539
  # paths = [paths_element, paths_element_2]
540
540
  # update_mask = { paths: paths }
541
- # display_name = " instance.memory_size_gb=4"
541
+ # display_name = " instance.memory_size_gb=4"
542
542
  # instance = { display_name: display_name }
543
543
  #
544
544
  # # Register a callback during the method call.
@@ -614,13 +614,15 @@ module Google
614
614
  # require "google/cloud/redis"
615
615
  #
616
616
  # cloud_redis_client = Google::Cloud::Redis.new(version: :v1)
617
- # formatted_name = Google::Cloud::Redis::V1::CloudRedisClient.instance_path("[PROJECT]", "[LOCATION]", "[INSTANCE]")
617
+ #
618
+ # # TODO: Initialize `name`:
619
+ # name = ''
618
620
  #
619
621
  # # TODO: Initialize `input_config`:
620
622
  # input_config = {}
621
623
  #
622
624
  # # Register a callback during the method call.
623
- # operation = cloud_redis_client.import_instance(formatted_name, input_config) do |op|
625
+ # operation = cloud_redis_client.import_instance(name, input_config) do |op|
624
626
  # raise op.results.message if op.error?
625
627
  # op_results = op.results
626
628
  # # Process the results.
@@ -690,13 +692,15 @@ module Google
690
692
  # require "google/cloud/redis"
691
693
  #
692
694
  # cloud_redis_client = Google::Cloud::Redis.new(version: :v1)
693
- # formatted_name = Google::Cloud::Redis::V1::CloudRedisClient.instance_path("[PROJECT]", "[LOCATION]", "[INSTANCE]")
695
+ #
696
+ # # TODO: Initialize `name`:
697
+ # name = ''
694
698
  #
695
699
  # # TODO: Initialize `output_config`:
696
700
  # output_config = {}
697
701
  #
698
702
  # # Register a callback during the method call.
699
- # operation = cloud_redis_client.export_instance(formatted_name, output_config) do |op|
703
+ # operation = cloud_redis_client.export_instance(name, output_config) do |op|
700
704
  # raise op.results.message if op.error?
701
705
  # op_results = op.results
702
706
  # # Process the results.
@@ -763,11 +767,8 @@ module Google
763
767
  # cloud_redis_client = Google::Cloud::Redis.new(version: :v1)
764
768
  # formatted_name = Google::Cloud::Redis::V1::CloudRedisClient.instance_path("[PROJECT]", "[LOCATION]", "[INSTANCE]")
765
769
  #
766
- # # TODO: Initialize `data_protection_mode`:
767
- # data_protection_mode = :DATA_PROTECTION_MODE_UNSPECIFIED
768
- #
769
770
  # # Register a callback during the method call.
770
- # operation = cloud_redis_client.failover_instance(formatted_name, data_protection_mode) do |op|
771
+ # operation = cloud_redis_client.failover_instance(formatted_name) do |op|
771
772
  # raise op.results.message if op.error?
772
773
  # op_results = op.results
773
774
  # # Process the results.
@@ -795,7 +796,7 @@ module Google
795
796
 
796
797
  def failover_instance \
797
798
  name,
798
- data_protection_mode,
799
+ data_protection_mode: nil,
799
800
  options: nil
800
801
  req = {
801
802
  name: name,
@@ -5,10 +5,12 @@
5
5
  require 'google/protobuf'
6
6
 
7
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'
8
11
  require 'google/longrunning/operations_pb'
9
12
  require 'google/protobuf/field_mask_pb'
10
13
  require 'google/protobuf/timestamp_pb'
11
- require 'google/api/client_pb'
12
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
15
  add_message "google.cloud.redis.v1.Instance" do
14
16
  optional :name, :string, 1
@@ -88,11 +88,13 @@ module Google
88
88
  # 01:30 UTC on January 15, 2017.
89
89
  #
90
90
  # In JavaScript, one can convert a Date object to this format using the
91
- # standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
91
+ # standard
92
+ # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
92
93
  # method. In Python, a standard `datetime.datetime` object can be converted
93
- # to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime)
94
- # with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
95
- # can use the Joda Time's [`ISODateTimeFormat.dateTime()`](
94
+ # to this format using
95
+ # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
96
+ # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
97
+ # the Joda Time's [`ISODateTimeFormat.dateTime()`](
96
98
  # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
97
99
  # ) to obtain a formatter capable of generating timestamps in this format.
98
100
  # @!attribute [rw] seconds
@@ -615,13 +615,15 @@ module Google
615
615
  # require "google/cloud/redis"
616
616
  #
617
617
  # cloud_redis_client = Google::Cloud::Redis.new(version: :v1beta1)
618
- # formatted_name = Google::Cloud::Redis::V1beta1::CloudRedisClient.instance_path("[PROJECT]", "[LOCATION]", "[INSTANCE]")
618
+ #
619
+ # # TODO: Initialize `name`:
620
+ # name = ''
619
621
  #
620
622
  # # TODO: Initialize `input_config`:
621
623
  # input_config = {}
622
624
  #
623
625
  # # Register a callback during the method call.
624
- # operation = cloud_redis_client.import_instance(formatted_name, input_config) do |op|
626
+ # operation = cloud_redis_client.import_instance(name, input_config) do |op|
625
627
  # raise op.results.message if op.error?
626
628
  # op_results = op.results
627
629
  # # Process the results.
@@ -691,13 +693,15 @@ module Google
691
693
  # require "google/cloud/redis"
692
694
  #
693
695
  # cloud_redis_client = Google::Cloud::Redis.new(version: :v1beta1)
694
- # formatted_name = Google::Cloud::Redis::V1beta1::CloudRedisClient.instance_path("[PROJECT]", "[LOCATION]", "[INSTANCE]")
696
+ #
697
+ # # TODO: Initialize `name`:
698
+ # name = ''
695
699
  #
696
700
  # # TODO: Initialize `output_config`:
697
701
  # output_config = {}
698
702
  #
699
703
  # # Register a callback during the method call.
700
- # operation = cloud_redis_client.export_instance(formatted_name, output_config) do |op|
704
+ # operation = cloud_redis_client.export_instance(name, output_config) do |op|
701
705
  # raise op.results.message if op.error?
702
706
  # op_results = op.results
703
707
  # # Process the results.
@@ -764,11 +768,8 @@ module Google
764
768
  # cloud_redis_client = Google::Cloud::Redis.new(version: :v1beta1)
765
769
  # formatted_name = Google::Cloud::Redis::V1beta1::CloudRedisClient.instance_path("[PROJECT]", "[LOCATION]", "[INSTANCE]")
766
770
  #
767
- # # TODO: Initialize `data_protection_mode`:
768
- # data_protection_mode = :DATA_PROTECTION_MODE_UNSPECIFIED
769
- #
770
771
  # # Register a callback during the method call.
771
- # operation = cloud_redis_client.failover_instance(formatted_name, data_protection_mode) do |op|
772
+ # operation = cloud_redis_client.failover_instance(formatted_name) do |op|
772
773
  # raise op.results.message if op.error?
773
774
  # op_results = op.results
774
775
  # # Process the results.
@@ -796,7 +797,7 @@ module Google
796
797
 
797
798
  def failover_instance \
798
799
  name,
799
- data_protection_mode,
800
+ data_protection_mode: nil,
800
801
  options: nil
801
802
  req = {
802
803
  name: name,
@@ -5,10 +5,12 @@
5
5
  require 'google/protobuf'
6
6
 
7
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'
8
11
  require 'google/longrunning/operations_pb'
9
12
  require 'google/protobuf/field_mask_pb'
10
13
  require 'google/protobuf/timestamp_pb'
11
- require 'google/api/client_pb'
12
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
15
  add_message "google.cloud.redis.v1beta1.Instance" do
14
16
  optional :name, :string, 1
@@ -88,11 +88,13 @@ module Google
88
88
  # 01:30 UTC on January 15, 2017.
89
89
  #
90
90
  # In JavaScript, one can convert a Date object to this format using the
91
- # standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
91
+ # standard
92
+ # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
92
93
  # method. In Python, a standard `datetime.datetime` object can be converted
93
- # to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime)
94
- # with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
95
- # can use the Joda Time's [`ISODateTimeFormat.dateTime()`](
94
+ # to this format using
95
+ # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
96
+ # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
97
+ # the Joda Time's [`ISODateTimeFormat.dateTime()`](
96
98
  # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
97
99
  # ) to obtain a formatter capable of generating timestamps in this format.
98
100
  # @!attribute [rw] seconds
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Redis
19
- VERSION = "0.5.1".freeze
19
+ VERSION = "0.5.2".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-23 00:00:00.000000000 Z
11
+ date: 2019-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  - !ruby/object:Gem::Version
171
171
  version: '0'
172
172
  requirements: []
173
- rubygems_version: 3.0.4
173
+ rubygems_version: 3.0.6
174
174
  signing_key:
175
175
  specification_version: 4
176
176
  summary: API Client library for Google Cloud Memorystore for Redis API