google-cloud-sql-v1beta4 0.5.0 → 0.7.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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -6
  3. data/lib/google/cloud/sql/v1beta4/cloud_sql_pb.rb +12 -1
  4. data/lib/google/cloud/sql/v1beta4/cloud_sql_resources_pb.rb +16 -1
  5. data/lib/google/cloud/sql/v1beta4/cloud_sql_services_pb.rb +27 -0
  6. data/lib/google/cloud/sql/v1beta4/cloud_sql_users_services_pb.rb +1 -0
  7. data/lib/google/cloud/sql/v1beta4/cloud_sql_workload_captures_pb.rb +2 -1
  8. data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/client.rb +2 -0
  9. data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest/client.rb +2 -0
  10. data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest.rb +2 -0
  11. data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service.rb +2 -0
  12. data/lib/google/cloud/sql/v1beta4/sql_backups_service/client.rb +2 -0
  13. data/lib/google/cloud/sql/v1beta4/sql_backups_service/paths.rb +17 -0
  14. data/lib/google/cloud/sql/v1beta4/sql_backups_service/rest/client.rb +2 -0
  15. data/lib/google/cloud/sql/v1beta4/sql_backups_service/rest.rb +2 -0
  16. data/lib/google/cloud/sql/v1beta4/sql_backups_service.rb +2 -0
  17. data/lib/google/cloud/sql/v1beta4/sql_databases_service/client.rb +2 -0
  18. data/lib/google/cloud/sql/v1beta4/sql_databases_service/rest/client.rb +2 -0
  19. data/lib/google/cloud/sql/v1beta4/sql_databases_service/rest.rb +2 -0
  20. data/lib/google/cloud/sql/v1beta4/sql_databases_service.rb +2 -0
  21. data/lib/google/cloud/sql/v1beta4/sql_flags_service/client.rb +2 -0
  22. data/lib/google/cloud/sql/v1beta4/sql_flags_service/rest/client.rb +2 -0
  23. data/lib/google/cloud/sql/v1beta4/sql_flags_service/rest.rb +2 -0
  24. data/lib/google/cloud/sql/v1beta4/sql_flags_service.rb +2 -0
  25. data/lib/google/cloud/sql/v1beta4/sql_instances_service/client.rb +411 -0
  26. data/lib/google/cloud/sql/v1beta4/sql_instances_service/paths.rb +17 -0
  27. data/lib/google/cloud/sql/v1beta4/sql_instances_service/rest/client.rb +371 -0
  28. data/lib/google/cloud/sql/v1beta4/sql_instances_service/rest/service_stub.rb +250 -0
  29. data/lib/google/cloud/sql/v1beta4/sql_instances_service/rest.rb +2 -0
  30. data/lib/google/cloud/sql/v1beta4/sql_instances_service.rb +2 -0
  31. data/lib/google/cloud/sql/v1beta4/sql_operations_service/client.rb +2 -0
  32. data/lib/google/cloud/sql/v1beta4/sql_operations_service/rest/client.rb +2 -0
  33. data/lib/google/cloud/sql/v1beta4/sql_operations_service/rest.rb +2 -0
  34. data/lib/google/cloud/sql/v1beta4/sql_operations_service.rb +2 -0
  35. data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/client.rb +317 -0
  36. data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/rest/client.rb +281 -0
  37. data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/rest/service_stub.rb +189 -0
  38. data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/rest.rb +2 -0
  39. data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service.rb +2 -0
  40. data/lib/google/cloud/sql/v1beta4/sql_users_service/client.rb +2 -0
  41. data/lib/google/cloud/sql/v1beta4/sql_users_service/rest/client.rb +2 -0
  42. data/lib/google/cloud/sql/v1beta4/sql_users_service/rest.rb +2 -0
  43. data/lib/google/cloud/sql/v1beta4/sql_users_service.rb +2 -0
  44. data/lib/google/cloud/sql/v1beta4/version.rb +1 -1
  45. data/proto_docs/google/cloud/sql/v1beta4/cloud_sql.rb +227 -0
  46. data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_resources.rb +325 -0
  47. data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_workload_captures.rb +16 -0
  48. metadata +1 -1
@@ -30,6 +30,8 @@ module Google
30
30
  ##
31
31
  # REST client for the SqlInstancesService service.
32
32
  #
