google-cloud-memcache-v1beta2 0.3.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- # Optional: User defined parameters to apply to the memcached process
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 [google.cloud.location.Location][google.cloud.location.Location].
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
@@ -28,12 +28,14 @@ module Google
28
28
  # [API Design Guide](https://cloud.google.com/apis/design/errors).
29
29
  # @!attribute [rw] code
30
30
  # @return [::Integer]
31
- # The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
31
+ # The status code, which should be an enum value of
32
+ # [google.rpc.Code][google.rpc.Code].
32
33
  # @!attribute [rw] message
33
34
  # @return [::String]
34
35
  # A developer-facing error message, which should be in English. Any
35
36
  # user-facing error message should be localized and sent in the
36
- # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized by the client.
37
+ # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
38
+ # by the client.
37
39
  # @!attribute [rw] details
38
40
  # @return [::Array<::Google::Protobuf::Any>]
39
41
  # A list of messages that carry the error details. There is a common set of
@@ -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.3.0
4
+ version: 0.5.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-05 00:00:00.000000000 Z
11
+ date: 2023-03-08 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.10'
19
+ version: 0.18.0
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.10'
29
+ version: 0.18.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -44,20 +44,40 @@ 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.4'
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.4'
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
50
70
  requirements:
51
71
  - - "~>"
52
72
  - !ruby/object:Gem::Version
53
- version: 1.26.1
73
+ version: 1.26.3
54
74
  type: :development
55
75
  prerelease: false
56
76
  version_requirements: !ruby/object:Gem::Requirement
57
77
  requirements:
58
78
  - - "~>"
59
79
  - !ruby/object:Gem::Version
60
- version: 1.26.1
80
+ version: 1.26.3
61
81
  - !ruby/object:Gem::Dependency
62
82
  name: minitest
63
83
  requirement: !ruby/object:Gem::Requirement
@@ -171,16 +191,24 @@ files:
171
191
  - README.md
172
192
  - lib/google-cloud-memcache-v1beta2.rb
173
193
  - lib/google/cloud/memcache/v1beta2.rb
194
+ - lib/google/cloud/memcache/v1beta2/bindings_override.rb
174
195
  - lib/google/cloud/memcache/v1beta2/cloud_memcache.rb
175
196
  - lib/google/cloud/memcache/v1beta2/cloud_memcache/client.rb
176
197
  - lib/google/cloud/memcache/v1beta2/cloud_memcache/credentials.rb
177
198
  - lib/google/cloud/memcache/v1beta2/cloud_memcache/operations.rb
178
199
  - lib/google/cloud/memcache/v1beta2/cloud_memcache/paths.rb
200
+ - lib/google/cloud/memcache/v1beta2/cloud_memcache/rest.rb
201
+ - lib/google/cloud/memcache/v1beta2/cloud_memcache/rest/client.rb
202
+ - lib/google/cloud/memcache/v1beta2/cloud_memcache/rest/operations.rb
203
+ - lib/google/cloud/memcache/v1beta2/cloud_memcache/rest/service_stub.rb
179
204
  - lib/google/cloud/memcache/v1beta2/cloud_memcache_pb.rb
180
205
  - lib/google/cloud/memcache/v1beta2/cloud_memcache_services_pb.rb
206
+ - lib/google/cloud/memcache/v1beta2/rest.rb
181
207
  - lib/google/cloud/memcache/v1beta2/version.rb
182
208
  - proto_docs/README.md
209
+ - proto_docs/google/api/client.rb
183
210
  - proto_docs/google/api/field_behavior.rb
211
+ - proto_docs/google/api/launch_stage.rb
184
212
  - proto_docs/google/api/resource.rb
185
213
  - proto_docs/google/cloud/memcache/v1beta2/cloud_memcache.rb
186
214
  - proto_docs/google/longrunning/operations.rb
@@ -190,6 +218,8 @@ files:
190
218
  - proto_docs/google/protobuf/field_mask.rb
191
219
  - proto_docs/google/protobuf/timestamp.rb
192
220
  - proto_docs/google/rpc/status.rb
221
+ - proto_docs/google/type/dayofweek.rb
222
+ - proto_docs/google/type/timeofday.rb
193
223
  homepage: https://github.com/googleapis/google-cloud-ruby
194
224
  licenses:
195
225
  - Apache-2.0
@@ -209,8 +239,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
239
  - !ruby/object:Gem::Version
210
240
  version: '0'
211
241
  requirements: []
212
- rubygems_version: 3.3.14
242
+ rubygems_version: 3.4.2
213
243
  signing_key:
214
244
  specification_version: 4
215
- summary: API Client library for the Google Cloud Memorystore for Memcached API
245
+ summary: Google Cloud Memorystore for Memcached API is used for creating and managing
246
+ Memcached instances in GCP.
216
247
  test_files: []