google-apis-sqladmin_v1beta4 0.12.0 → 0.13.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: 93c54839ae826e579172a4c6e46b4723961905461049869564cc87143af27af1
4
- data.tar.gz: 8e3ff858bd70cf10949566f610cd7a548a651c49c79e196438595f5a42badb87
3
+ metadata.gz: 26ab30ab594e4972b513d2261fa597aa20cf6d4d30c1f601e71ef078b44b0306
4
+ data.tar.gz: ed01810749e9d0cfb7133332e865a2840f6a748b5498346346a4549b575223d3
5
5
  SHA512:
6
- metadata.gz: 1be940b57e8a39c980d98fa011b7a647764dbc799e2956d0d1f744cd36f4451775ae064890e283f8c9ff3e64643d1daef609366ee8206482a4513f55f6e5b841
7
- data.tar.gz: cce5d703c8dad7782253bc797d7d597e24ea2f8c2d6bf965a1294f485e720ab180ab314625387e159b692ac7b8d9a5d98ed85675e87ff1212d34f14c486fd406
6
+ metadata.gz: d73cf8c9263b5fb52fd2449f84dad08d6f0c09ecbe3169f7b5b0e67af202cf1055a554eb322d31d82fc6c86c2f62ee014d305ab4667978f7f33f5a8c0b32374b
7
+ data.tar.gz: 89e3aab7846a8eb9d42ff71127036227c18ccf402516831de9b1e367829abcb79dc35be570c01ab2443e63475f9d0182c4a054a4116f790c6a3744ee79bfbe57
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-sqladmin_v1beta4
2
2
 
3
+ ### v0.13.0 (2021-07-14)
4
+
5
+ * Regenerated from discovery document revision 20210627
6
+
3
7
  ### v0.12.0 (2021-06-29)
4
8
 
5
9
  * Regenerated using generator version 0.4.0
@@ -124,7 +124,7 @@ module Google
124
124
  # @return [String]
125
125
  attr_accessor :location
126
126
 
127
- # Reserved for future use.
127
+ # (Postgres only) Whether point in time recovery is enabled.
128
128
  # Corresponds to the JSON property `pointInTimeRecoveryEnabled`
129
129
  # @return [Boolean]
130
130
  attr_accessor :point_in_time_recovery_enabled
@@ -421,7 +421,8 @@ module Google
421
421
  # @return [Fixnum]
422
422
  attr_accessor :pitr_timestamp_ms
423
423
 
424
- # Reserved for future use.
424
+ # Timestamp, if specified, identifies the time to which the source instance is
425
+ # cloned.
425
426
  # Corresponds to the JSON property `pointInTime`
426
427
  # @return [String]
427
428
  attr_accessor :point_in_time
@@ -440,6 +441,56 @@ module Google
440
441
  end
441
442
  end
442
443
 
444
+ # Connect settings retrieval response.
445
+ class ConnectSettings
446
+ include Google::Apis::Core::Hashable
447
+
448
+ # **SECOND_GEN**: Cloud SQL database instance. **EXTERNAL**: A database server
449
+ # that is not managed by Google. This property is read-only; use the **tier**
450
+ # property in the **settings** object to determine the database type.
451
+ # Corresponds to the JSON property `backendType`
452
+ # @return [String]
453
+ attr_accessor :backend_type
454
+
455
+ # The database engine type and version. The **databaseVersion** field cannot be
456
+ # changed after instance creation. MySQL instances: **MYSQL_8_0**, **MYSQL_5_7**
457
+ # (default), or **MYSQL_5_6**. PostgreSQL instances: **POSTGRES_9_6**, **
458
+ # POSTGRES_10**, **POSTGRES_11** or **POSTGRES_12** (default). SQL Server
459
+ # instances: **SQLSERVER_2017_STANDARD** (default), **SQLSERVER_2017_ENTERPRISE**
460
+ # , **SQLSERVER_2017_EXPRESS**, or **SQLSERVER_2017_WEB**.
461
+ # Corresponds to the JSON property `databaseVersion`
462
+ # @return [String]
463
+ attr_accessor :database_version
464
+
465
+ # The assigned IP addresses for the instance.
466
+ # Corresponds to the JSON property `ipAddresses`
467
+ # @return [Array<Google::Apis::SqladminV1beta4::IpMapping>]
468
+ attr_accessor :ip_addresses
469
+
470
+ # This is always `sql#connectSettings`.
471
+ # Corresponds to the JSON property `kind`
472
+ # @return [String]
473
+ attr_accessor :kind
474
+
475
+ # SslCerts Resource
476
+ # Corresponds to the JSON property `serverCaCert`
477
+ # @return [Google::Apis::SqladminV1beta4::SslCert]
478
+ attr_accessor :server_ca_cert
479
+
480
+ def initialize(**args)
481
+ update!(**args)
482
+ end
483
+
484
+ # Update properties of this object
485
+ def update!(**args)
486
+ @backend_type = args[:backend_type] if args.key?(:backend_type)
487
+ @database_version = args[:database_version] if args.key?(:database_version)
488
+ @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
489
+ @kind = args[:kind] if args.key?(:kind)
490
+ @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert)
491
+ end
492
+ end
493
+
443
494
  # Represents a SQL database on the Cloud SQL instance.
