google-cloud-memcache-v1beta2 0.1.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +8 -8
- data/LICENSE.md +188 -190
- data/README.md +73 -5
- data/lib/google/cloud/memcache/v1beta2.rb +3 -0
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache.rb +1 -1
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache/client.rb +125 -33
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache/operations.rb +97 -12
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache_pb.rb +8 -0
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache_services_pb.rb +18 -16
- data/lib/google/cloud/memcache/v1beta2/version.rb +1 -1
- data/proto_docs/README.md +1 -1
- data/proto_docs/google/api/field_behavior.rb +12 -0
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/cloud/memcache/v1beta2/cloud_memcache.rb +72 -45
- data/proto_docs/google/longrunning/operations.rb +17 -3
- data/proto_docs/google/protobuf/any.rb +5 -2
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- metadata +21 -12
@@ -29,6 +29,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
29
29
|
optional :memcache_full_version, :string, 18
|
30
30
|
repeated :instance_messages, :message, 19, "google.cloud.memcache.v1beta2.Instance.InstanceMessage"
|
31
31
|
optional :discovery_endpoint, :string, 20
|
32
|
+
optional :update_available, :bool, 21
|
32
33
|
end
|
33
34
|
add_message "google.cloud.memcache.v1beta2.Instance.NodeConfig" do
|
34
35
|
optional :cpu_count, :int32, 1
|
@@ -41,6 +42,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
41
42
|
optional :host, :string, 4
|
42
43
|
optional :port, :int32, 5
|
43
44
|
optional :parameters, :message, 6, "google.cloud.memcache.v1beta2.MemcacheParameters"
|
45
|
+
optional :update_available, :bool, 7
|
44
46
|
end
|
45
47
|
add_enum "google.cloud.memcache.v1beta2.Instance.Node.State" do
|
46
48
|
value :STATE_UNSPECIFIED, 0
|
@@ -101,6 +103,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
101
103
|
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
102
104
|
optional :parameters, :message, 3, "google.cloud.memcache.v1beta2.MemcacheParameters"
|
103
105
|
end
|
106
|
+
add_message "google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest" do
|
107
|
+
optional :instance, :string, 1
|
108
|
+
repeated :node_ids, :string, 2
|
109
|
+
optional :apply_all, :bool, 3
|
110
|
+
end
|
104
111
|
add_message "google.cloud.memcache.v1beta2.MemcacheParameters" do
|
105
112
|
optional :id, :string, 1
|
106
113
|
map :params, :string, :string, 3
|
@@ -145,6 +152,7 @@ module Google
|
|
145
152
|
DeleteInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.DeleteInstanceRequest").msgclass
|
146
153
|
ApplyParametersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.ApplyParametersRequest").msgclass
|
147
154
|
UpdateParametersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.UpdateParametersRequest").msgclass
|
155
|
+
ApplySoftwareUpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest").msgclass
|
148
156
|
MemcacheParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.MemcacheParameters").msgclass
|
149
157
|
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.OperationMetadata").msgclass
|
150
158
|
LocationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.LocationMetadata").msgclass
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/cloud/memcache/v1beta2/cloud_memcache.proto for package 'google.cloud.memcache.v1beta2'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2021 Google LLC
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -15,7 +15,6 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
-
#
|
19
18
|
|
20
19
|
require 'grpc'
|
21
20
|
require 'google/cloud/memcache/v1beta2/cloud_memcache_pb'
|
@@ -38,7 +37,7 @@ module Google
|
|
38
37
|
# * As such, Memcached instances are resources of the form:
|
39
38
|
# `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
40
39
|
#
|
41
|
-
# Note that location_id must be
|
40
|
+
# Note that location_id must be a GCP `region`; for example:
|
42
41
|
# * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
|
43
42
|
class Service
|
44
43
|
|
@@ -48,23 +47,26 @@ module Google
|
|
48
47
|
self.unmarshal_class_method = :decode
|
49
48
|
self.service_name = 'google.cloud.memcache.v1beta2.CloudMemcache'
|
50
49
|
|
51
|
-
# Lists Instances in a given
|
52
|
-
rpc :ListInstances, ListInstancesRequest, ListInstancesResponse
|
50
|
+
# Lists Instances in a given location.
|
51
|
+
rpc :ListInstances, ::Google::Cloud::Memcache::V1beta2::ListInstancesRequest, ::Google::Cloud::Memcache::V1beta2::ListInstancesResponse
|
53
52
|
# Gets details of a single Instance.
|
54
|
-
rpc :GetInstance, GetInstanceRequest, Instance
|
55
|
-
# Creates a new Instance in a given
|
56
|
-
rpc :CreateInstance, CreateInstanceRequest, Google::Longrunning::Operation
|
53
|
+
rpc :GetInstance, ::Google::Cloud::Memcache::V1beta2::GetInstanceRequest, ::Google::Cloud::Memcache::V1beta2::Instance
|
54
|
+
# Creates a new Instance in a given location.
|
55
|
+
rpc :CreateInstance, ::Google::Cloud::Memcache::V1beta2::CreateInstanceRequest, ::Google::Longrunning::Operation
|
57
56
|
# Updates an existing Instance in a given project and location.
|
58
|
-
rpc :UpdateInstance, UpdateInstanceRequest, Google::Longrunning::Operation
|
59
|
-
# Updates the defined Memcached
|
57
|
+
rpc :UpdateInstance, ::Google::Cloud::Memcache::V1beta2::UpdateInstanceRequest, ::Google::Longrunning::Operation
|
58
|
+
# Updates the defined Memcached parameters for an existing instance.
|
60
59
|
# This method only stages the parameters, it must be followed by
|
61
|
-
# ApplyParameters to apply the parameters to nodes of the Memcached
|
62
|
-
|
60
|
+
# `ApplyParameters` to apply the parameters to nodes of the Memcached
|
61
|
+
# instance.
|
62
|
+
rpc :UpdateParameters, ::Google::Cloud::Memcache::V1beta2::UpdateParametersRequest, ::Google::Longrunning::Operation
|
63
63
|
# Deletes a single Instance.
|
64
|
-
rpc :DeleteInstance, DeleteInstanceRequest, Google::Longrunning::Operation
|
65
|
-
# ApplyParameters
|
66
|
-
#
|
67
|
-
rpc :ApplyParameters, ApplyParametersRequest, Google::Longrunning::Operation
|
64
|
+
rpc :DeleteInstance, ::Google::Cloud::Memcache::V1beta2::DeleteInstanceRequest, ::Google::Longrunning::Operation
|
65
|
+
# `ApplyParameters` restarts the set of specified nodes in order to update
|
66
|
+
# them to the current set of parameters for the Memcached Instance.
|
67
|
+
rpc :ApplyParameters, ::Google::Cloud::Memcache::V1beta2::ApplyParametersRequest, ::Google::Longrunning::Operation
|
68
|
+
# Updates software on the selected nodes of the Instance.
|
69
|
+
rpc :ApplySoftwareUpdate, ::Google::Cloud::Memcache::V1beta2::ApplySoftwareUpdateRequest, ::Google::Longrunning::Operation
|
68
70
|
end
|
69
71
|
|
70
72
|
Stub = Service.rpc_stub_class
|
data/proto_docs/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Google Cloud Memorystore for Memcached
|
1
|
+
# Google Cloud Memorystore for Memcached Protocol Buffer Documentation
|
2
2
|
|
3
3
|
These files are for the YARD documentation of the generated protobuf files.
|
4
4
|
They are not intended to be required or loaded at runtime.
|
@@ -54,6 +54,18 @@ module Google
|
|
54
54
|
# This indicates that the field may be set once in a request to create a
|
55
55
|
# resource, but may not be changed thereafter.
|
56
56
|
IMMUTABLE = 5
|
57
|
+
|
58
|
+
# Denotes that a (repeated) field is an unordered list.
|
59
|
+
# This indicates that the service may provide the elements of the list
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
|
+
# provided. Additionally, the list's order may or may not be stable.
|
62
|
+
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
57
69
|
end
|
58
70
|
end
|
59
71
|
end
|
@@ -43,12 +43,12 @@ module Google
|
|
43
43
|
#
|
44
44
|
# The ResourceDescriptor Yaml config will look like:
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
46
|
+
# resources:
|
47
|
+
# - type: "pubsub.googleapis.com/Topic"
|
48
|
+
# name_descriptor:
|
49
|
+
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
+
# parent_name_extractor: "projects/{project}"
|
52
52
|
#
|
53
53
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
54
|
# live under multiple parents.
|
@@ -183,15 +183,24 @@ module Google
|
|
183
183
|
# }
|
184
184
|
# @!attribute [rw] plural
|
185
185
|
# @return [::String]
|
186
|
-
# The plural name used in the resource name, such as
|
187
|
-
# the name of 'projects/\\{project}'
|
188
|
-
#
|
186
|
+
# The plural name used in the resource name and permission names, such as
|
187
|
+
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
188
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
|
189
|
+
# concept of the `plural` field in k8s CRD spec
|
189
190
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
191
|
+
#
|
192
|
+
# Note: The plural form is required even for singleton resources. See
|
193
|
+
# https://aip.dev/156
|
190
194
|
# @!attribute [rw] singular
|
191
195
|
# @return [::String]
|
192
196
|
# The same concept of the `singular` field in k8s CRD spec
|
193
197
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
194
198
|
# Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
199
|
+
# @!attribute [rw] style
|
200
|
+
# @return [::Array<::Google::Api::ResourceDescriptor::Style>]
|
201
|
+
# Style flag(s) for this resource.
|
202
|
+
# These indicate that a resource is expected to conform to a given
|
203
|
+
# style. See the specific style flags for additional information.
|
195
204
|
class ResourceDescriptor
|
196
205
|
include ::Google::Protobuf::MessageExts
|
197
206
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -211,6 +220,22 @@ module Google
|
|
211
220
|
# that from being necessary once there are multiple patterns.)
|
212
221
|
FUTURE_MULTI_PATTERN = 2
|
213
222
|
end
|
223
|
+
|
224
|
+
# A flag representing a specific style that a resource claims to conform to.
|
225
|
+
module Style
|
226
|
+
# The unspecified value. Do not use.
|
227
|
+
STYLE_UNSPECIFIED = 0
|
228
|
+
|
229
|
+
# This resource is intended to be "declarative-friendly".
|
230
|
+
#
|
231
|
+
# Declarative-friendly resources must be more strictly consistent, and
|
232
|
+
# setting this to true communicates to tools that this resource should
|
233
|
+
# adhere to declarative-friendly expectations.
|
234
|
+
#
|
235
|
+
# Note: This is used by the API linter (linter.aip.dev) to enable
|
236
|
+
# additional checks.
|
237
|
+
DECLARATIVE_FRIENDLY = 1
|
238
|
+
end
|
214
239
|
end
|
215
240
|
|
216
241
|
# Defines a proto annotation that describes a string field that refers to
|
@@ -226,6 +251,17 @@ module Google
|
|
226
251
|
# type: "pubsub.googleapis.com/Topic"
|
227
252
|
# }];
|
228
253
|
# }
|
254
|
+
#
|
255
|
+
# Occasionally, a field may reference an arbitrary resource. In this case,
|
256
|
+
# APIs use the special value * in their resource reference.
|
257
|
+
#
|
258
|
+
# Example:
|
259
|
+
#
|
260
|
+
# message GetIamPolicyRequest {
|
261
|
+
# string resource = 2 [(google.api.resource_reference) = {
|
262
|
+
# type: "*"
|
263
|
+
# }];
|
264
|
+
# }
|
229
265
|
# @!attribute [rw] child_type
|
230
266
|
# @return [::String]
|
231
267
|
# The resource type of a child collection that the annotated field
|
@@ -234,11 +270,11 @@ module Google
|
|
234
270
|
#
|
235
271
|
# Example:
|
236
272
|
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
241
|
-
#
|
273
|
+
# message ListLogEntriesRequest {
|
274
|
+
# string parent = 1 [(google.api.resource_reference) = {
|
275
|
+
# child_type: "logging.googleapis.com/LogEntry"
|
276
|
+
# };
|
277
|
+
# }
|
242
278
|
class ResourceReference
|
243
279
|
include ::Google::Protobuf::MessageExts
|
244
280
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -21,34 +21,35 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module Memcache
|
23
23
|
module V1beta2
|
24
|
+
# A Memorystore for Memcached instance
|
24
25
|
# @!attribute [rw] name
|
25
26
|
# @return [::String]
|
26
27
|
# Required. Unique name of the resource in this scope including project and
|
27
28
|
# location using the form:
|
28
29
|
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
29
30
|
#
|
30
|
-
# Note: Memcached instances are managed and addressed at regional level
|
31
|
-
# location_id here refers to a
|
32
|
-
# zones Memcached nodes
|
33
|
-
# Refer to
|
31
|
+
# Note: Memcached instances are managed and addressed at the regional level
|
32
|
+
# so `location_id` here refers to a Google Cloud region; however, users may
|
33
|
+
# choose which zones Memcached nodes should be provisioned in within an
|
34
|
+
# instance. Refer to {::Google::Cloud::Memcache::V1beta2::Instance#zones zones} field for more details.
|
34
35
|
# @!attribute [rw] display_name
|
35
36
|
# @return [::String]
|
36
|
-
#
|
37
|
+
# User provided name for the instance, which is only used for display
|
37
38
|
# purposes. Cannot be more than 80 characters.
|
38
39
|
# @!attribute [rw] labels
|
39
40
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
40
|
-
#
|
41
|
+
# Resource labels to represent user-provided metadata.
|
41
42
|
# Refer to cloud documentation on labels for more details.
|
42
43
|
# https://cloud.google.com/compute/docs/labeling-resources
|
43
44
|
# @!attribute [rw] authorized_network
|
44
45
|
# @return [::String]
|
45
|
-
#
|
46
|
+
# The full name of the Google Compute Engine
|
46
47
|
# [network](https://cloud.google.com/vpc/docs/vpc) to which the
|
47
48
|
# instance is connected. If left unspecified, the `default` network
|
48
49
|
# will be used.
|
49
50
|
# @!attribute [rw] zones
|
50
51
|
# @return [::Array<::String>]
|
51
|
-
#
|
52
|
+
# Zones in which Memcached nodes should be provisioned.
|
52
53
|
# Memcached nodes will be equally distributed across these zones. If not
|
53
54
|
# provided, the service will by default create nodes in all zones in the
|
54
55
|
# region for the instance.
|
@@ -60,9 +61,9 @@ module Google
|
|
60
61
|
# Required. Configuration for Memcached nodes.
|
61
62
|
# @!attribute [rw] memcache_version
|
62
63
|
# @return [::Google::Cloud::Memcache::V1beta2::MemcacheVersion]
|
63
|
-
#
|
64
|
+
# The major version of Memcached software.
|
64
65
|
# If not provided, latest supported version will be used. Currently the
|
65
|
-
# latest supported major version is MEMCACHE_1_5
|
66
|
+
# latest supported major version is `MEMCACHE_1_5`.
|
66
67
|
# The minor version will be automatically determined by our system based on
|
67
68
|
# the latest supported minor version.
|
68
69
|
# @!attribute [rw] parameters
|
@@ -72,7 +73,7 @@ module Google
|
|
72
73
|
# @!attribute [r] memcache_nodes
|
73
74
|
# @return [::Array<::Google::Cloud::Memcache::V1beta2::Instance::Node>]
|
74
75
|
# Output only. List of Memcached nodes.
|
75
|
-
# Refer to
|
76
|
+
# Refer to {::Google::Cloud::Memcache::V1beta2::Instance::Node Node} message for more details.
|
76
77
|
# @!attribute [r] create_time
|
77
78
|
# @return [::Google::Protobuf::Timestamp]
|
78
79
|
# Output only. The time the instance was created.
|
@@ -90,10 +91,13 @@ module Google
|
|
90
91
|
# The full version format will be "memcached-1.5.16".
|
91
92
|
# @!attribute [rw] instance_messages
|
92
93
|
# @return [::Array<::Google::Cloud::Memcache::V1beta2::Instance::InstanceMessage>]
|
93
|
-
# List of messages that describe current
|
94
|
+
# List of messages that describe the current state of the Memcached instance.
|
94
95
|
# @!attribute [r] discovery_endpoint
|
95
96
|
# @return [::String]
|
96
|
-
# Output only. Endpoint for Discovery API
|
97
|
+
# Output only. Endpoint for the Discovery API.
|
98
|
+
# @!attribute [r] update_available
|
99
|
+
# @return [::Boolean]
|
100
|
+
# Output only. Returns true if there is an update waiting to be applied
|
97
101
|
class Instance
|
98
102
|
include ::Google::Protobuf::MessageExts
|
99
103
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -130,12 +134,14 @@ module Google
|
|
130
134
|
# @!attribute [rw] parameters
|
131
135
|
# @return [::Google::Cloud::Memcache::V1beta2::MemcacheParameters]
|
132
136
|
# User defined parameters currently applied to the node.
|
137
|
+
# @!attribute [r] update_available
|
138
|
+
# @return [::Boolean]
|
139
|
+
# Output only. Returns true if there is an update waiting to be applied
|
133
140
|
class Node
|
134
141
|
include ::Google::Protobuf::MessageExts
|
135
142
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
136
143
|
|
137
144
|
# Different states of a Memcached node.
|
138
|
-
# LINT.IfChange
|
139
145
|
module State
|
140
146
|
# Node state is not set.
|
141
147
|
STATE_UNSPECIFIED = 0
|
@@ -183,7 +189,6 @@ module Google
|
|
183
189
|
end
|
184
190
|
|
185
191
|
# Different states of a Memcached instance.
|
186
|
-
# LINT.IfChange
|
187
192
|
module State
|
188
193
|
# State not set.
|
189
194
|
STATE_UNSPECIFIED = 0
|
@@ -213,18 +218,17 @@ module Google
|
|
213
218
|
# The maximum number of items to return.
|
214
219
|
#
|
215
220
|
# If not specified, a default value of 1000 will be used by the service.
|
216
|
-
# Regardless of the page_size value, the response may include a partial
|
217
|
-
# and a caller should only rely on response's
|
218
|
-
#
|
221
|
+
# Regardless of the `page_size` value, the response may include a partial
|
222
|
+
# list and a caller should only rely on response's
|
223
|
+
# {::Google::Cloud::Memcache::V1beta2::ListInstancesResponse#next_page_token `next_page_token`}
|
219
224
|
# to determine if there are more instances left to be queried.
|
220
225
|
# @!attribute [rw] page_token
|
221
226
|
# @return [::String]
|
222
|
-
# The next_page_token value returned from a previous List request,
|
223
|
-
# if any.
|
227
|
+
# The `next_page_token` value returned from a previous List request, if any.
|
224
228
|
# @!attribute [rw] filter
|
225
229
|
# @return [::String]
|
226
230
|
# List filter. For example, exclude all Memcached instances with name as
|
227
|
-
# my-instance by specifying "name != my-instance"
|
231
|
+
# my-instance by specifying `"name != my-instance"`.
|
228
232
|
# @!attribute [rw] order_by
|
229
233
|
# @return [::String]
|
230
234
|
# Sort results. Supported values are "name", "name desc" or "" (unsorted).
|
@@ -279,7 +283,9 @@ module Google
|
|
279
283
|
# * Must start with a letter.
|
280
284
|
# * Must be between 1-40 characters.
|
281
285
|
# * Must end with a number or a letter.
|
282
|
-
# * Must be unique within the user project / location
|
286
|
+
# * Must be unique within the user project / location.
|
287
|
+
#
|
288
|
+
# If any of the above are not met, the API raises an invalid argument error.
|
283
289
|
# @!attribute [rw] resource
|
284
290
|
# @return [::Google::Cloud::Memcache::V1beta2::Instance]
|
285
291
|
# Required. A Memcached [Instance] resource
|
@@ -292,7 +298,7 @@ module Google
|
|
292
298
|
# @!attribute [rw] update_mask
|
293
299
|
# @return [::Google::Protobuf::FieldMask]
|
294
300
|
# Required. Mask of fields to update.
|
295
|
-
# *
|
301
|
+
# * `displayName`
|
296
302
|
# @!attribute [rw] resource
|
297
303
|
# @return [::Google::Cloud::Memcache::V1beta2::Instance]
|
298
304
|
# Required. A Memcached [Instance] resource.
|
@@ -305,7 +311,7 @@ module Google
|
|
305
311
|
# Request for {::Google::Cloud::Memcache::V1beta2::CloudMemcache::Client#delete_instance DeleteInstance}.
|
306
312
|
# @!attribute [rw] name
|
307
313
|
# @return [::String]
|
308
|
-
# Memcached instance resource name in the format:
|
314
|
+
# Required. Memcached instance resource name in the format:
|
309
315
|
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
310
316
|
# where `location_id` refers to a GCP region
|
311
317
|
class DeleteInstanceRequest
|
@@ -320,12 +326,12 @@ module Google
|
|
320
326
|
# should be applied.
|
321
327
|
# @!attribute [rw] node_ids
|
322
328
|
# @return [::Array<::String>]
|
323
|
-
# Nodes to which
|
329
|
+
# Nodes to which the instance-level parameter group is applied.
|
324
330
|
# @!attribute [rw] apply_all
|
325
331
|
# @return [::Boolean]
|
326
332
|
# Whether to apply instance-level parameter group to all nodes. If set to
|
327
|
-
# true,
|
328
|
-
#
|
333
|
+
# true, users are restricted from specifying individual nodes, and
|
334
|
+
# `ApplyParameters` updates all nodes within the instance.
|
329
335
|
class ApplyParametersRequest
|
330
336
|
include ::Google::Protobuf::MessageExts
|
331
337
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -347,12 +353,33 @@ module Google
|
|
347
353
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
348
354
|
end
|
349
355
|
|
356
|
+
# Request for {::Google::Cloud::Memcache::V1beta2::CloudMemcache::Client#apply_software_update ApplySoftwareUpdate}.
|
357
|
+
# @!attribute [rw] instance
|
358
|
+
# @return [::String]
|
359
|
+
# Required. Resource name of the Memcached instance for which software update should be
|
360
|
+
# applied.
|
361
|
+
# @!attribute [rw] node_ids
|
362
|
+
# @return [::Array<::String>]
|
363
|
+
# Nodes to which we should apply the update to. Note all the selected nodes
|
364
|
+
# are updated in parallel.
|
365
|
+
# @!attribute [rw] apply_all
|
366
|
+
# @return [::Boolean]
|
367
|
+
# Whether to apply the update to all nodes. If set to
|
368
|
+
# true, will explicitly restrict users from specifying any nodes, and apply
|
369
|
+
# software update to all nodes (where applicable) within the instance.
|
370
|
+
class ApplySoftwareUpdateRequest
|
371
|
+
include ::Google::Protobuf::MessageExts
|
372
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
373
|
+
end
|
374
|
+
|
375
|
+
# The unique ID associated with this set of parameters. Users
|
376
|
+
# can use this id to determine if the parameters associated with the instance
|
377
|
+
# differ from the parameters associated with the nodes. A discrepancy between
|
378
|
+
# parameter ids can inform users that they may need to take action to apply
|
379
|
+
# parameters on nodes.
|
350
380
|
# @!attribute [r] id
|
351
381
|
# @return [::String]
|
352
|
-
# Output only.
|
353
|
-
# can use this id to determine if the parameters associated with the instance
|
354
|
-
# differ from the parameters associated with the nodes and any action needs
|
355
|
-
# to be taken to apply parameters on nodes.
|
382
|
+
# Output only.
|
356
383
|
# @!attribute [rw] params
|
357
384
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
358
385
|
# User defined set of parameters to use in the memcached process.
|
@@ -371,30 +398,30 @@ module Google
|
|
371
398
|
end
|
372
399
|
|
373
400
|
# Represents the metadata of a long-running operation.
|
374
|
-
# @!attribute [
|
401
|
+
# @!attribute [r] create_time
|
375
402
|
# @return [::Google::Protobuf::Timestamp]
|
376
|
-
# Time when the operation was created.
|
377
|
-
# @!attribute [
|
403
|
+
# Output only. Time when the operation was created.
|
404
|
+
# @!attribute [r] end_time
|
378
405
|
# @return [::Google::Protobuf::Timestamp]
|
379
|
-
# Time when the operation finished running.
|
380
|
-
# @!attribute [
|
406
|
+
# Output only. Time when the operation finished running.
|
407
|
+
# @!attribute [r] target
|
381
408
|
# @return [::String]
|
382
|
-
# Server-defined resource path for the target of the operation.
|
383
|
-
# @!attribute [
|
409
|
+
# Output only. Server-defined resource path for the target of the operation.
|
410
|
+
# @!attribute [r] verb
|
384
411
|
# @return [::String]
|
385
|
-
# Name of the verb executed by the operation.
|
386
|
-
# @!attribute [
|
412
|
+
# Output only. Name of the verb executed by the operation.
|
413
|
+
# @!attribute [r] status_detail
|
387
414
|
# @return [::String]
|
388
|
-
# Human-readable status of the operation, if any.
|
389
|
-
# @!attribute [
|
415
|
+
# Output only. Human-readable status of the operation, if any.
|
416
|
+
# @!attribute [r] cancel_requested
|
390
417
|
# @return [::Boolean]
|
391
|
-
# Identifies whether the user has requested cancellation
|
418
|
+
# Output only. Identifies whether the user has requested cancellation
|
392
419
|
# of the operation. Operations that have successfully been cancelled
|
393
420
|
# have [Operation.error][] value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
|
394
421
|
# corresponding to `Code.CANCELLED`.
|
395
|
-
# @!attribute [
|
422
|
+
# @!attribute [r] api_version
|
396
423
|
# @return [::String]
|
397
|
-
# API version used to start the operation.
|
424
|
+
# Output only. API version used to start the operation.
|
398
425
|
class OperationMetadata
|
399
426
|
include ::Google::Protobuf::MessageExts
|
400
427
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|