google-cloud-oracle_database-v1 1.4.0 → 1.5.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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/oracle_database/v1/oracle_database/client.rb +5075 -2586
  3. data/lib/google/cloud/oracle_database/v1/oracle_database/paths.rb +57 -0
  4. data/lib/google/cloud/oracle_database/v1/oracle_database/rest/client.rb +4887 -2552
  5. data/lib/google/cloud/oracle_database/v1/oracle_database/rest/service_stub.rb +1377 -18
  6. data/lib/google/cloud/oracle_database/v1/version.rb +1 -1
  7. data/lib/google/cloud/oracledatabase/v1/autonomous_database_pb.rb +1 -1
  8. data/lib/google/cloud/oracledatabase/v1/common_pb.rb +2 -1
  9. data/lib/google/cloud/oracledatabase/v1/database_connection_pb.rb +36 -0
  10. data/lib/google/cloud/oracledatabase/v1/database_pb.rb +1 -1
  11. data/lib/google/cloud/oracledatabase/v1/db_system_compute_performance_pb.rb +28 -0
  12. data/lib/google/cloud/oracledatabase/v1/db_system_pb.rb +3 -1
  13. data/lib/google/cloud/oracledatabase/v1/exadata_infra_pb.rb +1 -1
  14. data/lib/google/cloud/oracledatabase/v1/exadb_vm_cluster_pb.rb +1 -1
  15. data/lib/google/cloud/oracledatabase/v1/exascale_db_storage_vault_pb.rb +3 -1
  16. data/lib/google/cloud/oracledatabase/v1/execute_sql_pb.rb +34 -0
  17. data/lib/google/cloud/oracledatabase/v1/flex_component_pb.rb +29 -0
  18. data/lib/google/cloud/oracledatabase/v1/goldengate_connection_assignment_pb.rb +3 -1
  19. data/lib/google/cloud/oracledatabase/v1/goldengate_connection_pb.rb +3 -1
  20. data/lib/google/cloud/oracledatabase/v1/goldengate_deployment_pb.rb +3 -1
  21. data/lib/google/cloud/oracledatabase/v1/odb_network_pb.rb +5 -1
  22. data/lib/google/cloud/oracledatabase/v1/odb_subnet_pb.rb +3 -1
  23. data/lib/google/cloud/oracledatabase/v1/oracledatabase_pb.rb +11 -1
  24. data/lib/google/cloud/oracledatabase/v1/oracledatabase_services_pb.rb +46 -0
  25. data/lib/google/cloud/oracledatabase/v1/vm_cluster_pb.rb +1 -1
  26. data/proto_docs/google/cloud/oracledatabase/v1/autonomous_database.rb +6 -3
  27. data/proto_docs/google/cloud/oracledatabase/v1/common.rb +16 -0
  28. data/proto_docs/google/cloud/oracledatabase/v1/database.rb +6 -6
  29. data/proto_docs/google/cloud/oracledatabase/v1/database_connection.rb +255 -0
  30. data/proto_docs/google/cloud/oracledatabase/v1/db_system.rb +42 -10
  31. data/proto_docs/google/cloud/oracledatabase/v1/db_system_compute_performance.rb +100 -0
  32. data/proto_docs/google/cloud/oracledatabase/v1/exadata_infra.rb +5 -5
  33. data/proto_docs/google/cloud/oracledatabase/v1/exadb_vm_cluster.rb +7 -0
  34. data/proto_docs/google/cloud/oracledatabase/v1/exascale_db_storage_vault.rb +38 -7
  35. data/proto_docs/google/cloud/oracledatabase/v1/execute_sql.rb +167 -0
  36. data/proto_docs/google/cloud/oracledatabase/v1/flex_component.rb +135 -0
  37. data/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection.rb +37 -6
  38. data/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_assignment.rb +35 -2
  39. data/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment.rb +40 -8
  40. data/proto_docs/google/cloud/oracledatabase/v1/odb_network.rb +79 -2
  41. data/proto_docs/google/cloud/oracledatabase/v1/odb_subnet.rb +33 -2
  42. data/proto_docs/google/cloud/oracledatabase/v1/oracledatabase.rb +126 -9
  43. data/proto_docs/google/cloud/oracledatabase/v1/vm_cluster.rb +23 -15
  44. data/proto_docs/google/protobuf/struct.rb +108 -0
  45. metadata +10 -1
@@ -193,6 +193,46 @@ module Google
193
193
  end
194
194
  end
195
195
 
196
+ ##
197
+ # Baseline implementation for the update_cloud_exadata_infrastructure REST call
198
+ #
199
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateCloudExadataInfrastructureRequest]
200
+ # A request object representing the call parameters. Required.
201
+ # @param options [::Gapic::CallOptions]
202
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
203
+ #
204
+ # @yield [result, operation] Access the result along with the TransportOperation object
205
+ # @yieldparam result [::Google::Longrunning::Operation]
206
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
207
+ #
208
+ # @return [::Google::Longrunning::Operation]
209
+ # A result object deserialized from the server's reply
210
+ def update_cloud_exadata_infrastructure request_pb, options = nil
211
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
212
+
213
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_cloud_exadata_infrastructure_request request_pb
214
+ query_string_params = if query_string_params.any?
215
+ query_string_params.to_h { |p| p.split "=", 2 }
216
+ else
217
+ {}
218
+ end
219
+
220
+ response = @client_stub.make_http_request(
221
+ verb,
222
+ uri: uri,
223
+ body: body || "",
224
+ params: query_string_params,
225
+ method_name: "update_cloud_exadata_infrastructure",
226
+ options: options
227
+ )
228
+ operation = ::Gapic::Rest::TransportOperation.new response
229
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
230
+ catch :response do
231
+ yield result, operation if block_given?
232
+ result
233
+ end
234
+ end
235
+
196
236
  ##
197
237
  # Baseline implementation for the delete_cloud_exadata_infrastructure REST call
198
238
  #
@@ -393,6 +433,46 @@ module Google
393
433
  end
394
434
  end
395
435
 
436
+ ##
437
+ # Baseline implementation for the update_cloud_vm_cluster REST call
438
+ #
439
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateCloudVmClusterRequest]
440
+ # A request object representing the call parameters. Required.
441
+ # @param options [::Gapic::CallOptions]
442
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
443
+ #
444
+ # @yield [result, operation] Access the result along with the TransportOperation object
445
+ # @yieldparam result [::Google::Longrunning::Operation]
446
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
447
+ #
448
+ # @return [::Google::Longrunning::Operation]
449
+ # A result object deserialized from the server's reply
450
+ def update_cloud_vm_cluster request_pb, options = nil
451
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
452
+
453
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_cloud_vm_cluster_request request_pb
454
+ query_string_params = if query_string_params.any?
455
+ query_string_params.to_h { |p| p.split "=", 2 }
456
+ else
457
+ {}
458
+ end
459
+
460
+ response = @client_stub.make_http_request(
461
+ verb,
462
+ uri: uri,
463
+ body: body || "",
464
+ params: query_string_params,
465
+ method_name: "update_cloud_vm_cluster",
466
+ options: options
467
+ )
468
+ operation = ::Gapic::Rest::TransportOperation.new response
469
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
470
+ catch :response do
471
+ yield result, operation if block_given?
472
+ result
473
+ end
474
+ end
475
+
396
476
  ##
397
477
  # Baseline implementation for the delete_cloud_vm_cluster REST call
398
478
  #
@@ -433,6 +513,166 @@ module Google
433
513
  end
434
514
  end
435
515
 