33
+ # Service to manage Cloud SQL instances.
34
+ #
33
35
  class Client
34
36
  # @private
35
37
  API_VERSION = ""
@@ -2098,6 +2100,174 @@ module Google
2098
2100
  raise ::Google::Cloud::Error.from_error(e)
2099
2101
  end
2100
2102
 
2103
+ ##
2104
+ # Starts a Cloud SQL instance.
2105
+ #
2106
+ # @overload start(request, options = nil)
2107
+ # Pass arguments to `start` via a request object, either of type
2108
+ # {::Google::Cloud::Sql::V1beta4::SqlInstancesStartRequest} or an equivalent Hash.
2109
+ #
2110
+ # @param request [::Google::Cloud::Sql::V1beta4::SqlInstancesStartRequest, ::Hash]
2111
+ # A request object representing the call parameters. Required. To specify no
2112
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2113
+ # @param options [::Gapic::CallOptions, ::Hash]
2114
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2115
+ #
2116
+ # @overload start(instance: nil, project: nil, location: nil)
2117
+ # Pass arguments to `start` via keyword arguments. Note that at
2118
+ # least one keyword argument is required. To specify no parameters, or to keep all
2119
+ # the default parameter values, pass an empty Hash as a request object (see above).
2120
+ #
2121
+ # @param instance [::String]
2122
+ # Required. Cloud SQL instance ID. This does not include the project ID.
2123
+ # @param project [::String]
2124
+ # Required. Project ID of the project that contains the instance to be
2125
+ # started.
2126
+ # @param location [::String]
2127
+ # Optional. The region of the Cloud SQL instance, for example `us-central1`.
2128
+ # If omitted, the region is determined from the instance.
2129
+ # @yield [result, operation] Access the result along with the TransportOperation object
2130
+ # @yieldparam result [::Google::Cloud::Sql::V1beta4::Operation]
2131
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2132
+ #
2133
+ # @return [::Google::Cloud::Sql::V1beta4::Operation]
2134
+ #
2135
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2136
+ #
2137
+ # @example Basic example
2138
+ # require "google/cloud/sql/v1beta4"
2139
+ #
2140
+ # # Create a client object. The client can be reused for multiple calls.
2141
+ # client = Google::Cloud::Sql::V1beta4::SqlInstancesService::Rest::Client.new
2142
+ #
2143
+ # # Create a request. To set request fields, pass in keyword arguments.
2144
+ # request = Google::Cloud::Sql::V1beta4::SqlInstancesStartRequest.new
2145
+ #
2146
+ # # Call the start method.
2147
+ # result = client.start request
2148
+ #
2149
+ # # The returned object is of type Google::Cloud::Sql::V1beta4::Operation.
2150
+ # p result
2151
+ #
2152
+ def start request, options = nil
2153
+ raise ::ArgumentError, "request must be provided" if request.nil?
2154
+
2155
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Sql::V1beta4::SqlInstancesStartRequest
2156
+
2157
+ # Converts hash and nil to an options object
2158
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2159
+
2160
+ # Customize the options with defaults
2161
+ call_metadata = @config.rpcs.start.metadata.to_h
2162
+
2163
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2164
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2165
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2166
+ gapic_version: ::Google::Cloud::Sql::V1beta4::VERSION,
2167
+ transports_version_send: [:rest]
2168
+
2169
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2170
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2171
+
2172
+ options.apply_defaults timeout: @config.rpcs.start.timeout,
2173
+ metadata: call_metadata,
2174
+ retry_policy: @config.rpcs.start.retry_policy
2175
+
2176
+ options.apply_defaults timeout: @config.timeout,
2177
+ metadata: @config.metadata,
2178
+ retry_policy: @config.retry_policy
2179
+
2180
+ @sql_instances_service_stub.start request, options do |result, operation|
2181
+ yield result, operation if block_given?
2182
+ end
2183
+ rescue ::Gapic::Rest::Error => e
2184
+ raise ::Google::Cloud::Error.from_error(e)
2185
+ end
2186
+
2187
+ ##
2188
+ # Stops a Cloud SQL instance.
2189
+ #
2190
+ # @overload stop(request, options = nil)
2191
+ # Pass arguments to `stop` via a request object, either of type
2192
+ # {::Google::Cloud::Sql::V1beta4::SqlInstancesStopRequest} or an equivalent Hash.
2193
+ #
2194
+ # @param request [::Google::Cloud::Sql::V1beta4::SqlInstancesStopRequest, ::Hash]
2195
+ # A request object representing the call parameters. Required. To specify no
2196
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2197
+ # @param options [::Gapic::CallOptions, ::Hash]
2198
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2199
+ #
2200
+ # @overload stop(instance: nil, project: nil, location: nil)
2201
+ # Pass arguments to `stop` via keyword arguments. Note that at
2202
+ # least one keyword argument is required. To specify no parameters, or to keep all
2203
+ # the default parameter values, pass an empty Hash as a request object (see above).
2204
+ #
2205
+ # @param instance [::String]
2206
+ # Required. Cloud SQL instance ID. This does not include the project ID.
2207
+ # @param project [::String]
2208
+ # Required. Project ID of the project that contains the instance to be
2209
+ # stopped.
2210
+ # @param location [::String]
2211
+ # Optional. The region of the Cloud SQL instance, for example `us-central1`.
2212
+ # If omitted, the region is determined from the instance.
2213
+ # @yield [result, operation] Access the result along with the TransportOperation object
2214
+ # @yieldparam result [::Google::Cloud::Sql::V1beta4::Operation]
2215
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2216
+ #
2217
+ # @return [::Google::Cloud::Sql::V1beta4::Operation]
2218
+ #
2219
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2220
+ #
2221
+ # @example Basic example
2222
+ # require "google/cloud/sql/v1beta4"
2223
+ #
2224
+ # # Create a client object. The client can be reused for multiple calls.
2225
+ # client = Google::Cloud::Sql::V1beta4::SqlInstancesService::Rest::Client.new
2226
+ #
2227
+ # # Create a request. To set request fields, pass in keyword arguments.
2228
+ # request = Google::Cloud::Sql::V1beta4::SqlInstancesStopRequest.new
2229
+ #
2230
+ # # Call the stop method.
2231
+ # result = client.stop request
2232
+ #
2233
+ # # The returned object is of type Google::Cloud::Sql::V1beta4::Operation.
2234
+ # p result
2235
+ #
2236
+ def stop request, options = nil
2237
+ raise ::ArgumentError, "request must be provided" if request.nil?
2238
+
2239
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Sql::V1beta4::SqlInstancesStopRequest
2240
+
2241
+ # Converts hash and nil to an options object
2242
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2243
+
2244
+ # Customize the options with defaults
2245
+ call_metadata = @config.rpcs.stop.metadata.to_h
2246
+
2247
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2248
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2249
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2250
+ gapic_version: ::Google::Cloud::Sql::V1beta4::VERSION,
2251
+ transports_version_send: [:rest]
2252
+
2253
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2254
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2255
+
2256
+ options.apply_defaults timeout: @config.rpcs.stop.timeout,
2257
+ metadata: call_metadata,
2258
+ retry_policy: @config.rpcs.stop.retry_policy
2259
+
2260
+ options.apply_defaults timeout: @config.timeout,
2261
+ metadata: @config.metadata,
2262
+ retry_policy: @config.retry_policy
2263
+
2264
+ @sql_instances_service_stub.stop request, options do |result, operation|
2265
+ yield result, operation if block_given?
2266
+ end
2267
+ rescue ::Gapic::Rest::Error => e
2268
+ raise ::Google::Cloud::Error.from_error(e)
2269
+ end
2270
+
2101
2271
  ##