444
495
  class Database
445
496
  include Google::Apis::Core::Hashable
@@ -1318,6 +1369,56 @@ module Google
1318
1369
  end
1319
1370
  end
1320
1371
 
1372
+ # Ephemeral certificate creation request.
1373
+ class GenerateEphemeralCertRequest
1374
+ include Google::Apis::Core::Hashable
1375
+
1376
+ # Optional. Access token to include in the signed certificate.
1377
+ # Corresponds to the JSON property `access_token`
1378
+ # @return [String]
1379
+ attr_accessor :access_token
1380
+
1381
+ # PEM encoded public key to include in the signed certificate.
1382
+ # Corresponds to the JSON property `public_key`
1383
+ # @return [String]
1384
+ attr_accessor :public_key
1385
+
1386
+ # Optional. Optional snapshot read timestamp to trade freshness for performance.
1387
+ # Corresponds to the JSON property `readTime`
1388
+ # @return [String]
1389
+ attr_accessor :read_time
1390
+
1391
+ def initialize(**args)
1392
+ update!(**args)
1393
+ end
1394
+
1395
+ # Update properties of this object
1396
+ def update!(**args)
1397
+ @access_token = args[:access_token] if args.key?(:access_token)
1398
+ @public_key = args[:public_key] if args.key?(:public_key)
1399
+ @read_time = args[:read_time] if args.key?(:read_time)
1400
+ end
1401
+ end
1402
+
1403
+ # Ephemeral certificate creation request.
1404
+ class GenerateEphemeralCertResponse
1405
+ include Google::Apis::Core::Hashable
1406
+
1407
+ # SslCerts Resource
1408
+ # Corresponds to the JSON property `ephemeralCert`
1409
+ # @return [Google::Apis::SqladminV1beta4::SslCert]
1410
+ attr_accessor :ephemeral_cert
1411
+
1412
+ def initialize(**args)
1413
+ update!(**args)
1414
+ end
1415
+
1416
+ # Update properties of this object
1417
+ def update!(**args)
1418
+ @ephemeral_cert = args[:ephemeral_cert] if args.key?(:ephemeral_cert)
1419
+ end
1420
+ end
1421
+
1321
1422
  # Database instance import context.
1322
1423
  class ImportContext
1323
1424
  include Google::Apis::Core::Hashable
@@ -2715,6 +2816,11 @@ module Google
2715
2816
  attr_accessor :can_reschedule
2716
2817
  alias_method :can_reschedule?, :can_reschedule
2717
2818
 
2819
+ # Maintenance cannot be rescheduled to start beyond this deadline.
2820
+ # Corresponds to the JSON property `scheduleDeadlineTime`
2821
+ # @return [String]
2822
+ attr_accessor :schedule_deadline_time
2823
+
2718
2824
  # The start time of any upcoming scheduled maintenance for this instance.