516
+ ##
517
+ # Baseline implementation for the enable_cloud_vm_cluster_identity_connector REST call
518
+ #
519
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::EnableCloudVmClusterIdentityConnectorRequest]
520
+ # A request object representing the call parameters. Required.
521
+ # @param options [::Gapic::CallOptions]
522
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
523
+ #
524
+ # @yield [result, operation] Access the result along with the TransportOperation object
525
+ # @yieldparam result [::Google::Longrunning::Operation]
526
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
527
+ #
528
+ # @return [::Google::Longrunning::Operation]
529
+ # A result object deserialized from the server's reply
530
+ def enable_cloud_vm_cluster_identity_connector request_pb, options = nil
531
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
532
+
533
+ verb, uri, query_string_params, body = ServiceStub.transcode_enable_cloud_vm_cluster_identity_connector_request request_pb
534
+ query_string_params = if query_string_params.any?
535
+ query_string_params.to_h { |p| p.split "=", 2 }
536
+ else
537
+ {}
538
+ end
539
+
540
+ response = @client_stub.make_http_request(
541
+ verb,
542
+ uri: uri,
543
+ body: body || "",
544
+ params: query_string_params,
545
+ method_name: "enable_cloud_vm_cluster_identity_connector",
546
+ options: options
547
+ )
548
+ operation = ::Gapic::Rest::TransportOperation.new response
549
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
550
+ catch :response do
551
+ yield result, operation if block_given?
552
+ result
553
+ end
554
+ end
555
+
556
+ ##
557
+ # Baseline implementation for the disable_cloud_vm_cluster_identity_connector REST call
558
+ #
559
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::DisableCloudVmClusterIdentityConnectorRequest]
560
+ # A request object representing the call parameters. Required.
561
+ # @param options [::Gapic::CallOptions]
562
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
563
+ #
564
+ # @yield [result, operation] Access the result along with the TransportOperation object
565
+ # @yieldparam result [::Google::Longrunning::Operation]
566
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
567
+ #
568
+ # @return [::Google::Longrunning::Operation]
569
+ # A result object deserialized from the server's reply
570
+ def disable_cloud_vm_cluster_identity_connector request_pb, options = nil
571
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
572
+
573
+ verb, uri, query_string_params, body = ServiceStub.transcode_disable_cloud_vm_cluster_identity_connector_request request_pb
574
+ query_string_params = if query_string_params.any?
575
+ query_string_params.to_h { |p| p.split "=", 2 }
576
+ else
577
+ {}
578
+ end
579
+
580
+ response = @client_stub.make_http_request(
581
+ verb,
582
+ uri: uri,
583
+ body: body || "",
584
+ params: query_string_params,
585
+ method_name: "disable_cloud_vm_cluster_identity_connector",
586
+ options: options
587
+ )
588
+ operation = ::Gapic::Rest::TransportOperation.new response
589
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
590
+ catch :response do
591
+ yield result, operation if block_given?
592
+ result
593
+ end
594
+ end
595
+
596
+ ##
597
+ # Baseline implementation for the enable_exadb_vm_cluster_identity_connector REST call
598
+ #
599
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::EnableExadbVmClusterIdentityConnectorRequest]
600
+ # A request object representing the call parameters. Required.
601
+ # @param options [::Gapic::CallOptions]
602
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
603
+ #
604
+ # @yield [result, operation] Access the result along with the TransportOperation object
605
+ # @yieldparam result [::Google::Longrunning::Operation]
606
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
607
+ #
608
+ # @return [::Google::Longrunning::Operation]
609
+ # A result object deserialized from the server's reply
610
+ def enable_exadb_vm_cluster_identity_connector request_pb, options = nil
611
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
612
+
613
+ verb, uri, query_string_params, body = ServiceStub.transcode_enable_exadb_vm_cluster_identity_connector_request request_pb
614
+ query_string_params = if query_string_params.any?
615
+ query_string_params.to_h { |p| p.split "=", 2 }
616
+ else
617
+ {}
618
+ end
619
+
620
+ response = @client_stub.make_http_request(
621
+ verb,
622
+ uri: uri,
623
+ body: body || "",
624
+ params: query_string_params,
625
+ method_name: "enable_exadb_vm_cluster_identity_connector",
626
+ options: options
627
+ )
628
+ operation = ::Gapic::Rest::TransportOperation.new response
629
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
630
+ catch :response do
631
+ yield result, operation if block_given?
632
+ result
633
+ end
634
+ end
635
+
636
+ ##
637
+ # Baseline implementation for the disable_exadb_vm_cluster_identity_connector REST call
638
+ #
639
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::DisableExadbVmClusterIdentityConnectorRequest]
640
+ # A request object representing the call parameters. Required.
641
+ # @param options [::Gapic::CallOptions]
642
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
643
+ #
644
+ # @yield [result, operation] Access the result along with the TransportOperation object
645
+ # @yieldparam result [::Google::Longrunning::Operation]
646
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
647
+ #
648
+ # @return [::Google::Longrunning::Operation]
649
+ # A result object deserialized from the server's reply
650
+ def disable_exadb_vm_cluster_identity_connector request_pb, options = nil
651
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
652
+
653
+ verb, uri, query_string_params, body = ServiceStub.transcode_disable_exadb_vm_cluster_identity_connector_request request_pb
654
+ query_string_params = if query_string_params.any?
655
+ query_string_params.to_h { |p| p.split "=", 2 }
656
+ else
657
+ {}
658
+ end
659
+
660
+ response = @client_stub.make_http_request(
661
+ verb,
662
+ uri: uri,
663
+ body: body || "",
664
+ params: query_string_params,
665
+ method_name: "disable_exadb_vm_cluster_identity_connector",
666
+ options: options
667
+ )
668
+ operation = ::Gapic::Rest::TransportOperation.new response
669
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
670
+ catch :response do
671
+ yield result, operation if block_given?
672
+ result
673
+ end
674
+ end
675
+
436
676
  ##
437
677
  # Baseline implementation for the list_entitlements REST call
438
678
  #
@@ -473,6 +713,46 @@ module Google
473
713
  end
474
714
  end
475
715
 
716
+ ##
717
+ # Baseline implementation for the list_flex_components REST call
718
+ #
719
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListFlexComponentsRequest]
720
+ # A request object representing the call parameters. Required.
721
+ # @param options [::Gapic::CallOptions]
722
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
723
+ #
724
+ # @yield [result, operation] Access the result along with the TransportOperation object
725
+ # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListFlexComponentsResponse]
726
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
727
+ #
728
+ # @return [::Google::Cloud::OracleDatabase::V1::ListFlexComponentsResponse]
729
+ # A result object deserialized from the server's reply
730
+ def list_flex_components request_pb, options = nil
731
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
732
+
733
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_flex_components_request request_pb
734
+ query_string_params = if query_string_params.any?
735
+ query_string_params.to_h { |p| p.split "=", 2 }
736
+ else
737
+ {}
738
+ end
739
+
740
+ response = @client_stub.make_http_request(
741
+ verb,
742
+ uri: uri,
743
+ body: body || "",
744
+ params: query_string_params,
745
+ method_name: "list_flex_components",
746
+ options: options
747
+ )
748
+ operation = ::Gapic::Rest::TransportOperation.new response
749
+ result = ::Google::Cloud::OracleDatabase::V1::ListFlexComponentsResponse.decode_json response.body, ignore_unknown_fields: true
750
+ catch :response do
751
+ yield result, operation if block_given?
752
+ result
753
+ end
754
+ end
755
+
476
756
  ##
477
757
  # Baseline implementation for the list_db_servers REST call
478
758
  #
@@ -1474,9 +1754,9 @@ module Google
1474
1754
  end
1475
1755
 
1476
1756
  ##
1477
- # Baseline implementation for the delete_odb_network REST call
1757
+ # Baseline implementation for the update_odb_network REST call
1478
1758
  #
1479
- # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest]
1759
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateOdbNetworkRequest]
1480
1760
  # A request object representing the call parameters. Required.
1481
1761
  # @param options [::Gapic::CallOptions]
1482
1762
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -1487,10 +1767,10 @@ module Google
1487
1767
  #
1488
1768
  # @return [::Google::Longrunning::Operation]
1489
1769
  # A result object deserialized from the server's reply
1490
- def delete_odb_network request_pb, options = nil
1770
+ def update_odb_network request_pb, options = nil
1491
1771
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1492
1772
 
1493
- verb, uri, query_string_params, body = ServiceStub.transcode_delete_odb_network_request request_pb
1773
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_odb_network_request request_pb
1494
1774
  query_string_params = if query_string_params.any?
1495
1775
  query_string_params.to_h { |p| p.split "=", 2 }
1496
1776
  else
@@ -1502,7 +1782,7 @@ module Google
1502
1782
  uri: uri,
1503
1783
  body: body || "",
1504
1784
  params: query_string_params,
1505
- method_name: "delete_odb_network",
1785
+ method_name: "update_odb_network",
1506
1786
  options: options
1507
1787
  )
1508
1788
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -1514,20 +1794,60 @@ module Google
1514
1794
  end
1515
1795
 