2102
2272
  # Restores a backup of a Cloud SQL instance. Using this operation might cause
2103
2273
  # your instance to restart.
@@ -3473,6 +3643,90 @@ module Google
3473
3643
  raise ::Google::Cloud::Error.from_error(e)
3474
3644
  end
3475
3645
 
3646
+ ##
3647
+ # Execute SQL statements in read-only mode.
3648
+ #
3649
+ # @overload execute_sql_read_only(request, options = nil)
3650
+ # Pass arguments to `execute_sql_read_only` via a request object, either of type
3651
+ # {::Google::Cloud::Sql::V1beta4::SqlInstancesExecuteSqlReadOnlyRequest} or an equivalent Hash.
3652
+ #
3653
+ # @param request [::Google::Cloud::Sql::V1beta4::SqlInstancesExecuteSqlReadOnlyRequest, ::Hash]
3654
+ # A request object representing the call parameters. Required. To specify no
3655
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3656
+ # @param options [::Gapic::CallOptions, ::Hash]
3657
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3658
+ #
3659
+ # @overload execute_sql_read_only(instance: nil, project: nil, body: nil, location: nil)
3660
+ # Pass arguments to `execute_sql_read_only` via keyword arguments. Note that at
3661
+ # least one keyword argument is required. To specify no parameters, or to keep all
3662
+ # the default parameter values, pass an empty Hash as a request object (see above).
3663
+ #
3664
+ # @param instance [::String]
3665
+ # Required. Database instance ID. This does not include the project ID.
3666
+ # @param project [::String]
3667
+ # Required. Project ID of the project that contains the instance.
3668
+ # @param body [::Google::Cloud::Sql::V1beta4::ExecuteSqlReadOnlyPayload, ::Hash]
3669
+ # Required. The request body.
3670
+ # @param location [::String]
3671
+ # Optional. Region of the Cloud SQL instance.
3672
+ # @yield [result, operation] Access the result along with the TransportOperation object
3673
+ # @yieldparam result [::Google::Cloud::Sql::V1beta4::SqlInstancesExecuteSqlReadOnlyResponse]
3674
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3675
+ #
3676
+ # @return [::Google::Cloud::Sql::V1beta4::SqlInstancesExecuteSqlReadOnlyResponse]
3677
+ #
3678
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3679
+ #
3680
+ # @example Basic example
3681
+ # require "google/cloud/sql/v1beta4"
3682
+ #
3683
+ # # Create a client object. The client can be reused for multiple calls.
3684
+ # client = Google::Cloud::Sql::V1beta4::SqlInstancesService::Rest::Client.new
3685
+ #
3686
+ # # Create a request. To set request fields, pass in keyword arguments.
3687
+ # request = Google::Cloud::Sql::V1beta4::SqlInstancesExecuteSqlReadOnlyRequest.new
3688
+ #
3689
+ # # Call the execute_sql_read_only method.
3690
+ # result = client.execute_sql_read_only request
3691
+ #
3692
+ # # The returned object is of type Google::Cloud::Sql::V1beta4::SqlInstancesExecuteSqlReadOnlyResponse.
3693
+ # p result
3694
+ #
3695
+ def execute_sql_read_only request, options = nil
3696
+ raise ::ArgumentError, "request must be provided" if request.nil?
3697
+
3698
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Sql::V1beta4::SqlInstancesExecuteSqlReadOnlyRequest
3699
+
3700
+ # Converts hash and nil to an options object
3701
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3702
+
3703
+ # Customize the options with defaults
3704
+ call_metadata = @config.rpcs.execute_sql_read_only.metadata.to_h
3705
+
3706
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3707
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3708
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3709
+ gapic_version: ::Google::Cloud::Sql::V1beta4::VERSION,
3710
+ transports_version_send: [:rest]
3711
+
3712
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3713
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3714
+
3715
+ options.apply_defaults timeout: @config.rpcs.execute_sql_read_only.timeout,
3716
+ metadata: call_metadata,
3717
+ retry_policy: @config.rpcs.execute_sql_read_only.retry_policy
3718
+
3719
+ options.apply_defaults timeout: @config.timeout,
3720
+ metadata: @config.metadata,
3721
+ retry_policy: @config.retry_policy
3722
+
3723
+ @sql_instances_service_stub.execute_sql_read_only request, options do |result, operation|
3724
+ yield result, operation if block_given?
3725
+ end
3726
+ rescue ::Gapic::Rest::Error => e
3727
+ raise ::Google::Cloud::Error.from_error(e)
3728
+ end
3729
+
3476
3730
  ##
