google-apis-memcache_v1beta2 0.35.0 → 0.37.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: dc689d87e3f1079effd2b39661d6db207683a9495e8cb10757f215c584b9c6ec
4
- data.tar.gz: a5dfe636d215b7ea965787786c05f88392e6095f80ec3507ce462bd725688f5a
3
+ metadata.gz: ec0f43a13b9abf8f946788a457575978bb4f4c4fd9cc7d3bc84c3c5546763916
4
+ data.tar.gz: 94200cc300dda9d99cce5b1c317f982bcad4fa07c86f10f50f245b2b41aff396
5
5
  SHA512:
6
- metadata.gz: dfa05060a39319cd227e5d0d14ecd02b762bb4b93a1b13d2c8a1f4e45507231853d146b0dae00ac19bd0176a5ec24b662384a10ebd90e75af42a08bde95c1068
7
- data.tar.gz: 00221c28b0d8d6e6e166ee43d92a4599d7999887583c6e000901efad4f4ae38dc3c3090a03f6f809efdf84762c2a615509c724669255b3fb7e4ed580ca07417f
6
+ metadata.gz: 24d93e453dbc00c38d9c564b3a087f820f15c869370b40da2df07e8534b37ae7378f3d690e80a2de5bfa67f875fc5e4399817d312fd3c69129cf9f14a5ef4bf5
7
+ data.tar.gz: 4778336120e91ec1c58bbd5a4e8541c13675706f79f8de59740f5d7500380a2d62c62c649911e9ff046852f57d5fc156f0edca00080b18a4e234cd0f148b7e14
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-memcache_v1beta2
2
2
 
3
+ ### v0.37.0 (2024-01-22)
4
+
5
+ * Regenerated from discovery document revision 20240104
6
+ * Regenerated using generator version 0.13.0
7
+
8
+ ### v0.36.0 (2023-09-10)
9
+
10
+ * Regenerated from discovery document revision 20230907
11
+
3
12
  ### v0.35.0 (2023-08-13)
4
13
 
5
14
  * Regenerated from discovery document revision 20230803
@@ -344,6 +344,25 @@ module Google
344
344
  end
345
345
  end
346
346
 
347
+ # Request for UpgradeInstance.
348
+ class GoogleCloudMemcacheV1beta2UpgradeInstanceRequest
349
+ include Google::Apis::Core::Hashable
350
+
351
+ # Required. Specifies the target version of memcached engine to upgrade to.
352
+ # Corresponds to the JSON property `memcacheVersion`
353
+ # @return [String]
354
+ attr_accessor :memcache_version
355
+
356
+ def initialize(**args)
357
+ update!(**args)
358
+ end
359
+
360
+ # Update properties of this object
361
+ def update!(**args)
362
+ @memcache_version = args[:memcache_version] if args.key?(:memcache_version)
363
+ end
364
+ end
365
+
347
366
  #
348
367
  class GoogleCloudMemcacheV1beta2ZoneMetadata
349
368
  include Google::Apis::Core::Hashable
@@ -410,7 +429,7 @@ module Google
410
429
  # Optional. The MaintenancePolicies that have been attached to the instance. The
411
430
  # key must be of the type name of the oneof policy name defined in
412
431
  # MaintenancePolicy, and the referenced policy must define the same policy type.
413
- # For details, please refer to go/cloud-saas-mw-ug. Should not be set if
432
+ # For details, please refer to go/mr-user-guide. Should not be set if
414
433
  # maintenance_settings.maintenance_policies is set.
415
434
  # Corresponds to the JSON property `maintenancePolicyNames`
416
435
  # @return [Hash<String,String>]
@@ -594,7 +613,7 @@ module Google
594
613
  # Optional. The MaintenancePolicies that have been attached to the instance. The
595
614
  # key must be of the type name of the oneof policy name defined in
596
615
  # MaintenancePolicy, and the embedded policy must define the same policy type.
597
- # For details, please refer to go/cloud-saas-mw-ug. Should not be set if
616
+ # For details, please refer to go/mr-user-guide. Should not be set if
598
617
  # maintenance_policy_names is set. If only the name is needed, then only
599
618
  # populate MaintenancePolicy.name.
600
619
  # Corresponds to the JSON property `maintenancePolicies`
@@ -1283,6 +1302,18 @@ module Google
1283
1302
  # @return [String]
1284
1303
  attr_accessor :host
1285
1304
 
1305
+ # Output only. The full version of memcached server running on this node. e.g. -
1306
+ # memcached-1.5.16
1307
+ # Corresponds to the JSON property `memcacheFullVersion`
1308
+ # @return [String]
1309
+ attr_accessor :memcache_full_version
1310
+
1311
+ # Output only. Major version of memcached server running on this node, e.g.
1312
+ # MEMCACHE_1_5
1313
+ # Corresponds to the JSON property `memcacheVersion`
1314
+ # @return [String]
1315
+ attr_accessor :memcache_version
1316
+
1286
1317
  # Output only. Identifier of the Memcached node. The node id does not include
1287
1318
  # project or location like the Memcached instance name.
1288
1319
  # Corresponds to the JSON property `nodeId`
@@ -1322,6 +1353,8 @@ module Google
1322
1353
  # Update properties of this object
1323
1354
  def update!(**args)
1324
1355
  @host = args[:host] if args.key?(:host)
