google-apis-memcache_v1beta2 0.19.0 → 0.22.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7df5cbdcedcc1a3a2a5761c86343313a00eaabae84c3a77343dc76b82f75d057
4
- data.tar.gz: 0aa284b49c6f69c0e7a86d71624f88cdd0f510770df47ac6437049fc1bfb3d02
3
+ metadata.gz: 45a4dade182de3ef64738044c543ebbb057ba29fa90e6207c6349244610eca44
4
+ data.tar.gz: 9b397de630cc0b4c62bc0e1ecd220deaf45e681e0cefd1f5462ebda93e5a2c88
5
5
  SHA512:
6
- metadata.gz: f67230eaae3c7c7461bd8900ca8dccbb9cea4ec15f0f2dee60d848214a456d9bd616d6c699434ff08c1f8b60bf2f34384029eba4264dd978f4dac0c88170cd18
7
- data.tar.gz: fafce9565bad035115988b8549c5b64ed7e269d4df150f01c7908e240a2bf74776602bdd5d5906692a1fd74b7b192f9fff45d9e20c03af66653c962f4d59b79c
6
+ metadata.gz: 17a8c4d9c3ae2af9ea78c76c25d25c292860cb39a0eea305955508149fd479ba99e1f1127d45b1ea08ac7631344bc0d43c17d0cdcfc4c51e96b540619e1ce3fe
7
+ data.tar.gz: 46c491164db544cc64134ad210fbcc1550c1e953bc7c83ce7201c5fbf19e2b3a7f37647a4f5bbd07adfdbf77f053d03798635a31341308aeac81eccc2e82789d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-memcache_v1beta2
2
2
 
3
+ ### v0.22.0 (2022-06-20)
4
+
5
+ * Regenerated using generator version 0.7.0
6
+
7
+ ### v0.21.0 (2022-06-02)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.20.0 (2022-04-30)
12
+
13
+ * Regenerated from discovery document revision 20220419
14
+
3
15
  ### v0.19.0 (2022-04-09)
4
16
 
5
17
  * Regenerated from discovery document revision 20220404
@@ -211,8 +211,7 @@ module Google
211
211
  # A generic empty message that you can re-use to avoid defining duplicated empty
212
212
  # messages in your APIs. A typical example is to use it as the request or the
213
213
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
214
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
215
- # `Empty` is empty JSON object ````.
214
+ # protobuf.Empty) returns (google.protobuf.Empty); `
216
215
  class Empty
217
216
  include Google::Apis::Core::Hashable
218
217
 
@@ -375,11 +374,12 @@ module Google
375
374
  # @return [String]
376
375
  attr_accessor :create_time
377
376
 
378
- # Optional. The instance_type of this instance of format: projects/`project_id`/
379
- # locations/`location_id`/instanceTypes/`instance_type_id`. Instance Type
380
- # represents a high-level tier or SKU of the service that this instance belong
381
- # to. When enabled(eg: Maintenance Rollout), Rollout uses 'instance_type' along
382
- # with 'software_versions' to determine whether instance needs an update or not.
377
+ # Optional. The instance_type of this instance of format: projects/`
378
+ # project_number`/locations/`location_id`/instanceTypes/`instance_type_id`.
379
+ # Instance Type represents a high-level tier or SKU of the service that this
380
+ # instance belong to. When enabled(eg: Maintenance Rollout), Rollout uses '
381
+ # instance_type' along with 'software_versions' to determine whether instance
382
+ # needs an update or not.
383
383
  # Corresponds to the JSON property `instanceType`
384
384
  # @return [String]
385
385
  attr_accessor :instance_type
@@ -411,10 +411,12 @@ module Google
411
411
  # @return [Google::Apis::MemcacheV1beta2::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings]
412
412
  attr_accessor :maintenance_settings
413
413
 
414
- # Unique name of the resource. It uses the form: `projects/`project_id|
415
- # project_number`/locations/`location_id`/instances/`instance_id`` Note: Either
416
- # project_id or project_number can be used, but keep it consistent with other
417
- # APIs (e.g. RescheduleUpdate)
414
+ # Unique name of the resource. It uses the form: `projects/`project_number`/
415
+ # locations/`location_id`/instances/`instance_id`` Note: This name is passed,
416
+ # stored and logged across the rollout system. So use of consumer project_id or
417
+ # any other consumer PII in the name is strongly discouraged for wipeout (go/
418
+ # wipeout) compliance. See go/elysium/project_ids#storage-guidance for more
419
+ # details.
418
420
  # Corresponds to the JSON property `name`
419
421
  # @return [String]
420
422
  attr_accessor :name
