google-cloud-sql-v1 0.1.0 → 0.4.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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +9 -2
  4. data/lib/google/cloud/sql/v1/cloud_sql_connect_pb.rb +2 -1
  5. data/lib/google/cloud/sql/v1/cloud_sql_connect_services_pb.rb +3 -0
  6. data/lib/google/cloud/sql/v1/cloud_sql_databases_pb.rb +2 -1
  7. data/lib/google/cloud/sql/v1/cloud_sql_instances_pb.rb +3 -1
  8. data/lib/google/cloud/sql/v1/cloud_sql_operations_pb.rb +1 -1
  9. data/lib/google/cloud/sql/v1/cloud_sql_resources_pb.rb +3 -1
  10. data/lib/google/cloud/sql/v1/cloud_sql_ssl_certs_pb.rb +2 -1
  11. data/lib/google/cloud/sql/v1/cloud_sql_users_pb.rb +1 -1
  12. data/lib/google/cloud/sql/v1/sql_backups_service/paths.rb +19 -0
  13. data/lib/google/cloud/sql/v1/sql_connect_service/client.rb +98 -0
  14. data/lib/google/cloud/sql/v1/sql_connect_service/rest/client.rb +88 -0
  15. data/lib/google/cloud/sql/v1/sql_connect_service/rest/service_stub.rb +62 -0
  16. data/lib/google/cloud/sql/v1/sql_databases_service/client.rb +18 -6
  17. data/lib/google/cloud/sql/v1/sql_databases_service/rest/client.rb +18 -6
  18. data/lib/google/cloud/sql/v1/sql_instances_service/client.rb +137 -44
  19. data/lib/google/cloud/sql/v1/sql_instances_service/paths.rb +64 -0
  20. data/lib/google/cloud/sql/v1/sql_instances_service/rest/client.rb +132 -42
  21. data/lib/google/cloud/sql/v1/sql_operations_service/client.rb +9 -3
  22. data/lib/google/cloud/sql/v1/sql_operations_service/rest/client.rb +9 -3
  23. data/lib/google/cloud/sql/v1/sql_users_service/client.rb +23 -5
  24. data/lib/google/cloud/sql/v1/sql_users_service/rest/client.rb +23 -5
  25. data/lib/google/cloud/sql/v1/version.rb +1 -1
  26. data/lib/google/cloud/sql/v1.rb +0 -6
  27. data/proto_docs/google/api/routing.rb +463 -0
  28. data/proto_docs/google/cloud/sql/v1/cloud_sql_connect.rb +16 -0
  29. data/proto_docs/google/cloud/sql/v1/cloud_sql_databases.rb +15 -0
  30. data/proto_docs/google/cloud/sql/v1/cloud_sql_instances.rb +174 -1
  31. data/proto_docs/google/cloud/sql/v1/cloud_sql_operations.rb +9 -0
  32. data/proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb +126 -14
  33. data/proto_docs/google/cloud/sql/v1/cloud_sql_users.rb +32 -0
  34. data/proto_docs/google/protobuf/timestamp.rb +7 -6
  35. metadata +6 -5
@@ -212,7 +212,7 @@ module Google
212
212
  # @param options [::Gapic::CallOptions, ::Hash]
213
213
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
214
214
  #
215
- # @overload get(operation: nil, project: nil)
215
+ # @overload get(operation: nil, project: nil, location: nil)
216
216
  # Pass arguments to `get` via keyword arguments. Note that at
217
217
  # least one keyword argument is required. To specify no parameters, or to keep all
218
218
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -221,6 +221,8 @@ module Google
221
221
  # Required. Instance operation ID.
222
222
  # @param project [::String]
223
223
  # Required. Project ID of the project that contains the instance.
224
+ # @param location [::String]
225
+ # Optional. Region of the Cloud SQL instance.
224
226
  #
225
227
  # @yield [response, operation] Access the result along with the RPC operation
226
228
  # @yieldparam response [::Google::Cloud::Sql::V1::Operation]
@@ -303,7 +305,7 @@ module Google
303
305
  # @param options [::Gapic::CallOptions, ::Hash]
304
306
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
305
307
  #