1516
1796
  ##
1517
- # Baseline implementation for the list_odb_subnets REST call
1797
+ # Baseline implementation for the delete_odb_network REST call
1518
1798
  #
1519
- # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest]
1799
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest]
1520
1800
  # A request object representing the call parameters. Required.
1521
1801
  # @param options [::Gapic::CallOptions]
1522
1802
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1523
1803
  #
1524
1804
  # @yield [result, operation] Access the result along with the TransportOperation object
1525
- # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsResponse]
1805
+ # @yieldparam result [::Google::Longrunning::Operation]
1526
1806
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1527
1807
  #
1528
- # @return [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsResponse]
1808
+ # @return [::Google::Longrunning::Operation]
1529
1809
  # A result object deserialized from the server's reply
1530
- def list_odb_subnets request_pb, options = nil
1810
+ def delete_odb_network request_pb, options = nil
1811
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1812
+
1813
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_odb_network_request request_pb
1814
+ query_string_params = if query_string_params.any?
1815
+ query_string_params.to_h { |p| p.split "=", 2 }
1816
+ else
1817
+ {}
1818
+ end
1819
+
1820
+ response = @client_stub.make_http_request(
1821
+ verb,
1822
+ uri: uri,
1823
+ body: body || "",
1824
+ params: query_string_params,
1825
+ method_name: "delete_odb_network",
1826
+ options: options
1827
+ )
1828
+ operation = ::Gapic::Rest::TransportOperation.new response
1829
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1830
+ catch :response do
1831
+ yield result, operation if block_given?
1832
+ result
1833
+ end
1834
+ end
1835
+
1836
+ ##
1837
+ # Baseline implementation for the list_odb_subnets REST call
1838
+ #
1839
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest]
1840
+ # A request object representing the call parameters. Required.
1841
+ # @param options [::Gapic::CallOptions]
1842
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1843
+ #
1844
+ # @yield [result, operation] Access the result along with the TransportOperation object
1845
+ # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsResponse]
1846
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1847
+ #
1848
+ # @return [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsResponse]
1849
+ # A result object deserialized from the server's reply
1850
+ def list_odb_subnets request_pb, options = nil
1531
1851
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1532
1852
 
1533
1853
  verb, uri, query_string_params, body = ServiceStub.transcode_list_odb_subnets_request request_pb
@@ -1633,6 +1953,46 @@ module Google
1633
1953
  end
1634
1954
  end
1635
1955
 
1956
+ ##
1957
+ # Baseline implementation for the update_odb_subnet REST call
1958
+ #
1959
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateOdbSubnetRequest]
1960
+ # A request object representing the call parameters. Required.
1961
+ # @param options [::Gapic::CallOptions]
1962
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1963
+ #
1964
+ # @yield [result, operation] Access the result along with the TransportOperation object
1965
+ # @yieldparam result [::Google::Longrunning::Operation]
1966
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1967
+ #
1968
+ # @return [::Google::Longrunning::Operation]
1969
+ # A result object deserialized from the server's reply
1970
+ def update_odb_subnet request_pb, options = nil
1971
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1972
+
1973
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_odb_subnet_request request_pb
1974
+ query_string_params = if query_string_params.any?
1975
+ query_string_params.to_h { |p| p.split "=", 2 }
1976
+ else
1977
+ {}
1978
+ end
1979
+
1980
+ response = @client_stub.make_http_request(
1981
+ verb,
1982
+ uri: uri,
1983
+ body: body || "",
1984
+ params: query_string_params,
1985
+ method_name: "update_odb_subnet",
1986
+ options: options
1987
+ )
1988
+ operation = ::Gapic::Rest::TransportOperation.new response
1989
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1990
+ catch :response do
1991
+ yield result, operation if block_given?
1992
+ result
1993
+ end
1994
+ end
1995
+
1636
1996
  ##
1637
1997
  # Baseline implementation for the delete_odb_subnet REST call
1638
1998
  #
@@ -2193,6 +2553,46 @@ module Google
2193
2553
  end
2194
2554
  end
2195
2555
 
2556
+ ##
2557
+ # Baseline implementation for the update_exascale_db_storage_vault REST call
2558
+ #
2559
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateExascaleDbStorageVaultRequest]
2560
+ # A request object representing the call parameters. Required.
2561
+ # @param options [::Gapic::CallOptions]
2562
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2563
+ #
2564
+ # @yield [result, operation] Access the result along with the TransportOperation object
2565
+ # @yieldparam result [::Google::Longrunning::Operation]
2566
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2567
+ #
2568
+ # @return [::Google::Longrunning::Operation]
2569
+ # A result object deserialized from the server's reply
2570
+ def update_exascale_db_storage_vault request_pb, options = nil
2571
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2572
+
2573
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_exascale_db_storage_vault_request request_pb
2574
+ query_string_params = if query_string_params.any?
2575
+ query_string_params.to_h { |p| p.split "=", 2 }
2576
+ else
2577
+ {}
2578
+ end
2579
+
2580
+ response = @client_stub.make_http_request(
2581
+ verb,
2582
+ uri: uri,
2583
+ body: body || "",
2584
+ params: query_string_params,
2585
+ method_name: "update_exascale_db_storage_vault",
2586
+ options: options
2587
+ )
2588
+ operation = ::Gapic::Rest::TransportOperation.new response
2589
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
2590
+ catch :response do
2591
+ yield result, operation if block_given?
2592
+ result
2593
+ end
2594
+ end
2595
+
2196
2596
  ##
2197
2597
  # Baseline implementation for the delete_exascale_db_storage_vault REST call
2198
2598
  #
@@ -2273,6 +2673,46 @@ module Google
2273
2673
  end
2274
2674
  end
2275
2675
 
2676
+ ##
2677
+ # Baseline implementation for the list_db_system_compute_performances REST call
2678
+ #
2679
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemComputePerformancesRequest]
2680
+ # A request object representing the call parameters. Required.
2681
+ # @param options [::Gapic::CallOptions]
2682
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2683
+ #
2684
+ # @yield [result, operation] Access the result along with the TransportOperation object
2685
+ # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDbSystemComputePerformancesResponse]
2686
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2687
+ #
2688
+ # @return [::Google::Cloud::OracleDatabase::V1::ListDbSystemComputePerformancesResponse]
2689
+ # A result object deserialized from the server's reply
2690
+ def list_db_system_compute_performances request_pb, options = nil
2691
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2692
+
2693
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_db_system_compute_performances_request request_pb
2694
+ query_string_params = if query_string_params.any?
2695
+ query_string_params.to_h { |p| p.split "=", 2 }
2696
+ else
2697
+ {}
2698
+ end
2699
+
2700
+ response = @client_stub.make_http_request(
2701
+ verb,
2702
+ uri: uri,
2703
+ body: body || "",
2704
+ params: query_string_params,
2705
+ method_name: "list_db_system_compute_performances",
2706
+ options: options
2707
+ )
2708
+ operation = ::Gapic::Rest::TransportOperation.new response
2709
+ result = ::Google::Cloud::OracleDatabase::V1::ListDbSystemComputePerformancesResponse.decode_json response.body, ignore_unknown_fields: true
2710
+ catch :response do
2711
+ yield result, operation if block_given?
2712
+ result
2713
+ end
2714
+ end
2715
+
2276
2716
  ##
2277
2717
  # Baseline implementation for the list_databases REST call
2278
2718
  #
@@ -2553,6 +2993,46 @@ module Google
2553
2993
  end
2554
2994
  end
2555
2995
 
2996
+ ##
2997
+ # Baseline implementation for the update_db_system REST call
2998
+ #
2999
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateDbSystemRequest]
3000
+ # A request object representing the call parameters. Required.
3001
+ # @param options [::Gapic::CallOptions]
3002
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3003
+ #
3004
+ # @yield [result, operation] Access the result along with the TransportOperation object
3005
+ # @yieldparam result [::Google::Longrunning::Operation]
3006
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3007
+ #
3008
+ # @return [::Google::Longrunning::Operation]
3009
+ # A result object deserialized from the server's reply
3010
+ def update_db_system request_pb, options = nil
3011
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
3012
+
3013
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_db_system_request request_pb
3014
+ query_string_params = if query_string_params.any?
3015
+ query_string_params.to_h { |p| p.split "=", 2 }
3016
+ else
3017
+ {}
3018
+ end
3019
+
3020
+ response = @client_stub.make_http_request(
3021
+ verb,
3022
+ uri: uri,
3023
+ body: body || "",
3024
+ params: query_string_params,
3025
+ method_name: "update_db_system",
3026
+ options: options
3027
+ )
3028
+ operation = ::Gapic::Rest::TransportOperation.new response
3029
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
3030
+ catch :response do
3031
+ yield result, operation if block_given?
3032
+ result
3033
+ end
3034
+ end
3035
+
2556
3036
  ##