@@ -1450,6 +1452,33 @@ module Google
1450
1452
  end
1451
1453
  end
1452
1454
 
1455
+ # Request for RescheduleMaintenance.
1456
+ class RescheduleMaintenanceRequest
1457
+ include Google::Apis::Core::Hashable
1458
+
1459
+ # Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
1460
+ # well.
1461
+ # Corresponds to the JSON property `rescheduleType`
1462
+ # @return [String]
1463
+ attr_accessor :reschedule_type
1464
+
1465
+ # Timestamp when the maintenance shall be rescheduled to if reschedule_type=
1466
+ # SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`.
1467
+ # Corresponds to the JSON property `scheduleTime`
1468
+ # @return [String]
1469
+ attr_accessor :schedule_time
1470
+
1471
+ def initialize(**args)
1472
+ update!(**args)
1473
+ end
1474
+
1475
+ # Update properties of this object
1476
+ def update!(**args)
1477
+ @reschedule_type = args[:reschedule_type] if args.key?(:reschedule_type)
1478
+ @schedule_time = args[:schedule_time] if args.key?(:schedule_time)
1479
+ end
1480
+ end
1481
+
1453
1482
  # Configure the schedule.
1454
1483
  class Schedule
1455
1484
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MemcacheV1beta2
18
18
  # Version of the google-apis-memcache_v1beta2 gem
19
- GEM_VERSION = "0.19.0"
19
+ GEM_VERSION = "0.22.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.7.0"
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
@@ -232,6 +232,12 @@ module Google
232
232
  include Google::Apis::Core::JsonObjectSupport
233
233
  end
234
234
 
235
+ class RescheduleMaintenanceRequest
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
235
241
  class Schedule
236
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
237
243
 
@@ -651,6 +657,14 @@ module Google
651
657
  end
652
658
  end
653
659
 
660
+ class RescheduleMaintenanceRequest
661
+ # @private
662
+ class Representation < Google::Apis::Core::JsonRepresentation
663
+ property :reschedule_type, as: 'rescheduleType'
664
+ property :schedule_time, as: 'scheduleTime'
665
+ end
666
+ end
667
+
654
668
  class Schedule
655
669
  # @private
656
670
  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.
@@ -389,6 +389,41 @@ module Google
389
389
  execute_or_queue_command(command, &block)
390
390
  end
391
391
 
392
+ # Performs the apply phase of the RescheduleMaintenance verb.
393
+ # @param [String] instance
394
+ # Required. Memcache instance resource name using the form: `projects/`
395
+ # project_id`/locations/`location_id`/instances/`instance_id`` where `
396
+ # location_id` refers to a GCP region.
397
+ # @param [Google::Apis::MemcacheV1beta2::RescheduleMaintenanceRequest] reschedule_maintenance_request_object
398
+ # @param [String] fields
399
+ # Selector specifying which fields to include in a partial response.
400
+ # @param [String] quota_user
401
+ # Available to use for quota purposes for server-side applications. Can be any
402
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
403
+ # @param [Google::Apis::RequestOptions] options
404
+ # Request-specific options
405
+ #
406
+ # @yield [result, err] Result & error if block supplied
407
+ # @yieldparam result [Google::Apis::MemcacheV1beta2::Operation] parsed result object
408
+ # @yieldparam err [StandardError] error object if request failed
409
+ #
410
+ # @return [Google::Apis::MemcacheV1beta2::Operation]
411
+ #
412
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
413
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
414
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
415
+ def reschedule_instance_maintenance(instance, reschedule_maintenance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
416
+ command = make_simple_command(:post, 'v1beta2/{+instance}:rescheduleMaintenance', options)
417
+ command.request_representation = Google::Apis::MemcacheV1beta2::RescheduleMaintenanceRequest::Representation
418
+ command.request_object = reschedule_maintenance_request_object
419
+ command.response_representation = Google::Apis::MemcacheV1beta2::Operation::Representation
420
+ command.response_class = Google::Apis::MemcacheV1beta2::Operation
421
+ command.params['instance'] = instance unless instance.nil?
422
+ command.query['fields'] = fields unless fields.nil?
423
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
424
+ execute_or_queue_command(command, &block)
425
+ end
426
+
392
427
  # Updates the defined Memcached parameters for an existing instance. This method
393
428
  # only stages the parameters, it must be followed by `ApplyParameters` to apply
394
429
  # 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_v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.22.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-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.6'
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.4'
29
+ version: '0.6'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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_v1beta2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-memcache_v1beta2/v0.19.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-memcache_v1beta2/v0.22.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-memcache_v1beta2
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Memorystore for Memcached API V1beta2