google-apis-memcache_v1 0.18.0 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d18d30112fbe5dd5c797f007f12531a773cb1b4f4228e1f29c8e64b6f4e68b90
4
- data.tar.gz: b92d2b1dad4967b8595aa6d70dff24107548cd4cb3938a4ba8170bd6bf520da8
3
+ metadata.gz: ae803ddb4f62a8dd9f78fe6ec036cf42ed9e55cc5f9c477a81b0e01bd9086a79
4
+ data.tar.gz: 844175572cba51786d61ca40bc42e6706c1e69f5422ce6a92e310c518be93cc5
5
5
  SHA512:
6
- metadata.gz: 4a7720021c4c1b854b101a1718154f2e02389895a7f4daf539d083bf3cefb6bb3bf4949ae54ee1dd96ad906862632e8fbb69f571bb749c5f38069328a9d7ab3d
7
- data.tar.gz: af3d0057f7c958a7cf535185a4d6d1a9937509b693fd6d0f20f4d7db45b2c319e347298afd82abbbe6b69a27883ff5159903249ac1c19093bcf7af1f7e5002b5
6
+ metadata.gz: 6ecd6d4e5b6fa1c7a452818d9a8625c674b0cf7cf76ee19f6e7f84a61d1357eac2166525ab814a900e37109119d45656a2c47c336446fb4d3b483afa1a4012df
7
+ data.tar.gz: 61871ef2f5b764c171d8675ea9095d48d2e21332a6a4248ba66a9f2da61064ee7e459106014aa29d4e123e97d723037a26d2d09a4be1aa644d228ec63cf96ccd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-memcache_v1
2
2
 
3
+ ### v0.19.0 (2022-04-30)
4
+
5
+ * Regenerated from discovery document revision 20220419
6
+
3
7
  ### v0.18.0 (2022-04-09)
4
8
 
5
9
  * Regenerated from discovery document revision 20220404
@@ -182,8 +182,7 @@ module Google
182
182
  # A generic empty message that you can re-use to avoid defining duplicated empty
183
183
  # messages in your APIs. A typical example is to use it as the request or the
184
184
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
185
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
186
- # `Empty` is empty JSON object ````.
185
+ # protobuf.Empty) returns (google.protobuf.Empty); `
187
186
  class Empty
188
187
  include Google::Apis::Core::Hashable
189
188
 
@@ -346,11 +345,12 @@ module Google
346
345
  # @return [String]
347
346
  attr_accessor :create_time
348
347
 
349
- # Optional. The instance_type of this instance of format: projects/`project_id`/
350
- # locations/`location_id`/instanceTypes/`instance_type_id`. Instance Type
351
- # represents a high-level tier or SKU of the service that this instance belong
352
- # to. When enabled(eg: Maintenance Rollout), Rollout uses 'instance_type' along
353
- # with 'software_versions' to determine whether instance needs an update or not.
348
+ # Optional. The instance_type of this instance of format: projects/`
349
+ # project_number`/locations/`location_id`/instanceTypes/`instance_type_id`.
350
+ # Instance Type represents a high-level tier or SKU of the service that this
351
+ # instance belong to. When enabled(eg: Maintenance Rollout), Rollout uses '
352
+ # instance_type' along with 'software_versions' to determine whether instance
353
+ # needs an update or not.
354
354
  # Corresponds to the JSON property `instanceType`
355
355
  # @return [String]
356
356
  attr_accessor :instance_type
@@ -382,10 +382,12 @@ module Google
382
382
  # @return [Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings]
383
383
  attr_accessor :maintenance_settings
384
384
 
385
- # Unique name of the resource. It uses the form: `projects/`project_id|
386
- # project_number`/locations/`location_id`/instances/`instance_id`` Note: Either
387
- # project_id or project_number can be used, but keep it consistent with other
388
- # APIs (e.g. RescheduleUpdate)
385
+ # Unique name of the resource. It uses the form: `projects/`project_number`/
386
+ # locations/`location_id`/instances/`instance_id`` Note: This name is passed,
387
+ # stored and logged across the rollout system. So use of consumer project_id or
388
+ # any other consumer PII in the name is strongly discouraged for wipeout (go/
389
+ # wipeout) compliance. See go/elysium/project_ids#storage-guidance for more
390
+ # details.
389
391
  # Corresponds to the JSON property `name`
390
392
  # @return [String]
391
393
  attr_accessor :name
@@ -1407,6 +1409,33 @@ module Google
1407
1409
  end
1408
1410
  end
1409
1411
 