2557
3037
  # Baseline implementation for the delete_db_system REST call
2558
3038
  #
@@ -2713,6 +3193,46 @@ module Google
2713
3193
  end
2714
3194
  end
2715
3195
 
3196
+ ##
3197
+ # Baseline implementation for the update_goldengate_deployment REST call
3198
+ #
3199
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateGoldengateDeploymentRequest]
3200
+ # A request object representing the call parameters. Required.
3201
+ # @param options [::Gapic::CallOptions]
3202
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3203
+ #
3204
+ # @yield [result, operation] Access the result along with the TransportOperation object
3205
+ # @yieldparam result [::Google::Longrunning::Operation]
3206
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3207
+ #
3208
+ # @return [::Google::Longrunning::Operation]
3209
+ # A result object deserialized from the server's reply
3210
+ def update_goldengate_deployment request_pb, options = nil
3211
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
3212
+
3213
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_goldengate_deployment_request request_pb
3214
+ query_string_params = if query_string_params.any?
3215
+ query_string_params.to_h { |p| p.split "=", 2 }
3216
+ else
3217
+ {}
3218
+ end
3219
+
3220
+ response = @client_stub.make_http_request(
3221
+ verb,
3222
+ uri: uri,
3223
+ body: body || "",
3224
+ params: query_string_params,
3225
+ method_name: "update_goldengate_deployment",
3226
+ options: options
3227
+ )
3228
+ operation = ::Gapic::Rest::TransportOperation.new response
3229
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
3230
+ catch :response do
3231
+ yield result, operation if block_given?
3232
+ result
3233
+ end
3234
+ end
3235
+
2716
3236
  ##
2717
3237
  # Baseline implementation for the delete_goldengate_deployment REST call
2718
3238
  #
@@ -2953,6 +3473,46 @@ module Google
2953
3473
  end
2954
3474
  end
2955
3475
 
3476
+ ##
3477
+ # Baseline implementation for the update_goldengate_connection REST call
3478
+ #
3479
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateGoldengateConnectionRequest]
3480
+ # A request object representing the call parameters. Required.
3481
+ # @param options [::Gapic::CallOptions]
3482
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3483
+ #
3484
+ # @yield [result, operation] Access the result along with the TransportOperation object
3485
+ # @yieldparam result [::Google::Longrunning::Operation]
3486
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3487
+ #
3488
+ # @return [::Google::Longrunning::Operation]
3489
+ # A result object deserialized from the server's reply
3490
+ def update_goldengate_connection request_pb, options = nil
3491
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
3492
+
3493
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_goldengate_connection_request request_pb
3494
+ query_string_params = if query_string_params.any?
3495
+ query_string_params.to_h { |p| p.split "=", 2 }
3496
+ else
3497
+ {}
3498
+ end
3499
+
3500
+ response = @client_stub.make_http_request(
3501
+ verb,
3502
+ uri: uri,
3503
+ body: body || "",
3504
+ params: query_string_params,
3505
+ method_name: "update_goldengate_connection",
3506
+ options: options
3507
+ )
3508
+ operation = ::Gapic::Rest::TransportOperation.new response
3509
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
3510
+ catch :response do
3511
+ yield result, operation if block_given?
3512
+ result
3513
+ end
3514
+ end
3515
+
2956
3516
  ##
2957
3517
  # Baseline implementation for the delete_goldengate_connection REST call
2958
3518
  #
@@ -3354,9 +3914,9 @@ module Google
3354
3914
  end
3355
3915
 
3356
3916
  ##
3357
- # Baseline implementation for the delete_goldengate_connection_assignment REST call
3917
+ # Baseline implementation for the update_goldengate_connection_assignment REST call
3358
3918
  #
3359
- # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest]
3919
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateGoldengateConnectionAssignmentRequest]
3360
3920
  # A request object representing the call parameters. Required.
3361
3921
  # @param options [::Gapic::CallOptions]
3362
3922
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -3367,10 +3927,10 @@ module Google
3367
3927
  #
3368
3928
  # @return [::Google::Longrunning::Operation]
3369
3929
  # A result object deserialized from the server's reply
3370
- def delete_goldengate_connection_assignment request_pb, options = nil
3930
+ def update_goldengate_connection_assignment request_pb, options = nil
3371
3931
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
3372
3932
 
3373
- verb, uri, query_string_params, body = ServiceStub.transcode_delete_goldengate_connection_assignment_request request_pb
3933
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_goldengate_connection_assignment_request request_pb
3374
3934
  query_string_params = if query_string_params.any?
3375
3935
  query_string_params.to_h { |p| p.split "=", 2 }
3376
3936
  else
@@ -3382,7 +3942,7 @@ module Google
3382
3942
  uri: uri,
3383
3943
  body: body || "",
3384
3944
  params: query_string_params,
3385
- method_name: "delete_goldengate_connection_assignment",
3945
+ method_name: "update_goldengate_connection_assignment",
3386
3946
  options: options
3387
3947
  )
3388
3948
  operation = ::Gapic::Rest::TransportOperation.new response
@@ -3394,9 +3954,49 @@ module Google
3394
3954
  end
3395
3955
 
3396
3956
  ##
3397
- # Baseline implementation for the test_goldengate_connection_assignment REST call
3957
+ # Baseline implementation for the delete_goldengate_connection_assignment REST call
3398
3958
  #
3399
- # @param request_pb [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest]
3959
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest]
3960
+ # A request object representing the call parameters. Required.
3961
+ # @param options [::Gapic::CallOptions]
3962
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3963
+ #
3964
+ # @yield [result, operation] Access the result along with the TransportOperation object
3965
+ # @yieldparam result [::Google::Longrunning::Operation]
3966
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3967
+ #
3968
+ # @return [::Google::Longrunning::Operation]
3969
+ # A result object deserialized from the server's reply
3970
+ def delete_goldengate_connection_assignment request_pb, options = nil
3971
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
3972
+
3973
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_goldengate_connection_assignment_request request_pb
3974
+ query_string_params = if query_string_params.any?
3975
+ query_string_params.to_h { |p| p.split "=", 2 }
3976
+ else
3977
+ {}
3978
+ end
3979
+
3980
+ response = @client_stub.make_http_request(
3981
+ verb,
3982
+ uri: uri,
3983
+ body: body || "",
3984
+ params: query_string_params,
3985
+ method_name: "delete_goldengate_connection_assignment",
3986
+ options: options
3987
+ )
3988
+ operation = ::Gapic::Rest::TransportOperation.new response
3989
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
3990
+ catch :response do
3991
+ yield result, operation if block_given?
3992
+ result
3993
+ end
3994
+ end
3995
+
3996
+ ##
3997
+ # Baseline implementation for the test_goldengate_connection_assignment REST call
3998
+ #
3999
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest]
3400
4000
  # A request object representing the call parameters. Required.
3401
4001
  # @param options [::Gapic::CallOptions]
3402
4002
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -3433,6 +4033,286 @@ module Google
3433
4033
  end
3434
4034
  end
3435
4035
 
