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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +4 -4
- data/README.md +9 -2
- data/lib/google/cloud/sql/v1/cloud_sql_connect_pb.rb +2 -1
- data/lib/google/cloud/sql/v1/cloud_sql_connect_services_pb.rb +3 -0
- data/lib/google/cloud/sql/v1/cloud_sql_databases_pb.rb +2 -1
- data/lib/google/cloud/sql/v1/cloud_sql_instances_pb.rb +3 -1
- data/lib/google/cloud/sql/v1/cloud_sql_operations_pb.rb +1 -1
- data/lib/google/cloud/sql/v1/cloud_sql_resources_pb.rb +3 -1
- data/lib/google/cloud/sql/v1/cloud_sql_ssl_certs_pb.rb +2 -1
- data/lib/google/cloud/sql/v1/cloud_sql_users_pb.rb +1 -1
- data/lib/google/cloud/sql/v1/sql_backups_service/paths.rb +19 -0
- data/lib/google/cloud/sql/v1/sql_connect_service/client.rb +98 -0
- data/lib/google/cloud/sql/v1/sql_connect_service/rest/client.rb +88 -0
- data/lib/google/cloud/sql/v1/sql_connect_service/rest/service_stub.rb +62 -0
- data/lib/google/cloud/sql/v1/sql_databases_service/client.rb +18 -6
- data/lib/google/cloud/sql/v1/sql_databases_service/rest/client.rb +18 -6
- data/lib/google/cloud/sql/v1/sql_instances_service/client.rb +137 -44
- data/lib/google/cloud/sql/v1/sql_instances_service/paths.rb +64 -0
- data/lib/google/cloud/sql/v1/sql_instances_service/rest/client.rb +132 -42
- data/lib/google/cloud/sql/v1/sql_operations_service/client.rb +9 -3
- data/lib/google/cloud/sql/v1/sql_operations_service/rest/client.rb +9 -3
- data/lib/google/cloud/sql/v1/sql_users_service/client.rb +23 -5
- data/lib/google/cloud/sql/v1/sql_users_service/rest/client.rb +23 -5
- data/lib/google/cloud/sql/v1/version.rb +1 -1
- data/lib/google/cloud/sql/v1.rb +0 -6
- data/proto_docs/google/api/routing.rb +463 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_connect.rb +16 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_databases.rb +15 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_instances.rb +174 -1
- data/proto_docs/google/cloud/sql/v1/cloud_sql_operations.rb +9 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb +126 -14
- data/proto_docs/google/cloud/sql/v1/cloud_sql_users.rb +32 -0
- data/proto_docs/google/protobuf/timestamp.rb +7 -6
- 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 delete(database: nil, instance: nil, project: nil)
|
|
215
|
+
# @overload delete(database: nil, instance: 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).
|
|
@@ -223,6 +223,8 @@ module Google
|
|
|
223
223
|
# Database instance ID. This does not include the project ID.
|
|
224
224
|
# @param project [::String]
|
|
225
225
|
# Project ID of the project that contains the instance.
|
|
226
|
+
# @param location [::String]
|
|
227
|
+
# Optional. Region of the Cloud SQL instance.
|
|
226
228
|
#
|
|
227
229
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
228
230
|
# @yieldparam response [::Google::Cloud::Sql::V1::Operation]
|
|
@@ -308,7 +310,7 @@ module Google
|
|
|
308
310
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
309
311
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
310
312
|
#
|
|
311
|
-
# @overload get(database: nil, instance: nil, project: nil)
|
|
313
|
+
# @overload get(database: nil, instance: nil, project: nil, location: nil)
|
|
312
314
|
# Pass arguments to `get` via keyword arguments. Note that at
|
|
313
315
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
314
316
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -319,6 +321,8 @@ module Google
|
|
|
319
321
|
# Database instance ID. This does not include the project ID.
|
|
320
322
|
# @param project [::String]
|
|
321
323
|
# Project ID of the project that contains 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::Database]
|
|
@@ -406,7 +410,7 @@ module Google
|
|
|
406
410
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
407
411
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
408
412
|
#
|
|
409
|
-
# @overload insert(instance: nil, project: nil, body: nil)
|
|
413
|
+
# @overload insert(instance: nil, project: nil, body: nil, location: nil)
|
|
410
414
|
# Pass arguments to `insert` via keyword arguments. Note that at
|
|
411
415
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
412
416
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -416,6 +420,8 @@ module Google
|
|
|
416
420
|
# @param project [::String]
|
|
417
421
|
# Project ID of the project that contains the instance.
|
|
418
422
|
# @param body [::Google::Cloud::Sql::V1::Database, ::Hash]
|
|
423
|
+
# @param location [::String]
|
|
424
|
+
# Optional. Region of the Cloud SQL instance.
|
|
419
425
|
#
|
|
420
426
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
421
427
|
# @yieldparam response [::Google::Cloud::Sql::V1::Operation]
|
|
@@ -497,7 +503,7 @@ module Google
|
|
|
497
503
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
498
504
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
499
505
|
#
|
|
500
|
-
# @overload list(instance: nil, project: nil)
|
|
506
|
+
# @overload list(instance: nil, project: nil, location: nil)
|
|
501
507
|
# Pass arguments to `list` via keyword arguments. Note that at
|
|
502
508
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
503
509
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -506,6 +512,8 @@ module Google
|
|
|
506
512
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
507
513
|
# @param project [::String]
|
|
508
514
|
# Project ID of the project that contains the instance.
|
|
515
|
+
# @param location [::String]
|
|
516
|
+
# Optional. Region of the Cloud SQL instance.
|
|
509
517
|
#
|
|
510
518
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
511
519
|
# @yieldparam response [::Google::Cloud::Sql::V1::DatabasesListResponse]
|
|
@@ -588,7 +596,7 @@ module Google
|
|
|
588
596
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
589
597
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
590
598
|
#
|
|
591
|
-
# @overload patch(database: nil, instance: nil, project: nil, body: nil)
|
|
599
|
+
# @overload patch(database: nil, instance: nil, project: nil, body: nil, location: nil)
|
|
592
600
|
# Pass arguments to `patch` via keyword arguments. Note that at
|
|
593
601
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
594
602
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -600,6 +608,8 @@ module Google
|
|
|
600
608
|
# @param project [::String]
|
|
601
609
|
# Project ID of the project that contains the instance.
|
|
602
610
|
# @param body [::Google::Cloud::Sql::V1::Database, ::Hash]
|
|
611
|
+
# @param location [::String]
|
|
612
|
+
# Optional. Region of the Cloud SQL instance.
|
|
603
613
|
#
|
|
604
614
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
605
615
|
# @yieldparam response [::Google::Cloud::Sql::V1::Operation]
|
|
@@ -685,7 +695,7 @@ module Google
|
|
|
685
695
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
686
696
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
687
697
|
#
|
|
688
|
-
# @overload update(database: nil, instance: nil, project: nil, body: nil)
|
|
698
|
+
# @overload update(database: nil, instance: nil, project: nil, body: nil, location: nil)
|
|
689
699
|
# Pass arguments to `update` via keyword arguments. Note that at
|
|
690
700
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
691
701
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -697,6 +707,8 @@ module Google
|
|
|
697
707
|
# @param project [::String]
|
|
698
708
|
# Project ID of the project that contains the instance.
|
|
699
709
|
# @param body [::Google::Cloud::Sql::V1::Database, ::Hash]
|
|
710
|
+
# @param location [::String]
|
|
711
|
+
# Optional. Region of the Cloud SQL instance.
|
|
700
712
|
#
|
|
701
713
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
702
714
|
# @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(database: nil, instance: nil, project: nil)
|
|
208
|
+
# @overload delete(database: nil, instance: 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).
|
|
@@ -216,6 +216,8 @@ module Google
|
|
|
216
216
|
# Database instance ID. This does not include the project ID.
|
|
217
217
|
# @param project [::String]
|
|
218
218
|
# Project ID of the project that contains the instance.
|
|
219
|
+
# @param location [::String]
|
|
220
|
+
# Optional. Region of the Cloud SQL instance.
|
|
219
221
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
220
222
|
# @yieldparam result [::Google::Cloud::Sql::V1::Operation]
|
|
221
223
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -288,7 +290,7 @@ module Google
|
|
|
288
290
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
289
291
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
290
292
|
#
|
|
291
|
-
# @overload get(database: nil, instance: nil, project: nil)
|
|
293
|
+
# @overload get(database: nil, instance: nil, project: nil, location: nil)
|
|
292
294
|
# Pass arguments to `get` via keyword arguments. Note that at
|
|
293
295
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
294
296
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -299,6 +301,8 @@ module Google
|
|
|
299
301
|
# Database instance ID. This does not include the project ID.
|
|
300
302
|
# @param project [::String]
|
|
301
303
|
# Project ID of the project that contains the instance.
|
|
304
|
+
# @param location [::String]
|
|
305
|
+
# Optional. Region of the Cloud SQL instance.
|
|
302
306
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
303
307
|
# @yieldparam result [::Google::Cloud::Sql::V1::Database]
|
|
304
308
|
# @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::Database, ::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
|
# Cloud SQL 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::DatabasesListResponse]
|
|
468
476
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -535,7 +543,7 @@ module Google
|
|
|
535
543
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
536
544
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
537
545
|
#
|
|
538
|
-
# @overload patch(database: nil, instance: nil, project: nil, body: nil)
|
|
546
|
+
# @overload patch(database: nil, instance: nil, project: nil, body: nil, location: nil)
|
|
539
547
|
# Pass arguments to `patch` via keyword arguments. Note that at
|
|
540
548
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
541
549
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -547,6 +555,8 @@ module Google
|
|
|
547
555
|
# @param project [::String]
|
|
548
556
|
# Project ID of the project that contains the instance.
|
|
549
557
|
# @param body [::Google::Cloud::Sql::V1::Database, ::Hash]
|
|
558
|
+
# @param location [::String]
|
|
559
|
+
# Optional. Region of the Cloud SQL instance.
|
|
550
560
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
551
561
|
# @yieldparam result [::Google::Cloud::Sql::V1::Operation]
|
|
552
562
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -619,7 +629,7 @@ module Google
|
|
|
619
629
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
620
630
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
621
631
|
#
|
|
622
|
-
# @overload update(database: nil, instance: nil, project: nil, body: nil)
|
|
632
|
+
# @overload update(database: nil, instance: nil, project: nil, body: nil, location: nil)
|
|
623
633
|
# Pass arguments to `update` via keyword arguments. Note that at
|
|
624
634
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
625
635
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -631,6 +641,8 @@ module Google
|
|
|
631
641
|
# @param project [::String]
|
|
632
642
|
# Project ID of the project that contains the instance.
|
|
633
643
|
# @param body [::Google::Cloud::Sql::V1::Database, ::Hash]
|
|
644
|
+
# @param location [::String]
|
|
645
|
+
# Optional. Region of the Cloud SQL instance.
|
|
634
646
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
635
647
|
# @yieldparam result [::Google::Cloud::Sql::V1::Operation]
|
|
636
648
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|