google-apis-sqladmin_v1beta4 0.49.0 → 0.50.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: d5691b4bfabf7cdcf7260f2577bf0ed32a6f4b60fbd22fca6f56ce67096f4cad
4
- data.tar.gz: 7c82f0d821d02553cc75e80481a69fbd505adf5d063f44f9fac222feb56adce3
3
+ metadata.gz: 490931216ffc2b2a0395cfd2b64f8e4db8417503f94cace23acb41f46bce5063
4
+ data.tar.gz: 34ebe8fa84459da1ae3b73c0db11f2349dadf28fd6d830954f78532036c6a6b4
5
5
  SHA512:
6
- metadata.gz: eedf8e9b9eb8dc25d159a65770da1712f6587326a69743269b895ce035f3aa17ac56c560024976cdda4729b821e78615bfe3edb40ce4ec50283ee0f01b6adddf
7
- data.tar.gz: bbd432873de0e8f0e06256287c9c81b1554bc69bb49af47a348d9dd5817ef9399391a8be552afab4da932c324dafe34b8a6226bac6edd3560f630ab4bb95a33f
6
+ metadata.gz: f521564b91bf856594ddebcbcefaa744163aabd716552de427490520162bc47cfc3071c281dcc31182e7bef8606ca34d71be88d6377f198df879d1152f47a00b
7
+ data.tar.gz: 5412e72cbc5c58926ad22198d308da38417d32d249506f292e4717ae407eca6a83ff7d834cd81d2dcdc2ea734161c98da1bb58d969cbb15c9eb27fb7e073428f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-sqladmin_v1beta4
2
2
 
3
+ ### v0.50.0 (2023-06-11)
4
+
5
+ * Regenerated from discovery document revision 20230607
6
+
3
7
  ### v0.49.0 (2023-06-04)
4
8
 
5
9
  * Regenerated from discovery document revision 20230530
@@ -210,6 +210,31 @@ module Google
210
210
  end
211
211
  end
212
212
 
213
+ # Backup Reencryption Config
214
+ class BackupReencryptionConfig
215
+ include Google::Apis::Core::Hashable
216
+
217
+ # Backup re-encryption limit
218
+ # Corresponds to the JSON property `backupLimit`
219
+ # @return [Fixnum]
220
+ attr_accessor :backup_limit
221
+
222
+ # Type of backups users want to re-encrypt.
223
+ # Corresponds to the JSON property `backupType`
224
+ # @return [String]
225
+ attr_accessor :backup_type
226
+
227
+ def initialize(**args)
228
+ update!(**args)
229
+ end
230
+
231
+ # Update properties of this object
232
+ def update!(**args)
233
+ @backup_limit = args[:backup_limit] if args.key?(:backup_limit)
234
+ @backup_type = args[:backup_type] if args.key?(:backup_type)
235
+ end
236
+ end
237
+
213
238
  # We currently only support backup retention by specifying the number of backups
214
239
  # we will retain.
215
240
  class BackupRetentionSettings
@@ -511,6 +536,11 @@ module Google
511
536
  # @return [String]
512
537
  attr_accessor :database_version
513
538
 
539
+ # The dns name of the instance.
540
+ # Corresponds to the JSON property `dnsName`
541
+ # @return [String]
542
+ attr_accessor :dns_name
543
+
514
544
  # The assigned IP addresses for the instance.
515
545
  # Corresponds to the JSON property `ipAddresses`
516
546
  # @return [Array<Google::Apis::SqladminV1beta4::IpMapping>]
@@ -540,6 +570,7 @@ module Google
540
570
  def update!(**args)
541
571
  @backend_type = args[:backend_type] if args.key?(:backend_type)
542
572
  @database_version = args[:database_version] if args.key?(:database_version)
573
+ @dns_name = args[:dns_name] if args.key?(:dns_name)
543
574
  @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
544
575
  @kind = args[:kind] if args.key?(:kind)
545
576
  @region = args[:region] if args.key?(:region)
@@ -1266,16 +1297,14 @@ module Google
1266
1297
  # @return [String]
1267
1298
  attr_accessor :bak_type
1268
1299
 
1269
- # Whether or not the export will be exeucted with COPY_ONLY, SQL Server only
1270
- # deprecated as the behavior should default to copy_only = true use
1271
- # differential_base instead
1300
+ # Deprecated: copy_only is deprecated. Use differential_base instead
1272
1301
  # Corresponds to the JSON property `copyOnly`
1273
1302
  # @return [Boolean]
1274
1303
  attr_accessor :copy_only
1275
1304
  alias_method :copy_only?, :copy_only
1276
1305
 
1277
- # Whether or not the backup can be use as differential base only non copy only
1278
- # backup can be served as differential base
1306
+ # Whether or not the backup can be used as a differential base copy_only backup
1307
+ # can not be served as differential base
1279
1308
  # Corresponds to the JSON property `differentialBase`
1280
1309
  # @return [Boolean]
1281
1310
  attr_accessor :differential_base
@@ -2055,6 +2084,25 @@ module Google
2055
2084
  end
2056
2085
  end
2057
2086
 
