google-apis-sqladmin_v1beta4 0.36.0 → 0.73.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.
@@ -32,6 +32,8 @@ module Google
32
32
  #
33
33
  # @see https://developers.google.com/cloud-sql/
34
34
  class SQLAdminService < Google::Apis::Core::BaseService
35
+ DEFAULT_ENDPOINT_TEMPLATE = "https://sqladmin.$UNIVERSE_DOMAIN$/"
36
+
35
37
  # @return [String]
36
38
  # API key. Your API key identifies your project and provides you with API access,
37
39
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -43,7 +45,7 @@ module Google
43
45
  attr_accessor :quota_user
44
46
 
45
47
  def initialize
46
- super('https://sqladmin.googleapis.com/', '',
48
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
47
49
  client_name: 'google-apis-sqladmin_v1beta4',
48
50
  client_version: Google::Apis::SqladminV1beta4::GEM_VERSION)
49
51
  @batch_path = 'batch'
@@ -349,7 +351,7 @@ module Google
349
351
  end
350
352
 
351
353
  # Inserts a resource containing information about a database inside a Cloud SQL
352
- # instance.
354
+ # instance. **Note:** You can't modify the default character set and collation.
353
355
  # @param [String] project
354
356
  # Project ID of the project that contains the instance.
355
357
  # @param [String] instance
@@ -529,6 +531,44 @@ module Google
529
531
  execute_or_queue_command(command, &block)
530
532
  end
531
533
 
