google-apis-alloydb_v1 0.20.0 → 0.22.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: b5809365db66834073f0eddf7a1dd55e7597f3fad16a9ec844000bf97d87cfba
4
- data.tar.gz: f9c4d85e361e112d000d4ad3cb170309ac84652619096439725eebc76d0080c5
3
+ metadata.gz: d7c05d4c58946e96224d4e9540cca503a146e25061276727beb23a2017c13ba4
4
+ data.tar.gz: 502a8f5409afade31987ca3892c88a2a622a7b4ba0fee1051ba154a98e89fb65
5
5
  SHA512:
6
- metadata.gz: 6ff8614c35df36e99e90b7f9b530a27cb4ddf7c37a2c51e78e659e0cc93d1704254621d88fb96ca1e2ca0c90aa615ddfaeb4662dadfc2ca55b483a7fafda87f7
7
- data.tar.gz: cff53559ba89bfd1992351db338c2eed9b4e5cf87a00c4cd32b9bf72960ab65e5f338cd3502bf11b59b69e20c7116a730bfb1dea45f06d79b81720e4d9e978bc
6
+ metadata.gz: 151f5502bcfb6a5405745faefcbd524f02c82cb91b2109f74f96eb4bc5e5ced2414fad060d0d7fe6ba1a8c69b5f308f5eabef818c551b47500c75e3a78fba6ca
7
+ data.tar.gz: aa2fc87691caa8c3cae306bb8d243aa7e1941b34b7f29010705dba0d234850b2c3d9e1d64342240935c789ce6a274abd4f8188ee5fb239590b568c9b6e6caf64
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-alloydb_v1
2
2
 
3
+ ### v0.22.0 (2024-09-22)
4
+
5
+ * Regenerated from discovery document revision 20240909
6
+
7
+ ### v0.21.0 (2024-09-08)
8
+
9
+ * Regenerated from discovery document revision 20240828
10
+
3
11
  ### v0.20.0 (2024-09-01)
4
12
 
5
13
  * Regenerated from discovery document revision 20240823
@@ -1188,6 +1188,11 @@ module Google
1188
1188
  # @return [Array<Google::Apis::AlloydbV1::Node>]
1189
1189
  attr_accessor :nodes
1190
1190
 
1191
+ # Output only. All outbound public IP addresses configured for the instance.
1192
+ # Corresponds to the JSON property `outboundPublicIpAddresses`
1193
+ # @return [Array<String>]
1194
+ attr_accessor :outbound_public_ip_addresses
1195
+
1191
1196
  # PscInstanceConfig contains PSC related configuration at an instance level.
1192
1197
  # Corresponds to the JSON property `pscInstanceConfig`
1193
1198
  # @return [Google::Apis::AlloydbV1::PscInstanceConfig]
@@ -1271,6 +1276,7 @@ module Google
1271
1276
  @name = args[:name] if args.key?(:name)
1272
1277
  @network_config = args[:network_config] if args.key?(:network_config)
1273
1278
  @nodes = args[:nodes] if args.key?(:nodes)
1279
+ @outbound_public_ip_addresses = args[:outbound_public_ip_addresses] if args.key?(:outbound_public_ip_addresses)
1274
1280
  @psc_instance_config = args[:psc_instance_config] if args.key?(:psc_instance_config)
1275
1281
  @public_ip_address = args[:public_ip_address] if args.key?(:public_ip_address)
1276
1282
  @query_insights_config = args[:query_insights_config] if args.key?(:query_insights_config)
@@ -1293,6 +1299,13 @@ module Google
1293
1299
  # @return [Array<Google::Apis::AlloydbV1::AuthorizedNetwork>]
1294
1300
  attr_accessor :authorized_external_networks
1295
1301
 
1302
+ # Optional. Enabling an outbound public IP address to support a database server
1303
+ # sending requests out into the internet.
1304
+ # Corresponds to the JSON property `enableOutboundPublicIp`
1305
+ # @return [Boolean]
1306
+ attr_accessor :enable_outbound_public_ip
1307
+ alias_method :enable_outbound_public_ip?, :enable_outbound_public_ip
1308
+
1296
1309
  # Optional. Enabling public ip for the instance.
1297
1310
  # Corresponds to the JSON property `enablePublicIp`
1298
1311
  # @return [Boolean]
@@ -1306,6 +1319,7 @@ module Google
1306
1319
  # Update properties of this object
1307
1320
  def update!(**args)
1308
1321
  @authorized_external_networks = args[:authorized_external_networks] if args.key?(:authorized_external_networks)