4036
+ ##
4037
+ # Baseline implementation for the list_database_connections REST call
4038
+ #
4039
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDatabaseConnectionsRequest]
4040
+ # A request object representing the call parameters. Required.
4041
+ # @param options [::Gapic::CallOptions]
4042
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4043
+ #
4044
+ # @yield [result, operation] Access the result along with the TransportOperation object
4045
+ # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDatabaseConnectionsResponse]
4046
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4047
+ #
4048
+ # @return [::Google::Cloud::OracleDatabase::V1::ListDatabaseConnectionsResponse]
4049
+ # A result object deserialized from the server's reply
4050
+ def list_database_connections request_pb, options = nil
4051
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
4052
+
4053
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_database_connections_request request_pb
4054
+ query_string_params = if query_string_params.any?
4055
+ query_string_params.to_h { |p| p.split "=", 2 }
4056
+ else
4057
+ {}
4058
+ end
4059
+
4060
+ response = @client_stub.make_http_request(
4061
+ verb,
4062
+ uri: uri,
4063
+ body: body || "",
4064
+ params: query_string_params,
4065
+ method_name: "list_database_connections",
4066
+ options: options
4067
+ )
4068
+ operation = ::Gapic::Rest::TransportOperation.new response
4069
+ result = ::Google::Cloud::OracleDatabase::V1::ListDatabaseConnectionsResponse.decode_json response.body, ignore_unknown_fields: true
4070
+ catch :response do
4071
+ yield result, operation if block_given?
4072
+ result
4073
+ end
4074
+ end
4075
+
4076
+ ##
4077
+ # Baseline implementation for the get_database_connection REST call
4078
+ #
4079
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetDatabaseConnectionRequest]
4080
+ # A request object representing the call parameters. Required.
4081
+ # @param options [::Gapic::CallOptions]
4082
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4083
+ #
4084
+ # @yield [result, operation] Access the result along with the TransportOperation object
4085
+ # @yieldparam result [::Google::Cloud::OracleDatabase::V1::DatabaseConnection]
4086
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4087
+ #
4088
+ # @return [::Google::Cloud::OracleDatabase::V1::DatabaseConnection]
4089
+ # A result object deserialized from the server's reply
4090
+ def get_database_connection request_pb, options = nil
4091
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
4092
+
4093
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_database_connection_request request_pb
4094
+ query_string_params = if query_string_params.any?
4095
+ query_string_params.to_h { |p| p.split "=", 2 }
4096
+ else
4097
+ {}
4098
+ end
4099
+
4100
+ response = @client_stub.make_http_request(
4101
+ verb,
4102
+ uri: uri,
4103
+ body: body || "",
4104
+ params: query_string_params,
4105
+ method_name: "get_database_connection",
4106
+ options: options
4107
+ )
4108
+ operation = ::Gapic::Rest::TransportOperation.new response
4109
+ result = ::Google::Cloud::OracleDatabase::V1::DatabaseConnection.decode_json response.body, ignore_unknown_fields: true
4110
+ catch :response do
4111
+ yield result, operation if block_given?
4112
+ result
4113
+ end
4114
+ end
4115
+
4116
+ ##
4117
+ # Baseline implementation for the create_database_connection REST call
4118
+ #
4119
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateDatabaseConnectionRequest]
4120
+ # A request object representing the call parameters. Required.
4121
+ # @param options [::Gapic::CallOptions]
4122
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4123
+ #
4124
+ # @yield [result, operation] Access the result along with the TransportOperation object
4125
+ # @yieldparam result [::Google::Longrunning::Operation]
4126
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4127
+ #
4128
+ # @return [::Google::Longrunning::Operation]
4129
+ # A result object deserialized from the server's reply
4130
+ def create_database_connection request_pb, options = nil
4131
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
4132
+
4133
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_database_connection_request request_pb
4134
+ query_string_params = if query_string_params.any?
4135
+ query_string_params.to_h { |p| p.split "=", 2 }
4136
+ else
4137
+ {}
4138
+ end
4139
+
4140
+ response = @client_stub.make_http_request(
4141
+ verb,
4142
+ uri: uri,
4143
+ body: body || "",
4144
+ params: query_string_params,
4145
+ method_name: "create_database_connection",
4146
+ options: options
4147
+ )
4148
+ operation = ::Gapic::Rest::TransportOperation.new response
4149
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
4150
+ catch :response do
4151
+ yield result, operation if block_given?
4152
+ result
4153
+ end
4154
+ end
4155
+
4156
+ ##
4157
+ # Baseline implementation for the update_database_connection REST call
4158
+ #
4159
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateDatabaseConnectionRequest]
4160
+ # A request object representing the call parameters. Required.
4161
+ # @param options [::Gapic::CallOptions]
4162
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4163
+ #
4164
+ # @yield [result, operation] Access the result along with the TransportOperation object
4165
+ # @yieldparam result [::Google::Longrunning::Operation]
4166
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4167
+ #
4168
+ # @return [::Google::Longrunning::Operation]
4169
+ # A result object deserialized from the server's reply
4170
+ def update_database_connection request_pb, options = nil
4171
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
4172
+
4173
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_database_connection_request request_pb
4174
+ query_string_params = if query_string_params.any?
4175
+ query_string_params.to_h { |p| p.split "=", 2 }
4176
+ else
4177
+ {}
4178
+ end
4179
+
4180
+ response = @client_stub.make_http_request(
4181
+ verb,
4182
+ uri: uri,
4183
+ body: body || "",
4184
+ params: query_string_params,
4185
+ method_name: "update_database_connection",
4186
+ options: options
4187
+ )
4188
+ operation = ::Gapic::Rest::TransportOperation.new response
4189
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
4190
+ catch :response do
4191
+ yield result, operation if block_given?
4192
+ result
4193
+ end
4194
+ end
4195
+
4196
+ ##
4197
+ # Baseline implementation for the delete_database_connection REST call
4198
+ #
4199
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteDatabaseConnectionRequest]
4200
+ # A request object representing the call parameters. Required.
4201
+ # @param options [::Gapic::CallOptions]
4202
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4203
+ #
4204
+ # @yield [result, operation] Access the result along with the TransportOperation object
4205
+ # @yieldparam result [::Google::Longrunning::Operation]
4206
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4207
+ #
4208
+ # @return [::Google::Longrunning::Operation]
4209
+ # A result object deserialized from the server's reply
4210
+ def delete_database_connection request_pb, options = nil
4211
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
4212
+
4213
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_database_connection_request request_pb
4214
+ query_string_params = if query_string_params.any?
4215
+ query_string_params.to_h { |p| p.split "=", 2 }
4216
+ else
4217
+ {}
4218
+ end
4219
+
4220
+ response = @client_stub.make_http_request(
4221
+ verb,
4222
+ uri: uri,
4223
+ body: body || "",
4224
+ params: query_string_params,
4225
+ method_name: "delete_database_connection",
4226
+ options: options
4227
+ )
4228
+ operation = ::Gapic::Rest::TransportOperation.new response
4229
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
4230
+ catch :response do
4231
+ yield result, operation if block_given?
4232
+ result
4233
+ end
4234
+ end
4235
+
4236
+ ##
4237
+ # Baseline implementation for the test_database_connection REST call
4238
+ #
4239
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::TestDatabaseConnectionRequest]
4240
+ # A request object representing the call parameters. Required.
4241
+ # @param options [::Gapic::CallOptions]
4242
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4243
+ #
4244
+ # @yield [result, operation] Access the result along with the TransportOperation object
4245
+ # @yieldparam result [::Google::Cloud::OracleDatabase::V1::TestDatabaseConnectionResponse]
4246
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4247
+ #
4248
+ # @return [::Google::Cloud::OracleDatabase::V1::TestDatabaseConnectionResponse]
4249
+ # A result object deserialized from the server's reply
4250
+ def test_database_connection request_pb, options = nil
4251
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
4252
+
4253
+ verb, uri, query_string_params, body = ServiceStub.transcode_test_database_connection_request request_pb
4254
+ query_string_params = if query_string_params.any?
4255
+ query_string_params.to_h { |p| p.split "=", 2 }
4256
+ else
4257
+ {}
4258
+ end
4259
+
4260
+ response = @client_stub.make_http_request(
4261
+ verb,
4262
+ uri: uri,
4263
+ body: body || "",
4264
+ params: query_string_params,
4265
+ method_name: "test_database_connection",
4266
+ options: options
4267
+ )
4268
+ operation = ::Gapic::Rest::TransportOperation.new response
4269
+ result = ::Google::Cloud::OracleDatabase::V1::TestDatabaseConnectionResponse.decode_json response.body, ignore_unknown_fields: true
4270
+ catch :response do
4271
+ yield result, operation if block_given?
4272
+ result
4273
+ end
4274
+ end
4275
+
4276
+ ##
4277
+ # Baseline implementation for the execute_sql REST call
4278
+ #
4279
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::ExecuteSqlRequest]
4280
+ # A request object representing the call parameters. Required.
4281
+ # @param options [::Gapic::CallOptions]
4282
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4283
+ #
4284
+ # @yield [result, operation] Access the result along with the TransportOperation object
4285
+ # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ExecuteSqlResponse]
4286
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4287
+ #
4288
+ # @return [::Google::Cloud::OracleDatabase::V1::ExecuteSqlResponse]
4289
+ # A result object deserialized from the server's reply
4290
+ def execute_sql request_pb, options = nil
4291
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
4292
+
4293
+ verb, uri, query_string_params, body = ServiceStub.transcode_execute_sql_request request_pb
4294
+ query_string_params = if query_string_params.any?
4295
+ query_string_params.to_h { |p| p.split "=", 2 }
4296
+ else
4297
+ {}
4298
+ end
4299
+
4300
+ response = @client_stub.make_http_request(
4301
+ verb,
4302
+ uri: uri,
4303
+ body: body || "",
4304
+ params: query_string_params,
4305
+ method_name: "execute_sql",
4306
+ options: options
4307
+ )
4308
+ operation = ::Gapic::Rest::TransportOperation.new response
4309
+ result = ::Google::Cloud::OracleDatabase::V1::ExecuteSqlResponse.decode_json response.body, ignore_unknown_fields: true
4310
+ catch :response do
4311
+ yield result, operation if block_given?
4312
+ result
4313
+ end
4314
+ end
4315
+
3436
4316
  ##