306
- # @overload list(instance: nil, max_results: nil, page_token: nil, project: nil)
308
+ # @overload list(instance: nil, max_results: nil, page_token: nil, project: nil, location: nil)
307
309
  # Pass arguments to `list` via keyword arguments. Note that at
308
310
  # least one keyword argument is required. To specify no parameters, or to keep all
309
311
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -317,6 +319,8 @@ module Google
317
319
  # results to view.
318
320
  # @param project [::String]
319
321
  # Project ID of the project that contains the instance.
322
+ # @param location [::String]
323
+ # Optional. Region of the Cloud SQL instance.
320
324
  #
321
325
  # @yield [response, operation] Access the result along with the RPC operation
322
326
  # @yieldparam response [::Google::Cloud::Sql::V1::OperationsListResponse]
@@ -395,7 +399,7 @@ module Google
395
399
  # @param options [::Gapic::CallOptions, ::Hash]
396
400
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
397
401
  #
398
- # @overload cancel(operation: nil, project: nil)
402
+ # @overload cancel(operation: nil, project: nil, location: nil)
399
403
  # Pass arguments to `cancel` via keyword arguments. Note that at
400
404
  # least one keyword argument is required. To specify no parameters, or to keep all
401
405
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -404,6 +408,8 @@ module Google
404
408
  # Instance operation ID.
405
409
  # @param project [::String]
406
410
  # Project ID of the project that contains the instance.
411
+ # @param location [::String]
412
+ # Optional. Region of the Cloud SQL instance.
407
413
  #
408
414
  # @yield [response, operation] Access the result along with the RPC operation
409
415
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -205,7 +205,7 @@ module Google
205
205
  # @param options [::Gapic::CallOptions, ::Hash]
206
206
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
207
207
  #
208
- # @overload get(operation: nil, project: nil)
208
+ # @overload get(operation: nil, project: nil, location: nil)
209
209
  # Pass arguments to `get` via keyword arguments. Note that at
210
210
  # least one keyword argument is required. To specify no parameters, or to keep all
211
211
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -214,6 +214,8 @@ module Google
214
214
  # Required. Instance operation ID.
215
215
  # @param project [::String]
216
216
  # Required. Project ID of the project that contains the instance.
217
+ # @param location [::String]
218
+ # Optional. Region of the Cloud SQL instance.
217
219
  # @yield [result, operation] Access the result along with the TransportOperation object
218
220
  # @yieldparam result [::Google::Cloud::Sql::V1::Operation]
219
221
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -286,7 +288,7 @@ module Google
286
288
  # @param options [::Gapic::CallOptions, ::Hash]
287
289
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
288
290
  #
289
- # @overload list(instance: nil, max_results: nil, page_token: nil, project: nil)
291
+ # @overload list(instance: nil, max_results: nil, page_token: nil, project: nil, location: nil)
290
292
  # Pass arguments to `list` via keyword arguments. Note that at
291
293
  # least one keyword argument is required. To specify no parameters, or to keep all
292
294
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -300,6 +302,8 @@ module Google
300
302
  # results to view.
301
303
  # @param project [::String]
302
304
  # Project ID of the project that contains the instance.
305
+ # @param location [::String]
306
+ # Optional. Region of the Cloud SQL instance.
303
307
  # @yield [result, operation] Access the result along with the TransportOperation object
304
308
  # @yieldparam result [::Google::Cloud::Sql::V1::OperationsListResponse]
305
309
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -371,7 +375,7 @@ module Google
371
375
  # @param options [::Gapic::CallOptions, ::Hash]
372
376
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
373
377
  #
374
- # @overload cancel(operation: nil, project: nil)
378
+ # @overload cancel(operation: nil, project: nil, location: nil)
375
379
  # Pass arguments to `cancel` via keyword arguments. Note that at
376
380
  # least one keyword argument is required. To specify no parameters, or to keep all
377
381
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -380,6 +384,8 @@ module Google
380
384
  # Instance operation ID.
381
385
  # @param project [::String]
382
386
  # Project ID of the project that contains the instance.
387
+ # @param location [::String]
388
+ # Optional. Region of the Cloud SQL instance.
383
389
  # @yield [result, operation] Access the result along with the TransportOperation object