3477
3731
  # Execute SQL statements.
3478
3732
  #
@@ -3899,6 +4153,95 @@ module Google
3899
4153
  raise ::Google::Cloud::Error.from_error(e)
3900
4154
  end
3901
4155
 
4156
+ ##
4157
+ # Repairs and recreates networking resources for a Cloud SQL instance. For
4158
+ # Private Service Connect (PSC), this operation recreates PSC DNS write
4159
+ # endpoints on specified VPC networks and reconciles Private Service Connect
4160
+ # connectivity infrastructure for the instance.
4161
+ #
4162
+ # @overload reconcile_networking(request, options = nil)
4163
+ # Pass arguments to `reconcile_networking` via a request object, either of type
4164
+ # {::Google::Cloud::Sql::V1beta4::SqlInstancesReconcileNetworkingRequest} or an equivalent Hash.
4165
+ #
4166
+ # @param request [::Google::Cloud::Sql::V1beta4::SqlInstancesReconcileNetworkingRequest, ::Hash]
4167
+ # A request object representing the call parameters. Required. To specify no
4168
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4169
+ # @param options [::Gapic::CallOptions, ::Hash]
4170
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4171
+ #
4172
+ # @overload reconcile_networking(instance: nil, project: nil, psc_dns: nil, location: nil)
4173
+ # Pass arguments to `reconcile_networking` via keyword arguments. Note that at
4174
+ # least one keyword argument is required. To specify no parameters, or to keep all
4175
+ # the default parameter values, pass an empty Hash as a request object (see above).
4176
+ #
4177
+ # @param instance [::String]
4178
+ # Required. Cloud SQL instance ID.
4179
+ # @param project [::String]
4180
+ # Required. Project ID of the project that contains the instance.
4181
+ # @param psc_dns [::Google::Cloud::Sql::V1beta4::PscDnsReconcileNetworkingRequest, ::Hash]
4182
+ # Request to recreate Private Service Connect DNS write endpoints and
4183
+ # reconcile Private Service Connect connectivity infrastructure for the
4184
+ # instance.
4185
+ # @param location [::String]
4186
+ # Optional. Region of the Cloud SQL instance.
4187
+ # @yield [result, operation] Access the result along with the TransportOperation object
4188
+ # @yieldparam result [::Google::Cloud::Sql::V1beta4::Operation]
4189
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4190
+ #
4191
+ # @return [::Google::Cloud::Sql::V1beta4::Operation]
4192
+ #
4193
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4194
+ #
4195
+ # @example Basic example
4196
+ # require "google/cloud/sql/v1beta4"
4197
+ #
4198
+ # # Create a client object. The client can be reused for multiple calls.
4199
+ # client = Google::Cloud::Sql::V1beta4::SqlInstancesService::Rest::Client.new
4200
+ #
4201
+ # # Create a request. To set request fields, pass in keyword arguments.
4202
+ # request = Google::Cloud::Sql::V1beta4::SqlInstancesReconcileNetworkingRequest.new
4203
+ #
4204
+ # # Call the reconcile_networking method.
4205
+ # result = client.reconcile_networking request
4206
+ #
4207
+ # # The returned object is of type Google::Cloud::Sql::V1beta4::Operation.
4208
+ # p result
4209
+ #
4210
+ def reconcile_networking request, options = nil
4211
+ raise ::ArgumentError, "request must be provided" if request.nil?
4212
+
4213
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Sql::V1beta4::SqlInstancesReconcileNetworkingRequest
4214
+
4215
+ # Converts hash and nil to an options object
4216
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4217
+
4218
+ # Customize the options with defaults
4219
+ call_metadata = @config.rpcs.reconcile_networking.metadata.to_h
4220
+
4221
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4222
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4223
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4224
+ gapic_version: ::Google::Cloud::Sql::V1beta4::VERSION,
4225
+ transports_version_send: [:rest]
4226
+
4227
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4228
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4229
+
4230
+ options.apply_defaults timeout: @config.rpcs.reconcile_networking.timeout,
4231
+ metadata: call_metadata,
4232
+ retry_policy: @config.rpcs.reconcile_networking.retry_policy
4233
+
4234
+ options.apply_defaults timeout: @config.timeout,
4235
+ metadata: @config.metadata,
4236
+ retry_policy: @config.retry_policy
4237
+
4238
+ @sql_instances_service_stub.reconcile_networking request, options do |result, operation|
4239
+ yield result, operation if block_given?
4240
+ end
4241
+ rescue ::Gapic::Rest::Error => e
4242
+ raise ::Google::Cloud::Error.from_error(e)
4243
+ end
4244
+
3902
4245
  ##
