google-apis-memcache_v1beta2 0.18.0 → 0.21.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: d165915f6ecd52bd6dc36b635ce3d9a7442dbbcf48b83188682eab8fea225c60
4
- data.tar.gz: 54a704e037f140fca5e2661417a60bd123291da4b3716a6f7534580cce0b304c
3
+ metadata.gz: dee437e05a1dfe04f3864d5e587ac201e4ae07622980b24721ae92bcb2f47418
4
+ data.tar.gz: 4cee9f825ee277c96379ca81c8dc2509a624e77be76411cbdf64f53b166b93e4
5
5
  SHA512:
6
- metadata.gz: 333018ec222ecefc18873355ba91f3ce2c96cce79cf213b66187a22d5ef67120498694c336ec6953c5944a339d7d3b5194dc5c6ce9657bcce284071a0a307882
7
- data.tar.gz: b98856f55d106144eebc529b38611a9eb5b755fc766690cfa6130eab9d3545eb39d2556a72b5f028184a6beb394db3542dd9b95efb6dc0846f10dc53b7b50e8f
6
+ metadata.gz: c7ef73d52f6a13b32fe32c55e2a6e656040e6120e3023114a4941e5daf0d60f23f2be1e396f47deff1abf3041d7bdab9fb38191eb506ed6128ebb56704605cfd
7
+ data.tar.gz: 9b3d1dccb1d7ba57f962c54f02feb9275d06ea15e5557e543ef93c443774371556e023148a0478b88930684a56307a287375e02a43346c01ff5bf81008622fb1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-memcache_v1beta2
2
2
 
3
+ ### v0.21.0 (2022-06-02)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.20.0 (2022-04-30)
8
+
9
+ * Regenerated from discovery document revision 20220419
10
+
11
+ ### v0.19.0 (2022-04-09)
12
+
13
+ * Regenerated from discovery document revision 20220404
14
+
3
15
  ### v0.18.0 (2022-03-23)
4
16
 
5
17
  * Regenerated from discovery document revision 20220317
@@ -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,19 +411,21 @@ 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
421
423
 
422
- # Optional. notification_parameters are information that service producers may
424
+ # Optional. notification_parameter are information that service producers may
423
425
  # like to include that is not relevant to Rollout. This parameter will only be
424
426
  # passed to Gamma and Cloud Logging for notification/logging purpose.
425
427
  # Corresponds to the JSON property `notificationParameters`
426
- # @return [Hash<String,String>]
428
+ # @return [Hash<String,Google::Apis::MemcacheV1beta2::GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter>]
427
429
  attr_accessor :notification_parameters
428
430
 
429
431
  # Output only. Custom string attributes used primarily to expose producer-
@@ -628,6 +630,25 @@ module Google
628
630
  end
629
631
  end
630
632
 
633
+ # Contains notification related data.
634
+ class GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter
635
+ include Google::Apis::Core::Hashable
636
+
637
+ # Optional. Array of string values. e.g. instance's replica information.
638
+ # Corresponds to the JSON property `values`
639
+ # @return [Array<String>]
640
+ attr_accessor :values
641
+
642
+ def initialize(**args)
643
+ update!(**args)
644
+ end
645
+
646
+ # Update properties of this object
647
+ def update!(**args)
648
+ @values = args[:values] if args.key?(:values)
649
+ end
650
+ end
651
+
631
652
  # PerSliSloEligibility is a mapping from an SLI name to eligibility.
632
653
  class GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility
633
654
  include Google::Apis::Core::Hashable
@@ -1431,6 +1452,33 @@ module Google
1431
1452
  end
1432
1453
  end
1433
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
+
1434
1482
  # Configure the schedule.
1435
1483
  class Schedule
1436
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.18.0"
19
+ GEM_VERSION = "0.21.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 = "20220317"
25
+ REVISION = "20220419"
26
26
  end
27
27
  end
28
28
  end
@@ -112,6 +112,12 @@ module Google
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
+ class GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
115
121
  class GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility
116
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
123
 
@@ -226,6 +232,12 @@ module Google
226
232
  include Google::Apis::Core::JsonObjectSupport
227
233
  end
228
234
 
235
+ class RescheduleMaintenanceRequest
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
229
241
  class Schedule
230
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
243
 
@@ -383,7 +395,8 @@ module Google
383
395
  property :maintenance_settings, as: 'maintenanceSettings', class: Google::Apis::MemcacheV1beta2::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings, decorator: Google::Apis::MemcacheV1beta2::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings::Representation
384
396
 
385
397
  property :name, as: 'name'
386
- hash :notification_parameters, as: 'notificationParameters'
398
+ hash :notification_parameters, as: 'notificationParameters', class: Google::Apis::MemcacheV1beta2::GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter, decorator: Google::Apis::MemcacheV1beta2::GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter::Representation
399
+
387
400
  hash :producer_metadata, as: 'producerMetadata'
388
401
  collection :provisioned_resources, as: 'provisionedResources', class: Google::Apis::MemcacheV1beta2::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource, decorator: Google::Apis::MemcacheV1beta2::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource::Representation
389
402
 
@@ -428,6 +441,13 @@ module Google
428
441
  end
429
442
  end
430
443
 
444
+ class GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter
445
+ # @private
446
+ class Representation < Google::Apis::Core::JsonRepresentation
447
+ collection :values, as: 'values'
448
+ end
449
+ end
450
+
431
451
  class GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility
432
452
  # @private
433
453
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -637,6 +657,14 @@ module Google
637
657
  end
638
658
  end
639
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
+
640
668
  class Schedule
641
669
  # @private
642
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.18.0
4
+ version: 0.21.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-03-28 00:00:00.000000000 Z
11
+ date: 2022-06-13 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.5'
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.5'
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.18.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-memcache_v1beta2/v0.21.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