1322
+ @enable_outbound_public_ip = args[:enable_outbound_public_ip] if args.key?(:enable_outbound_public_ip)
1309
1323
  @enable_public_ip = args[:enable_public_ip] if args.key?(:enable_public_ip)
1310
1324
  end
1311
1325
  end
@@ -2528,7 +2542,7 @@ module Google
2528
2542
  # @return [Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId]
2529
2543
  attr_accessor :resource_id
2530
2544
 
2531
- # Common model for database resource instance metadata.
2545
+ # Common model for database resource instance metadata. Next ID: 21
2532
2546
  # Corresponds to the JSON property `resourceMetadata`
2533
2547
  # @return [Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata]
2534
2548
  attr_accessor :resource_metadata
@@ -2703,7 +2717,7 @@ module Google
2703
2717
  end
2704
2718
  end
2705
2719
 
2706
- # Common model for database resource instance metadata.
2720
+ # Common model for database resource instance metadata. Next ID: 21
2707
2721
  class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata
2708
2722
  include Google::Apis::Core::Hashable
2709
2723
 
@@ -2799,6 +2813,13 @@ module Google
2799
2813
  # @return [String]
2800
2814
  attr_accessor :resource_name
2801
2815
 
2816
+ # Message type for storing tags. Tags provide a way to create annotations for
2817
+ # resources, and in some cases conditionally allow or deny policies based on
2818
+ # whether a resource has a specific tag.
2819
+ # Corresponds to the JSON property `tagsSet`
2820
+ # @return [Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainTags]
2821
+ attr_accessor :tags_set
2822
+
2802
2823
  # The time at which the resource was updated and recorded at partner service.
2803
2824
  # Corresponds to the JSON property `updationTime`
2804
2825
  # @return [String]
@@ -2833,6 +2854,7 @@ module Google
2833
2854
  @product = args[:product] if args.key?(:product)
2834
2855
  @resource_container = args[:resource_container] if args.key?(:resource_container)
2835
2856
  @resource_name = args[:resource_name] if args.key?(:resource_name)
2857
+ @tags_set = args[:tags_set] if args.key?(:tags_set)
2836
2858
  @updation_time = args[:updation_time] if args.key?(:updation_time)
2837
2859
  @user_label_set = args[:user_label_set] if args.key?(:user_label_set)
2838
2860
  end
@@ -3000,6 +3022,11 @@ module Google
3000
3022
  # @return [Fixnum]
3001
3023
  attr_accessor :memory_size_in_bytes
3002
3024
 
3025
+ # Optional. Number of shards (if applicable).
3026
+ # Corresponds to the JSON property `shardCount`
3027
+ # @return [Fixnum]
3028
+ attr_accessor :shard_count
3029
+
3003
3030
  def initialize(**args)
3004
3031
  update!(**args)
3005
3032
  end
@@ -3008,6 +3035,7 @@ module Google
3008
3035
  def update!(**args)
3009
3036
  @cpu_count = args[:cpu_count] if args.key?(:cpu_count)
3010
3037
  @memory_size_in_bytes = args[:memory_size_in_bytes] if args.key?(:memory_size_in_bytes)
3038
+ @shard_count = args[:shard_count] if args.key?(:shard_count)
3011
3039
  end
3012
3040
  end
3013
3041
 
@@ -3118,6 +3146,27 @@ module Google
3118
3146
  end
3119
3147
  end
3120
3148
 
3149
+ # Message type for storing tags. Tags provide a way to create annotations for
3150
+ # resources, and in some cases conditionally allow or deny policies based on
3151
+ # whether a resource has a specific tag.
3152
+ class StorageDatabasecenterPartnerapiV1mainTags
3153
+ include Google::Apis::Core::Hashable
3154
+
3155
+ # The Tag key/value mappings.
3156
+ # Corresponds to the JSON property `tags`
3157
+ # @return [Hash<String,String>]
3158
+ attr_accessor :tags
3159
+
3160
+ def initialize(**args)
3161
+ update!(**args)
3162
+ end
3163
+
3164
+ # Update properties of this object
3165
+ def update!(**args)
3166
+ @tags = args[:tags] if args.key?(:tags)
3167
+ end
3168
+ end
3169
+
3121
3170
  # Message type for storing user labels. User labels are used to tag App Engine
3122
3171
  # resources, allowing users to search for resources matching a set of labels and
3123
3172
  # to aggregate usage data by labels.
@@ -3396,6 +3445,56 @@ module Google
3396
3445
  end
3397
3446
  end
3398
3447
 