3903
4246
  # Configuration class for the SqlInstancesService REST API.
3904
4247
  #
@@ -4158,6 +4501,16 @@ module Google
4158
4501
  #
4159
4502
  attr_reader :restart
4160
4503
  ##
4504
+ # RPC-specific configuration for `start`
4505
+ # @return [::Gapic::Config::Method]
4506
+ #
4507
+ attr_reader :start
4508
+ ##
4509
+ # RPC-specific configuration for `stop`
4510
+ # @return [::Gapic::Config::Method]
4511
+ #
4512
+ attr_reader :stop
4513
+ ##
4161
4514
  # RPC-specific configuration for `restore_backup`
4162
4515
  # @return [::Gapic::Config::Method]
4163
4516
  #
@@ -4238,6 +4591,11 @@ module Google
4238
4591
  #
4239
4592
  attr_reader :get_latest_recovery_time
4240
4593
  ##
4594
+ # RPC-specific configuration for `execute_sql_read_only`
4595
+ # @return [::Gapic::Config::Method]
4596
+ #
4597
+ attr_reader :execute_sql_read_only
4598
+ ##
4241
4599
  # RPC-specific configuration for `execute_sql`
4242
4600
  # @return [::Gapic::Config::Method]
4243
4601
  #
@@ -4262,6 +4620,11 @@ module Google
4262
4620
  # @return [::Gapic::Config::Method]