1356
+ @memcache_full_version = args[:memcache_full_version] if args.key?(:memcache_full_version)
1357
+ @memcache_version = args[:memcache_version] if args.key?(:memcache_version)
1325
1358
  @node_id = args[:node_id] if args.key?(:node_id)
1326
1359
  @parameters = args[:parameters] if args.key?(:parameters)
1327
1360
  @port = args[:port] if args.key?(:port)
@@ -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.35.0"
19
+ GEM_VERSION = "0.37.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230803"
25
+ REVISION = "20240104"
26
26
  end
27
27
  end
28
28
  end
@@ -82,6 +82,12 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class GoogleCloudMemcacheV1beta2UpgradeInstanceRequest
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class GoogleCloudMemcacheV1beta2ZoneMetadata
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
@@ -376,6 +382,13 @@ module Google
376
382
  end
377
383
  end
378
384
 
385
+ class GoogleCloudMemcacheV1beta2UpgradeInstanceRequest
386
+ # @private
387
+ class Representation < Google::Apis::Core::JsonRepresentation
388
+ property :memcache_version, as: 'memcacheVersion'
389
+ end
390
+ end
391
+
379
392
  class GoogleCloudMemcacheV1beta2ZoneMetadata
380
393
  # @private
381
394
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -615,6 +628,8 @@ module Google
615
628
  # @private
616
629
  class Representation < Google::Apis::Core::JsonRepresentation
617
630
  property :host, as: 'host'
631
+ property :memcache_full_version, as: 'memcacheFullVersion'
632
+ property :memcache_version, as: 'memcacheVersion'
618
633
  property :node_id, as: 'nodeId'
619
634
  property :parameters, as: 'parameters', class: Google::Apis::MemcacheV1beta2::MemcacheParameters, decorator: Google::Apis::MemcacheV1beta2::MemcacheParameters::Representation
620
635
 
@@ -33,6 +33,8 @@ module Google
33
33
  #
34
34
  # @see https://cloud.google.com/memorystore/
35
35
  class CloudMemorystoreforMemcachedService < Google::Apis::Core::BaseService
36
+ DEFAULT_ENDPOINT_TEMPLATE = "https://memcache.$UNIVERSE_DOMAIN$/"
37
+
36
38
  # @return [String]
37
39
  # API key. Your API key identifies your project and provides you with API access,
38
40
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -44,7 +46,7 @@ module Google
44
46
  attr_accessor :quota_user
45
47
 
46
48
  def initialize
47
- super('https://memcache.googleapis.com/', '',
49
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
48
50
  client_name: 'google-apis-memcache_v1beta2',
49
51
  client_version: Google::Apis::MemcacheV1beta2::GEM_VERSION)
50
52
  @batch_path = 'batch'
@@ -460,6 +462,42 @@ module Google
460
462
  execute_or_queue_command(command, &block)
461
463
  end
462
464
 
465
+ # Upgrades the Memcache instance to a newer memcached engine version specified
466
+ # in the request.
467
+ # @param [String] name
468
+ # Required. Memcache instance resource name using the form: `projects/`project`/
469
+ # locations/`location`/instances/`instance`` where `location_id` refers to a GCP
470
+ # region.
471
+ # @param [Google::Apis::MemcacheV1beta2::GoogleCloudMemcacheV1beta2UpgradeInstanceRequest] google_cloud_memcache_v1beta2_upgrade_instance_request_object
472
+ # @param [String] fields
473
+ # Selector specifying which fields to include in a partial response.
474
+ # @param [String] quota_user
475
+ # Available to use for quota purposes for server-side applications. Can be any
476
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
477
+ # @param [Google::Apis::RequestOptions] options
478
+ # Request-specific options
479
+ #
480
+ # @yield [result, err] Result & error if block supplied
481
+ # @yieldparam result [Google::Apis::MemcacheV1beta2::Operation] parsed result object
482
+ # @yieldparam err [StandardError] error object if request failed
483
+ #
484
+ # @return [Google::Apis::MemcacheV1beta2::Operation]
485
+ #
486
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
487
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
488
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
489
+ def upgrade_project_location_instance(name, google_cloud_memcache_v1beta2_upgrade_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
490
+ command = make_simple_command(:post, 'v1beta2/{+name}:upgrade', options)
491
+ command.request_representation = Google::Apis::MemcacheV1beta2::GoogleCloudMemcacheV1beta2UpgradeInstanceRequest::Representation
492
+ command.request_object = google_cloud_memcache_v1beta2_upgrade_instance_request_object
493
+ command.response_representation = Google::Apis::MemcacheV1beta2::Operation::Representation
494
+ command.response_class = Google::Apis::MemcacheV1beta2::Operation
495
+ command.params['name'] = name unless name.nil?
496
+ command.query['fields'] = fields unless fields.nil?
497
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
498
+ execute_or_queue_command(command, &block)
499
+ end
500
+
463
501
  # Starts asynchronous cancellation on a long-running operation. The server makes
464
502
  # a best effort to cancel the operation, but success is not guaranteed. If the
465
503
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
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.35.0
4
+ version: 0.37.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: 2023-08-20 00:00:00.000000000 Z
11
+ date: 2024-01-23 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.11.0
19
+ version: 0.12.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.11.0
29
+ version: 0.12.0
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.35.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-memcache_v1beta2/v0.37.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.4.2
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Memorystore for Memcached API V1beta2