1412
+ # Request for RescheduleMaintenance.
1413
+ class RescheduleMaintenanceRequest
1414
+ include Google::Apis::Core::Hashable
1415
+
1416
+ # Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
1417
+ # well.
1418
+ # Corresponds to the JSON property `rescheduleType`
1419
+ # @return [String]
1420
+ attr_accessor :reschedule_type
1421
+
1422
+ # Timestamp when the maintenance shall be rescheduled to if reschedule_type=
1423
+ # SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`.
1424
+ # Corresponds to the JSON property `scheduleTime`
1425
+ # @return [String]
1426
+ attr_accessor :schedule_time
1427
+
1428
+ def initialize(**args)
1429
+ update!(**args)
1430
+ end
1431
+
1432
+ # Update properties of this object
1433
+ def update!(**args)
1434
+ @reschedule_type = args[:reschedule_type] if args.key?(:reschedule_type)
1435
+ @schedule_time = args[:schedule_time] if args.key?(:schedule_time)
1436
+ end
1437
+ end
1438
+
1410
1439
  # Configure the schedule.
1411
1440
  class Schedule
1412
1441
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MemcacheV1
18
18
  # Version of the google-apis-memcache_v1 gem
19
- GEM_VERSION = "0.18.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220404"
25
+ REVISION = "20220419"
26
26
  end
27
27
  end
28
28
  end
@@ -226,6 +226,12 @@ module Google
226
226
  include Google::Apis::Core::JsonObjectSupport
227
227
  end
228
228
 
229
+ class RescheduleMaintenanceRequest
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
229
235
  class Schedule
230
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
237
 
@@ -635,6 +641,14 @@ module Google
635
641
  end
636
642
  end
637
643
 
644
+ class RescheduleMaintenanceRequest
645
+ # @private
646
+ class Representation < Google::Apis::Core::JsonRepresentation
647
+ property :reschedule_type, as: 'rescheduleType'
648
+ property :schedule_time, as: 'scheduleTime'
649
+ end
650
+ end
651
+
638
652
  class Schedule
639
653
  # @private
640
654
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -85,8 +85,8 @@ module Google
85
85
  # The resource that owns the locations collection, if applicable.
86
86
  # @param [String] filter
87
87
  # A filter to narrow down results to a preferred subset. The filtering language
88
- # accepts strings like "displayName=tokyo", and is documented in more detail in [
89
- # AIP-160](https://google.aip.dev/160).
88
+ # accepts strings like `"displayName=tokyo"`, and is documented in more detail
89
+ # in [AIP-160](https://google.aip.dev/160).
90
90
  # @param [Fixnum] page_size
91
91
  # The maximum number of results to return. If not set, the service selects a
92
92
  # default.
@@ -355,6 +355,41 @@ module Google
355
355
  execute_or_queue_command(command, &block)
356
356
  end
357
357
 
358
+ # Reschedules upcoming maintenance event.
359
+ # @param [String] instance
360
+ # Required. Memcache instance resource name using the form: `projects/`
361
+ # project_id`/locations/`location_id`/instances/`instance_id`` where `
362
+ # location_id` refers to a GCP region.
363
+ # @param [Google::Apis::MemcacheV1::RescheduleMaintenanceRequest] reschedule_maintenance_request_object
364
+ # @param [String] fields
365
+ # Selector specifying which fields to include in a partial response.
366
+ # @param [String] quota_user
367
+ # Available to use for quota purposes for server-side applications. Can be any
368
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
369
+ # @param [Google::Apis::RequestOptions] options
370
+ # Request-specific options
371
+ #
372
+ # @yield [result, err] Result & error if block supplied
373
+ # @yieldparam result [Google::Apis::MemcacheV1::Operation] parsed result object
374
+ # @yieldparam err [StandardError] error object if request failed
375
+ #
376
+ # @return [Google::Apis::MemcacheV1::Operation]
377
+ #
378
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
379
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
380
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
381
+ def reschedule_instance_maintenance(instance, reschedule_maintenance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
382
+ command = make_simple_command(:post, 'v1/{+instance}:rescheduleMaintenance', options)
383
+ command.request_representation = Google::Apis::MemcacheV1::RescheduleMaintenanceRequest::Representation
384
+ command.request_object = reschedule_maintenance_request_object
385
+ command.response_representation = Google::Apis::MemcacheV1::Operation::Representation
386
+ command.response_class = Google::Apis::MemcacheV1::Operation
387
+ command.params['instance'] = instance unless instance.nil?
388
+ command.query['fields'] = fields unless fields.nil?
389
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
390
+ execute_or_queue_command(command, &block)
391
+ end
392
+
358
393
  # Updates the defined Memcached parameters for an existing instance. This method
359
394
  # only stages the parameters, it must be followed by `ApplyParameters` to apply
360
395
  # the parameters to nodes of the Memcached instance.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-memcache_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.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-04-11 00:00:00.000000000 Z
11
+ date: 2022-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-memcache_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-memcache_v1/v0.18.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-memcache_v1/v0.19.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-memcache_v1
63
63
  post_install_message:
64
64
  rdoc_options: []