google-apis-sqladmin_v1 0.38.0 → 0.39.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: 538d7bb67e6525b07735e1d4f1f3ff3996f3caf10763e5d2bfbb26b6f25e8ca5
4
- data.tar.gz: c6f109732afbc9a4695c2ba7910395672467d41cf4e21cbb7d52b11e03763f69
3
+ metadata.gz: f0d2bf194e296d51de6f04720e916e7e87163e253285872025e4b17eb2fb874d
4
+ data.tar.gz: 0b37a17840a85f7cab1741a4cebb8f20ab7b50a8a8ec65847fad33b8370e83a3
5
5
  SHA512:
6
- metadata.gz: 1d0c2f70369ced1289e85a77b1c2cebf23290e297d44d6703572f0a16c843828d02246e52a9d440c48c51bfcf5ab9bf7b39faf25226d857ff57a875f85025412
7
- data.tar.gz: dc41ac0f09fa2b0f65745ae760f61a1fdff5266be36b5a76b642b32982a7b703da5c15492214fc2584aa7a0f830d3e8f9f93338351eb24fc9a7897832cc472de
6
+ metadata.gz: 656fc8d9b867933d9872b3088f15f59da182518c19cf534b982ca9cafad3116e505560532d1b3a43de874163e8787e5f1acaf3e2b8f84256b319f937c0dd21e6
7
+ data.tar.gz: 8f07138098a62b1b8837559ba12c55719fac5de59b26d14af753f77e3e23612f0f9d8763d35451497fbb0c079d773a14adc800cfeba63eafce817f72f05500d8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-sqladmin_v1
2
2
 
3
+ ### v0.39.0 (2023-06-11)
4
+
5
+ * Regenerated from discovery document revision 20230607
6
+
3
7
  ### v0.38.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::SqladminV1::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
@@ -2054,6 +2083,25 @@ module Google
2054
2083
  end
2055
2084
  end
2056
2085
 
2086
+ # Database Instance reencrypt request.
2087
+ class InstancesReencryptRequest
2088
+ include Google::Apis::Core::Hashable
2089
+
2090
+ # Backup Reencryption Config
2091
+ # Corresponds to the JSON property `backupReencryptionConfig`
2092
+ # @return [Google::Apis::SqladminV1::BackupReencryptionConfig]
2093
+ attr_accessor :backup_reencryption_config
2094
+
2095
+ def initialize(**args)
2096
+ update!(**args)
2097
+ end
2098
+
2099
+ # Update properties of this object
2100
+ def update!(**args)
2101
+ @backup_reencryption_config = args[:backup_reencryption_config] if args.key?(:backup_reencryption_config)
2102
+ end
2103
+ end
2104
+
2057
2105
  # Database instance restore backup request.
2058
2106
  class InstancesRestoreBackupRequest
2059
2107
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SqladminV1
18
18
  # Version of the google-apis-sqladmin_v1 gem
19
- GEM_VERSION = "0.38.0"
19
+ GEM_VERSION = "0.39.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 InstancesRestoreBackupRequest
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::SqladminV1::IpMapping, decorator: Google::Apis::SqladminV1::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::SqladminV1::BackupReencryptionConfig, decorator: Google::Apis::SqladminV1::BackupReencryptionConfig::Representation
1145
+
1146
+ end
1147
+ end
1148
+
1120
1149
  class InstancesRestoreBackupRequest
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::SqladminV1::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::SqladminV1::Operation] parsed result object
1031
+ # @yieldparam err [StandardError] error object if request failed
1032
+ #
1033
+ # @return [Google::Apis::SqladminV1::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, 'v1/projects/{project}/instances/{instance}/reencrypt', options)
1040
+ command.request_representation = Google::Apis::SqladminV1::InstancesReencryptRequest::Representation
1041
+ command.request_object = instances_reencrypt_request_object
1042
+ command.response_representation = Google::Apis::SqladminV1::Operation::Representation
1043
+ command.response_class = Google::Apis::SqladminV1::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_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.0
4
+ version: 0.39.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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.38.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.39.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1
63
63
  post_install_message:
64
64
  rdoc_options: []