384
390
  # @yieldparam result [::Google::Protobuf::Empty]
385
391
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -212,7 +212,7 @@ module Google
212
212
  # @param options [::Gapic::CallOptions, ::Hash]
213
213
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
214
214
  #
215
- # @overload delete(host: nil, instance: nil, name: nil, project: nil)
215
+ # @overload delete(host: nil, instance: nil, name: nil, project: nil, location: nil)
216
216
  # Pass arguments to `delete` via keyword arguments. Note that at
217
217
  # least one keyword argument is required. To specify no parameters, or to keep all
218
218
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -225,6 +225,8 @@ module Google
225
225
  # Name of the user in the instance.
226
226
  # @param project [::String]
227
227
  # Project ID of the project that contains the instance.
228
+ # @param location [::String]
229
+ # Optional. Region of the Cloud SQL instance.
228
230
  #
229
231
  # @yield [response, operation] Access the result along with the RPC operation
230
232
  # @yieldparam response [::Google::Cloud::Sql::V1::Operation]
@@ -306,7 +308,7 @@ module Google
306
308
  # @param options [::Gapic::CallOptions, ::Hash]
307
309
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
308
310
  #
309
- # @overload get(instance: nil, name: nil, project: nil, host: nil)
311
+ # @overload get(instance: nil, name: nil, project: nil, host: nil, location: nil)
310
312
  # Pass arguments to `get` via keyword arguments. Note that at
311
313
  # least one keyword argument is required. To specify no parameters, or to keep all
312
314
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -319,6 +321,8 @@ module Google
319
321
  # Project ID of the project that contains the instance.
320
322
  # @param host [::String]
321
323
  # Host of a user of the instance.
324
+ # @param location [::String]
325
+ # Optional. Region of the Cloud SQL instance.
322
326
  #
323
327
  # @yield [response, operation] Access the result along with the RPC operation
324
328
  # @yieldparam response [::Google::Cloud::Sql::V1::User]
@@ -403,7 +407,7 @@ module Google
403
407
  # @param options [::Gapic::CallOptions, ::Hash]
404
408
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
405
409
  #
406
- # @overload insert(instance: nil, project: nil, body: nil)
410
+ # @overload insert(instance: nil, project: nil, body: nil, location: nil)
407
411
  # Pass arguments to `insert` via keyword arguments. Note that at
408
412
  # least one keyword argument is required. To specify no parameters, or to keep all
409
413
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -413,6 +417,8 @@ module Google
413
417
  # @param project [::String]
414
418
  # Project ID of the project that contains the instance.
415
419
  # @param body [::Google::Cloud::Sql::V1::User, ::Hash]
420
+ # @param location [::String]
421
+ # Optional. Region of the Cloud SQL instance.
416
422
  #
417
423
  # @yield [response, operation] Access the result along with the RPC operation
418
424
  # @yieldparam response [::Google::Cloud::Sql::V1::Operation]
@@ -494,7 +500,7 @@ module Google
494
500
  # @param options [::Gapic::CallOptions, ::Hash]
495
501
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
496
502
  #
497
- # @overload list(instance: nil, project: nil)
503
+ # @overload list(instance: nil, project: nil, location: nil)
498
504
  # Pass arguments to `list` via keyword arguments. Note that at
499
505
  # least one keyword argument is required. To specify no parameters, or to keep all
500
506
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -503,6 +509,8 @@ module Google
503
509
  # Database instance ID. This does not include the project ID.
504
510
  # @param project [::String]
505
511
  # Project ID of the project that contains the instance.
512
+ # @param location [::String]
513
+ # Optional. Region of the Cloud SQL instance.
506
514
  #
507
515
  # @yield [response, operation] Access the result along with the RPC operation
508
516
  # @yieldparam response [::Google::Cloud::Sql::V1::UsersListResponse]
@@ -584,7 +592,7 @@ module Google
584
592
  # @param options [::Gapic::CallOptions, ::Hash]
585
593
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
586
594
  #
