google-cloud-memcache-v1beta2 0.3.0 → 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 +1 -1
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache/client.rb +125 -0
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache_pb.rb +38 -0
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache_services_pb.rb +2 -0
- data/lib/google/cloud/memcache/v1beta2/version.rb +1 -1
- 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/v1beta2/cloud_memcache.rb +107 -8
- 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 +28 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91bf192b96040627805e8cd460327d3869a86a74bfb6db5d77d0a14b63d278be
|
4
|
+
data.tar.gz: f9d7d75068eda528cc6ae2173985e0ae4d701f157c73039388da70fd215d541f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9176bf7f27f96c87a4415d52b0eb729f062f87003aa4f2224fe01a6698e36c02fe0836bb30dd2030701105802f2df8bf1d293ae9b74a97ed4269508db6102b6
|
7
|
+
data.tar.gz: 333a285cc12eb70377ec051662db2e9a87a22e884f5976565a42a0f8ad00c961442c1e422c985337661fb08cf304e793e8c7ef65398d14374ca4d5f061b22473
|
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
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/memcache/v1beta2/cloud_memcache_pb"
|
21
|
+
require "google/cloud/location"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -94,6 +95,8 @@ module Google
|
|
94
95
|
|
95
96
|
default_config.rpcs.apply_software_update.timeout = 1200.0
|
96
97
|
|
98
|
+
default_config.rpcs.reschedule_maintenance.timeout = 1200.0
|
99
|
+
|
97
100
|
default_config
|
98
101
|
end
|
99
102
|
yield @configure if block_given?
|
@@ -169,6 +172,12 @@ module Google
|
|
169
172
|
config.endpoint = @config.endpoint
|
170
173
|
end
|
171
174
|
|
175
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
176
|
+
config.credentials = credentials
|
177
|
+
config.quota_project = @quota_project_id
|
178
|
+
config.endpoint = @config.endpoint
|
179
|
+
end
|
180
|
+
|
172
181
|
@cloud_memcache_stub = ::Gapic::ServiceStub.new(
|
173
182
|
::Google::Cloud::Memcache::V1beta2::CloudMemcache::Stub,
|
174
183
|
credentials: credentials,
|
@@ -185,6 +194,13 @@ module Google
|
|
185
194
|
#
|
186
195
|
attr_reader :operations_client
|
187
196
|
|
197
|
+
##
|
198
|
+
# Get the associated client for mix-in of the Locations.
|
199
|
+
#
|
200
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
201
|
+
#
|
202
|
+
attr_reader :location_client
|
203
|
+
|
188
204
|
# Service calls
|
189
205
|
|
190
206
|
##
|
@@ -511,6 +527,7 @@ module Google
|
|
511
527
|
#
|
512
528
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
513
529
|
# Required. Mask of fields to update.
|
530
|
+
#
|
514
531
|
# * `displayName`
|
515
532
|
# @param resource [::Google::Cloud::Memcache::V1beta2::Instance, ::Hash]
|
516
533
|
# Required. A Memcached [Instance] resource.
|
@@ -986,6 +1003,107 @@ module Google
|
|
986
1003
|
raise ::Google::Cloud::Error.from_error(e)
|
987
1004
|
end
|
988
1005
|
|
1006
|
+
##
|
1007
|
+
# Performs the apply phase of the RescheduleMaintenance verb.
|
1008
|
+
#
|
1009
|
+
# @overload reschedule_maintenance(request, options = nil)
|
1010
|
+
# Pass arguments to `reschedule_maintenance` via a request object, either of type
|
1011
|
+
# {::Google::Cloud::Memcache::V1beta2::RescheduleMaintenanceRequest} or an equivalent Hash.
|
1012
|
+
#
|
1013
|
+
# @param request [::Google::Cloud::Memcache::V1beta2::RescheduleMaintenanceRequest, ::Hash]
|
1014
|
+
# A request object representing the call parameters. Required. To specify no
|
1015
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1016
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1017
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1018
|
+
#
|
1019
|
+
# @overload reschedule_maintenance(instance: nil, reschedule_type: nil, schedule_time: nil)
|
1020
|
+
# Pass arguments to `reschedule_maintenance` via keyword arguments. Note that at
|
1021
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1022
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1023
|
+
#
|
1024
|
+
# @param instance [::String]
|
1025
|
+
# Required. Memcache instance resource name using the form:
|
1026
|
+
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
1027
|
+
# where `location_id` refers to a GCP region.
|
1028
|
+
# @param reschedule_type [::Google::Cloud::Memcache::V1beta2::RescheduleMaintenanceRequest::RescheduleType]
|
1029
|
+
# Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
|
1030
|
+
# @param schedule_time [::Google::Protobuf::Timestamp, ::Hash]
|
1031
|
+
# Timestamp when the maintenance shall be rescheduled to if
|
1032
|
+
# reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
|
1033
|
+
# example `2012-11-15T16:19:00.094Z`.
|
1034
|
+
#
|
1035
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1036
|
+
# @yieldparam response [::Gapic::Operation]
|
1037
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1038
|
+
#
|
1039
|
+
# @return [::Gapic::Operation]
|
1040
|
+
#
|
1041
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1042
|
+
#
|
1043
|
+
# @example Basic example
|
1044
|
+
# require "google/cloud/memcache/v1beta2"
|
1045
|
+
#
|
1046
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1047
|
+
# client = Google::Cloud::Memcache::V1beta2::CloudMemcache::Client.new
|
1048
|
+
#
|
1049
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1050
|
+
# request = Google::Cloud::Memcache::V1beta2::RescheduleMaintenanceRequest.new
|
1051
|
+
#
|
1052
|
+
# # Call the reschedule_maintenance method.
|
1053
|
+
# result = client.reschedule_maintenance request
|
1054
|
+
#
|
1055
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1056
|
+
# # object to check the status of an operation, cancel it, or wait
|
1057
|
+
# # for results. Here is how to block until completion:
|
1058
|
+
# result.wait_until_done! timeout: 60
|
1059
|
+
# if result.response?
|
1060
|
+
# p result.response
|
1061
|
+
# else
|
1062
|
+
# puts "Error!"
|
1063
|
+
# end
|
1064
|
+
#
|
1065
|
+
def reschedule_maintenance request, options = nil
|
1066
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1067
|
+
|
1068
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Memcache::V1beta2::RescheduleMaintenanceRequest
|
1069
|
+
|
1070
|
+
# Converts hash and nil to an options object
|
1071
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1072
|
+
|
1073
|
+
# Customize the options with defaults
|
1074
|
+
metadata = @config.rpcs.reschedule_maintenance.metadata.to_h
|
1075
|
+
|
1076
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1077
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1078
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1079
|
+
gapic_version: ::Google::Cloud::Memcache::V1beta2::VERSION
|
1080
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1081
|
+
|
1082
|
+
header_params = {}
|
1083
|
+
if request.instance
|
1084
|
+
header_params["instance"] = request.instance
|
1085
|
+
end
|
1086
|
+
|
1087
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1088
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1089
|
+
|
1090
|
+
options.apply_defaults timeout: @config.rpcs.reschedule_maintenance.timeout,
|
1091
|
+
metadata: metadata,
|
1092
|
+
retry_policy: @config.rpcs.reschedule_maintenance.retry_policy
|
1093
|
+
|
1094
|
+
options.apply_defaults timeout: @config.timeout,
|
1095
|
+
metadata: @config.metadata,
|
1096
|
+
retry_policy: @config.retry_policy
|
1097
|
+
|
1098
|
+
@cloud_memcache_stub.call_rpc :reschedule_maintenance, request, options: options do |response, operation|
|
1099
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1100
|
+
yield response, operation if block_given?
|
1101
|
+
return response
|
1102
|
+
end
|
1103
|
+
rescue ::GRPC::BadStatus => e
|
1104
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1105
|
+
end
|
1106
|
+
|
989
1107
|
##
|
990
1108
|
# Configuration class for the CloudMemcache API.
|
991
1109
|
#
|
@@ -1161,6 +1279,11 @@ module Google
|
|
1161
1279
|
# @return [::Gapic::Config::Method]
|
1162
1280
|
#
|
1163
1281
|
attr_reader :apply_software_update
|
1282
|
+
##
|
1283
|
+
# RPC-specific configuration for `reschedule_maintenance`
|
1284
|
+
# @return [::Gapic::Config::Method]
|
1285
|
+
#
|
1286
|
+
attr_reader :reschedule_maintenance
|
1164
1287
|
|
1165
1288
|
# @private
|
1166
1289
|
def initialize parent_rpcs = nil
|
@@ -1180,6 +1303,8 @@ module Google
|
|
1180
1303
|
@apply_parameters = ::Gapic::Config::Method.new apply_parameters_config
|
1181
1304
|
apply_software_update_config = parent_rpcs.apply_software_update if parent_rpcs.respond_to? :apply_software_update
|
1182
1305
|
@apply_software_update = ::Gapic::Config::Method.new apply_software_update_config
|
1306
|
+
reschedule_maintenance_config = parent_rpcs.reschedule_maintenance if parent_rpcs.respond_to? :reschedule_maintenance
|
1307
|
+
@reschedule_maintenance = ::Gapic::Config::Method.new reschedule_maintenance_config
|
1183
1308
|
|
1184
1309
|
yield self if block_given?
|
1185
1310
|
end
|
@@ -8,8 +8,11 @@ require 'google/api/client_pb'
|
|
8
8
|
require 'google/api/field_behavior_pb'
|
9
9
|
require 'google/api/resource_pb'
|
10
10
|
require 'google/longrunning/operations_pb'
|
11
|
+
require 'google/protobuf/duration_pb'
|
11
12
|
require 'google/protobuf/field_mask_pb'
|
12
13
|
require 'google/protobuf/timestamp_pb'
|
14
|
+
require 'google/type/dayofweek_pb'
|
15
|
+
require 'google/type/timeofday_pb'
|
13
16
|
|
14
17
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
18
|
add_file("google/cloud/memcache/v1beta2/cloud_memcache.proto", :syntax => :proto3) do
|
@@ -31,6 +34,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
31
34
|
repeated :instance_messages, :message, 19, "google.cloud.memcache.v1beta2.Instance.InstanceMessage"
|
32
35
|
optional :discovery_endpoint, :string, 20
|
33
36
|
optional :update_available, :bool, 21
|
37
|
+
optional :maintenance_policy, :message, 22, "google.cloud.memcache.v1beta2.MaintenancePolicy"
|
38
|
+
optional :maintenance_schedule, :message, 23, "google.cloud.memcache.v1beta2.MaintenanceSchedule"
|
34
39
|
end
|
35
40
|
add_message "google.cloud.memcache.v1beta2.Instance.NodeConfig" do
|
36
41
|
optional :cpu_count, :int32, 1
|
@@ -64,9 +69,26 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
64
69
|
value :STATE_UNSPECIFIED, 0
|
65
70
|
value :CREATING, 1
|
66
71
|
value :READY, 2
|
72
|
+
value :UPDATING, 3
|
67
73
|
value :DELETING, 4
|
68
74
|
value :PERFORMING_MAINTENANCE, 5
|
69
75
|
end
|
76
|
+
add_message "google.cloud.memcache.v1beta2.MaintenancePolicy" do
|
77
|
+
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
78
|
+
optional :update_time, :message, 2, "google.protobuf.Timestamp"
|
79
|
+
optional :description, :string, 3
|
80
|
+
repeated :weekly_maintenance_window, :message, 4, "google.cloud.memcache.v1beta2.WeeklyMaintenanceWindow"
|
81
|
+
end
|
82
|
+
add_message "google.cloud.memcache.v1beta2.WeeklyMaintenanceWindow" do
|
83
|
+
optional :day, :enum, 1, "google.type.DayOfWeek"
|
84
|
+
optional :start_time, :message, 2, "google.type.TimeOfDay"
|
85
|
+
optional :duration, :message, 3, "google.protobuf.Duration"
|
86
|
+
end
|
87
|
+
add_message "google.cloud.memcache.v1beta2.MaintenanceSchedule" do
|
88
|
+
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
89
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
90
|
+
optional :schedule_deadline_time, :message, 4, "google.protobuf.Timestamp"
|
91
|
+
end
|
70
92
|
add_message "google.cloud.memcache.v1beta2.ListInstancesRequest" do
|
71
93
|
optional :parent, :string, 1
|
72
94
|
optional :page_size, :int32, 2
|
@@ -94,6 +116,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
94
116
|
add_message "google.cloud.memcache.v1beta2.DeleteInstanceRequest" do
|
95
117
|
optional :name, :string, 1
|
96
118
|
end
|
119
|
+
add_message "google.cloud.memcache.v1beta2.RescheduleMaintenanceRequest" do
|
120
|
+
optional :instance, :string, 1
|
121
|
+
optional :reschedule_type, :enum, 2, "google.cloud.memcache.v1beta2.RescheduleMaintenanceRequest.RescheduleType"
|
122
|
+
optional :schedule_time, :message, 3, "google.protobuf.Timestamp"
|
123
|
+
end
|
124
|
+
add_enum "google.cloud.memcache.v1beta2.RescheduleMaintenanceRequest.RescheduleType" do
|
125
|
+
value :RESCHEDULE_TYPE_UNSPECIFIED, 0
|
126
|
+
value :IMMEDIATE, 1
|
127
|
+
value :NEXT_AVAILABLE_WINDOW, 2
|
128
|
+
value :SPECIFIC_TIME, 3
|
129
|
+
end
|
97
130
|
add_message "google.cloud.memcache.v1beta2.ApplyParametersRequest" do
|
98
131
|
optional :name, :string, 1
|
99
132
|
repeated :node_ids, :string, 2
|
@@ -145,12 +178,17 @@ module Google
|
|
145
178
|
Instance::InstanceMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.Instance.InstanceMessage").msgclass
|
146
179
|
Instance::InstanceMessage::Code = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.Instance.InstanceMessage.Code").enummodule
|
147
180
|
Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.Instance.State").enummodule
|
181
|
+
MaintenancePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.MaintenancePolicy").msgclass
|
182
|
+
WeeklyMaintenanceWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.WeeklyMaintenanceWindow").msgclass
|
183
|
+
MaintenanceSchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.MaintenanceSchedule").msgclass
|
148
184
|
ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.ListInstancesRequest").msgclass
|
149
185
|
ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.ListInstancesResponse").msgclass
|
150
186
|
GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.GetInstanceRequest").msgclass
|
151
187
|
CreateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.CreateInstanceRequest").msgclass
|
152
188
|
UpdateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.UpdateInstanceRequest").msgclass
|
153
189
|
DeleteInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.DeleteInstanceRequest").msgclass
|
190
|
+
RescheduleMaintenanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.RescheduleMaintenanceRequest").msgclass
|
191
|
+
RescheduleMaintenanceRequest::RescheduleType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.RescheduleMaintenanceRequest.RescheduleType").enummodule
|
154
192
|
ApplyParametersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.ApplyParametersRequest").msgclass
|
155
193
|
UpdateParametersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.UpdateParametersRequest").msgclass
|
156
194
|
ApplySoftwareUpdateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest").msgclass
|
@@ -67,6 +67,8 @@ module Google
|
|
67
67
|
rpc :ApplyParameters, ::Google::Cloud::Memcache::V1beta2::ApplyParametersRequest, ::Google::Longrunning::Operation
|
68
68
|
# Updates software on the selected nodes of the Instance.
|
69
69
|
rpc :ApplySoftwareUpdate, ::Google::Cloud::Memcache::V1beta2::ApplySoftwareUpdateRequest, ::Google::Longrunning::Operation
|
70
|
+
# Performs the apply phase of the RescheduleMaintenance verb.
|
71
|
+
rpc :RescheduleMaintenance, ::Google::Cloud::Memcache::V1beta2::RescheduleMaintenanceRequest, ::Google::Longrunning::Operation
|
70
72
|
end
|
71
73
|
|
72
74
|
Stub = Service.rpc_stub_class
|
@@ -0,0 +1,318 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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 Api
|
22
|
+
# Required information for every language.
|
23
|
+
# @!attribute [rw] reference_docs_uri
|
24
|
+
# @return [::String]
|
25
|
+
# Link to automatically generated reference documentation. Example:
|
26
|
+
# https://cloud.google.com/nodejs/docs/reference/asset/latest
|
27
|
+
# @!attribute [rw] destinations
|
28
|
+
# @return [::Array<::Google::Api::ClientLibraryDestination>]
|
29
|
+
# The destination where API teams want this client library to be published.
|
30
|
+
class CommonLanguageSettings
|
31
|
+
include ::Google::Protobuf::MessageExts
|
32
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
33
|
+
end
|
34
|
+
|
35
|
+
# Details about how and where to publish client libraries.
|
36
|
+
# @!attribute [rw] version
|
37
|
+
# @return [::String]
|
38
|
+
# Version of the API to apply these settings to.
|
39
|
+
# @!attribute [rw] launch_stage
|
40
|
+
# @return [::Google::Api::LaunchStage]
|
41
|
+
# Launch stage of this version of the API.
|
42
|
+
# @!attribute [rw] rest_numeric_enums
|
43
|
+
# @return [::Boolean]
|
44
|
+
# When using transport=rest, the client request will encode enums as
|
45
|
+
# numbers rather than strings.
|
46
|
+
# @!attribute [rw] java_settings
|
47
|
+
# @return [::Google::Api::JavaSettings]
|
48
|
+
# Settings for legacy Java features, supported in the Service YAML.
|
49
|
+
# @!attribute [rw] cpp_settings
|
50
|
+
# @return [::Google::Api::CppSettings]
|
51
|
+
# Settings for C++ client libraries.
|
52
|
+
# @!attribute [rw] php_settings
|
53
|
+
# @return [::Google::Api::PhpSettings]
|
54
|
+
# Settings for PHP client libraries.
|
55
|
+
# @!attribute [rw] python_settings
|
56
|
+
# @return [::Google::Api::PythonSettings]
|
57
|
+
# Settings for Python client libraries.
|
58
|
+
# @!attribute [rw] node_settings
|
59
|
+
# @return [::Google::Api::NodeSettings]
|
60
|
+
# Settings for Node client libraries.
|
61
|
+
# @!attribute [rw] dotnet_settings
|
62
|
+
# @return [::Google::Api::DotnetSettings]
|
63
|
+
# Settings for .NET client libraries.
|
64
|
+
# @!attribute [rw] ruby_settings
|
65
|
+
# @return [::Google::Api::RubySettings]
|
66
|
+
# Settings for Ruby client libraries.
|
67
|
+
# @!attribute [rw] go_settings
|
68
|
+
# @return [::Google::Api::GoSettings]
|
69
|
+
# Settings for Go client libraries.
|
70
|
+
class ClientLibrarySettings
|
71
|
+
include ::Google::Protobuf::MessageExts
|
72
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
73
|
+
end
|
74
|
+
|
75
|
+
# This message configures the settings for publishing [Google Cloud Client
|
76
|
+
# libraries](https://cloud.google.com/apis/docs/cloud-client-libraries)
|
77
|
+
# generated from the service config.
|
78
|
+
# @!attribute [rw] method_settings
|
79
|
+
# @return [::Array<::Google::Api::MethodSettings>]
|
80
|
+
# A list of API method settings, e.g. the behavior for methods that use the
|
81
|
+
# long-running operation pattern.
|
82
|
+
# @!attribute [rw] new_issue_uri
|
83
|
+
# @return [::String]
|
84
|
+
# Link to a place that API users can report issues. Example:
|
85
|
+
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
86
|
+
# @!attribute [rw] documentation_uri
|
87
|
+
# @return [::String]
|
88
|
+
# Link to product home page. Example:
|
89
|
+
# https://cloud.google.com/asset-inventory/docs/overview
|
90
|
+
# @!attribute [rw] api_short_name
|
91
|
+
# @return [::String]
|
92
|
+
# Used as a tracking tag when collecting data about the APIs developer
|
93
|
+
# relations artifacts like docs, packages delivered to package managers,
|
94
|
+
# etc. Example: "speech".
|
95
|
+
# @!attribute [rw] github_label
|
96
|
+
# @return [::String]
|
97
|
+
# GitHub label to apply to issues and pull requests opened for this API.
|
98
|
+
# @!attribute [rw] codeowner_github_teams
|
99
|
+
# @return [::Array<::String>]
|
100
|
+
# GitHub teams to be added to CODEOWNERS in the directory in GitHub
|
101
|
+
# containing source code for the client libraries for this API.
|
102
|
+
# @!attribute [rw] doc_tag_prefix
|
103
|
+
# @return [::String]
|
104
|
+
# A prefix used in sample code when demarking regions to be included in
|
105
|
+
# documentation.
|
106
|
+
# @!attribute [rw] organization
|
107
|
+
# @return [::Google::Api::ClientLibraryOrganization]
|
108
|
+
# For whom the client library is being published.
|
109
|
+
# @!attribute [rw] library_settings
|
110
|
+
# @return [::Array<::Google::Api::ClientLibrarySettings>]
|
111
|
+
# Client library settings. If the same version string appears multiple
|
112
|
+
# times in this list, then the last one wins. Settings from earlier
|
113
|
+
# settings with the same version string are discarded.
|
114
|
+
class Publishing
|
115
|
+
include ::Google::Protobuf::MessageExts
|
116
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
117
|
+
end
|
118
|
+
|
119
|
+
# Settings for Java client libraries.
|
120
|
+
# @!attribute [rw] library_package
|
121
|
+
# @return [::String]
|
122
|
+
# The package name to use in Java. Clobbers the java_package option
|
123
|
+
# set in the protobuf. This should be used **only** by APIs
|
124
|
+
# who have already set the language_settings.java.package_name" field
|
125
|
+
# in gapic.yaml. API teams should use the protobuf java_package option
|
126
|
+
# where possible.
|
127
|
+
#
|
128
|
+
# Example of a YAML configuration::
|
129
|
+
#
|
130
|
+
# publishing:
|
131
|
+
# java_settings:
|
132
|
+
# library_package: com.google.cloud.pubsub.v1
|
133
|
+
# @!attribute [rw] service_class_names
|
134
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
135
|
+
# Configure the Java class name to use instead of the service's for its
|
136
|
+
# corresponding generated GAPIC client. Keys are fully-qualified
|
137
|
+
# service names as they appear in the protobuf (including the full
|
138
|
+
# the language_settings.java.interface_names" field in gapic.yaml. API
|
139
|
+
# teams should otherwise use the service name as it appears in the
|
140
|
+
# protobuf.
|
141
|
+
#
|
142
|
+
# Example of a YAML configuration::
|
143
|
+
#
|
144
|
+
# publishing:
|
145
|
+
# java_settings:
|
146
|
+
# service_class_names:
|
147
|
+
# - google.pubsub.v1.Publisher: TopicAdmin
|
148
|
+
# - google.pubsub.v1.Subscriber: SubscriptionAdmin
|
149
|
+
# @!attribute [rw] common
|
150
|
+
# @return [::Google::Api::CommonLanguageSettings]
|
151
|
+
# Some settings.
|
152
|
+
class JavaSettings
|
153
|
+
include ::Google::Protobuf::MessageExts
|
154
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
155
|
+
|
156
|
+
# @!attribute [rw] key
|
157
|
+
# @return [::String]
|
158
|
+
# @!attribute [rw] value
|
159
|
+
# @return [::String]
|
160
|
+
class ServiceClassNamesEntry
|
161
|
+
include ::Google::Protobuf::MessageExts
|
162
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
# Settings for C++ client libraries.
|
167
|
+
# @!attribute [rw] common
|
168
|
+
# @return [::Google::Api::CommonLanguageSettings]
|
169
|
+
# Some settings.
|
170
|
+
class CppSettings
|
171
|
+
include ::Google::Protobuf::MessageExts
|
172
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
173
|
+
end
|
174
|
+
|
175
|
+
# Settings for Php client libraries.
|
176
|
+
# @!attribute [rw] common
|
177
|
+
# @return [::Google::Api::CommonLanguageSettings]
|
178
|
+
# Some settings.
|
179
|
+
class PhpSettings
|
180
|
+
include ::Google::Protobuf::MessageExts
|
181
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
182
|
+
end
|
183
|
+
|
184
|
+
# Settings for Python client libraries.
|
185
|
+
# @!attribute [rw] common
|
186
|
+
# @return [::Google::Api::CommonLanguageSettings]
|
187
|
+
# Some settings.
|
188
|
+
class PythonSettings
|
189
|
+
include ::Google::Protobuf::MessageExts
|
190
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
191
|
+
end
|
192
|
+
|
193
|
+
# Settings for Node client libraries.
|
194
|
+
# @!attribute [rw] common
|
195
|
+
# @return [::Google::Api::CommonLanguageSettings]
|
196
|
+
# Some settings.
|
197
|
+
class NodeSettings
|
198
|
+
include ::Google::Protobuf::MessageExts
|
199
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
200
|
+
end
|
201
|
+
|
202
|
+
# Settings for Dotnet client libraries.
|
203
|
+
# @!attribute [rw] common
|
204
|
+
# @return [::Google::Api::CommonLanguageSettings]
|
205
|
+
# Some settings.
|
206
|
+
class DotnetSettings
|
207
|
+
include ::Google::Protobuf::MessageExts
|
208
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
209
|
+
end
|
210
|
+
|
211
|
+
# Settings for Ruby client libraries.
|
212
|
+
# @!attribute [rw] common
|
213
|
+
# @return [::Google::Api::CommonLanguageSettings]
|
214
|
+
# Some settings.
|
215
|
+
class RubySettings
|
216
|
+
include ::Google::Protobuf::MessageExts
|
217
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
218
|
+
end
|
219
|
+
|
220
|
+
# Settings for Go client libraries.
|
221
|
+
# @!attribute [rw] common
|
222
|
+
# @return [::Google::Api::CommonLanguageSettings]
|
223
|
+
# Some settings.
|
224
|
+
class GoSettings
|
225
|
+
include ::Google::Protobuf::MessageExts
|
226
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
227
|
+
end
|
228
|
+
|
229
|
+
# Describes the generator configuration for a method.
|
230
|
+
# @!attribute [rw] selector
|
231
|
+
# @return [::String]
|
232
|
+
# The fully qualified name of the method, for which the options below apply.
|
233
|
+
# This is used to find the method to apply the options.
|
234
|
+
# @!attribute [rw] long_running
|
235
|
+
# @return [::Google::Api::MethodSettings::LongRunning]
|
236
|
+
# Describes settings to use for long-running operations when generating
|
237
|
+
# API methods for RPCs. Complements RPCs that use the annotations in
|
238
|
+
# google/longrunning/operations.proto.
|
239
|
+
#
|
240
|
+
# Example of a YAML configuration::
|
241
|
+
#
|
242
|
+
# publishing:
|
243
|
+
# method_behavior:
|
244
|
+
# - selector: CreateAdDomain
|
245
|
+
# long_running:
|
246
|
+
# initial_poll_delay:
|
247
|
+
# seconds: 60 # 1 minute
|
248
|
+
# poll_delay_multiplier: 1.5
|
249
|
+
# max_poll_delay:
|
250
|
+
# seconds: 360 # 6 minutes
|
251
|
+
# total_poll_timeout:
|
252
|
+
# seconds: 54000 # 90 minutes
|
253
|
+
class MethodSettings
|
254
|
+
include ::Google::Protobuf::MessageExts
|
255
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
256
|
+
|
257
|
+
# Describes settings to use when generating API methods that use the
|
258
|
+
# long-running operation pattern.
|
259
|
+
# All default values below are from those used in the client library
|
260
|
+
# generators (e.g.
|
261
|
+
# [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)).
|
262
|
+
# @!attribute [rw] initial_poll_delay
|
263
|
+
# @return [::Google::Protobuf::Duration]
|
264
|
+
# Initial delay after which the first poll request will be made.
|
265
|
+
# Default value: 5 seconds.
|
266
|
+
# @!attribute [rw] poll_delay_multiplier
|
267
|
+
# @return [::Float]
|
268
|
+
# Multiplier to gradually increase delay between subsequent polls until it
|
269
|
+
# reaches max_poll_delay.
|
270
|
+
# Default value: 1.5.
|
271
|
+
# @!attribute [rw] max_poll_delay
|
272
|
+
# @return [::Google::Protobuf::Duration]
|
273
|
+
# Maximum time between two subsequent poll requests.
|
274
|
+
# Default value: 45 seconds.
|
275
|
+
# @!attribute [rw] total_poll_timeout
|
276
|
+
# @return [::Google::Protobuf::Duration]
|
277
|
+
# Total polling timeout.
|
278
|
+
# Default value: 5 minutes.
|
279
|
+
class LongRunning
|
280
|
+
include ::Google::Protobuf::MessageExts
|
281
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
# The organization for which the client libraries are being published.
|
286
|
+
# Affects the url where generated docs are published, etc.
|
287
|
+
module ClientLibraryOrganization
|
288
|
+
# Not useful.
|
289
|
+
CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0
|
290
|
+
|
291
|
+
# Google Cloud Platform Org.
|
292
|
+
CLOUD = 1
|
293
|
+
|
294
|
+
# Ads (Advertising) Org.
|
295
|
+
ADS = 2
|
296
|
+
|
297
|
+
# Photos Org.
|
298
|
+
PHOTOS = 3
|
299
|
+
|
300
|
+
# Street View Org.
|
301
|
+
STREET_VIEW = 4
|
302
|
+
end
|
303
|
+
|
304
|
+
# To where should client libraries be published?
|
305
|
+
module ClientLibraryDestination
|
306
|
+
# Client libraries will neither be generated nor published to package
|
307
|
+
# managers.
|
308
|
+
CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0
|
309
|
+
|
310
|
+
# Generate the client library in a repo under github.com/googleapis,
|
311
|
+
# but don't publish it to package managers.
|
312
|
+
GITHUB = 10
|
313
|
+
|
314
|
+
# Publish the library to package managers like nuget.org and npmjs.com.
|
315
|
+
PACKAGE_MANAGER = 20
|
316
|
+
end
|
317
|
+
end
|
318
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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 Api
|
22
|
+
# The launch stage as defined by [Google Cloud Platform
|
23
|
+
# Launch Stages](https://cloud.google.com/terms/launch-stages).
|
24
|
+
module LaunchStage
|
25
|
+
# Do not use this default value.
|
26
|
+
LAUNCH_STAGE_UNSPECIFIED = 0
|
27
|
+
|
28
|
+
# The feature is not yet implemented. Users can not use it.
|
29
|
+
UNIMPLEMENTED = 6
|
30
|
+
|
31
|
+
# Prelaunch features are hidden from users and are only visible internally.
|
32
|
+
PRELAUNCH = 7
|
33
|
+
|
34
|
+
# Early Access features are limited to a closed group of testers. To use
|
35
|
+
# these features, you must sign up in advance and sign a Trusted Tester
|
36
|
+
# agreement (which includes confidentiality provisions). These features may
|
37
|
+
# be unstable, changed in backward-incompatible ways, and are not
|
38
|
+
# guaranteed to be released.
|
39
|
+
EARLY_ACCESS = 1
|
40
|
+
|
41
|
+
# Alpha is a limited availability test for releases before they are cleared
|
42
|
+
# for widespread use. By Alpha, all significant design issues are resolved
|
43
|
+
# and we are in the process of verifying functionality. Alpha customers
|
44
|
+
# need to apply for access, agree to applicable terms, and have their
|
45
|
+
# projects allowlisted. Alpha releases don't have to be feature complete,
|
46
|
+
# no SLAs are provided, and there are no technical support obligations, but
|
47
|
+
# they will be far enough along that customers can actually use them in
|
48
|
+
# test environments or for limited-use tests -- just like they would in
|
49
|
+
# normal production cases.
|
50
|
+
ALPHA = 2
|
51
|
+
|
52
|
+
# Beta is the point at which we are ready to open a release for any
|
53
|
+
# customer to use. There are no SLA or technical support obligations in a
|
54
|
+
# Beta release. Products will be complete from a feature perspective, but
|
55
|
+
# may have some open outstanding issues. Beta releases are suitable for
|
56
|
+
# limited production use cases.
|
57
|
+
BETA = 3
|
58
|
+
|
59
|
+
# GA features are open to all developers and are considered stable and
|
60
|
+
# fully qualified for production use.
|
61
|
+
GA = 4
|
62
|
+
|
63
|
+
# Deprecated features are scheduled to be shut down and removed. For more
|
64
|
+
# information, see the "Deprecation Policy" section of our [Terms of
|
65
|
+
# Service](https://cloud.google.com/terms/)
|
66
|
+
# and the [Google Cloud Platform Subject to the Deprecation
|
67
|
+
# Policy](https://cloud.google.com/terms/deprecation) documentation.
|
68
|
+
DEPRECATED = 5
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -68,7 +68,7 @@ module Google
|
|
68
68
|
# the latest supported minor version.
|
69
69
|
# @!attribute [rw] parameters
|
70
70
|
# @return [::Google::Cloud::Memcache::V1beta2::MemcacheParameters]
|
71
|
-
#
|
71
|
+
# User defined parameters to apply to the memcached process
|
72
72
|
# on each node.
|
73
73
|
# @!attribute [r] memcache_nodes
|
74
74
|
# @return [::Array<::Google::Cloud::Memcache::V1beta2::Instance::Node>]
|
@@ -98,6 +98,14 @@ module Google
|
|
98
98
|
# @!attribute [r] update_available
|
99
99
|
# @return [::Boolean]
|
100
100
|
# Output only. Returns true if there is an update waiting to be applied
|
101
|
+
# @!attribute [rw] maintenance_policy
|
102
|
+
# @return [::Google::Cloud::Memcache::V1beta2::MaintenancePolicy]
|
103
|
+
# The maintenance policy for the instance. If not provided,
|
104
|
+
# the maintenance event will be performed based on Memorystore
|
105
|
+
# internal rollout schedule.
|
106
|
+
# @!attribute [r] maintenance_schedule
|
107
|
+
# @return [::Google::Cloud::Memcache::V1beta2::MaintenanceSchedule]
|
108
|
+
# Output only. Published maintenance schedule.
|
101
109
|
class Instance
|
102
110
|
include ::Google::Protobuf::MessageExts
|
103
111
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -199,6 +207,10 @@ module Google
|
|
199
207
|
# Memcached instance has been created and ready to be used.
|
200
208
|
READY = 2
|
201
209
|
|
210
|
+
# Memcached instance is updating configuration such as maintenance policy
|
211
|
+
# and schedule.
|
212
|
+
UPDATING = 3
|
213
|
+
|
202
214
|
# Memcached instance is being deleted.
|
203
215
|
DELETING = 4
|
204
216
|
|
@@ -207,6 +219,58 @@ module Google
|
|
207
219
|
end
|
208
220
|
end
|
209
221
|
|
222
|
+
# Maintenance policy per instance.
|
223
|
+
# @!attribute [r] create_time
|
224
|
+
# @return [::Google::Protobuf::Timestamp]
|
225
|
+
# Output only. The time when the policy was created.
|
226
|
+
# @!attribute [r] update_time
|
227
|
+
# @return [::Google::Protobuf::Timestamp]
|
228
|
+
# Output only. The time when the policy was updated.
|
229
|
+
# @!attribute [rw] description
|
230
|
+
# @return [::String]
|
231
|
+
# Description of what this policy is for. Create/Update methods
|
232
|
+
# return INVALID_ARGUMENT if the length is greater than 512.
|
233
|
+
# @!attribute [rw] weekly_maintenance_window
|
234
|
+
# @return [::Array<::Google::Cloud::Memcache::V1beta2::WeeklyMaintenanceWindow>]
|
235
|
+
# Required. Maintenance window that is applied to resources covered by this
|
236
|
+
# policy. Minimum 1. For the current version, the maximum number of
|
237
|
+
# weekly_maintenance_windows is expected to be one.
|
238
|
+
class MaintenancePolicy
|
239
|
+
include ::Google::Protobuf::MessageExts
|
240
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
241
|
+
end
|
242
|
+
|
243
|
+
# Time window specified for weekly operations.
|
244
|
+
# @!attribute [rw] day
|
245
|
+
# @return [::Google::Type::DayOfWeek]
|
246
|
+
# Required. Allows to define schedule that runs specified day of the week.
|
247
|
+
# @!attribute [rw] start_time
|
248
|
+
# @return [::Google::Type::TimeOfDay]
|
249
|
+
# Required. Start time of the window in UTC.
|
250
|
+
# @!attribute [rw] duration
|
251
|
+
# @return [::Google::Protobuf::Duration]
|
252
|
+
# Required. Duration of the time window.
|
253
|
+
class WeeklyMaintenanceWindow
|
254
|
+
include ::Google::Protobuf::MessageExts
|
255
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
256
|
+
end
|
257
|
+
|
258
|
+
# Upcoming maintenance schedule.
|
259
|
+
# @!attribute [r] start_time
|
260
|
+
# @return [::Google::Protobuf::Timestamp]
|
261
|
+
# Output only. The start time of any upcoming scheduled maintenance for this instance.
|
262
|
+
# @!attribute [r] end_time
|
263
|
+
# @return [::Google::Protobuf::Timestamp]
|
264
|
+
# Output only. The end time of any upcoming scheduled maintenance for this instance.
|
265
|
+
# @!attribute [r] schedule_deadline_time
|
266
|
+
# @return [::Google::Protobuf::Timestamp]
|
267
|
+
# Output only. The deadline that the maintenance schedule start time can not go beyond,
|
268
|
+
# including reschedule.
|
269
|
+
class MaintenanceSchedule
|
270
|
+
include ::Google::Protobuf::MessageExts
|
271
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
272
|
+
end
|
273
|
+
|
210
274
|
# Request for {::Google::Cloud::Memcache::V1beta2::CloudMemcache::Client#list_instances ListInstances}.
|
211
275
|
# @!attribute [rw] parent
|
212
276
|
# @return [::String]
|
@@ -298,6 +362,7 @@ module Google
|
|
298
362
|
# @!attribute [rw] update_mask
|
299
363
|
# @return [::Google::Protobuf::FieldMask]
|
300
364
|
# Required. Mask of fields to update.
|
365
|
+
#
|
301
366
|
# * `displayName`
|
302
367
|
# @!attribute [rw] resource
|
303
368
|
# @return [::Google::Cloud::Memcache::V1beta2::Instance]
|
@@ -319,6 +384,41 @@ module Google
|
|
319
384
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
320
385
|
end
|
321
386
|
|
387
|
+
# Request for {::Google::Cloud::Memcache::V1beta2::CloudMemcache::Client#reschedule_maintenance RescheduleMaintenance}.
|
388
|
+
# @!attribute [rw] instance
|
389
|
+
# @return [::String]
|
390
|
+
# Required. Memcache instance resource name using the form:
|
391
|
+
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
392
|
+
# where `location_id` refers to a GCP region.
|
393
|
+
# @!attribute [rw] reschedule_type
|
394
|
+
# @return [::Google::Cloud::Memcache::V1beta2::RescheduleMaintenanceRequest::RescheduleType]
|
395
|
+
# Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.
|
396
|
+
# @!attribute [rw] schedule_time
|
397
|
+
# @return [::Google::Protobuf::Timestamp]
|
398
|
+
# Timestamp when the maintenance shall be rescheduled to if
|
399
|
+
# reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
|
400
|
+
# example `2012-11-15T16:19:00.094Z`.
|
401
|
+
class RescheduleMaintenanceRequest
|
402
|
+
include ::Google::Protobuf::MessageExts
|
403
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
404
|
+
|
405
|
+
# Reschedule options.
|
406
|
+
module RescheduleType
|
407
|
+
# Not set.
|
408
|
+
RESCHEDULE_TYPE_UNSPECIFIED = 0
|
409
|
+
|
410
|
+
# If the user wants to schedule the maintenance to happen now.
|
411
|
+
IMMEDIATE = 1
|
412
|
+
|
413
|
+
# If the user wants to use the existing maintenance policy to find the
|
414
|
+
# next available window.
|
415
|
+
NEXT_AVAILABLE_WINDOW = 2
|
416
|
+
|
417
|
+
# If the user wants to reschedule the maintenance to a specific time.
|
418
|
+
SPECIFIC_TIME = 3
|
419
|
+
end
|
420
|
+
end
|
421
|
+
|
322
422
|
# Request for {::Google::Cloud::Memcache::V1beta2::CloudMemcache::Client#apply_parameters ApplyParameters}.
|
323
423
|
# @!attribute [rw] name
|
324
424
|
# @return [::String]
|
@@ -372,14 +472,13 @@ module Google
|
|
372
472
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
373
473
|
end
|
374
474
|
|
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.
|
380
475
|
# @!attribute [r] id
|
381
476
|
# @return [::String]
|
382
|
-
# Output only.
|
477
|
+
# Output only. The unique ID associated with this set of parameters. Users
|
478
|
+
# can use this id to determine if the parameters associated with the instance
|
479
|
+
# differ from the parameters associated with the nodes. A discrepancy between
|
480
|
+
# parameter ids can inform users that they may need to take action to apply
|
481
|
+
# parameters on nodes.
|
383
482
|
# @!attribute [rw] params
|
384
483
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
385
484
|
# User defined set of parameters to use in the memcached process.
|
@@ -427,7 +526,7 @@ module Google
|
|
427
526
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
428
527
|
end
|
429
528
|
|
430
|
-
# Metadata for the given
|
529
|
+
# Metadata for the given `::Google::Cloud::Location::Location`.
|
431
530
|
# @!attribute [r] available_zones
|
432
531
|
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Memcache::V1beta2::ZoneMetadata}]
|
433
532
|
# Output only. The set of available zones in the location. The map is keyed
|
@@ -26,8 +26,6 @@ module Google
|
|
26
26
|
# service Foo {
|
27
27
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
28
|
# }
|
29
|
-
#
|
30
|
-
# The JSON representation for `Empty` is empty JSON object `{}`.
|
31
29
|
class Empty
|
32
30
|
include ::Google::Protobuf::MessageExts
|
33
31
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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 Type
|
22
|
+
# Represents a day of the week.
|
23
|
+
module DayOfWeek
|
24
|
+
# The day of the week is unspecified.
|
25
|
+
DAY_OF_WEEK_UNSPECIFIED = 0
|
26
|
+
|
27
|
+
# Monday
|
28
|
+
MONDAY = 1
|
29
|
+
|
30
|
+
# Tuesday
|
31
|
+
TUESDAY = 2
|
32
|
+
|
33
|
+
# Wednesday
|
34
|
+
WEDNESDAY = 3
|
35
|
+
|
36
|
+
# Thursday
|
37
|
+
THURSDAY = 4
|
38
|
+
|
39
|
+
# Friday
|
40
|
+
FRIDAY = 5
|
41
|
+
|
42
|
+
# Saturday
|
43
|
+
SATURDAY = 6
|
44
|
+
|
45
|
+
# Sunday
|
46
|
+
SUNDAY = 7
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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 Type
|
22
|
+
# Represents a time of day. The date and time zone are either not significant
|
23
|
+
# or are specified elsewhere. An API may choose to allow leap seconds. Related
|
24
|
+
# types are [google.type.Date][google.type.Date] and
|
25
|
+
# `google.protobuf.Timestamp`.
|
26
|
+
# @!attribute [rw] hours
|
27
|
+
# @return [::Integer]
|
28
|
+
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
|
29
|
+
# to allow the value "24:00:00" for scenarios like business closing time.
|
30
|
+
# @!attribute [rw] minutes
|
31
|
+
# @return [::Integer]
|
32
|
+
# Minutes of hour of day. Must be from 0 to 59.
|
33
|
+
# @!attribute [rw] seconds
|
34
|
+
# @return [::Integer]
|
35
|
+
# Seconds of minutes of the time. Must normally be from 0 to 59. An API may
|
36
|
+
# allow the value 60 if it allows leap-seconds.
|
37
|
+
# @!attribute [rw] nanos
|
38
|
+
# @return [::Integer]
|
39
|
+
# Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
|
40
|
+
class TimeOfDay
|
41
|
+
include ::Google::Protobuf::MessageExts
|
42
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-memcache-v1beta2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07
|
11
|
+
date: 2022-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.12'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.12'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -44,6 +44,26 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: google-cloud-location
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.0'
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 2.a
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0.0'
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 2.a
|
47
67
|
- !ruby/object:Gem::Dependency
|
48
68
|
name: google-style
|
49
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -180,7 +200,9 @@ files:
|
|
180
200
|
- lib/google/cloud/memcache/v1beta2/cloud_memcache_services_pb.rb
|
181
201
|
- lib/google/cloud/memcache/v1beta2/version.rb
|
182
202
|
- proto_docs/README.md
|
203
|
+
- proto_docs/google/api/client.rb
|
183
204
|
- proto_docs/google/api/field_behavior.rb
|
205
|
+
- proto_docs/google/api/launch_stage.rb
|
184
206
|
- proto_docs/google/api/resource.rb
|
185
207
|
- proto_docs/google/cloud/memcache/v1beta2/cloud_memcache.rb
|
186
208
|
- proto_docs/google/longrunning/operations.rb
|
@@ -190,6 +212,8 @@ files:
|
|
190
212
|
- proto_docs/google/protobuf/field_mask.rb
|
191
213
|
- proto_docs/google/protobuf/timestamp.rb
|
192
214
|
- proto_docs/google/rpc/status.rb
|
215
|
+
- proto_docs/google/type/dayofweek.rb
|
216
|
+
- proto_docs/google/type/timeofday.rb
|
193
217
|
homepage: https://github.com/googleapis/google-cloud-ruby
|
194
218
|
licenses:
|
195
219
|
- Apache-2.0
|