google-cloud-memcache-v1 0.2.5 → 0.4.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/AUTHENTICATION.md +1 -1
- data/README.md +11 -6
- data/lib/google/cloud/memcache/v1/cloud_memcache/client.rb +139 -14
- data/lib/google/cloud/memcache/v1/cloud_memcache/operations.rb +3 -0
- data/lib/google/cloud/memcache/v1/cloud_memcache_pb.rb +47 -1
- data/lib/google/cloud/memcache/v1/cloud_memcache_services_pb.rb +6 -3
- data/lib/google/cloud/memcache/v1/version.rb +1 -1
- data/lib/google/cloud/memcache/v1.rb +2 -0
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/memcache/v1/cloud_memcache.rb +150 -24
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/type/dayofweek.rb +49 -0
- data/proto_docs/google/type/timeofday.rb +45 -0
- metadata +36 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc79a4cc37fadef741fe07b88e9904a00c1aa16436d251c1661c9c3c47285b61
|
4
|
+
data.tar.gz: 169f349cbf4c95481e05ccd40cf14219b557acdf192dee3066028d46a000cb9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3832b363ab2c6cd3288708b4e7c2f18746ac00c6db9ef0c63d6dcfa83a9e6346b04e5ed374c393308c4b5a87d898697407b9ca0ab8f37647d7400570033f2da8
|
7
|
+
data.tar.gz: 3c17eaf9825bac0fdebdad1c5ec7913ddf826f20528211aed4422c579acca76e33ea5b45be32e762876bc356882d8cce272c36db44316a5b197a22371dca65cd
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Memcache::V1::ListInstancesRequest.new # (request fie
|
|
37
37
|
response = client.list_instances request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/memorystore/docs/memcached/)
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/memcache/v1/cloud_memcache_pb"
|
21
|
+
require "google/cloud/location"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -92,6 +93,8 @@ module Google
|
|
92
93
|
|
93
94
|
default_config.rpcs.apply_parameters.timeout = 1200.0
|
94
95
|
|
96
|
+
default_config.rpcs.reschedule_maintenance.timeout = 1200.0
|
97
|
+
|
95
98
|
default_config
|
96
99
|
end
|
97
100
|
yield @configure if block_given?
|
@@ -167,6 +170,12 @@ module Google
|
|
167
170
|
config.endpoint = @config.endpoint
|
168
171
|
end
|
169
172
|
|
173
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
174
|
+
config.credentials = credentials
|
175
|
+
config.quota_project = @quota_project_id
|
176
|
+
config.endpoint = @config.endpoint
|
177
|
+
end
|
178
|
+
|
170
179
|
@cloud_memcache_stub = ::Gapic::ServiceStub.new(
|
171
180
|
::Google::Cloud::Memcache::V1::CloudMemcache::Stub,
|
172
181
|
credentials: credentials,
|
@@ -183,6 +192,13 @@ module Google
|
|
183
192
|
#
|
184
193
|
attr_reader :operations_client
|
185
194
|
|
195
|
+
##
|
196
|
+
# Get the associated client for mix-in of the Locations.
|
197
|
+
#
|
198
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
199
|
+
#
|
200
|
+
attr_reader :location_client
|
201
|
+
|
186
202
|
# Service calls
|
187
203
|
|
188
204
|
##
|
@@ -211,16 +227,15 @@ module Google
|
|
211
227
|
# The maximum number of items to return.
|
212
228
|
#
|
213
229
|
# If not specified, a default value of 1000 will be used by the service.
|
214
|
-
# Regardless of the page_size value, the response may include a partial
|
215
|
-
# and a caller should only rely on response's
|
216
|
-
#
|
230
|
+
# Regardless of the `page_size` value, the response may include a partial
|
231
|
+
# list and a caller should only rely on response's
|
232
|
+
# {::Google::Cloud::Memcache::V1::ListInstancesResponse#next_page_token `next_page_token`}
|
217
233
|
# to determine if there are more instances left to be queried.
|
218
234
|
# @param page_token [::String]
|
219
|
-
# The next_page_token value returned from a previous List request,
|
220
|
-
# if any.
|
235
|
+
# The `next_page_token` value returned from a previous List request, if any.
|
221
236
|
# @param filter [::String]
|
222
237
|
# List filter. For example, exclude all Memcached instances with name as
|
223
|
-
# my-instance by specifying "name != my-instance"
|
238
|
+
# my-instance by specifying `"name != my-instance"`.
|
224
239
|
# @param order_by [::String]
|
225
240
|
# Sort results. Supported values are "name", "name desc" or "" (unsorted).
|
226
241
|
#
|
@@ -412,9 +427,9 @@ module Google
|
|
412
427
|
# * Must start with a letter.
|
413
428
|
# * Must be between 1-40 characters.
|
414
429
|
# * Must end with a number or a letter.
|
415
|
-
# * Must be unique within the user project / location
|
430
|
+
# * Must be unique within the user project / location.
|
416
431
|
#
|
417
|
-
# If any of the above are not met,
|
432
|
+
# If any of the above are not met, the API raises an invalid argument error.
|
418
433
|
# @param instance [::Google::Cloud::Memcache::V1::Instance, ::Hash]
|
419
434
|
# Required. A Memcached Instance
|
420
435
|
#
|
@@ -510,6 +525,7 @@ module Google
|
|
510
525
|
#
|
511
526
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
512
527
|
# Required. Mask of fields to update.
|
528
|
+
#
|
513
529
|
# * `displayName`
|
514
530
|
# @param instance [::Google::Cloud::Memcache::V1::Instance, ::Hash]
|
515
531
|
# Required. A Memcached Instance.
|
@@ -588,9 +604,10 @@ module Google
|
|
588
604
|
end
|
589
605
|
|
590
606
|
##
|
591
|
-
# Updates the defined Memcached
|
607
|
+
# Updates the defined Memcached parameters for an existing instance.
|
592
608
|
# This method only stages the parameters, it must be followed by
|
593
|
-
# ApplyParameters to apply the parameters to nodes of the Memcached
|
609
|
+
# `ApplyParameters` to apply the parameters to nodes of the Memcached
|
610
|
+
# instance.
|
594
611
|
#
|
595
612
|
# @overload update_parameters(request, options = nil)
|
596
613
|
# Pass arguments to `update_parameters` via a request object, either of type
|
@@ -783,7 +800,7 @@ module Google
|
|
783
800
|
end
|
784
801
|
|
785
802
|
##
|
786
|
-
# ApplyParameters
|
803
|
+
# `ApplyParameters` restarts the set of specified nodes in order to update
|
787
804
|
# them to the current set of parameters for the Memcached Instance.
|
788
805
|
#
|
789
806
|
# @overload apply_parameters(request, options = nil)
|
@@ -805,11 +822,11 @@ module Google
|
|
805
822
|
# Required. Resource name of the Memcached instance for which parameter group updates
|
806
823
|
# should be applied.
|
807
824
|
# @param node_ids [::Array<::String>]
|
808
|
-
# Nodes to which
|
825
|
+
# Nodes to which the instance-level parameter group is applied.
|
809
826
|
# @param apply_all [::Boolean]
|
810
827
|
# Whether to apply instance-level parameter group to all nodes. If set to
|
811
|
-
# true,
|
812
|
-
#
|
828
|
+
# true, users are restricted from specifying individual nodes, and
|
829
|
+
# `ApplyParameters` updates all nodes within the instance.
|
813
830
|
#
|
814
831
|
# @yield [response, operation] Access the result along with the RPC operation
|
815
832
|
# @yieldparam response [::Gapic::Operation]
|
@@ -883,6 +900,107 @@ module Google
|
|
883
900
|
raise ::Google::Cloud::Error.from_error(e)
|
884
901
|
end
|
885
902
|
|
903
|
+
##
|
904
|
+
# Reschedules upcoming maintenance event.
|
905
|
+
#
|
906
|
+
# @overload reschedule_maintenance(request, options = nil)
|
907
|
+
# Pass arguments to `reschedule_maintenance` via a request object, either of type
|
908
|
+
# {::Google::Cloud::Memcache::V1::RescheduleMaintenanceRequest} or an equivalent Hash.
|
909
|
+
#
|
910
|
+
# @param request [::Google::Cloud::Memcache::V1::RescheduleMaintenanceRequest, ::Hash]
|
911
|
+
# A request object representing the call parameters. Required. To specify no
|
912
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
913
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
914
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
915
|
+
#
|
916
|
+
# @overload reschedule_maintenance(instance: nil, reschedule_type: nil, schedule_time: nil)
|
917
|
+
# Pass arguments to `reschedule_maintenance` via keyword arguments. Note that at
|
918
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
919
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
920
|
+
#
|
921
|
+
# @param instance [::String]
|
922
|
+
# Required. Memcache instance resource name using the form:
|
923
|
+
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
924
|
+
# where `location_id` refers to a GCP region.
|
925
|
+
# @param reschedule_type [::Google::Cloud::Memcache::V1::RescheduleMaintenanceRequest::RescheduleType]
|
926
|
+
# Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
|
927
|
+
# @param schedule_time [::Google::Protobuf::Timestamp, ::Hash]
|
928
|
+
# Timestamp when the maintenance shall be rescheduled to if
|
929
|
+
# reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
|
930
|
+
# example `2012-11-15T16:19:00.094Z`.
|
931
|
+
#
|
932
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
933
|
+
# @yieldparam response [::Gapic::Operation]
|
934
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
935
|
+
#
|
936
|
+
# @return [::Gapic::Operation]
|
937
|
+
#
|
938
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
939
|
+
#
|
940
|
+
# @example Basic example
|
941
|
+
# require "google/cloud/memcache/v1"
|
942
|
+
#
|
943
|
+
# # Create a client object. The client can be reused for multiple calls.
|
944
|
+
# client = Google::Cloud::Memcache::V1::CloudMemcache::Client.new
|
945
|
+
#
|
946
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
947
|
+
# request = Google::Cloud::Memcache::V1::RescheduleMaintenanceRequest.new
|
948
|
+
#
|
949
|
+
# # Call the reschedule_maintenance method.
|
950
|
+
# result = client.reschedule_maintenance request
|
951
|
+
#
|
952
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
953
|
+
# # object to check the status of an operation, cancel it, or wait
|
954
|
+
# # for results. Here is how to block until completion:
|
955
|
+
# result.wait_until_done! timeout: 60
|
956
|
+
# if result.response?
|
957
|
+
# p result.response
|
958
|
+
# else
|
959
|
+
# puts "Error!"
|
960
|
+
# end
|
961
|
+
#
|
962
|
+
def reschedule_maintenance request, options = nil
|
963
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
964
|
+
|
965
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Memcache::V1::RescheduleMaintenanceRequest
|
966
|
+
|
967
|
+
# Converts hash and nil to an options object
|
968
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
969
|
+
|
970
|
+
# Customize the options with defaults
|
971
|
+
metadata = @config.rpcs.reschedule_maintenance.metadata.to_h
|
972
|
+
|
973
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
974
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
975
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
976
|
+
gapic_version: ::Google::Cloud::Memcache::V1::VERSION
|
977
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
978
|
+
|
979
|
+
header_params = {}
|
980
|
+
if request.instance
|
981
|
+
header_params["instance"] = request.instance
|
982
|
+
end
|
983
|
+
|
984
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
985
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
986
|
+
|
987
|
+
options.apply_defaults timeout: @config.rpcs.reschedule_maintenance.timeout,
|
988
|
+
metadata: metadata,
|
989
|
+
retry_policy: @config.rpcs.reschedule_maintenance.retry_policy
|
990
|
+
|
991
|
+
options.apply_defaults timeout: @config.timeout,
|
992
|
+
metadata: @config.metadata,
|
993
|
+
retry_policy: @config.retry_policy
|
994
|
+
|
995
|
+
@cloud_memcache_stub.call_rpc :reschedule_maintenance, request, options: options do |response, operation|
|
996
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
997
|
+
yield response, operation if block_given?
|
998
|
+
return response
|
999
|
+
end
|
1000
|
+
rescue ::GRPC::BadStatus => e
|
1001
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1002
|
+
end
|
1003
|
+
|
886
1004
|
##
|
887
1005
|
# Configuration class for the CloudMemcache API.
|
888
1006
|
#
|
@@ -1053,6 +1171,11 @@ module Google
|
|
1053
1171
|
# @return [::Gapic::Config::Method]
|
1054
1172
|
#
|
1055
1173
|
attr_reader :apply_parameters
|
1174
|
+
##
|
1175
|
+
# RPC-specific configuration for `reschedule_maintenance`
|
1176
|
+
# @return [::Gapic::Config::Method]
|
1177
|
+
#
|
1178
|
+
attr_reader :reschedule_maintenance
|
1056
1179
|
|
1057
1180
|
# @private
|
1058
1181
|
def initialize parent_rpcs = nil
|
@@ -1070,6 +1193,8 @@ module Google
|
|
1070
1193
|
@delete_instance = ::Gapic::Config::Method.new delete_instance_config
|
1071
1194
|
apply_parameters_config = parent_rpcs.apply_parameters if parent_rpcs.respond_to? :apply_parameters
|
1072
1195
|
@apply_parameters = ::Gapic::Config::Method.new apply_parameters_config
|
1196
|
+
reschedule_maintenance_config = parent_rpcs.reschedule_maintenance if parent_rpcs.respond_to? :reschedule_maintenance
|
1197
|
+
@reschedule_maintenance = ::Gapic::Config::Method.new reschedule_maintenance_config
|
1073
1198
|
|
1074
1199
|
yield self if block_given?
|
1075
1200
|
end
|
@@ -1,14 +1,18 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/memcache/v1/cloud_memcache.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
7
9
|
require 'google/api/resource_pb'
|
8
10
|
require 'google/longrunning/operations_pb'
|
11
|
+
require 'google/protobuf/duration_pb'
|
9
12
|
require 'google/protobuf/field_mask_pb'
|
10
13
|
require 'google/protobuf/timestamp_pb'
|
11
|
-
require 'google/
|
14
|
+
require 'google/type/dayofweek_pb'
|
15
|
+
require 'google/type/timeofday_pb'
|
12
16
|
|
13
17
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
18
|
add_file("google/cloud/memcache/v1/cloud_memcache.proto", :syntax => :proto3) do
|
@@ -29,6 +33,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
29
33
|
optional :memcache_full_version, :string, 18
|
30
34
|
repeated :instance_messages, :message, 19, "google.cloud.memcache.v1.Instance.InstanceMessage"
|
31
35
|
optional :discovery_endpoint, :string, 20
|
36
|
+
optional :maintenance_policy, :message, 21, "google.cloud.memcache.v1.MaintenancePolicy"
|
37
|
+
optional :maintenance_schedule, :message, 22, "google.cloud.memcache.v1.MaintenanceSchedule"
|
32
38
|
end
|
33
39
|
add_message "google.cloud.memcache.v1.Instance.NodeConfig" do
|
34
40
|
optional :cpu_count, :int32, 1
|
@@ -61,9 +67,37 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
61
67
|
value :STATE_UNSPECIFIED, 0
|
62
68
|
value :CREATING, 1
|
63
69
|
value :READY, 2
|
70
|
+
value :UPDATING, 3
|
64
71
|
value :DELETING, 4
|
65
72
|
value :PERFORMING_MAINTENANCE, 5
|
66
73
|
end
|
74
|
+
add_message "google.cloud.memcache.v1.MaintenancePolicy" do
|
75
|
+
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
76
|
+
optional :update_time, :message, 2, "google.protobuf.Timestamp"
|
77
|
+
optional :description, :string, 3
|
78
|
+
repeated :weekly_maintenance_window, :message, 4, "google.cloud.memcache.v1.WeeklyMaintenanceWindow"
|
79
|
+
end
|
80
|
+
add_message "google.cloud.memcache.v1.WeeklyMaintenanceWindow" do
|
81
|
+
optional :day, :enum, 1, "google.type.DayOfWeek"
|
82
|
+
optional :start_time, :message, 2, "google.type.TimeOfDay"
|
83
|
+
optional :duration, :message, 3, "google.protobuf.Duration"
|
84
|
+
end
|
85
|
+
add_message "google.cloud.memcache.v1.MaintenanceSchedule" do
|
86
|
+
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
87
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
88
|
+
optional :schedule_deadline_time, :message, 4, "google.protobuf.Timestamp"
|
89
|
+
end
|
90
|
+
add_message "google.cloud.memcache.v1.RescheduleMaintenanceRequest" do
|
91
|
+
optional :instance, :string, 1
|
92
|
+
optional :reschedule_type, :enum, 2, "google.cloud.memcache.v1.RescheduleMaintenanceRequest.RescheduleType"
|
93
|
+
optional :schedule_time, :message, 3, "google.protobuf.Timestamp"
|
94
|
+
end
|
95
|
+
add_enum "google.cloud.memcache.v1.RescheduleMaintenanceRequest.RescheduleType" do
|
96
|
+
value :RESCHEDULE_TYPE_UNSPECIFIED, 0
|
97
|
+
value :IMMEDIATE, 1
|
98
|
+
value :NEXT_AVAILABLE_WINDOW, 2
|
99
|
+
value :SPECIFIC_TIME, 3
|
100
|
+
end
|
67
101
|
add_message "google.cloud.memcache.v1.ListInstancesRequest" do
|
68
102
|
optional :parent, :string, 1
|
69
103
|
optional :page_size, :int32, 2
|
@@ -114,6 +148,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
114
148
|
optional :cancel_requested, :bool, 6
|
115
149
|
optional :api_version, :string, 7
|
116
150
|
end
|
151
|
+
add_message "google.cloud.memcache.v1.LocationMetadata" do
|
152
|
+
map :available_zones, :string, :message, 1, "google.cloud.memcache.v1.ZoneMetadata"
|
153
|
+
end
|
154
|
+
add_message "google.cloud.memcache.v1.ZoneMetadata" do
|
155
|
+
end
|
117
156
|
add_enum "google.cloud.memcache.v1.MemcacheVersion" do
|
118
157
|
value :MEMCACHE_VERSION_UNSPECIFIED, 0
|
119
158
|
value :MEMCACHE_1_5, 1
|
@@ -132,6 +171,11 @@ module Google
|
|
132
171
|
Instance::InstanceMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1.Instance.InstanceMessage").msgclass
|
133
172
|
Instance::InstanceMessage::Code = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1.Instance.InstanceMessage.Code").enummodule
|
134
173
|
Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1.Instance.State").enummodule
|
174
|
+
MaintenancePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1.MaintenancePolicy").msgclass
|
175
|
+
WeeklyMaintenanceWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1.WeeklyMaintenanceWindow").msgclass
|
176
|
+
MaintenanceSchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1.MaintenanceSchedule").msgclass
|
177
|
+
RescheduleMaintenanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1.RescheduleMaintenanceRequest").msgclass
|
178
|
+
RescheduleMaintenanceRequest::RescheduleType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1.RescheduleMaintenanceRequest.RescheduleType").enummodule
|
135
179
|
ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1.ListInstancesRequest").msgclass
|
136
180
|
ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1.ListInstancesResponse").msgclass
|
137
181
|
GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1.GetInstanceRequest").msgclass
|
@@ -142,6 +186,8 @@ module Google
|
|
142
186
|
UpdateParametersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1.UpdateParametersRequest").msgclass
|
143
187
|
MemcacheParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1.MemcacheParameters").msgclass
|
144
188
|
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1.OperationMetadata").msgclass
|
189
|
+
LocationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1.LocationMetadata").msgclass
|
190
|
+
ZoneMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1.ZoneMetadata").msgclass
|
145
191
|
MemcacheVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1.MemcacheVersion").enummodule
|
146
192
|
end
|
147
193
|
end
|
@@ -55,15 +55,18 @@ module Google
|
|
55
55
|
rpc :CreateInstance, ::Google::Cloud::Memcache::V1::CreateInstanceRequest, ::Google::Longrunning::Operation
|
56
56
|
# Updates an existing Instance in a given project and location.
|
57
57
|
rpc :UpdateInstance, ::Google::Cloud::Memcache::V1::UpdateInstanceRequest, ::Google::Longrunning::Operation
|
58
|
-
# Updates the defined Memcached
|
58
|
+
# Updates the defined Memcached parameters for an existing instance.
|
59
59
|
# This method only stages the parameters, it must be followed by
|
60
|
-
# ApplyParameters to apply the parameters to nodes of the Memcached
|
60
|
+
# `ApplyParameters` to apply the parameters to nodes of the Memcached
|
61
|
+
# instance.
|
61
62
|
rpc :UpdateParameters, ::Google::Cloud::Memcache::V1::UpdateParametersRequest, ::Google::Longrunning::Operation
|
62
63
|
# Deletes a single Instance.
|
63
64
|
rpc :DeleteInstance, ::Google::Cloud::Memcache::V1::DeleteInstanceRequest, ::Google::Longrunning::Operation
|
64
|
-
# ApplyParameters
|
65
|
+
# `ApplyParameters` restarts the set of specified nodes in order to update
|
65
66
|
# them to the current set of parameters for the Memcached Instance.
|
66
67
|
rpc :ApplyParameters, ::Google::Cloud::Memcache::V1::ApplyParametersRequest, ::Google::Longrunning::Operation
|
68
|
+
# Reschedules upcoming maintenance event.
|
69
|
+
rpc :RescheduleMaintenance, ::Google::Cloud::Memcache::V1::RescheduleMaintenanceRequest, ::Google::Longrunning::Operation
|
67
70
|
end
|
68
71
|
|
69
72
|
Stub = Service.rpc_stub_class
|