587
- # @overload update(host: nil, instance: nil, name: nil, project: nil, database_roles: nil, revoke_existing_roles: nil, body: nil)
595
+ # @overload update(host: nil, instance: nil, name: nil, project: nil, database_roles: nil, revoke_existing_roles: nil, server_roles: nil, revoke_existing_server_roles: nil, body: nil, location: nil)
588
596
  # Pass arguments to `update` via keyword arguments. Note that at
589
597
  # least one keyword argument is required. To specify no parameters, or to keep all
590
598
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -604,7 +612,17 @@ module Google
604
612
  # Optional. Specifies whether to revoke existing roles that are not present
605
613
  # in the `database_roles` field. If `false` or unset, the database roles
606
614
  # specified in `database_roles` are added to the user's existing roles.
615
+ # @param server_roles [::Array<::String>]
616
+ # Optional. The server roles to grant to the SQL Server login. Existing
617
+ # server roles will not be revoked if revoke_existing_roles is false.
618
+ # body.server_roles will be ignored for update request.
619
+ # @param revoke_existing_server_roles [::Boolean]
620
+ # Optional. Specifies whether to revoke existing roles that are not present
621
+ # in the `server_roles` field. If `false` or unset, the server roles
622
+ # specified in `server_roles` are added to the user's existing server roles.
607
623
  # @param body [::Google::Cloud::Sql::V1::User, ::Hash]
624
+ # @param location [::String]
625
+ # Optional. Region of the Cloud SQL instance.
608
626
  #
609
627
  # @yield [response, operation] Access the result along with the RPC operation
610
628
  # @yieldparam response [::Google::Cloud::Sql::V1::Operation]
@@ -205,7 +205,7 @@ module Google
205
205
  # @param options [::Gapic::CallOptions, ::Hash]
206
206
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
207
207
  #
208
- # @overload delete(host: nil, instance: nil, name: nil, project: nil)
208
+ # @overload delete(host: nil, instance: nil, name: nil, project: nil, location: nil)
209
209
  # Pass arguments to `delete` via keyword arguments. Note that at
210
210
  # least one keyword argument is required. To specify no parameters, or to keep all
211
211
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -218,6 +218,8 @@ module Google
218
218
  # Name of the user in the instance.
219
219
  # @param project [::String]
220
220
  # Project ID of the project that contains the instance.
221
+ # @param location [::String]
222
+ # Optional. Region of the Cloud SQL instance.
221
223
  # @yield [result, operation] Access the result along with the TransportOperation object
222
224
  # @yieldparam result [::Google::Cloud::Sql::V1::Operation]
223
225
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -289,7 +291,7 @@ module Google
289
291
  # @param options [::Gapic::CallOptions, ::Hash]
290
292
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
291
293
  #
292
- # @overload get(instance: nil, name: nil, project: nil, host: nil)
294
+ # @overload get(instance: nil, name: nil, project: nil, host: nil, location: nil)
293
295
  # Pass arguments to `get` via keyword arguments. Note that at
294
296
  # least one keyword argument is required. To specify no parameters, or to keep all
295
297
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -302,6 +304,8 @@ module Google
302
304
  # Project ID of the project that contains the instance.
303
305
  # @param host [::String]
304
306
  # Host of a user of the instance.
307
+ # @param location [::String]
308
+ # Optional. Region of the Cloud SQL instance.
305
309
  # @yield [result, operation] Access the result along with the TransportOperation object
306
310
  # @yieldparam result [::Google::Cloud::Sql::V1::User]
307
311
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -373,7 +377,7 @@ module Google
373
377
  # @param options [::Gapic::CallOptions, ::Hash]
374
378
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
375
379
  #
376
- # @overload insert(instance: nil, project: nil, body: nil)
380
+ # @overload insert(instance: nil, project: nil, body: nil, location: nil)
377
381
  # Pass arguments to `insert` via keyword arguments. Note that at
378
382
  # least one keyword argument is required. To specify no parameters, or to keep all
379
383
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -383,6 +387,8 @@ module Google
383
387
  # @param project [::String]
384
388
  # Project ID of the project that contains the instance.
385
389
  # @param body [::Google::Cloud::Sql::V1::User, ::Hash]
390
+ # @param location [::String]
391
+ # Optional. Region of the Cloud SQL instance.
386
392
  # @yield [result, operation] Access the result along with the TransportOperation object