3448
+ # Upgrades a cluster.
3449
+ class UpgradeClusterRequest
3450
+ include Google::Apis::Core::Hashable
3451
+
3452
+ # Optional. The current etag of the Cluster. If an etag is provided and does not
3453
+ # match the current etag of the Cluster, upgrade will be blocked and an ABORTED
3454
+ # error will be returned.
3455
+ # Corresponds to the JSON property `etag`
3456
+ # @return [String]
3457
+ attr_accessor :etag
3458
+
3459
+ # Optional. An optional request ID to identify requests. Specify a unique
3460
+ # request ID so that if you must retry your request, the server will know to
3461
+ # ignore the request if it has already been completed. The server will guarantee
3462
+ # that for at least 60 minutes after the first request. For example, consider a
3463
+ # situation where you make an initial request and the request times out. If you
3464
+ # make the request again with the same request ID, the server can check if
3465
+ # original operation with the same request ID was received, and if so, will
3466
+ # ignore the second request. This prevents clients from accidentally creating
3467
+ # duplicate commitments. The request ID must be a valid UUID with the exception
3468
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3469
+ # Corresponds to the JSON property `requestId`
3470
+ # @return [String]
3471
+ attr_accessor :request_id
3472
+
3473
+ # Optional. If set, performs request validation (e.g. permission checks and any
3474
+ # other type of validation), but does not actually execute the upgrade.
3475
+ # Corresponds to the JSON property `validateOnly`
3476
+ # @return [Boolean]
3477
+ attr_accessor :validate_only
3478
+ alias_method :validate_only?, :validate_only
3479
+
3480
+ # Required. The version the cluster is going to be upgraded to.
3481
+ # Corresponds to the JSON property `version`
3482
+ # @return [String]
3483
+ attr_accessor :version
3484
+
3485
+ def initialize(**args)
3486
+ update!(**args)
3487
+ end
3488
+
3489
+ # Update properties of this object
3490
+ def update!(**args)
3491
+ @etag = args[:etag] if args.key?(:etag)
3492
+ @request_id = args[:request_id] if args.key?(:request_id)
3493
+ @validate_only = args[:validate_only] if args.key?(:validate_only)
3494
+ @version = args[:version] if args.key?(:version)
3495
+ end
3496
+ end
3497
+
3399
3498
  # UpgradeClusterResponse contains the response for upgrade cluster operation.
3400
3499
  class UpgradeClusterResponse
3401
3500
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AlloydbV1
18
18
  # Version of the google-apis-alloydb_v1 gem
19
- GEM_VERSION = "0.20.0"
19
+ GEM_VERSION = "0.22.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240823"
25
+ REVISION = "20240909"
26
26
  end
27
27
  end
28
28
  end
@@ -442,6 +442,12 @@ module Google
442
442
  include Google::Apis::Core::JsonObjectSupport
443
443
  end
444
444
 
445
+ class StorageDatabasecenterPartnerapiV1mainTags
446
+ class Representation < Google::Apis::Core::JsonRepresentation; end
447
+
448
+ include Google::Apis::Core::JsonObjectSupport
449
+ end
450
+
445
451
  class StorageDatabasecenterPartnerapiV1mainUserLabels
446
452
  class Representation < Google::Apis::Core::JsonRepresentation; end
447
453
 
@@ -490,6 +496,12 @@ module Google
490
496
  include Google::Apis::Core::JsonObjectSupport
491
497
  end
492
498
 
499
+ class UpgradeClusterRequest
500
+ class Representation < Google::Apis::Core::JsonRepresentation; end
501
+
502
+ include Google::Apis::Core::JsonObjectSupport
503
+ end
504
+
493
505
  class UpgradeClusterResponse
494
506
  class Representation < Google::Apis::Core::JsonRepresentation; end
495
507
 
@@ -799,6 +811,7 @@ module Google
799
811
 
800
812
  collection :nodes, as: 'nodes', class: Google::Apis::AlloydbV1::Node, decorator: Google::Apis::AlloydbV1::Node::Representation
801
813
 
814
+ collection :outbound_public_ip_addresses, as: 'outboundPublicIpAddresses'
802
815
  property :psc_instance_config, as: 'pscInstanceConfig', class: Google::Apis::AlloydbV1::PscInstanceConfig, decorator: Google::Apis::AlloydbV1::PscInstanceConfig::Representation
803
816
 
804
817
  property :public_ip_address, as: 'publicIpAddress'
@@ -821,6 +834,7 @@ module Google
821
834
  class Representation < Google::Apis::Core::JsonRepresentation