534
+ # Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
535
+ # @param [String] project
536
+ # Required. ID of the project that contains the instance (Example: project-id).
537
+ # @param [String] instance
538
+ # Required. Cloud SQL instance ID. This doesn't include the project ID. It's
539
+ # composed of lowercase letters, numbers, and hyphens, and it must start with a
540
+ # letter. The total length must be 98 characters or less (Example: instance-id).
541
+ # @param [Google::Apis::SqladminV1beta4::InstancesAcquireSsrsLeaseRequest] instances_acquire_ssrs_lease_request_object
542
+ # @param [String] fields
543
+ # Selector specifying which fields to include in a partial response.
544
+ # @param [String] quota_user
545
+ # Available to use for quota purposes for server-side applications. Can be any
546
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
547
+ # @param [Google::Apis::RequestOptions] options
548
+ # Request-specific options
549
+ #
550
+ # @yield [result, err] Result & error if block supplied
551
+ # @yieldparam result [Google::Apis::SqladminV1beta4::SqlInstancesAcquireSsrsLeaseResponse] parsed result object
552
+ # @yieldparam err [StandardError] error object if request failed
553
+ #
554
+ # @return [Google::Apis::SqladminV1beta4::SqlInstancesAcquireSsrsLeaseResponse]
555
+ #
556
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
557
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
558
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
559
+ def acquire_instance_ssrs_lease(project, instance, instances_acquire_ssrs_lease_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
560
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/acquireSsrsLease', options)
561
+ command.request_representation = Google::Apis::SqladminV1beta4::InstancesAcquireSsrsLeaseRequest::Representation
562
+ command.request_object = instances_acquire_ssrs_lease_request_object
563
+ command.response_representation = Google::Apis::SqladminV1beta4::SqlInstancesAcquireSsrsLeaseResponse::Representation
564
+ command.response_class = Google::Apis::SqladminV1beta4::SqlInstancesAcquireSsrsLeaseResponse
565
+ command.params['project'] = project unless project.nil?
566
+ command.params['instance'] = instance unless instance.nil?
567
+ command.query['fields'] = fields unless fields.nil?
568
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
569
+ execute_or_queue_command(command, &block)
570
+ end
571
+
532
572
  # Add a new trusted Certificate Authority (CA) version for the specified
533
573
  # instance. Required to prepare for a certificate rotation. If a CA version was
534
574
  # previously added but never used in a certificate rotation, this operation
@@ -637,6 +677,43 @@ module Google
637
677
  execute_or_queue_command(command, &block)
638
678
  end
639
679
 
680
+ # Demotes an existing standalone instance to be a Cloud SQL read replica for an
681
+ # external database server.
682
+ # @param [String] project
683
+ # Required. The project ID of the project that contains the instance.
684
+ # @param [String] instance
685
+ # Required. The name of the Cloud SQL instance.
686
+ # @param [Google::Apis::SqladminV1beta4::InstancesDemoteRequest] instances_demote_request_object
687
+ # @param [String] fields
688
+ # Selector specifying which fields to include in a partial response.
689
+ # @param [String] quota_user
690
+ # Available to use for quota purposes for server-side applications. Can be any
691
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
692
+ # @param [Google::Apis::RequestOptions] options
693
+ # Request-specific options
694
+ #
695
+ # @yield [result, err] Result & error if block supplied
696
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
697
+ # @yieldparam err [StandardError] error object if request failed
698
+ #
699
+ # @return [Google::Apis::SqladminV1beta4::Operation]
700
+ #
701
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
702
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
703
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
704
+ def demote_instance(project, instance, instances_demote_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
705
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/demote', options)
706
+ command.request_representation = Google::Apis::SqladminV1beta4::InstancesDemoteRequest::Representation
707
+ command.request_object = instances_demote_request_object
708
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
709
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
710
+ command.params['project'] = project unless project.nil?
711
+ command.params['instance'] = instance unless instance.nil?
712
+ command.query['fields'] = fields unless fields.nil?
713
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
714
+ execute_or_queue_command(command, &block)
715
+ end
716
+
640
717
  # Demotes the stand-alone instance to be a Cloud SQL read replica for an
641
718
  # external database server.
642
719
  # @param [String] project
@@ -679,7 +756,7 @@ module Google
679
756
  # @param [String] project
680
757
  # Project ID of the project that contains the instance to be exported.
681
758
  # @param [String] instance
682
- # Cloud SQL instance ID. This does not include the project ID.
759
+ # The Cloud SQL instance ID. This doesn't include the project ID.
683
760
  # @param [Google::Apis::SqladminV1beta4::ExportInstancesRequest] export_instances_request_object
684
761
  # @param [String] fields
685
762
  # Selector specifying which fields to include in a partial response.
@@ -978,12 +1055,19 @@ module Google
978
1055
  execute_or_queue_command(command, &block)
979
1056
  end
980
1057
 
981
- # Promotes the read replica instance to be a stand-alone Cloud SQL instance.
982
- # Using this operation might cause your instance to restart.
1058
+ # Promotes the read replica instance to be an independent Cloud SQL primary
1059
+ # instance. Using this operation might cause your instance to restart.
983
1060
  # @param [String] project
984
1061
  # ID of the project that contains the read replica.
985
1062
  # @param [String] instance
986
1063
  # Cloud SQL read replica instance name.
1064
+ # @param [Boolean] failover
1065
+ # Set to true to invoke a replica failover to the designated DR replica. As part
1066
+ # of replica failover, the promote operation attempts to add the original
1067
+ # primary instance as a replica of the promoted DR replica when the original
1068
+ # primary instance comes back online. If set to false or not specified, then the
1069
+ # original primary instance becomes an independent Cloud SQL primary instance.
1070
+ # Only applicable to MySQL.
987
1071
  # @param [String] fields
988
1072
  # Selector specifying which fields to include in a partial response.
989
1073
  # @param [String] quota_user
@@ -1001,12 +1085,85 @@ module Google
1001
1085
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1002
1086
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1003
1087
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1004
- def promote_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block)
1088
+ def promote_instance_replica(project, instance, failover: nil, fields: nil, quota_user: nil, options: nil, &block)
1005
1089
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica', options)
1006
1090
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1007
1091
  command.response_class = Google::Apis::SqladminV1beta4::Operation
1008
1092
  command.params['project'] = project unless project.nil?
1009
1093
  command.params['instance'] = instance unless instance.nil?
1094
+ command.query['failover'] = failover unless failover.nil?
1095
+ command.query['fields'] = fields unless fields.nil?
1096
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1097
+ execute_or_queue_command(command, &block)
1098
+ end
1099
+
1100
+ # Reencrypt CMEK instance with latest key version.
1101
+ # @param [String] project
1102
+ # ID of the project that contains the instance.
1103
+ # @param [String] instance
1104
+ # Cloud SQL instance ID. This does not include the project ID.
1105
+ # @param [Google::Apis::SqladminV1beta4::InstancesReencryptRequest] instances_reencrypt_request_object
1106
+ # @param [String] fields
1107
+ # Selector specifying which fields to include in a partial response.
1108
+ # @param [String] quota_user
1109
+ # Available to use for quota purposes for server-side applications. Can be any
1110
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1111
+ # @param [Google::Apis::RequestOptions] options
1112
+ # Request-specific options
1113
+ #
1114
+ # @yield [result, err] Result & error if block supplied
1115
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1116
+ # @yieldparam err [StandardError] error object if request failed
1117
+ #
1118
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1119
+ #
1120
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1121
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1122
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1123
+ def reencrypt_instance(project, instance, instances_reencrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1124
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/reencrypt', options)
1125
+ command.request_representation = Google::Apis::SqladminV1beta4::InstancesReencryptRequest::Representation
1126
+ command.request_object = instances_reencrypt_request_object
1127
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1128
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
1129
+ command.params['project'] = project unless project.nil?
1130
+ command.params['instance'] = instance unless instance.nil?
1131
+ command.query['fields'] = fields unless fields.nil?
1132
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1133
+ execute_or_queue_command(command, &block)
1134
+ end
1135
+
1136
+ # Release a lease for the setup of SQL Server Reporting Services (SSRS).
1137
+ # @param [String] project
1138
+ # Required. The ID of the project that contains the instance (Example: project-
1139
+ # id).
1140
+ # @param [String] instance
1141
+ # Required. The Cloud SQL instance ID. This doesn't include the project ID. It's
1142
+ # composed of lowercase letters, numbers, and hyphens, and it must start with a
1143
+ # letter. The total length must be 98 characters or less (Example: instance-id).
1144
+ # @param [String] fields
1145
+ # Selector specifying which fields to include in a partial response.
1146
+ # @param [String] quota_user
1147
+ # Available to use for quota purposes for server-side applications. Can be any
1148
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1149
+ # @param [Google::Apis::RequestOptions] options
1150
+ # Request-specific options
1151
+ #
1152
+ # @yield [result, err] Result & error if block supplied
1153
+ # @yieldparam result [Google::Apis::SqladminV1beta4::SqlInstancesReleaseSsrsLeaseResponse] parsed result object
1154
+ # @yieldparam err [StandardError] error object if request failed
1155
+ #
1156
+ # @return [Google::Apis::SqladminV1beta4::SqlInstancesReleaseSsrsLeaseResponse]
1157
+ #
1158
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1159
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1160
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1161
+ def release_instance_ssrs_lease(project, instance, fields: nil, quota_user: nil, options: nil, &block)
1162
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/releaseSsrsLease', options)
1163
+ command.response_representation = Google::Apis::SqladminV1beta4::SqlInstancesReleaseSsrsLeaseResponse::Representation
1164
+ command.response_class = Google::Apis::SqladminV1beta4::SqlInstancesReleaseSsrsLeaseResponse
1165
+ command.params['project'] = project unless project.nil?
1166
+ command.params['instance'] = instance unless instance.nil?
1010
1167
  command.query['fields'] = fields unless fields.nil?
1011
1168
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1012
1169
  execute_or_queue_command(command, &block)
@@ -1219,6 +1376,44 @@ module Google
1219
1376
  execute_or_queue_command(command, &block)
1220
1377
  end
1221
1378
 
1379
+ # Switches over from the primary instance to the designated DR replica instance.
1380
+ # @param [String] project
1381
+ # ID of the project that contains the replica.
1382
+ # @param [String] instance
1383
+ # Cloud SQL read replica instance name.
1384
+ # @param [String] db_timeout
1385
+ # Optional. (MySQL only) Cloud SQL instance operations timeout, which is a sum
1386
+ # of all database operations. Default value is 10 minutes and can be modified to
1387
+ # a maximum value of 24 hours.
1388
+ # @param [String] fields
1389
+ # Selector specifying which fields to include in a partial response.
1390
+ # @param [String] quota_user
1391
+ # Available to use for quota purposes for server-side applications. Can be any
1392
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1393
+ # @param [Google::Apis::RequestOptions] options
1394
+ # Request-specific options
1395
+ #
1396
+ # @yield [result, err] Result & error if block supplied
1397
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1398
+ # @yieldparam err [StandardError] error object if request failed
1399
+ #
1400
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1401
+ #
1402
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1403
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1404
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1405
+ def switchover_instance(project, instance, db_timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
1406
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/switchover', options)
1407
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1408
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
1409
+ command.params['project'] = project unless project.nil?
1410
+ command.params['instance'] = instance unless instance.nil?
1411
+ command.query['dbTimeout'] = db_timeout unless db_timeout.nil?
1412
+ command.query['fields'] = fields unless fields.nil?
1413
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1414
+ execute_or_queue_command(command, &block)
1415
+ end
1416
+
1222
1417
  # Truncate MySQL general and slow query log tables MySQL only.
1223
1418
  # @param [String] project
1224
1419
  # Project ID of the Cloud SQL project.
@@ -1292,6 +1487,39 @@ module Google
1292
1487
  execute_or_queue_command(command, &block)
1293
1488
  end
1294
1489
 
1490
+ # Cancels an instance operation that has been performed on an instance.
1491
+ # @param [String] project
1492
+ # Project ID of the project that contains the instance.
1493
+ # @param [String] operation
1494
+ # Instance operation ID.
1495
+ # @param [String] fields
1496
+ # Selector specifying which fields to include in a partial response.
1497
+ # @param [String] quota_user
1498
+ # Available to use for quota purposes for server-side applications. Can be any
1499
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1500
+ # @param [Google::Apis::RequestOptions] options
1501
+ # Request-specific options
1502
+ #
1503
+ # @yield [result, err] Result & error if block supplied
1504
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Empty] parsed result object
1505
+ # @yieldparam err [StandardError] error object if request failed
1506
+ #
1507
+ # @return [Google::Apis::SqladminV1beta4::Empty]
1508
+ #
1509
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1510
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1511
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1512
+ def cancel_operation(project, operation, fields: nil, quota_user: nil, options: nil, &block)
1513
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/operations/{operation}/cancel', options)
1514
+ command.response_representation = Google::Apis::SqladminV1beta4::Empty::Representation
1515
+ command.response_class = Google::Apis::SqladminV1beta4::Empty
1516
+ command.params['project'] = project unless project.nil?
1517
+ command.params['operation'] = operation unless operation.nil?
1518
+ command.query['fields'] = fields unless fields.nil?
1519
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1520
+ execute_or_queue_command(command, &block)
1521
+ end
1522
+
1295
1523
  # Retrieves an instance operation that has been performed on an instance.
1296
1524
  # @param [String] project
1297
1525
  # Project ID of the project that contains the instance.
@@ -1366,6 +1594,108 @@ module Google
1366
1594
  execute_or_queue_command(command, &block)
1367
1595
  end
1368
1596
 
1597
+ # Get Disk Shrink Config for a given instance.
1598
+ # @param [String] project
1599
+ # Project ID of the project that contains the instance.
1600
+ # @param [String] instance
1601
+ # Cloud SQL instance ID. This does not include the project ID.
1602
+ # @param [String] fields
1603
+ # Selector specifying which fields to include in a partial response.
1604
+ # @param [String] quota_user
1605
+ # Available to use for quota purposes for server-side applications. Can be any
1606
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1607
+ # @param [Google::Apis::RequestOptions] options
1608
+ # Request-specific options
1609
+ #
1610
+ # @yield [result, err] Result & error if block supplied
1611
+ # @yieldparam result [Google::Apis::SqladminV1beta4::SqlInstancesGetDiskShrinkConfigResponse] parsed result object
1612
+ # @yieldparam err [StandardError] error object if request failed
1613
+ #
1614
+ # @return [Google::Apis::SqladminV1beta4::SqlInstancesGetDiskShrinkConfigResponse]
1615
+ #
1616
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1617
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1618
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1619
+ def get_project_instance_disk_shrink_config(project, instance, fields: nil, quota_user: nil, options: nil, &block)
1620
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/getDiskShrinkConfig', options)
1621
+ command.response_representation = Google::Apis::SqladminV1beta4::SqlInstancesGetDiskShrinkConfigResponse::Representation
1622
+ command.response_class = Google::Apis::SqladminV1beta4::SqlInstancesGetDiskShrinkConfigResponse
1623
+ command.params['project'] = project unless project.nil?
1624
+ command.params['instance'] = instance unless instance.nil?
1625
+ command.query['fields'] = fields unless fields.nil?
1626
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1627
+ execute_or_queue_command(command, &block)
1628
+ end
1629
+
1630
+ # Get Latest Recovery Time for a given instance.
1631
+ # @param [String] project
1632
+ # Project ID of the project that contains the instance.
1633
+ # @param [String] instance
1634
+ # Cloud SQL instance ID. This does not include the project ID.
1635
+ # @param [String] fields
1636
+ # Selector specifying which fields to include in a partial response.
1637
+ # @param [String] quota_user
1638
+ # Available to use for quota purposes for server-side applications. Can be any
1639
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1640
+ # @param [Google::Apis::RequestOptions] options
1641
+ # Request-specific options
1642
+ #
1643
+ # @yield [result, err] Result & error if block supplied
1644
+ # @yieldparam result [Google::Apis::SqladminV1beta4::SqlInstancesGetLatestRecoveryTimeResponse] parsed result object
1645
+ # @yieldparam err [StandardError] error object if request failed
1646
+ #
1647
+ # @return [Google::Apis::SqladminV1beta4::SqlInstancesGetLatestRecoveryTimeResponse]
1648
+ #
1649
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1650
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1651
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1652
+ def get_project_instance_latest_recovery_time(project, instance, fields: nil, quota_user: nil, options: nil, &block)
1653
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/getLatestRecoveryTime', options)
1654
+ command.response_representation = Google::Apis::SqladminV1beta4::SqlInstancesGetLatestRecoveryTimeResponse::Representation
1655
+ command.response_class = Google::Apis::SqladminV1beta4::SqlInstancesGetLatestRecoveryTimeResponse
1656
+ command.params['project'] = project unless project.nil?
1657
+ command.params['instance'] = instance unless instance.nil?
1658
+ command.query['fields'] = fields unless fields.nil?
1659
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1660
+ execute_or_queue_command(command, &block)
1661
+ end
1662
+
1663
+ # Perform Disk Shrink on primary instance.
1664
+ # @param [String] project
1665
+ # Project ID of the project that contains the instance.
1666
+ # @param [String] instance
1667
+ # Cloud SQL instance ID. This does not include the project ID.
1668
+ # @param [Google::Apis::SqladminV1beta4::PerformDiskShrinkContext] perform_disk_shrink_context_object
1669
+ # @param [String] fields
1670
+ # Selector specifying which fields to include in a partial response.
1671
+ # @param [String] quota_user
1672
+ # Available to use for quota purposes for server-side applications. Can be any
1673
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1674
+ # @param [Google::Apis::RequestOptions] options
1675
+ # Request-specific options
1676
+ #
1677
+ # @yield [result, err] Result & error if block supplied
1678
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1679
+ # @yieldparam err [StandardError] error object if request failed
1680
+ #
1681
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1682
+ #
1683
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1684
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1685
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1686
+ def perform_project_instance_disk_shrink(project, instance, perform_disk_shrink_context_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1687
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/performDiskShrink', options)
1688
+ command.request_representation = Google::Apis::SqladminV1beta4::PerformDiskShrinkContext::Representation
1689
+ command.request_object = perform_disk_shrink_context_object
1690
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1691
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
1692
+ command.params['project'] = project unless project.nil?
1693
+ command.params['instance'] = instance unless instance.nil?
1694
+ command.query['fields'] = fields unless fields.nil?
1695
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1696
+ execute_or_queue_command(command, &block)
1697
+ end
1698
+
1369
1699
  # Reschedules the maintenance on the given instance.
1370
1700
  # @param [String] project
1371
1701
  # ID of the project that contains the instance.
@@ -1402,6 +1732,42 @@ module Google
1402
1732
  execute_or_queue_command(command, &block)
1403
1733
  end
1404
1734
 
1735
+ # Reset Replica Size to primary instance disk size.
1736
+ # @param [String] project
1737
+ # ID of the project that contains the read replica.
1738
+ # @param [String] instance
1739
+ # Cloud SQL read replica instance name.
1740
+ # @param [Google::Apis::SqladminV1beta4::SqlInstancesResetReplicaSizeRequest] sql_instances_reset_replica_size_request_object
1741
+ # @param [String] fields
1742
+ # Selector specifying which fields to include in a partial response.
1743
+ # @param [String] quota_user
1744
+ # Available to use for quota purposes for server-side applications. Can be any
1745
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1746
+ # @param [Google::Apis::RequestOptions] options
1747
+ # Request-specific options
1748
+ #
1749
+ # @yield [result, err] Result & error if block supplied
1750
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1751
+ # @yieldparam err [StandardError] error object if request failed
1752
+ #
1753
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1754
+ #
1755
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1756
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1757
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1758
+ def reset_project_instance_replica_size(project, instance, sql_instances_reset_replica_size_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1759
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/resetReplicaSize', options)
1760
+ command.request_representation = Google::Apis::SqladminV1beta4::SqlInstancesResetReplicaSizeRequest::Representation
1761
+ command.request_object = sql_instances_reset_replica_size_request_object
1762
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1763
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
1764
+ command.params['project'] = project unless project.nil?
1765
+ command.params['instance'] = instance unless instance.nil?
1766
+ command.query['fields'] = fields unless fields.nil?
1767
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1768
+ execute_or_queue_command(command, &block)
1769
+ end
1770
+
1405
1771
  # Start External primary instance migration.
1406
1772
  # @param [String] project
1407
1773
  # ID of the project that contains the instance.
@@ -1734,8 +2100,9 @@ module Google
1734
2100
  # @param [String] instance
1735
2101
  # Database instance ID. This does not include the project ID.
1736
2102
  # @param [String] name
1737
- # User of the instance. If the database user has a host, this is specified as `
1738
- # username`@`host` else as `username`.
2103
+ # User of the instance.
2104
+ # @param [String] host
2105
+ # Host of a user of the instance.
1739
2106
  # @param [String] fields
1740
2107
  # Selector specifying which fields to include in a partial response.
1741
2108
  # @param [String] quota_user
@@ -1753,13 +2120,14 @@ module Google
1753
2120
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1754
2121
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1755
2122
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1756
- def get_user(project, instance, name, fields: nil, quota_user: nil, options: nil, &block)
2123
+ def get_user(project, instance, name, host: nil, fields: nil, quota_user: nil, options: nil, &block)
1757
2124
  command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/users/{name}', options)
1758
2125
  command.response_representation = Google::Apis::SqladminV1beta4::User::Representation
1759
2126
  command.response_class = Google::Apis::SqladminV1beta4::User
1760
2127
  command.params['project'] = project unless project.nil?
1761
2128
  command.params['instance'] = instance unless instance.nil?
1762
2129
  command.params['name'] = name unless name.nil?
2130
+ command.query['host'] = host unless host.nil?
1763
2131
  command.query['fields'] = fields unless fields.nil?
1764
2132
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1765
2133
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-sqladmin_v1beta4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.0
4
+ version: 0.73.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-19 00:00:00.000000000 Z
11
+ date: 2024-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.2
19
+ version: 0.15.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.7.2
29
+ version: 0.15.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1beta4/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.36.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.73.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1beta4
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -68,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: '2.5'
71
+ version: '2.7'
72
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.14
78
+ rubygems_version: 3.5.6
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud SQL Admin API V1beta4