387
393
  # @yieldparam result [::Google::Cloud::Sql::V1::Operation]
388
394
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -454,7 +460,7 @@ module Google
454
460
  # @param options [::Gapic::CallOptions, ::Hash]
455
461
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
456
462
  #
457
- # @overload list(instance: nil, project: nil)
463
+ # @overload list(instance: nil, project: nil, location: nil)
458
464
  # Pass arguments to `list` via keyword arguments. Note that at
459
465
  # least one keyword argument is required. To specify no parameters, or to keep all
460
466
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -463,6 +469,8 @@ module Google
463
469
  # Database instance ID. This does not include the project ID.
464
470
  # @param project [::String]
465
471
  # Project ID of the project that contains the instance.
472
+ # @param location [::String]
473
+ # Optional. Region of the Cloud SQL instance.
466
474
  # @yield [result, operation] Access the result along with the TransportOperation object
467
475
  # @yieldparam result [::Google::Cloud::Sql::V1::UsersListResponse]
468
476
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -534,7 +542,7 @@ module Google
534
542
  # @param options [::Gapic::CallOptions, ::Hash]
535
543
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
536
544
  #
537
- # @overload update(host: nil, instance: nil, name: nil, project: nil, database_roles: nil, revoke_existing_roles: nil, body: nil)
545
+ # @overload update(host: nil, instance: nil, name: nil, project: nil, database_roles: nil, revoke_existing_roles: nil, server_roles: nil, revoke_existing_server_roles: nil, body: nil, location: nil)
538
546
  # Pass arguments to `update` via keyword arguments. Note that at
539
547
  # least one keyword argument is required. To specify no parameters, or to keep all
540
548
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -554,7 +562,17 @@ module Google
554
562
  # Optional. Specifies whether to revoke existing roles that are not present
555
563
  # in the `database_roles` field. If `false` or unset, the database roles
556
564
  # specified in `database_roles` are added to the user's existing roles.
565
+ # @param server_roles [::Array<::String>]
566
+ # Optional. The server roles to grant to the SQL Server login. Existing
567
+ # server roles will not be revoked if revoke_existing_roles is false.
568
+ # body.server_roles will be ignored for update request.
569
+ # @param revoke_existing_server_roles [::Boolean]
570
+ # Optional. Specifies whether to revoke existing roles that are not present
571
+ # in the `server_roles` field. If `false` or unset, the server roles
572
+ # specified in `server_roles` are added to the user's existing server roles.
557
573
  # @param body [::Google::Cloud::Sql::V1::User, ::Hash]
574
+ # @param location [::String]
575
+ # Optional. Region of the Cloud SQL instance.
558
576
  # @yield [result, operation] Access the result along with the TransportOperation object
559
577
  # @yieldparam result [::Google::Cloud::Sql::V1::Operation]
560
578
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Sql
23
23
  module V1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.4.0"
25
25
  end
26
26
  end
27
27
  end
@@ -16,19 +16,13 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- require "google/cloud/sql/v1/sql_available_database_versions_service"
20
19
  require "google/cloud/sql/v1/sql_backup_runs_service"
21
20
  require "google/cloud/sql/v1/sql_instances_service"
22
21
  require "google/cloud/sql/v1/sql_backups_service"
23
22
  require "google/cloud/sql/v1/sql_connect_service"
24
23
  require "google/cloud/sql/v1/sql_databases_service"
25
- require "google/cloud/sql/v1/sql_events_service"
26
- require "google/cloud/sql/v1/sql_feature_eligibility_service"
27
24
  require "google/cloud/sql/v1/sql_flags_service"
28
- require "google/cloud/sql/v1/sql_iam_policies_service"
29
- require "google/cloud/sql/v1/sql_instance_names_service"
30
25
  require "google/cloud/sql/v1/sql_operations_service"
31
- require "google/cloud/sql/v1/sql_regions_service"
32
26
  require "google/cloud/sql/v1/sql_ssl_certs_service"
33
27
  require "google/cloud/sql/v1/sql_tiers_service"
34
28
  require "google/cloud/sql/v1/sql_users_service"