3437
4317
  # @private
3438
4318
  #
@@ -3497,6 +4377,28 @@ module Google
3497
4377
  transcoder.transcode request_pb
3498
4378
  end
3499
4379
 
4380
+ ##
4381
+ # @private
4382
+ #
4383
+ # GRPC transcoding helper method for the update_cloud_exadata_infrastructure REST call
4384
+ #
4385
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateCloudExadataInfrastructureRequest]
4386
+ # A request object representing the call parameters. Required.
4387
+ # @return [Array(String, [String, nil], Hash{String => String})]
4388
+ # Uri, Body, Query string parameters
4389
+ def self.transcode_update_cloud_exadata_infrastructure_request request_pb
4390
+ transcoder = Gapic::Rest::GrpcTranscoder.new
4391
+ .with_bindings(
4392
+ uri_method: :patch,
4393
+ uri_template: "/v1/{cloud_exadata_infrastructure.name}",
4394
+ body: "cloud_exadata_infrastructure",
4395
+ matches: [
4396
+ ["cloud_exadata_infrastructure.name", %r{^projects/[^/]+/locations/[^/]+/cloudExadataInfrastructures/[^/]+/?$}, false]
4397
+ ]
4398
+ )
4399
+ transcoder.transcode request_pb
4400
+ end
4401
+
3500
4402
  ##
3501
4403
  # @private
3502
4404
  #
@@ -3604,6 +4506,28 @@ module Google
3604
4506
  transcoder.transcode request_pb
3605
4507
  end
3606
4508
 
4509
+ ##
4510
+ # @private
4511
+ #
4512
+ # GRPC transcoding helper method for the update_cloud_vm_cluster REST call
4513
+ #
4514
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateCloudVmClusterRequest]
4515
+ # A request object representing the call parameters. Required.
4516
+ # @return [Array(String, [String, nil], Hash{String => String})]
4517
+ # Uri, Body, Query string parameters
4518
+ def self.transcode_update_cloud_vm_cluster_request request_pb
4519
+ transcoder = Gapic::Rest::GrpcTranscoder.new
4520
+ .with_bindings(
4521
+ uri_method: :patch,
4522
+ uri_template: "/v1/{cloud_vm_cluster.name}",
4523
+ body: "cloud_vm_cluster",
4524
+ matches: [
4525
+ ["cloud_vm_cluster.name", %r{^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+/?$}, false]
4526
+ ]
4527
+ )
4528
+ transcoder.transcode request_pb
4529
+ end
4530
+
3607
4531
  ##
3608
4532
  # @private
3609
4533
  #
@@ -3625,6 +4549,94 @@ module Google
3625
4549
  transcoder.transcode request_pb
3626
4550
  end
3627
4551
 
4552
+ ##
4553
+ # @private
4554
+ #
4555
+ # GRPC transcoding helper method for the enable_cloud_vm_cluster_identity_connector REST call
4556
+ #
4557
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::EnableCloudVmClusterIdentityConnectorRequest]
4558
+ # A request object representing the call parameters. Required.
4559
+ # @return [Array(String, [String, nil], Hash{String => String})]
4560
+ # Uri, Body, Query string parameters
4561
+ def self.transcode_enable_cloud_vm_cluster_identity_connector_request request_pb
4562
+ transcoder = Gapic::Rest::GrpcTranscoder.new
4563
+ .with_bindings(
4564
+ uri_method: :post,
4565
+ uri_template: "/v1/{name}:enableIdentityConnector",
4566
+ body: "*",
4567
+ matches: [
4568
+ ["name", %r{^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+/?$}, false]
4569
+ ]
4570
+ )
4571
+ transcoder.transcode request_pb
4572
+ end
4573
+
4574
+ ##
4575
+ # @private
4576
+ #
4577
+ # GRPC transcoding helper method for the disable_cloud_vm_cluster_identity_connector REST call
4578
+ #
4579
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::DisableCloudVmClusterIdentityConnectorRequest]
4580
+ # A request object representing the call parameters. Required.
4581
+ # @return [Array(String, [String, nil], Hash{String => String})]
4582
+ # Uri, Body, Query string parameters
4583
+ def self.transcode_disable_cloud_vm_cluster_identity_connector_request request_pb
4584
+ transcoder = Gapic::Rest::GrpcTranscoder.new
4585
+ .with_bindings(
4586
+ uri_method: :post,
4587
+ uri_template: "/v1/{name}:disableIdentityConnector",
4588
+ body: "*",
4589
+ matches: [
4590
+ ["name", %r{^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+/?$}, false]
4591
+ ]
4592
+ )
4593
+ transcoder.transcode request_pb
4594
+ end
4595
+
4596
+ ##
4597
+ # @private
4598
+ #
4599
+ # GRPC transcoding helper method for the enable_exadb_vm_cluster_identity_connector REST call
4600
+ #
4601
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::EnableExadbVmClusterIdentityConnectorRequest]
4602
+ # A request object representing the call parameters. Required.
4603
+ # @return [Array(String, [String, nil], Hash{String => String})]
4604
+ # Uri, Body, Query string parameters
4605
+ def self.transcode_enable_exadb_vm_cluster_identity_connector_request request_pb
4606
+ transcoder = Gapic::Rest::GrpcTranscoder.new
4607
+ .with_bindings(
4608
+ uri_method: :post,
4609
+ uri_template: "/v1/{name}:enableIdentityConnector",
4610
+ body: "*",
4611
+ matches: [
4612
+ ["name", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false]
4613
+ ]
4614
+ )
4615
+ transcoder.transcode request_pb
4616
+ end
4617
+
4618
+ ##
4619
+ # @private
4620
+ #
4621
+ # GRPC transcoding helper method for the disable_exadb_vm_cluster_identity_connector REST call
4622
+ #
4623
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::DisableExadbVmClusterIdentityConnectorRequest]
4624
+ # A request object representing the call parameters. Required.
4625
+ # @return [Array(String, [String, nil], Hash{String => String})]
4626
+ # Uri, Body, Query string parameters
4627
+ def self.transcode_disable_exadb_vm_cluster_identity_connector_request request_pb
4628
+ transcoder = Gapic::Rest::GrpcTranscoder.new
4629
+ .with_bindings(
4630
+ uri_method: :post,
4631
+ uri_template: "/v1/{name}:disableIdentityConnector",
4632
+ body: "*",
4633
+ matches: [
4634
+ ["name", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false]
4635
+ ]
4636
+ )
4637
+ transcoder.transcode request_pb
4638
+ end
4639
+
3628
4640
  ##
3629
4641
  # @private
3630
4642
  #
@@ -3638,7 +4650,28 @@ module Google
3638
4650
  transcoder = Gapic::Rest::GrpcTranscoder.new