4263
4621
  #
4264
4622
  attr_reader :point_in_time_restore
4623
+ ##
4624
+ # RPC-specific configuration for `reconcile_networking`
4625
+ # @return [::Gapic::Config::Method]
4626
+ #
4627
+ attr_reader :reconcile_networking
4265
4628
 
4266
4629
  # @private
4267
4630
  def initialize parent_rpcs = nil
@@ -4309,6 +4672,10 @@ module Google
4309
4672
  @reset_ssl_config = ::Gapic::Config::Method.new reset_ssl_config_config
4310
4673
  restart_config = parent_rpcs.restart if parent_rpcs.respond_to? :restart
4311
4674
  @restart = ::Gapic::Config::Method.new restart_config
4675
+ start_config = parent_rpcs.start if parent_rpcs.respond_to? :start
4676
+ @start = ::Gapic::Config::Method.new start_config
4677
+ stop_config = parent_rpcs.stop if parent_rpcs.respond_to? :stop
4678
+ @stop = ::Gapic::Config::Method.new stop_config
4312
4679
  restore_backup_config = parent_rpcs.restore_backup if parent_rpcs.respond_to? :restore_backup
4313
4680
  @restore_backup = ::Gapic::Config::Method.new restore_backup_config
4314
4681
  rotate_server_ca_config = parent_rpcs.rotate_server_ca if parent_rpcs.respond_to? :rotate_server_ca
@@ -4341,6 +4708,8 @@ module Google
4341
4708
  @reset_replica_size = ::Gapic::Config::Method.new reset_replica_size_config
4342
4709
  get_latest_recovery_time_config = parent_rpcs.get_latest_recovery_time if parent_rpcs.respond_to? :get_latest_recovery_time
4343
4710
  @get_latest_recovery_time = ::Gapic::Config::Method.new get_latest_recovery_time_config
4711
+ execute_sql_read_only_config = parent_rpcs.execute_sql_read_only if parent_rpcs.respond_to? :execute_sql_read_only
4712
+ @execute_sql_read_only = ::Gapic::Config::Method.new execute_sql_read_only_config
4344
4713
  execute_sql_config = parent_rpcs.execute_sql if parent_rpcs.respond_to? :execute_sql
4345
4714
  @execute_sql = ::Gapic::Config::Method.new execute_sql_config
4346
4715
  acquire_ssrs_lease_config = parent_rpcs.acquire_ssrs_lease if parent_rpcs.respond_to? :acquire_ssrs_lease
@@ -4351,6 +4720,8 @@ module Google
4351
4720
  @pre_check_major_version_upgrade = ::Gapic::Config::Method.new pre_check_major_version_upgrade_config
4352
4721
  point_in_time_restore_config = parent_rpcs.point_in_time_restore if parent_rpcs.respond_to? :point_in_time_restore
4353
4722
  @point_in_time_restore = ::Gapic::Config::Method.new point_in_time_restore_config
4723
+ reconcile_networking_config = parent_rpcs.reconcile_networking if parent_rpcs.respond_to? :reconcile_networking
4724
+ @reconcile_networking = ::Gapic::Config::Method.new reconcile_networking_config
4354
4725
 
4355
4726
  yield self if block_given?
4356
4727
  end