2087
+ # Database Instance reencrypt request.
2088
+ class InstancesReencryptRequest
2089
+ include Google::Apis::Core::Hashable
2090
+
2091
+ # Backup Reencryption Config
2092
+ # Corresponds to the JSON property `backupReencryptionConfig`
2093
+ # @return [Google::Apis::SqladminV1beta4::BackupReencryptionConfig]
2094
+ attr_accessor :backup_reencryption_config
2095
+
2096
+ def initialize(**args)
2097
+ update!(**args)
2098
+ end
2099
+
2100
+ # Update properties of this object
2101
+ def update!(**args)
2102
+ @backup_reencryption_config = args[:backup_reencryption_config] if args.key?(:backup_reencryption_config)
2103
+ end
2104
+ end
2105
+
2058
2106
  # Database instance restore backup request.
2059
2107
  class RestoreInstancesBackupRequest
2060
2108
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SqladminV1beta4
18
18
  # Version of the google-apis-sqladmin_v1beta4 gem
19
- GEM_VERSION = "0.49.0"
19
+ GEM_VERSION = "0.50.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230530"
25
+ REVISION = "20230607"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,12 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class BackupReencryptionConfig
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
55
61
  class BackupRetentionSettings
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
@@ -298,6 +304,12 @@ module Google
298
304
  include Google::Apis::Core::JsonObjectSupport
299
305
  end
300
306
 
307
+ class InstancesReencryptRequest
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
301
313
  class RestoreInstancesBackupRequest
302
314
  class Representation < Google::Apis::Core::JsonRepresentation; end
303
315
 
@@ -642,6 +654,14 @@ module Google
642
654
  end
643
655
  end
644
656
 
657
+ class BackupReencryptionConfig
658
+ # @private
659
+ class Representation < Google::Apis::Core::JsonRepresentation
660
+ property :backup_limit, as: 'backupLimit'
661
+ property :backup_type, as: 'backupType'
662
+ end
663
+ end
664
+
645
665
  class BackupRetentionSettings
646
666
  # @private
647
667
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -714,6 +734,7 @@ module Google
714
734
  class Representation < Google::Apis::Core::JsonRepresentation
715
735
  property :backend_type, as: 'backendType'
716
736
  property :database_version, as: 'databaseVersion'
737
+ property :dns_name, as: 'dnsName'
717
738
  collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1beta4::IpMapping, decorator: Google::Apis::SqladminV1beta4::IpMapping::Representation
718
739
 
719
740
  property :kind, as: 'kind'
@@ -1117,6 +1138,14 @@ module Google
1117
1138
  end
1118
1139
  end
1119
1140
 
1141
+ class InstancesReencryptRequest
1142
+ # @private
1143
+ class Representation < Google::Apis::Core::JsonRepresentation
1144
+ property :backup_reencryption_config, as: 'backupReencryptionConfig', class: Google::Apis::SqladminV1beta4::BackupReencryptionConfig, decorator: Google::Apis::SqladminV1beta4::BackupReencryptionConfig::Representation
1145
+
1146
+ end
1147
+ end
1148
+
1120
1149
  class RestoreInstancesBackupRequest
1121
1150
  # @private
1122
1151
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1012,6 +1012,42 @@ module Google
1012
1012
  execute_or_queue_command(command, &block)
1013
1013
  end
1014
1014
 
1015
+ # Reencrypt CMEK instance with latest key version.
1016
+ # @param [String] project
1017
+ # ID of the project that contains the instance.
1018
+ # @param [String] instance
1019
+ # Cloud SQL instance ID. This does not include the project ID.
1020
+ # @param [Google::Apis::SqladminV1beta4::InstancesReencryptRequest] instances_reencrypt_request_object
1021
+ # @param [String] fields
1022
+ # Selector specifying which fields to include in a partial response.
1023
+ # @param [String] quota_user
1024
+ # Available to use for quota purposes for server-side applications. Can be any
1025
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1026
+ # @param [Google::Apis::RequestOptions] options
1027
+ # Request-specific options
1028
+ #
1029
+ # @yield [result, err] Result & error if block supplied
1030
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1031
+ # @yieldparam err [StandardError] error object if request failed
1032
+ #
1033
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1034
+ #
1035
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1036
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1037
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1038
+ def reencrypt_instance(project, instance, instances_reencrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1039
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/reencrypt', options)
1040
+ command.request_representation = Google::Apis::SqladminV1beta4::InstancesReencryptRequest::Representation
1041
+ command.request_object = instances_reencrypt_request_object
1042
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1043
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
1044
+ command.params['project'] = project unless project.nil?
1045
+ command.params['instance'] = instance unless instance.nil?
1046
+ command.query['fields'] = fields unless fields.nil?
1047
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1048
+ execute_or_queue_command(command, &block)
1049
+ end
1050
+
1015
1051
  # Deletes all client certificates and generates a new server SSL certificate for
1016
1052
  # the instance.
1017
1053
  # @param [String] project
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-sqladmin_v1beta4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.49.0
4
+ version: 0.50.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-06-04 00:00:00.000000000 Z
11
+ date: 2023-06-11 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-sqladmin_v1beta4/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.49.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.50.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1beta4
63
63
  post_install_message:
64
64
  rdoc_options: []