2719
2825
  # Corresponds to the JSON property `startTime`
2720
2826
  # @return [String]
@@ -2728,6 +2834,7 @@ module Google
2728
2834
  def update!(**args)
2729
2835
  @can_defer = args[:can_defer] if args.key?(:can_defer)
2730
2836
  @can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
2837
+ @schedule_deadline_time = args[:schedule_deadline_time] if args.key?(:schedule_deadline_time)
2731
2838
  @start_time = args[:start_time] if args.key?(:start_time)
2732
2839
  end
2733
2840
  end
@@ -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.12.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210608"
25
+ REVISION = "20210627"
26
26
  end
27
27
  end
28
28
  end
@@ -76,6 +76,12 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class ConnectSettings
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
79
85
  class Database
80
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
87
 
@@ -184,6 +190,18 @@ module Google
184
190
  include Google::Apis::Core::JsonObjectSupport
185
191
  end
186
192
 
193
+ class GenerateEphemeralCertRequest
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class GenerateEphemeralCertResponse
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
187
205
  class ImportContext
188
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
207
 
@@ -585,6 +603,19 @@ module Google
585
603
  end
586
604
  end
587
605
 
606
+ class ConnectSettings
607
+ # @private
608
+ class Representation < Google::Apis::Core::JsonRepresentation
609
+ property :backend_type, as: 'backendType'
610
+ property :database_version, as: 'databaseVersion'
611
+ collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1beta4::IpMapping, decorator: Google::Apis::SqladminV1beta4::IpMapping::Representation
612
+
613
+ property :kind, as: 'kind'
614
+ property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation
615
+
616
+ end
617
+ end
618
+
588
619
  class Database
589
620
  # @private
590
621
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -803,6 +834,23 @@ module Google
803
834
  end
804
835
  end
805
836
 
837
+ class GenerateEphemeralCertRequest
838
+ # @private
839
+ class Representation < Google::Apis::Core::JsonRepresentation
840
+ property :access_token, as: 'access_token'
841
+ property :public_key, as: 'public_key'
842
+ property :read_time, as: 'readTime'
843
+ end
844
+ end
845
+
846
+ class GenerateEphemeralCertResponse
847
+ # @private
848
+ class Representation < Google::Apis::Core::JsonRepresentation
849
+ property :ephemeral_cert, as: 'ephemeralCert', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation
850
+
851
+ end
852
+ end
853
+
806
854
  class ImportContext
807
855
  # @private
808
856
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1188,6 +1236,7 @@ module Google
1188
1236
  class Representation < Google::Apis::Core::JsonRepresentation
1189
1237
  property :can_defer, as: 'canDefer'
1190
1238
  property :can_reschedule, as: 'canReschedule'
1239
+ property :schedule_deadline_time, as: 'scheduleDeadlineTime'
1191
1240
  property :start_time, as: 'startTime'
1192
1241
  end
1193
1242
  end
@@ -159,12 +159,13 @@ module Google
159
159
  execute_or_queue_command(command, &block)
160
160
  end
161
161
 
162
- # Lists all backup runs associated with a given instance and configuration in
163
- # the reverse chronological order of the backup initiation time.
162
+ # Lists all backup runs associated with the project or a given instance and
163
+ # configuration in the reverse chronological order of the backup initiation time.
164
164
  # @param [String] project
165
165
  # Project ID of the project that contains the instance.
166
166
  # @param [String] instance
167
- # Cloud SQL instance ID. This does not include the project ID.
167
+ # Cloud SQL instance ID, or "-" for all instances. This does not include the
168
+ # project ID.
168
169
  # @param [Fixnum] max_results
169
170
  # Maximum number of backup runs per response.
170
171
  # @param [String] page_token
@@ -200,6 +201,80 @@ module Google
200
201
  execute_or_queue_command(command, &block)
201
202
  end
202
203
 