822
835
  collection :authorized_external_networks, as: 'authorizedExternalNetworks', class: Google::Apis::AlloydbV1::AuthorizedNetwork, decorator: Google::Apis::AlloydbV1::AuthorizedNetwork::Representation
823
836
 
837
+ property :enable_outbound_public_ip, as: 'enableOutboundPublicIp'
824
838
  property :enable_public_ip, as: 'enablePublicIp'
825
839
  end
826
840
  end
@@ -1229,6 +1243,8 @@ module Google
1229
1243
 
1230
1244
  property :resource_container, as: 'resourceContainer'
1231
1245
  property :resource_name, as: 'resourceName'
1246
+ property :tags_set, as: 'tagsSet', class: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainTags, decorator: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainTags::Representation
1247
+
1232
1248
  property :updation_time, as: 'updationTime'
1233
1249
  property :user_label_set, as: 'userLabelSet', class: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainUserLabels, decorator: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainUserLabels::Representation
1234
1250
 
@@ -1277,6 +1293,7 @@ module Google
1277
1293
  class Representation < Google::Apis::Core::JsonRepresentation
1278
1294
  property :cpu_count, as: 'cpuCount'
1279
1295
  property :memory_size_in_bytes, :numeric_string => true, as: 'memorySizeInBytes'
1296
+ property :shard_count, as: 'shardCount'
1280
1297
  end
1281
1298
  end
1282
1299
 
@@ -1310,6 +1327,13 @@ module Google
1310
1327
  end
1311
1328
  end
1312
1329
 
1330
+ class StorageDatabasecenterPartnerapiV1mainTags
1331
+ # @private
1332
+ class Representation < Google::Apis::Core::JsonRepresentation
1333
+ hash :tags, as: 'tags'
1334
+ end
1335
+ end
1336
+
1313
1337
  class StorageDatabasecenterPartnerapiV1mainUserLabels
1314
1338
  # @private
1315
1339
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1384,6 +1408,16 @@ module Google
1384
1408
  end
1385
1409
  end
1386
1410
 
1411
+ class UpgradeClusterRequest
1412
+ # @private
1413
+ class Representation < Google::Apis::Core::JsonRepresentation
1414
+ property :etag, as: 'etag'
1415
+ property :request_id, as: 'requestId'
1416
+ property :validate_only, as: 'validateOnly'
1417
+ property :version, as: 'version'
1418
+ end
1419
+ end
1420
+
1387
1421
  class UpgradeClusterResponse
1388
1422
  # @private
1389
1423
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -792,6 +792,39 @@ module Google
792
792
  execute_or_queue_command(command, &block)
793
793
  end
794
794
 
795
+ # Upgrades a single Cluster. Imperative only.
796
+ # @param [String] name
797
+ # Required. The resource name of the cluster.
798
+ # @param [Google::Apis::AlloydbV1::UpgradeClusterRequest] upgrade_cluster_request_object
799
+ # @param [String] fields
800
+ # Selector specifying which fields to include in a partial response.
801
+ # @param [String] quota_user
802
+ # Available to use for quota purposes for server-side applications. Can be any
803
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
804
+ # @param [Google::Apis::RequestOptions] options
805
+ # Request-specific options
806
+ #
807
+ # @yield [result, err] Result & error if block supplied
808
+ # @yieldparam result [Google::Apis::AlloydbV1::Operation] parsed result object
809
+ # @yieldparam err [StandardError] error object if request failed
810
+ #
811
+ # @return [Google::Apis::AlloydbV1::Operation]
812
+ #
813
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
814
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
815
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
816
+ def upgrade_cluster(name, upgrade_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
817
+ command = make_simple_command(:patch, 'v1/{+name}:upgrade', options)
818
+ command.request_representation = Google::Apis::AlloydbV1::UpgradeClusterRequest::Representation
819
+ command.request_object = upgrade_cluster_request_object
820
+ command.response_representation = Google::Apis::AlloydbV1::Operation::Representation
821
+ command.response_class = Google::Apis::AlloydbV1::Operation
822
+ command.params['name'] = name unless name.nil?
823
+ command.query['fields'] = fields unless fields.nil?
824
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
825
+ execute_or_queue_command(command, &block)
826
+ end
827
+
795
828
  # Creates a new Instance in a given project and location.
796
829
  # @param [String] parent
797
830
  # Required. The name of the parent resource. For the required format, see the
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-alloydb_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.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: 2024-09-01 00:00:00.000000000 Z
11
+ date: 2024-09-22 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-alloydb_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1/v0.20.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1/v0.22.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-alloydb_v1
63
63
  post_install_message:
64
64
  rdoc_options: []