3639
4651
  .with_bindings(
3640
4652
  uri_method: :get,
3641
- uri_template: "/v1/{parent}/entitlements",
4653
+ uri_template: "/v1/{parent}/entitlements",
4654
+ matches: [
4655
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
4656
+ ]
4657
+ )
4658
+ transcoder.transcode request_pb
4659
+ end
4660
+
4661
+ ##
4662
+ # @private
4663
+ #
4664
+ # GRPC transcoding helper method for the list_flex_components REST call
4665
+ #
4666
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListFlexComponentsRequest]
4667
+ # A request object representing the call parameters. Required.
4668
+ # @return [Array(String, [String, nil], Hash{String => String})]
4669
+ # Uri, Body, Query string parameters
4670
+ def self.transcode_list_flex_components_request request_pb
4671
+ transcoder = Gapic::Rest::GrpcTranscoder.new
4672
+ .with_bindings(
4673
+ uri_method: :get,
4674
+ uri_template: "/v1/{parent}/flexComponents",
3642
4675
  matches: [
3643
4676
  ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
3644
4677
  ]
@@ -4189,6 +5222,28 @@ module Google
4189
5222
  transcoder.transcode request_pb
4190
5223
  end
4191
5224
 
5225
+ ##
5226
+ # @private
5227
+ #
5228
+ # GRPC transcoding helper method for the update_odb_network REST call
5229
+ #
5230
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateOdbNetworkRequest]
5231
+ # A request object representing the call parameters. Required.
5232
+ # @return [Array(String, [String, nil], Hash{String => String})]
5233
+ # Uri, Body, Query string parameters
5234
+ def self.transcode_update_odb_network_request request_pb
5235
+ transcoder = Gapic::Rest::GrpcTranscoder.new
5236
+ .with_bindings(
5237
+ uri_method: :patch,
5238
+ uri_template: "/v1/{odb_network.name}",
5239
+ body: "odb_network",
5240
+ matches: [
5241
+ ["odb_network.name", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/?$}, false]
5242
+ ]
5243
+ )
5244
+ transcoder.transcode request_pb
5245
+ end
5246
+
4192
5247
  ##
4193
5248
  # @private
4194
5249
  #
@@ -4274,6 +5329,28 @@ module Google
4274
5329
  transcoder.transcode request_pb
4275
5330
  end
4276
5331
 
5332
+ ##
5333
+ # @private
5334
+ #
5335
+ # GRPC transcoding helper method for the update_odb_subnet REST call
5336
+ #
5337
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateOdbSubnetRequest]
5338
+ # A request object representing the call parameters. Required.
5339
+ # @return [Array(String, [String, nil], Hash{String => String})]
5340
+ # Uri, Body, Query string parameters
5341
+ def self.transcode_update_odb_subnet_request request_pb
5342
+ transcoder = Gapic::Rest::GrpcTranscoder.new
5343
+ .with_bindings(
5344
+ uri_method: :patch,
5345
+ uri_template: "/v1/{odb_subnet.name}",
5346
+ body: "odb_subnet",
5347
+ matches: [
5348
+ ["odb_subnet.name", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/odbSubnets/[^/]+/?$}, false]
5349
+ ]
5350
+ )
5351
+ transcoder.transcode request_pb
5352
+ end
5353
+
4277
5354
  ##
4278
5355
  # @private
4279
5356
  #
@@ -4573,6 +5650,28 @@ module Google
4573
5650
  transcoder.transcode request_pb
4574
5651
  end
4575
5652
 
5653
+ ##
5654
+ # @private
5655
+ #
5656
+ # GRPC transcoding helper method for the update_exascale_db_storage_vault REST call
5657
+ #
5658
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateExascaleDbStorageVaultRequest]
5659
+ # A request object representing the call parameters. Required.
5660
+ # @return [Array(String, [String, nil], Hash{String => String})]
5661
+ # Uri, Body, Query string parameters
5662
+ def self.transcode_update_exascale_db_storage_vault_request request_pb
5663
+ transcoder = Gapic::Rest::GrpcTranscoder.new
5664
+ .with_bindings(
5665
+ uri_method: :patch,
5666
+ uri_template: "/v1/{exascale_db_storage_vault.name}",
5667
+ body: "exascale_db_storage_vault",
5668
+ matches: [
5669
+ ["exascale_db_storage_vault.name", %r{^projects/[^/]+/locations/[^/]+/exascaleDbStorageVaults/[^/]+/?$}, false]
5670
+ ]
5671
+ )
5672
+ transcoder.transcode request_pb
5673
+ end
5674
+
4576
5675
  ##
4577
5676
  # @private
4578
5677
  #
@@ -4615,6 +5714,27 @@ module Google
4615
5714
  transcoder.transcode request_pb
4616
5715
  end
4617
5716
 
5717
+ ##
5718
+ # @private
5719
+ #
5720
+ # GRPC transcoding helper method for the list_db_system_compute_performances REST call
5721
+ #
5722
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemComputePerformancesRequest]
5723
+ # A request object representing the call parameters. Required.
5724
+ # @return [Array(String, [String, nil], Hash{String => String})]
5725
+ # Uri, Body, Query string parameters
5726
+ def self.transcode_list_db_system_compute_performances_request request_pb
5727
+ transcoder = Gapic::Rest::GrpcTranscoder.new
5728
+ .with_bindings(
5729
+ uri_method: :get,
5730
+ uri_template: "/v1/{parent}/dbSystemComputePerformances",
5731
+ matches: [
5732
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
5733
+ ]
5734
+ )
5735
+ transcoder.transcode request_pb
5736
+ end
5737
+
4618
5738
  ##
4619
5739
  # @private
4620
5740
  #
@@ -4763,6 +5883,28 @@ module Google
4763
5883
  transcoder.transcode request_pb
4764
5884
  end
4765
5885
 
5886
+ ##
5887
+ # @private
5888
+ #
5889
+ # GRPC transcoding helper method for the update_db_system REST call
5890
+ #
5891
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateDbSystemRequest]
5892
+ # A request object representing the call parameters. Required.
5893
+ # @return [Array(String, [String, nil], Hash{String => String})]
5894
+ # Uri, Body, Query string parameters
5895
+ def self.transcode_update_db_system_request request_pb
5896
+ transcoder = Gapic::Rest::GrpcTranscoder.new
5897
+ .with_bindings(
5898
+ uri_method: :patch,
5899
+ uri_template: "/v1/{db_system.name}",
5900
+ body: "db_system",
5901
+ matches: [
5902
+ ["db_system.name", %r{^projects/[^/]+/locations/[^/]+/dbSystems/[^/]+/?$}, false]
5903
+ ]
5904
+ )
5905
+ transcoder.transcode request_pb
5906
+ end
5907
+
4766
5908
  ##
4767
5909
  # @private
4768
5910
  #
@@ -4848,6 +5990,28 @@ module Google
4848
5990
  transcoder.transcode request_pb
4849
5991
  end
4850
5992
 
5993
+ ##
5994
+ # @private
5995
+ #
5996
+ # GRPC transcoding helper method for the update_goldengate_deployment REST call
5997
+ #
5998
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateGoldengateDeploymentRequest]
5999
+ # A request object representing the call parameters. Required.
6000
+ # @return [Array(String, [String, nil], Hash{String => String})]
6001
+ # Uri, Body, Query string parameters
6002
+ def self.transcode_update_goldengate_deployment_request request_pb
6003
+ transcoder = Gapic::Rest::GrpcTranscoder.new
6004
+ .with_bindings(
6005
+ uri_method: :patch,
6006
+ uri_template: "/v1/{goldengate_deployment.name}",
6007
+ body: "goldengate_deployment",
6008
+ matches: [
6009
+ ["goldengate_deployment.name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeployments/[^/]+/?$}, false]
6010
+ ]
6011
+ )
6012
+ transcoder.transcode request_pb
6013
+ end
6014
+
4851
6015
  ##
4852
6016
  # @private
4853
6017
  #
@@ -4977,6 +6141,28 @@ module Google
4977
6141
  transcoder.transcode request_pb
4978
6142
  end
4979
6143
 
6144
+ ##
6145
+ # @private
6146
+ #
6147
+ # GRPC transcoding helper method for the update_goldengate_connection REST call
6148
+ #
6149
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateGoldengateConnectionRequest]
6150
+ # A request object representing the call parameters. Required.
6151
+ # @return [Array(String, [String, nil], Hash{String => String})]
6152
+ # Uri, Body, Query string parameters
6153
+ def self.transcode_update_goldengate_connection_request request_pb
6154
+ transcoder = Gapic::Rest::GrpcTranscoder.new
6155
+ .with_bindings(
6156
+ uri_method: :patch,
6157
+ uri_template: "/v1/{goldengate_connection.name}",
6158
+ body: "goldengate_connection",
6159
+ matches: [
6160
+ ["goldengate_connection.name", %r{^projects/[^/]+/locations/[^/]+/goldengateConnections/[^/]+/?$}, false]
6161
+ ]
6162
+ )
6163
+ transcoder.transcode request_pb
6164
+ end
6165
+
4980
6166
  ##