204
+ # Generates a short-lived X509 certificate containing the provided public key
205
+ # and signed by a private key specific to the target instance. Users may use the
206
+ # certificate to authenticate as themselves when connecting to the database.
207
+ # @param [String] project
208
+ # Project ID of the project that contains the instance.
209
+ # @param [String] instance
210
+ # Cloud SQL instance ID. This does not include the project ID.
211
+ # @param [Google::Apis::SqladminV1beta4::GenerateEphemeralCertRequest] generate_ephemeral_cert_request_object
212
+ # @param [String] fields
213
+ # Selector specifying which fields to include in a partial response.
214
+ # @param [String] quota_user
215
+ # Available to use for quota purposes for server-side applications. Can be any
216
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
217
+ # @param [Google::Apis::RequestOptions] options
218
+ # Request-specific options
219
+ #
220
+ # @yield [result, err] Result & error if block supplied
221
+ # @yieldparam result [Google::Apis::SqladminV1beta4::GenerateEphemeralCertResponse] parsed result object
222
+ # @yieldparam err [StandardError] error object if request failed
223
+ #
224
+ # @return [Google::Apis::SqladminV1beta4::GenerateEphemeralCertResponse]
225
+ #
226
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
227
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
228
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
229
+ def generate_connect_ephemeral_cert(project, instance, generate_ephemeral_cert_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
230
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}:generateEphemeralCert', options)
231
+ command.request_representation = Google::Apis::SqladminV1beta4::GenerateEphemeralCertRequest::Representation
232
+ command.request_object = generate_ephemeral_cert_request_object
233
+ command.response_representation = Google::Apis::SqladminV1beta4::GenerateEphemeralCertResponse::Representation
234
+ command.response_class = Google::Apis::SqladminV1beta4::GenerateEphemeralCertResponse
235
+ command.params['project'] = project unless project.nil?
236
+ command.params['instance'] = instance unless instance.nil?
237
+ command.query['fields'] = fields unless fields.nil?
238
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
239
+ execute_or_queue_command(command, &block)
240
+ end
241
+
242
+ # Retrieves connect settings about a Cloud SQL instance.
243
+ # @param [String] project
244
+ # Project ID of the project that contains the instance.
245
+ # @param [String] instance
246
+ # Cloud SQL instance ID. This does not include the project ID.
247
+ # @param [String] read_time
248
+ # Optional. Optional snapshot read timestamp to trade freshness for performance.
249
+ # @param [String] fields
250
+ # Selector specifying which fields to include in a partial response.
251
+ # @param [String] quota_user
252
+ # Available to use for quota purposes for server-side applications. Can be any
253
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
254
+ # @param [Google::Apis::RequestOptions] options
255
+ # Request-specific options
256
+ #
257
+ # @yield [result, err] Result & error if block supplied
258
+ # @yieldparam result [Google::Apis::SqladminV1beta4::ConnectSettings] parsed result object
259
+ # @yieldparam err [StandardError] error object if request failed
260
+ #
261
+ # @return [Google::Apis::SqladminV1beta4::ConnectSettings]
262
+ #
263
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
264
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
265
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
266
+ def get_connect(project, instance, read_time: nil, fields: nil, quota_user: nil, options: nil, &block)
267
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/connectSettings', options)
268
+ command.response_representation = Google::Apis::SqladminV1beta4::ConnectSettings::Representation
269
+ command.response_class = Google::Apis::SqladminV1beta4::ConnectSettings
270
+ command.params['project'] = project unless project.nil?
271
+ command.params['instance'] = instance unless instance.nil?
272
+ command.query['readTime'] = read_time unless read_time.nil?
273
+ command.query['fields'] = fields unless fields.nil?
274
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
275
+ execute_or_queue_command(command, &block)
276
+ end
277
+
203
278
  # Deletes a database from a Cloud SQL instance.
204
279
  # @param [String] project
205
280
  # Project ID of the project that contains the instance.
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.12.0
4
+ version: 0.13.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: 2021-07-05 00:00:00.000000000 Z
11
+ date: 2021-07-19 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/master/generated/google-apis-sqladmin_v1beta4/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.12.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.13.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-sqladmin_v1beta4
63
63
  post_install_message:
64
64
  rdoc_options: []