google-apis-memcache_v1 0.17.0 → 0.20.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: 046c80dbca9ae165c7254ff5800df79327f5154d0ba68a88f83eb1e59a84969c
4
- data.tar.gz: a6d711033255d6dde4b4b082749ab9dba02b46104464b2c0ed8b0e10ee1badc5
3
+ metadata.gz: 8254e2a777ede2932cc60551838660f7e7a9c9fec6d8e69fb1858f730b3e0569
4
+ data.tar.gz: 925e2f0138e14fa0538b6fff18f278070cf503b97a060b59dea9cf78138892b2
5
5
  SHA512:
6
- metadata.gz: 0f251fb233a891b68e4b4e46a7450b3b9e428a87759a37379d68213e3a7309d64f126431cedff1ce340ec307768594a4534e1c0c92cbff2bae1aa2ab5672a8a3
7
- data.tar.gz: 411bc88431b46c9edab359e9baf897914e47ba43cd1ec9185661292fb48b3c31482f661ce555a3ffbfc2824faa72b3e31eea7c0e55afcb13cc7aab9c93334c00
6
+ metadata.gz: 4168b3acd27ac02352f45eec644d71e80df7b64f587f2143cb63f11445c2b2e9c9ccd1d31546330993a7b46d3af450a657b73a5b2f70fa8bd16e6d5e0cd58714
7
+ data.tar.gz: 7caae6d6b1eb383fe3d7bd76739e22b44d55bd847e81b001108a1486ca3d420041dd0c269e4e6b00b90123fdd705fa6b57da0743c9109cfbd6ad884aaa5b7c4b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-memcache_v1
2
2
 
3
+ ### v0.20.0 (2022-06-03)
4
+
5
+ * Regenerated using generator version 0.5.0
6
+
7
+ ### v0.19.0 (2022-04-30)
8
+
9
+ * Regenerated from discovery document revision 20220419
10
+
11
+ ### v0.18.0 (2022-04-09)
12
+
13
+ * Regenerated from discovery document revision 20220404
14
+
3
15
  ### v0.17.0 (2022-03-23)
4
16
 
5
17
  * Regenerated from discovery document revision 20220317
@@ -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,19 +382,21 @@ 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
392
394
 
393
- # Optional. notification_parameters are information that service producers may
395
+ # Optional. notification_parameter are information that service producers may
394
396
  # like to include that is not relevant to Rollout. This parameter will only be
395
397
  # passed to Gamma and Cloud Logging for notification/logging purpose.
396
398
  # Corresponds to the JSON property `notificationParameters`
397
- # @return [Hash<String,String>]
399
+ # @return [Hash<String,Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter>]
398
400
  attr_accessor :notification_parameters
399
401
 
400
402
  # Output only. Custom string attributes used primarily to expose producer-
@@ -599,6 +601,25 @@ module Google
599
601
  end
600
602
  end
601
603
 
604
+ # Contains notification related data.
605
+ class GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter
606
+ include Google::Apis::Core::Hashable
607
+
608
+ # Optional. Array of string values. e.g. instance's replica information.
609
+ # Corresponds to the JSON property `values`
610
+ # @return [Array<String>]
611
+ attr_accessor :values
612
+
613
+ def initialize(**args)
614
+ update!(**args)
615
+ end
616
+
617
+ # Update properties of this object
618
+ def update!(**args)
619
+ @values = args[:values] if args.key?(:values)
620
+ end
621
+ end
622
+
602
623
  # PerSliSloEligibility is a mapping from an SLI name to eligibility.
603
624
  class GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility
604
625
  include Google::Apis::Core::Hashable
@@ -1388,6 +1409,33 @@ module Google
1388
1409
  end
1389
1410
  end
1390
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
+
1391
1439
  # Configure the schedule.
1392
1440
  class Schedule
1393
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.17.0"
19
+ GEM_VERSION = "0.20.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.5.0"
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
@@ -106,6 +106,12 @@ module Google
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
+ class GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
109
115
  class GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility
110
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
117
 
@@ -220,6 +226,12 @@ module Google
220
226
  include Google::Apis::Core::JsonObjectSupport
221
227
  end
222
228
 
229
+ class RescheduleMaintenanceRequest
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
223
235
  class Schedule
224
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
237
 
@@ -369,7 +381,8 @@ module Google
369
381
  property :maintenance_settings, as: 'maintenanceSettings', class: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings, decorator: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings::Representation
370
382
 
371
383
  property :name, as: 'name'
372
- hash :notification_parameters, as: 'notificationParameters'
384
+ hash :notification_parameters, as: 'notificationParameters', class: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter, decorator: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter::Representation
385
+
373
386
  hash :producer_metadata, as: 'producerMetadata'
374
387
  collection :provisioned_resources, as: 'provisionedResources', class: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource, decorator: Google::Apis::MemcacheV1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource::Representation
375
388
 
@@ -414,6 +427,13 @@ module Google
414
427
  end
415
428
  end
416
429
 
430
+ class GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter
431
+ # @private
432
+ class Representation < Google::Apis::Core::JsonRepresentation
433
+ collection :values, as: 'values'
434
+ end
435
+ end
436
+
417
437
  class GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility
418
438
  # @private
419
439
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -621,6 +641,14 @@ module Google
621
641
  end
622
642
  end
623
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
+
624
652
  class Schedule
625
653
  # @private
626
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.17.0
4
+ version: 0.20.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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-memcache_v1/v0.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-memcache_v1/v0.20.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: []
@@ -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 V1