4981
6167
  # @private
4982
6168
  #
@@ -5188,6 +6374,28 @@ module Google
5188
6374
  transcoder.transcode request_pb
5189
6375
  end
5190
6376
 
6377
+ ##
6378
+ # @private
6379
+ #
6380
+ # GRPC transcoding helper method for the update_goldengate_connection_assignment REST call
6381
+ #
6382
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateGoldengateConnectionAssignmentRequest]
6383
+ # A request object representing the call parameters. Required.
6384
+ # @return [Array(String, [String, nil], Hash{String => String})]
6385
+ # Uri, Body, Query string parameters
6386
+ def self.transcode_update_goldengate_connection_assignment_request request_pb
6387
+ transcoder = Gapic::Rest::GrpcTranscoder.new
6388
+ .with_bindings(
6389
+ uri_method: :patch,
6390
+ uri_template: "/v1/{goldengate_connection_assignment.name}",
6391
+ body: "goldengate_connection_assignment",
6392
+ matches: [
6393
+ ["goldengate_connection_assignment.name", %r{^projects/[^/]+/locations/[^/]+/goldengateConnectionAssignments/[^/]+/?$}, false]
6394
+ ]
6395
+ )
6396
+ transcoder.transcode request_pb
6397
+ end
6398
+
5191
6399
  ##
5192
6400
  # @private
5193
6401
  #
@@ -5230,6 +6438,157 @@ module Google
5230
6438
  )
5231
6439
  transcoder.transcode request_pb
5232
6440
  end
6441
+
6442
+ ##
6443
+ # @private
6444
+ #
6445
+ # GRPC transcoding helper method for the list_database_connections REST call
6446
+ #
6447
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDatabaseConnectionsRequest]
6448
+ # A request object representing the call parameters. Required.
6449
+ # @return [Array(String, [String, nil], Hash{String => String})]
6450
+ # Uri, Body, Query string parameters
6451
+ def self.transcode_list_database_connections_request request_pb
6452
+ transcoder = Gapic::Rest::GrpcTranscoder.new
6453
+ .with_bindings(
6454
+ uri_method: :get,
6455
+ uri_template: "/v1/{parent}/databaseConnections",
6456
+ matches: [
6457
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
6458
+ ]
6459
+ )
6460
+ transcoder.transcode request_pb
6461
+ end
6462
+
6463
+ ##
6464
+ # @private
6465
+ #
6466
+ # GRPC transcoding helper method for the get_database_connection REST call
6467
+ #
6468
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetDatabaseConnectionRequest]
6469
+ # A request object representing the call parameters. Required.
6470
+ # @return [Array(String, [String, nil], Hash{String => String})]
6471
+ # Uri, Body, Query string parameters
6472
+ def self.transcode_get_database_connection_request request_pb
6473
+ transcoder = Gapic::Rest::GrpcTranscoder.new
6474
+ .with_bindings(
6475
+ uri_method: :get,
6476
+ uri_template: "/v1/{name}",
6477
+ matches: [
6478
+ ["name", %r{^projects/[^/]+/locations/[^/]+/databaseConnections/[^/]+/?$}, false]
6479
+ ]
6480
+ )
6481
+ transcoder.transcode request_pb
6482
+ end
6483
+
6484
+ ##
6485
+ # @private
6486
+ #
6487
+ # GRPC transcoding helper method for the create_database_connection REST call
6488
+ #
6489
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateDatabaseConnectionRequest]
6490
+ # A request object representing the call parameters. Required.
6491
+ # @return [Array(String, [String, nil], Hash{String => String})]
6492
+ # Uri, Body, Query string parameters
6493
+ def self.transcode_create_database_connection_request request_pb
6494
+ transcoder = Gapic::Rest::GrpcTranscoder.new
6495
+ .with_bindings(
6496
+ uri_method: :post,
6497
+ uri_template: "/v1/{parent}/databaseConnections",
6498
+ body: "database_connection",
6499
+ matches: [
6500
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
6501
+ ]
6502
+ )
6503
+ transcoder.transcode request_pb
6504
+ end
6505
+
6506
+ ##
6507
+ # @private
6508
+ #
6509
+ # GRPC transcoding helper method for the update_database_connection REST call
6510
+ #
6511
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateDatabaseConnectionRequest]
6512
+ # A request object representing the call parameters. Required.
6513
+ # @return [Array(String, [String, nil], Hash{String => String})]
6514
+ # Uri, Body, Query string parameters
6515
+ def self.transcode_update_database_connection_request request_pb
6516
+ transcoder = Gapic::Rest::GrpcTranscoder.new
6517
+ .with_bindings(
6518
+ uri_method: :patch,
6519
+ uri_template: "/v1/{database_connection.name}",
6520
+ body: "database_connection",
6521
+ matches: [
6522
+ ["database_connection.name", %r{^projects/[^/]+/locations/[^/]+/databaseConnections/[^/]+/?$}, false]
6523
+ ]
6524
+ )
6525
+ transcoder.transcode request_pb
6526
+ end
6527
+
6528
+ ##
6529
+ # @private
6530
+ #
6531
+ # GRPC transcoding helper method for the delete_database_connection REST call
6532
+ #
6533
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteDatabaseConnectionRequest]
6534
+ # A request object representing the call parameters. Required.
6535
+ # @return [Array(String, [String, nil], Hash{String => String})]
6536
+ # Uri, Body, Query string parameters
6537
+ def self.transcode_delete_database_connection_request request_pb
6538
+ transcoder = Gapic::Rest::GrpcTranscoder.new
6539
+ .with_bindings(
6540
+ uri_method: :delete,
6541
+ uri_template: "/v1/{name}",
6542
+ matches: [
6543
+ ["name", %r{^projects/[^/]+/locations/[^/]+/databaseConnections/[^/]+/?$}, false]
6544
+ ]
6545
+ )
6546
+ transcoder.transcode request_pb
6547
+ end
6548
+
6549
+ ##
6550
+ # @private
6551
+ #
6552
+ # GRPC transcoding helper method for the test_database_connection REST call
6553
+ #
6554
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::TestDatabaseConnectionRequest]
6555
+ # A request object representing the call parameters. Required.
6556
+ # @return [Array(String, [String, nil], Hash{String => String})]
6557
+ # Uri, Body, Query string parameters
6558
+ def self.transcode_test_database_connection_request request_pb
6559
+ transcoder = Gapic::Rest::GrpcTranscoder.new
6560
+ .with_bindings(
6561
+ uri_method: :post,
6562
+ uri_template: "/v1/{name}:test",
6563
+ body: "*",
6564
+ matches: [
6565
+ ["name", %r{^projects/[^/]+/locations/[^/]+/databaseConnections/[^/]+/?$}, false]
6566
+ ]
6567
+ )
6568
+ transcoder.transcode request_pb
6569
+ end
6570
+
6571
+ ##
6572
+ # @private
6573
+ #
6574
+ # GRPC transcoding helper method for the execute_sql REST call
6575
+ #
6576
+ # @param request_pb [::Google::Cloud::OracleDatabase::V1::ExecuteSqlRequest]
6577
+ # A request object representing the call parameters. Required.
6578
+ # @return [Array(String, [String, nil], Hash{String => String})]
6579
+ # Uri, Body, Query string parameters
6580
+ def self.transcode_execute_sql_request request_pb
6581
+ transcoder = Gapic::Rest::GrpcTranscoder.new
6582
+ .with_bindings(
6583
+ uri_method: :post,
6584
+ uri_template: "/v1/{name}:executeSql",
6585
+ body: "*",
6586
+ matches: [
6587
+ ["name", %r{^projects/[^/]+/locations/[^/]+/databaseConnections/[^/]+/?$}, false]
6588
+ ]
6589
+ )
6590
+ transcoder.transcode request_pb
6591
+ end
5233
6592
  end
5234
6593
  end
5235
6594
  end