google-api-client 0.33.1 → 0.33.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -0
  3. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  4. data/generated/google/apis/accessapproval_v1beta1/classes.rb +11 -0
  5. data/generated/google/apis/accessapproval_v1beta1/representations.rb +1 -0
  6. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  7. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +0 -72
  8. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +0 -32
  9. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +15 -2
  11. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  12. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +16 -3
  13. data/generated/google/apis/admin_datatransfer_v1.rb +1 -1
  14. data/generated/google/apis/admin_datatransfer_v1/classes.rb +5 -5
  15. data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -2
  16. data/generated/google/apis/admin_reports_v1.rb +1 -1
  17. data/generated/google/apis/admin_reports_v1/service.rb +6 -3
  18. data/generated/google/apis/appengine_v1.rb +1 -1
  19. data/generated/google/apis/appengine_v1/service.rb +3 -3
  20. data/generated/google/apis/appengine_v1beta.rb +1 -1
  21. data/generated/google/apis/appengine_v1beta/service.rb +3 -3
  22. data/generated/google/apis/bigquery_v2.rb +1 -1
  23. data/generated/google/apis/bigquery_v2/classes.rb +9 -1
  24. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  25. data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +1 -1
  26. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  27. data/generated/google/apis/bigtableadmin_v2/classes.rb +62 -29
  28. data/generated/google/apis/civicinfo_v2.rb +1 -1
  29. data/generated/google/apis/civicinfo_v2/representations.rb +2 -2
  30. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  31. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +2 -2
  32. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  33. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +12 -12
  34. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  35. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +4 -8
  36. data/generated/google/apis/cloudresourcemanager_v2/service.rb +11 -13
  37. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  38. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +4 -8
  39. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +11 -13
  40. data/generated/google/apis/cloudshell_v1.rb +1 -1
  41. data/generated/google/apis/cloudshell_v1/classes.rb +6 -0
  42. data/generated/google/apis/cloudshell_v1/representations.rb +1 -0
  43. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  44. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +6 -0
  45. data/generated/google/apis/cloudshell_v1alpha1/representations.rb +1 -0
  46. data/generated/google/apis/container_v1.rb +1 -1
  47. data/generated/google/apis/container_v1/classes.rb +205 -4
  48. data/generated/google/apis/container_v1/representations.rb +85 -0
  49. data/generated/google/apis/container_v1beta1.rb +1 -1
  50. data/generated/google/apis/container_v1beta1/classes.rb +93 -2
  51. data/generated/google/apis/container_v1beta1/representations.rb +18 -0
  52. data/generated/google/apis/docs_v1.rb +1 -1
  53. data/generated/google/apis/docs_v1/classes.rb +112 -0
  54. data/generated/google/apis/docs_v1/representations.rb +60 -0
  55. data/generated/google/apis/drive_v2.rb +1 -1
  56. data/generated/google/apis/drive_v2/classes.rb +2 -1
  57. data/generated/google/apis/fitness_v1.rb +1 -1
  58. data/generated/google/apis/fitness_v1/service.rb +1 -1
  59. data/generated/google/apis/healthcare_v1beta1/service.rb +11 -7
  60. data/generated/google/apis/licensing_v1.rb +4 -4
  61. data/generated/google/apis/licensing_v1/classes.rb +15 -7
  62. data/generated/google/apis/licensing_v1/service.rb +81 -37
  63. data/generated/google/apis/ml_v1.rb +2 -2
  64. data/generated/google/apis/ml_v1/classes.rb +9 -0
  65. data/generated/google/apis/ml_v1/representations.rb +1 -0
  66. data/generated/google/apis/ml_v1/service.rb +1 -1
  67. data/generated/google/apis/oslogin_v1.rb +1 -1
  68. data/generated/google/apis/oslogin_v1/classes.rb +1 -1
  69. data/generated/google/apis/oslogin_v1/service.rb +8 -5
  70. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  71. data/generated/google/apis/oslogin_v1beta/classes.rb +1 -1
  72. data/generated/google/apis/oslogin_v1beta/service.rb +9 -5
  73. data/generated/google/apis/reseller_v1.rb +1 -1
  74. data/generated/google/apis/reseller_v1/service.rb +1 -1
  75. data/generated/google/apis/run_v1alpha1.rb +1 -1
  76. data/generated/google/apis/run_v1alpha1/classes.rb +319 -0
  77. data/generated/google/apis/run_v1alpha1/representations.rb +126 -0
  78. data/generated/google/apis/run_v1alpha1/service.rb +408 -0
  79. data/generated/google/apis/speech_v2beta1.rb +34 -0
  80. data/generated/google/apis/speech_v2beta1/classes.rb +356 -0
  81. data/generated/google/apis/speech_v2beta1/representations.rb +152 -0
  82. data/generated/google/apis/speech_v2beta1/service.rb +138 -0
  83. data/generated/google/apis/sql_v1beta4.rb +1 -1
  84. data/generated/google/apis/sql_v1beta4/classes.rb +63 -0
  85. data/generated/google/apis/sql_v1beta4/representations.rb +32 -0
  86. data/generated/google/apis/sql_v1beta4/service.rb +161 -30
  87. data/generated/google/apis/storage_v1.rb +1 -1
  88. data/generated/google/apis/testing_v1.rb +1 -1
  89. data/generated/google/apis/testing_v1/classes.rb +141 -0
  90. data/generated/google/apis/testing_v1/representations.rb +76 -0
  91. data/generated/google/apis/videointelligence_v1.rb +1 -1
  92. data/generated/google/apis/videointelligence_v1/classes.rb +34 -34
  93. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  94. data/generated/google/apis/videointelligence_v1beta2/classes.rb +34 -34
  95. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  96. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +34 -34
  97. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  98. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +34 -34
  99. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  100. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +34 -34
  101. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  102. data/generated/google/apis/youtube_partner_v1/service.rb +2 -2
  103. data/lib/google/apis/version.rb +1 -1
  104. metadata +6 -2
@@ -0,0 +1,138 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module SpeechV2beta1
23
+ # Cloud Speech-to-Text API
24
+ #
25
+ # Converts audio to text by applying powerful neural network models.
26
+ #
27
+ # @example
28
+ # require 'google/apis/speech_v2beta1'
29
+ #
30
+ # Speech = Google::Apis::SpeechV2beta1 # Alias the module
31
+ # service = Speech::SpeechService.new
32
+ #
33
+ # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol
34
+ class SpeechService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://speech.googleapis.com/', '')
47
+ @batch_path = 'batch'
48
+ end
49
+
50
+ # Gets the latest state of a long-running operation. Clients can use this
51
+ # method to poll the operation result at intervals as recommended by the API
52
+ # service.
53
+ # @param [String] name
54
+ # The name of the operation resource.
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
57
+ # @param [String] quota_user
58
+ # Available to use for quota purposes for server-side applications. Can be any
59
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60
+ # @param [Google::Apis::RequestOptions] options
61
+ # Request-specific options
62
+ #
63
+ # @yield [result, err] Result & error if block supplied
64
+ # @yieldparam result [Google::Apis::SpeechV2beta1::Operation] parsed result object
65
+ # @yieldparam err [StandardError] error object if request failed
66
+ #
67
+ # @return [Google::Apis::SpeechV2beta1::Operation]
68
+ #
69
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
72
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:get, 'v2beta1/{+name}', options)
74
+ command.response_representation = Google::Apis::SpeechV2beta1::Operation::Representation
75
+ command.response_class = Google::Apis::SpeechV2beta1::Operation
76
+ command.params['name'] = name unless name.nil?
77
+ command.query['fields'] = fields unless fields.nil?
78
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
79
+ execute_or_queue_command(command, &block)
80
+ end
81
+
82
+ # Lists operations that match the specified filter in the request. If the
83
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
84
+ # NOTE: the `name` binding allows API services to override the binding
85
+ # to use different resource name schemes, such as `users/*/operations`. To
86
+ # override the binding, API services can add a binding such as
87
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
88
+ # For backwards compatibility, the default name includes the operations
89
+ # collection id, however overriding users must ensure the name binding
90
+ # is the parent resource, without the operations collection id.
91
+ # @param [String] name
92
+ # The name of the operation's parent resource.
93
+ # @param [String] filter
94
+ # The standard list filter.
95
+ # @param [Fixnum] page_size
96
+ # The standard list page size.
97
+ # @param [String] page_token
98
+ # The standard list page token.
99
+ # @param [String] fields
100
+ # Selector specifying which fields to include in a partial response.
101
+ # @param [String] quota_user
102
+ # Available to use for quota purposes for server-side applications. Can be any
103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
104
+ # @param [Google::Apis::RequestOptions] options
105
+ # Request-specific options
106
+ #
107
+ # @yield [result, err] Result & error if block supplied
108
+ # @yieldparam result [Google::Apis::SpeechV2beta1::ListOperationsResponse] parsed result object
109
+ # @yieldparam err [StandardError] error object if request failed
110
+ #
111
+ # @return [Google::Apis::SpeechV2beta1::ListOperationsResponse]
112
+ #
113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
116
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
117
+ command = make_simple_command(:get, 'v2beta1/{+name}/operations', options)
118
+ command.response_representation = Google::Apis::SpeechV2beta1::ListOperationsResponse::Representation
119
+ command.response_class = Google::Apis::SpeechV2beta1::ListOperationsResponse
120
+ command.params['name'] = name unless name.nil?
121
+ command.query['filter'] = filter unless filter.nil?
122
+ command.query['pageSize'] = page_size unless page_size.nil?
123
+ command.query['pageToken'] = page_token unless page_token.nil?
124
+ command.query['fields'] = fields unless fields.nil?
125
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
126
+ execute_or_queue_command(command, &block)
127
+ end
128
+
129
+ protected
130
+
131
+ def apply_command_defaults(command)
132
+ command.query['key'] = key unless key.nil?
133
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
134
+ end
135
+ end
136
+ end
137
+ end
138
+ end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/cloud-sql/
26
26
  module SqlV1beta4
27
27
  VERSION = 'V1beta4'
28
- REVISION = '20191005'
28
+ REVISION = '20191018'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -399,6 +399,11 @@ module Google
399
399
  # @return [String]
400
400
  attr_accessor :self_link
401
401
 
402
+ # Represents a Sql Server database on the Cloud SQL instance.
403
+ # Corresponds to the JSON property `sqlserverDatabaseDetails`
404
+ # @return [Google::Apis::SqlV1beta4::SqlServerDatabaseDetails]
405
+ attr_accessor :sqlserver_database_details
406
+
402
407
  def initialize(**args)
403
408
  update!(**args)
404
409
  end
@@ -413,6 +418,7 @@ module Google
413
418
  @name = args[:name] if args.key?(:name)
414
419
  @project = args[:project] if args.key?(:project)
415
420
  @self_link = args[:self_link] if args.key?(:self_link)
421
+ @sqlserver_database_details = args[:sqlserver_database_details] if args.key?(:sqlserver_database_details)
416
422
  end
417
423
  end
418
424
 
@@ -595,6 +601,11 @@ module Google
595
601
  # @return [String]
596
602
  attr_accessor :root_password
597
603
 
604
+ # Any scheduled maintenancce for this instance.
605
+ # Corresponds to the JSON property `scheduledMaintenance`
606
+ # @return [Google::Apis::SqlV1beta4::SqlScheduledMaintenance]
607
+ attr_accessor :scheduled_maintenance
608
+
598
609
  # The URI of this resource.
599
610
  # Corresponds to the JSON property `selfLink`
600
611
  # @return [String]
@@ -661,6 +672,7 @@ module Google
661
672
  @replica_configuration = args[:replica_configuration] if args.key?(:replica_configuration)
662
673
  @replica_names = args[:replica_names] if args.key?(:replica_names)
663
674
  @root_password = args[:root_password] if args.key?(:root_password)
675
+ @scheduled_maintenance = args[:scheduled_maintenance] if args.key?(:scheduled_maintenance)
664
676
  @self_link = args[:self_link] if args.key?(:self_link)
665
677
  @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert)
666
678
  @service_account_email_address = args[:service_account_email_address] if args.key?(:service_account_email_address)
@@ -2293,6 +2305,57 @@ module Google
2293
2305
  end
2294
2306
  end
2295
2307
 
2308
+ # Any scheduled maintenancce for this instance.
2309
+ class SqlScheduledMaintenance
2310
+ include Google::Apis::Core::Hashable
2311
+
2312
+ # If the scheduled maintenance can be deferred.
2313
+ # Corresponds to the JSON property `canDefer`
2314
+ # @return [Boolean]
2315
+ attr_accessor :can_defer
2316
+ alias_method :can_defer?, :can_defer
2317
+
2318
+ # The start time of any upcoming scheduled maintenance for this instance.
2319
+ # Corresponds to the JSON property `startTime`
2320
+ # @return [String]
2321
+ attr_accessor :start_time
2322
+
2323
+ def initialize(**args)
2324
+ update!(**args)
2325
+ end
2326
+
2327
+ # Update properties of this object
2328
+ def update!(**args)
2329
+ @can_defer = args[:can_defer] if args.key?(:can_defer)
2330
+ @start_time = args[:start_time] if args.key?(:start_time)
2331
+ end
2332
+ end
2333
+
2334
+ # Represents a Sql Server database on the Cloud SQL instance.
2335
+ class SqlServerDatabaseDetails
2336
+ include Google::Apis::Core::Hashable
2337
+
2338
+ # The version of SQL Server with which the database is to be made compatible
2339
+ # Corresponds to the JSON property `compatibilityLevel`
2340
+ # @return [Fixnum]
2341
+ attr_accessor :compatibility_level
2342
+
2343
+ # The recovery model of a SQL Server database
2344
+ # Corresponds to the JSON property `recoveryModel`
2345
+ # @return [String]
2346
+ attr_accessor :recovery_model
2347
+
2348
+ def initialize(**args)
2349
+ update!(**args)
2350
+ end
2351
+
2352
+ # Update properties of this object
2353
+ def update!(**args)
2354
+ @compatibility_level = args[:compatibility_level] if args.key?(:compatibility_level)
2355
+ @recovery_model = args[:recovery_model] if args.key?(:recovery_model)
2356
+ end
2357
+ end
2358
+
2296
2359
  # SslCerts Resource
2297
2360
  class SslCert
2298
2361
  include Google::Apis::Core::Hashable
@@ -334,6 +334,18 @@ module Google
334
334
  include Google::Apis::Core::JsonObjectSupport
335
335
  end
336
336
 
337
+ class SqlScheduledMaintenance
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
343
+ class SqlServerDatabaseDetails
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
337
349
  class SslCert
338
350
  class Representation < Google::Apis::Core::JsonRepresentation; end
339
351
 
@@ -495,6 +507,8 @@ module Google
495
507
  property :name, as: 'name'
496
508
  property :project, as: 'project'
497
509
  property :self_link, as: 'selfLink'
510
+ property :sqlserver_database_details, as: 'sqlserverDatabaseDetails', class: Google::Apis::SqlV1beta4::SqlServerDatabaseDetails, decorator: Google::Apis::SqlV1beta4::SqlServerDatabaseDetails::Representation
511
+
498
512
  end
499
513
  end
500
514
 
@@ -537,6 +551,8 @@ module Google
537
551
 
538
552
  collection :replica_names, as: 'replicaNames'
539
553
  property :root_password, as: 'rootPassword'
554
+ property :scheduled_maintenance, as: 'scheduledMaintenance', class: Google::Apis::SqlV1beta4::SqlScheduledMaintenance, decorator: Google::Apis::SqlV1beta4::SqlScheduledMaintenance::Representation
555
+
540
556
  property :self_link, as: 'selfLink'
541
557
  property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqlV1beta4::SslCert, decorator: Google::Apis::SqlV1beta4::SslCert::Representation
542
558
 
@@ -984,6 +1000,22 @@ module Google
984
1000
  end
985
1001
  end
986
1002
 
1003
+ class SqlScheduledMaintenance
1004
+ # @private
1005
+ class Representation < Google::Apis::Core::JsonRepresentation
1006
+ property :can_defer, as: 'canDefer'
1007
+ property :start_time, as: 'startTime'
1008
+ end
1009
+ end
1010
+
1011
+ class SqlServerDatabaseDetails
1012
+ # @private
1013
+ class Representation < Google::Apis::Core::JsonRepresentation
1014
+ property :compatibility_level, as: 'compatibilityLevel'
1015
+ property :recovery_model, as: 'recoveryModel'
1016
+ end
1017
+ end
1018
+
987
1019
  class SslCert
988
1020
  # @private
989
1021
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -92,6 +92,11 @@ module Google
92
92
  # Cloud SQL instance ID. This does not include the project ID.
93
93
  # @param [Fixnum] id
94
94
  # The ID of this Backup Run.
95
+ # @param [String] resource_name
96
+ # Name of the resource backupRun.
97
+ # Format:
98
+ # projects/`project`/locations/`location`/instances/`instance`/backupRuns/`
99
+ # backupRun`
95
100
  # @param [String] fields
96
101
  # Selector specifying which fields to include in a partial response.
97
102
  # @param [String] quota_user
@@ -109,13 +114,14 @@ module Google
109
114
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
110
115
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
111
116
  # @raise [Google::Apis::AuthorizationError] Authorization is required
112
- def get_backup_run(project, instance, id, fields: nil, quota_user: nil, options: nil, &block)
117
+ def get_backup_run(project, instance, id, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
113
118
  command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}', options)
114
119
  command.response_representation = Google::Apis::SqlV1beta4::BackupRun::Representation
115
120
  command.response_class = Google::Apis::SqlV1beta4::BackupRun
116
121
  command.params['project'] = project unless project.nil?
117
122
  command.params['instance'] = instance unless instance.nil?
118
123
  command.params['id'] = id unless id.nil?
124
+ command.query['resourceName'] = resource_name unless resource_name.nil?
119
125
  command.query['fields'] = fields unless fields.nil?
120
126
  command.query['quotaUser'] = quota_user unless quota_user.nil?
121
127
  execute_or_queue_command(command, &block)
@@ -128,6 +134,9 @@ module Google
128
134
  # @param [String] instance
129
135
  # Cloud SQL instance ID. This does not include the project ID.
130
136
  # @param [Google::Apis::SqlV1beta4::BackupRun] backup_run_object
137
+ # @param [String] parent
138
+ # The parent resource where Cloud SQL should create this backupRun.
139
+ # Format: projects/`project`/locations/`location`/instances/`instance`
131
140
  # @param [String] fields
132
141
  # Selector specifying which fields to include in a partial response.
133
142
  # @param [String] quota_user
@@ -145,7 +154,7 @@ module Google
145
154
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
146
155
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
147
156
  # @raise [Google::Apis::AuthorizationError] Authorization is required
148
- def insert_backup_run(project, instance, backup_run_object = nil, fields: nil, quota_user: nil, options: nil, &block)
157
+ def insert_backup_run(project, instance, backup_run_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
149
158
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns', options)
150
159
  command.request_representation = Google::Apis::SqlV1beta4::BackupRun::Representation
151
160
  command.request_object = backup_run_object
@@ -153,6 +162,7 @@ module Google
153
162
  command.response_class = Google::Apis::SqlV1beta4::Operation
154
163
  command.params['project'] = project unless project.nil?
155
164
  command.params['instance'] = instance unless instance.nil?
165
+ command.query['parent'] = parent unless parent.nil?
156
166
  command.query['fields'] = fields unless fields.nil?
157
167
  command.query['quotaUser'] = quota_user unless quota_user.nil?
158
168
  execute_or_queue_command(command, &block)
@@ -169,6 +179,9 @@ module Google
169
179
  # @param [String] page_token
170
180
  # A previously-returned page token representing part of the larger set of
171
181
  # results to view.
182
+ # @param [String] parent
183
+ # The parent, which owns this collection of backupRuns.
184
+ # Format: projects/`project`/locations/`location`/instances/`instance`
172
185
  # @param [String] fields
173
186
  # Selector specifying which fields to include in a partial response.
174
187
  # @param [String] quota_user
@@ -186,7 +199,7 @@ module Google
186
199
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
187
200
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
188
201
  # @raise [Google::Apis::AuthorizationError] Authorization is required
189
- def list_backup_runs(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
202
+ def list_backup_runs(project, instance, max_results: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
190
203
  command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns', options)
191
204
  command.response_representation = Google::Apis::SqlV1beta4::BackupRunsListResponse::Representation
192
205
  command.response_class = Google::Apis::SqlV1beta4::BackupRunsListResponse
@@ -194,6 +207,7 @@ module Google
194
207
  command.params['instance'] = instance unless instance.nil?
195
208
  command.query['maxResults'] = max_results unless max_results.nil?
196
209
  command.query['pageToken'] = page_token unless page_token.nil?
210
+ command.query['parent'] = parent unless parent.nil?
197
211
  command.query['fields'] = fields unless fields.nil?
198
212
  command.query['quotaUser'] = quota_user unless quota_user.nil?
199
213
  execute_or_queue_command(command, &block)
@@ -243,6 +257,11 @@ module Google
243
257
  # Database instance ID. This does not include the project ID.
244
258
  # @param [String] database
245
259
  # Name of the database in the instance.
260
+ # @param [String] resource_name
261
+ # Name of the resource database.
262
+ # Format:
263
+ # projects/`project`/locations/`location`/instances/`instance`/databases/`
264
+ # database`
246
265
  # @param [String] fields
247
266
  # Selector specifying which fields to include in a partial response.
248
267
  # @param [String] quota_user
@@ -260,13 +279,14 @@ module Google
260
279
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
261
280
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
262
281
  # @raise [Google::Apis::AuthorizationError] Authorization is required
263
- def get_database(project, instance, database, fields: nil, quota_user: nil, options: nil, &block)
282
+ def get_database(project, instance, database, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
264
283
  command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options)
265
284
  command.response_representation = Google::Apis::SqlV1beta4::Database::Representation
266
285
  command.response_class = Google::Apis::SqlV1beta4::Database
267
286
  command.params['project'] = project unless project.nil?
268
287
  command.params['instance'] = instance unless instance.nil?
269
288
  command.params['database'] = database unless database.nil?
289
+ command.query['resourceName'] = resource_name unless resource_name.nil?
270
290
  command.query['fields'] = fields unless fields.nil?
271
291
  command.query['quotaUser'] = quota_user unless quota_user.nil?
272
292
  execute_or_queue_command(command, &block)
@@ -279,6 +299,9 @@ module Google
279
299
  # @param [String] instance
280
300
  # Database instance ID. This does not include the project ID.
281
301
  # @param [Google::Apis::SqlV1beta4::Database] database_object
302
+ # @param [String] parent
303
+ # The parent resource where Cloud SQL should add this database.
304
+ # Format: projects/`project`/locations/`location`/instances/`instance`
282
305
  # @param [String] fields
283
306
  # Selector specifying which fields to include in a partial response.
284
307
  # @param [String] quota_user
@@ -296,7 +319,7 @@ module Google
296
319
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
297
320
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
298
321
  # @raise [Google::Apis::AuthorizationError] Authorization is required
299
- def insert_database(project, instance, database_object = nil, fields: nil, quota_user: nil, options: nil, &block)
322
+ def insert_database(project, instance, database_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
300
323
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/databases', options)
301
324
  command.request_representation = Google::Apis::SqlV1beta4::Database::Representation
302
325
  command.request_object = database_object
@@ -304,6 +327,7 @@ module Google
304
327
  command.response_class = Google::Apis::SqlV1beta4::Operation
305
328
  command.params['project'] = project unless project.nil?
306
329
  command.params['instance'] = instance unless instance.nil?
330
+ command.query['parent'] = parent unless parent.nil?
307
331
  command.query['fields'] = fields unless fields.nil?
308
332
  command.query['quotaUser'] = quota_user unless quota_user.nil?
309
333
  execute_or_queue_command(command, &block)
@@ -314,6 +338,9 @@ module Google
314
338
  # Project ID of the project that contains the instance.
315
339
  # @param [String] instance
316
340
  # Cloud SQL instance ID. This does not include the project ID.
341
+ # @param [String] parent
342
+ # The parent, which owns this collection of databases.
343
+ # Format: projects/`project`/locations/`location`/instances/`instance`
317
344
  # @param [String] fields
318
345
  # Selector specifying which fields to include in a partial response.
319
346
  # @param [String] quota_user
@@ -331,12 +358,13 @@ module Google
331
358
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
332
359
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
333
360
  # @raise [Google::Apis::AuthorizationError] Authorization is required
334
- def list_databases(project, instance, fields: nil, quota_user: nil, options: nil, &block)
361
+ def list_databases(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
335
362
  command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/databases', options)
336
363
  command.response_representation = Google::Apis::SqlV1beta4::DatabasesListResponse::Representation
337
364
  command.response_class = Google::Apis::SqlV1beta4::DatabasesListResponse
338
365
  command.params['project'] = project unless project.nil?
339
366
  command.params['instance'] = instance unless instance.nil?
367
+ command.query['parent'] = parent unless parent.nil?
340
368
  command.query['fields'] = fields unless fields.nil?
341
369
  command.query['quotaUser'] = quota_user unless quota_user.nil?
342
370
  execute_or_queue_command(command, &block)
@@ -462,6 +490,9 @@ module Google
462
490
  # Project ID of the project that contains the instance.
463
491
  # @param [String] instance
464
492
  # Cloud SQL instance ID. This does not include the project ID.
493
+ # @param [String] parent
494
+ # The parent resource where Cloud SQL should add this server CA.
495
+ # Format: projects/`project`/locations/`location`/instances/`instance`
465
496
  # @param [String] fields
466
497
  # Selector specifying which fields to include in a partial response.
467
498
  # @param [String] quota_user
@@ -479,12 +510,13 @@ module Google
479
510
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
480
511
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
481
512
  # @raise [Google::Apis::AuthorizationError] Authorization is required
482
- def add_instance_server_ca(project, instance, fields: nil, quota_user: nil, options: nil, &block)
513
+ def add_instance_server_ca(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
483
514
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/addServerCa', options)
484
515
  command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
485
516
  command.response_class = Google::Apis::SqlV1beta4::Operation
486
517
  command.params['project'] = project unless project.nil?
487
518
  command.params['instance'] = instance unless instance.nil?
519
+ command.query['parent'] = parent unless parent.nil?
488
520
  command.query['fields'] = fields unless fields.nil?
489
521
  command.query['quotaUser'] = quota_user unless quota_user.nil?
490
522
  execute_or_queue_command(command, &block)
@@ -497,6 +529,9 @@ module Google
497
529
  # The ID of the Cloud SQL instance to be cloned (source). This does not
498
530
  # include the project ID.
499
531
  # @param [Google::Apis::SqlV1beta4::InstancesCloneRequest] instances_clone_request_object
532
+ # @param [String] parent
533
+ # The parent resource where Cloud SQL should clone this instance.
534
+ # Format: projects/`project`/locations/`location`/instances/`instance`
500
535
  # @param [String] fields
501
536
  # Selector specifying which fields to include in a partial response.
502
537
  # @param [String] quota_user
@@ -514,7 +549,7 @@ module Google
514
549
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
515
550
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
516
551
  # @raise [Google::Apis::AuthorizationError] Authorization is required
517
- def clone_instance(project, instance, instances_clone_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
552
+ def clone_instance(project, instance, instances_clone_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
518
553
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/clone', options)
519
554
  command.request_representation = Google::Apis::SqlV1beta4::InstancesCloneRequest::Representation
520
555
  command.request_object = instances_clone_request_object
@@ -522,6 +557,7 @@ module Google
522
557
  command.response_class = Google::Apis::SqlV1beta4::Operation
523
558
  command.params['project'] = project unless project.nil?
524
559
  command.params['instance'] = instance unless instance.nil?
560
+ command.query['parent'] = parent unless parent.nil?
525
561
  command.query['fields'] = fields unless fields.nil?
526
562
  command.query['quotaUser'] = quota_user unless quota_user.nil?
527
563
  execute_or_queue_command(command, &block)
@@ -567,6 +603,9 @@ module Google
567
603
  # @param [String] instance
568
604
  # Cloud SQL instance name.
569
605
  # @param [Google::Apis::SqlV1beta4::InstancesDemoteMasterRequest] instances_demote_master_request_object
606
+ # @param [String] parent
607
+ # The parent resource where Cloud SQL demotes this master database instance.
608
+ # Format: projects/`project`/locations/`location`/instances/`instance`
570
609
  # @param [String] fields
571
610
  # Selector specifying which fields to include in a partial response.
572
611
  # @param [String] quota_user
@@ -584,7 +623,7 @@ module Google
584
623
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
585
624
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
586
625
  # @raise [Google::Apis::AuthorizationError] Authorization is required
587
- def demote_instance_master(project, instance, instances_demote_master_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
626
+ def demote_instance_master(project, instance, instances_demote_master_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
588
627
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster', options)
589
628
  command.request_representation = Google::Apis::SqlV1beta4::InstancesDemoteMasterRequest::Representation
590
629
  command.request_object = instances_demote_master_request_object
@@ -592,6 +631,7 @@ module Google
592
631
  command.response_class = Google::Apis::SqlV1beta4::Operation
593
632
  command.params['project'] = project unless project.nil?
594
633
  command.params['instance'] = instance unless instance.nil?
634
+ command.query['parent'] = parent unless parent.nil?
595
635
  command.query['fields'] = fields unless fields.nil?
596
636
  command.query['quotaUser'] = quota_user unless quota_user.nil?
597
637
  execute_or_queue_command(command, &block)
@@ -604,6 +644,9 @@ module Google
604
644
  # @param [String] instance
605
645
  # Cloud SQL instance ID. This does not include the project ID.
606
646
  # @param [Google::Apis::SqlV1beta4::InstancesExportRequest] instances_export_request_object
647
+ # @param [String] parent
648
+ # The parent resource where Cloud SQL exports this database instance.
649
+ # Format: projects/`project`/locations/`location`/instances/`instance`
607
650
  # @param [String] fields
608
651
  # Selector specifying which fields to include in a partial response.
609
652
  # @param [String] quota_user
@@ -621,7 +664,7 @@ module Google
621
664
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
622
665
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
623
666
  # @raise [Google::Apis::AuthorizationError] Authorization is required
624
- def export_instance(project, instance, instances_export_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
667
+ def export_instance(project, instance, instances_export_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
625
668
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/export', options)
626
669
  command.request_representation = Google::Apis::SqlV1beta4::InstancesExportRequest::Representation
627
670
  command.request_object = instances_export_request_object
@@ -629,6 +672,7 @@ module Google
629
672
  command.response_class = Google::Apis::SqlV1beta4::Operation
630
673
  command.params['project'] = project unless project.nil?
631
674
  command.params['instance'] = instance unless instance.nil?
675
+ command.query['parent'] = parent unless parent.nil?
632
676
  command.query['fields'] = fields unless fields.nil?
633
677
  command.query['quotaUser'] = quota_user unless quota_user.nil?
634
678
  execute_or_queue_command(command, &block)
@@ -640,6 +684,10 @@ module Google
640
684
  # @param [String] instance
641
685
  # Cloud SQL instance ID. This does not include the project ID.
642
686
  # @param [Google::Apis::SqlV1beta4::InstancesFailoverRequest] instances_failover_request_object
687
+ # @param [String] parent
688
+ # The parent resource where Cloud SQL sends this database instance during a
689
+ # failover. Format:
690
+ # projects/`project`/locations/`location`/instances/`instance`
643
691
  # @param [String] fields
644
692
  # Selector specifying which fields to include in a partial response.
645
693
  # @param [String] quota_user
@@ -657,7 +705,7 @@ module Google
657
705
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
658
706
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
659
707
  # @raise [Google::Apis::AuthorizationError] Authorization is required
660
- def failover_instance(project, instance, instances_failover_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
708
+ def failover_instance(project, instance, instances_failover_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
661
709
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/failover', options)
662
710
  command.request_representation = Google::Apis::SqlV1beta4::InstancesFailoverRequest::Representation
663
711
  command.request_object = instances_failover_request_object
@@ -665,6 +713,7 @@ module Google
665
713
  command.response_class = Google::Apis::SqlV1beta4::Operation
666
714
  command.params['project'] = project unless project.nil?
667
715
  command.params['instance'] = instance unless instance.nil?
716
+ command.query['parent'] = parent unless parent.nil?
668
717
  command.query['fields'] = fields unless fields.nil?
669
718
  command.query['quotaUser'] = quota_user unless quota_user.nil?
670
719
  execute_or_queue_command(command, &block)
@@ -675,6 +724,9 @@ module Google
675
724
  # Project ID of the project that contains the instance.
676
725
  # @param [String] instance
677
726
  # Database instance ID. This does not include the project ID.
727
+ # @param [String] resource_name
728
+ # Name of the resource database instance.
729
+ # Format: projects/`project`/locations/`location`/instances/`instance`
678
730
  # @param [String] fields
679
731
  # Selector specifying which fields to include in a partial response.
680
732
  # @param [String] quota_user
@@ -692,12 +744,13 @@ module Google
692
744
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
693
745
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
694
746
  # @raise [Google::Apis::AuthorizationError] Authorization is required
695
- def get_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block)
747
+ def get_instance(project, instance, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
696
748
  command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}', options)
697
749
  command.response_representation = Google::Apis::SqlV1beta4::DatabaseInstance::Representation
698
750
  command.response_class = Google::Apis::SqlV1beta4::DatabaseInstance
699
751
  command.params['project'] = project unless project.nil?
700
752
  command.params['instance'] = instance unless instance.nil?
753
+ command.query['resourceName'] = resource_name unless resource_name.nil?
701
754
  command.query['fields'] = fields unless fields.nil?
702
755
  command.query['quotaUser'] = quota_user unless quota_user.nil?
703
756
  execute_or_queue_command(command, &block)
@@ -710,6 +763,9 @@ module Google
710
763
  # @param [String] instance
711
764
  # Cloud SQL instance ID. This does not include the project ID.
712
765
  # @param [Google::Apis::SqlV1beta4::InstancesImportRequest] instances_import_request_object
766
+ # @param [String] parent
767
+ # The parent resource where Cloud SQL imports this database instance.
768
+ # Format: projects/`project`/locations/`location`/instances/`instance`
713
769
  # @param [String] fields
714
770
  # Selector specifying which fields to include in a partial response.
715
771
  # @param [String] quota_user
@@ -727,7 +783,7 @@ module Google
727
783
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
728
784
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
729
785
  # @raise [Google::Apis::AuthorizationError] Authorization is required
730
- def import_instance(project, instance, instances_import_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
786
+ def import_instance(project, instance, instances_import_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
731
787
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/import', options)
732
788
  command.request_representation = Google::Apis::SqlV1beta4::InstancesImportRequest::Representation
733
789
  command.request_object = instances_import_request_object
@@ -735,6 +791,7 @@ module Google
735
791
  command.response_class = Google::Apis::SqlV1beta4::Operation
736
792
  command.params['project'] = project unless project.nil?
737
793
  command.params['instance'] = instance unless instance.nil?
794
+ command.query['parent'] = parent unless parent.nil?
738
795
  command.query['fields'] = fields unless fields.nil?
739
796
  command.query['quotaUser'] = quota_user unless quota_user.nil?
740
797
  execute_or_queue_command(command, &block)
@@ -745,6 +802,9 @@ module Google
745
802
  # Project ID of the project to which the newly created Cloud SQL instances
746
803
  # should belong.
747
804
  # @param [Google::Apis::SqlV1beta4::DatabaseInstance] database_instance_object
805
+ # @param [String] parent
806
+ # The parent resource where Cloud SQL creates this database instance.
807
+ # Format: projects/`project`/locations/`location`
748
808
  # @param [String] fields
749
809
  # Selector specifying which fields to include in a partial response.
750
810
  # @param [String] quota_user
@@ -762,13 +822,14 @@ module Google
762
822
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
763
823
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
764
824
  # @raise [Google::Apis::AuthorizationError] Authorization is required
765
- def insert_instance(project, database_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block)
825
+ def insert_instance(project, database_instance_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
766
826
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances', options)
767
827
  command.request_representation = Google::Apis::SqlV1beta4::DatabaseInstance::Representation
768
828
  command.request_object = database_instance_object
769
829
  command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
770
830
  command.response_class = Google::Apis::SqlV1beta4::Operation
771
831
  command.params['project'] = project unless project.nil?
832
+ command.query['parent'] = parent unless parent.nil?
772
833
  command.query['fields'] = fields unless fields.nil?
773
834
  command.query['quotaUser'] = quota_user unless quota_user.nil?
774
835
  execute_or_queue_command(command, &block)
@@ -825,6 +886,9 @@ module Google
825
886
  # Project ID of the project that contains the instance.
826
887
  # @param [String] instance
827
888
  # Cloud SQL instance ID. This does not include the project ID.
889
+ # @param [String] parent
890
+ # The parent, which owns this collection of server CAs.
891
+ # Format: projects/`project`/locations/`location`/instances/`instance`
828
892
  # @param [String] fields
829
893
  # Selector specifying which fields to include in a partial response.
830
894
  # @param [String] quota_user
@@ -842,12 +906,13 @@ module Google
842
906
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
843
907
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
844
908
  # @raise [Google::Apis::AuthorizationError] Authorization is required
845
- def list_instance_server_cas(project, instance, fields: nil, quota_user: nil, options: nil, &block)
909
+ def list_instance_server_cas(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
846
910
  command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/listServerCas', options)
847
911
  command.response_representation = Google::Apis::SqlV1beta4::InstancesListServerCasResponse::Representation
848
912
  command.response_class = Google::Apis::SqlV1beta4::InstancesListServerCasResponse
849
913
  command.params['project'] = project unless project.nil?
850
914
  command.params['instance'] = instance unless instance.nil?
915
+ command.query['parent'] = parent unless parent.nil?
851
916
  command.query['fields'] = fields unless fields.nil?
852
917
  command.query['quotaUser'] = quota_user unless quota_user.nil?
853
918
  execute_or_queue_command(command, &block)
@@ -895,6 +960,9 @@ module Google
895
960
  # ID of the project that contains the read replica.
896
961
  # @param [String] instance
897
962
  # Cloud SQL read replica instance name.
963
+ # @param [String] parent
964
+ # The parent resource where Cloud SQL promotes this replica database
965
+ # instance. Format: projects/`project`/locations/`location`
898
966
  # @param [String] fields
899
967
  # Selector specifying which fields to include in a partial response.
900
968
  # @param [String] quota_user
@@ -912,12 +980,13 @@ module Google
912
980
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
913
981
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
914
982
  # @raise [Google::Apis::AuthorizationError] Authorization is required
915
- def promote_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block)
983
+ def promote_instance_replica(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
916
984
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica', options)
917
985
  command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
918
986
  command.response_class = Google::Apis::SqlV1beta4::Operation
919
987
  command.params['project'] = project unless project.nil?
920
988
  command.params['instance'] = instance unless instance.nil?
989
+ command.query['parent'] = parent unless parent.nil?
921
990
  command.query['fields'] = fields unless fields.nil?
922
991
  command.query['quotaUser'] = quota_user unless quota_user.nil?
923
992
  execute_or_queue_command(command, &block)
@@ -929,6 +998,9 @@ module Google
929
998
  # Project ID of the project that contains the instance.
930
999
  # @param [String] instance
931
1000
  # Cloud SQL instance ID. This does not include the project ID.
1001
+ # @param [String] parent
1002
+ # The parent resource where Cloud SQL resets this SSL config.
1003
+ # Format: projects/`project`/locations/`location`/instances/`instance`
932
1004
  # @param [String] fields
933
1005
  # Selector specifying which fields to include in a partial response.
934
1006
  # @param [String] quota_user
@@ -946,12 +1018,13 @@ module Google
946
1018
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
947
1019
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
948
1020
  # @raise [Google::Apis::AuthorizationError] Authorization is required
949
- def reset_instance_ssl_config(project, instance, fields: nil, quota_user: nil, options: nil, &block)
1021
+ def reset_instance_ssl_config(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
950
1022
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/resetSslConfig', options)
951
1023
  command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
952
1024
  command.response_class = Google::Apis::SqlV1beta4::Operation
953
1025
  command.params['project'] = project unless project.nil?
954
1026
  command.params['instance'] = instance unless instance.nil?
1027
+ command.query['parent'] = parent unless parent.nil?
955
1028
  command.query['fields'] = fields unless fields.nil?
956
1029
  command.query['quotaUser'] = quota_user unless quota_user.nil?
957
1030
  execute_or_queue_command(command, &block)
@@ -962,6 +1035,9 @@ module Google
962
1035
  # Project ID of the project that contains the instance to be restarted.
963
1036
  # @param [String] instance
964
1037
  # Cloud SQL instance ID. This does not include the project ID.
1038
+ # @param [String] parent
1039
+ # The parent resource where Cloud SQL restarts this database instance.
1040
+ # Format: projects/`project`/locations/`location`/instances/`instance`
965
1041
  # @param [String] fields
966
1042
  # Selector specifying which fields to include in a partial response.
967
1043
  # @param [String] quota_user
@@ -979,12 +1055,13 @@ module Google
979
1055
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
980
1056
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
981
1057
  # @raise [Google::Apis::AuthorizationError] Authorization is required
982
- def restart_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block)
1058
+ def restart_instance(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
983
1059
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/restart', options)
984
1060
  command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
985
1061
  command.response_class = Google::Apis::SqlV1beta4::Operation
986
1062
  command.params['project'] = project unless project.nil?
987
1063
  command.params['instance'] = instance unless instance.nil?
1064
+ command.query['parent'] = parent unless parent.nil?
988
1065
  command.query['fields'] = fields unless fields.nil?
989
1066
  command.query['quotaUser'] = quota_user unless quota_user.nil?
990
1067
  execute_or_queue_command(command, &block)
@@ -996,6 +1073,10 @@ module Google
996
1073
  # @param [String] instance
997
1074
  # Cloud SQL instance ID. This does not include the project ID.
998
1075
  # @param [Google::Apis::SqlV1beta4::InstancesRestoreBackupRequest] instances_restore_backup_request_object
1076
+ # @param [String] parent
1077
+ # The parent resource where Cloud SQL restores this database instance from
1078
+ # backup. Format:
1079
+ # projects/`project`/locations/`location`/instances/`instance`
999
1080
  # @param [String] fields
1000
1081
  # Selector specifying which fields to include in a partial response.
1001
1082
  # @param [String] quota_user
@@ -1013,7 +1094,7 @@ module Google
1013
1094
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1014
1095
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1015
1096
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1016
- def restore_instance_backup(project, instance, instances_restore_backup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1097
+ def restore_instance_backup(project, instance, instances_restore_backup_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
1017
1098
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup', options)
1018
1099
  command.request_representation = Google::Apis::SqlV1beta4::InstancesRestoreBackupRequest::Representation
1019
1100
  command.request_object = instances_restore_backup_request_object
@@ -1021,6 +1102,7 @@ module Google
1021
1102
  command.response_class = Google::Apis::SqlV1beta4::Operation
1022
1103
  command.params['project'] = project unless project.nil?
1023
1104
  command.params['instance'] = instance unless instance.nil?
1105
+ command.query['parent'] = parent unless parent.nil?
1024
1106
  command.query['fields'] = fields unless fields.nil?
1025
1107
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1026
1108
  execute_or_queue_command(command, &block)
@@ -1033,6 +1115,9 @@ module Google
1033
1115
  # @param [String] instance
1034
1116
  # Cloud SQL instance ID. This does not include the project ID.
1035
1117
  # @param [Google::Apis::SqlV1beta4::InstancesRotateServerCaRequest] instances_rotate_server_ca_request_object
1118
+ # @param [String] parent
1119
+ # The parent resource where Cloud SQL rotates these server CAs.
1120
+ # Format: projects/`project`/locations/`location`/instances/`instance`
1036
1121
  # @param [String] fields
1037
1122
  # Selector specifying which fields to include in a partial response.
1038
1123
  # @param [String] quota_user
@@ -1050,7 +1135,7 @@ module Google
1050
1135
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1051
1136
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1052
1137
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1053
- def rotate_instance_server_ca(project, instance, instances_rotate_server_ca_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1138
+ def rotate_instance_server_ca(project, instance, instances_rotate_server_ca_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
1054
1139
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa', options)
1055
1140
  command.request_representation = Google::Apis::SqlV1beta4::InstancesRotateServerCaRequest::Representation
1056
1141
  command.request_object = instances_rotate_server_ca_request_object
@@ -1058,6 +1143,7 @@ module Google
1058
1143
  command.response_class = Google::Apis::SqlV1beta4::Operation
1059
1144
  command.params['project'] = project unless project.nil?
1060
1145
  command.params['instance'] = instance unless instance.nil?
1146
+ command.query['parent'] = parent unless parent.nil?
1061
1147
  command.query['fields'] = fields unless fields.nil?
1062
1148
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1063
1149
  execute_or_queue_command(command, &block)
@@ -1068,6 +1154,10 @@ module Google
1068
1154
  # ID of the project that contains the read replica.
1069
1155
  # @param [String] instance
1070
1156
  # Cloud SQL read replica instance name.
1157
+ # @param [String] parent
1158
+ # The parent resource where Cloud SQL starts this database instance
1159
+ # replication. Format:
1160
+ # projects/`project`/locations/`location`/instances/`instance`
1071
1161
  # @param [String] fields
1072
1162
  # Selector specifying which fields to include in a partial response.
1073
1163
  # @param [String] quota_user
@@ -1085,12 +1175,13 @@ module Google
1085
1175
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1086
1176
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1087
1177
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1088
- def start_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block)
1178
+ def start_instance_replica(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
1089
1179
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/startReplica', options)
1090
1180
  command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
1091
1181
  command.response_class = Google::Apis::SqlV1beta4::Operation
1092
1182
  command.params['project'] = project unless project.nil?
1093
1183
  command.params['instance'] = instance unless instance.nil?
1184
+ command.query['parent'] = parent unless parent.nil?
1094
1185
  command.query['fields'] = fields unless fields.nil?
1095
1186
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1096
1187
  execute_or_queue_command(command, &block)
@@ -1101,6 +1192,10 @@ module Google
1101
1192
  # ID of the project that contains the read replica.
1102
1193
  # @param [String] instance
1103
1194
  # Cloud SQL read replica instance name.
1195
+ # @param [String] parent
1196
+ # The parent resource where Cloud SQL stops this database instance
1197
+ # replication. Format:
1198
+ # projects/`project`/locations/`location`/instances/`instance`
1104
1199
  # @param [String] fields
1105
1200
  # Selector specifying which fields to include in a partial response.
1106
1201
  # @param [String] quota_user
@@ -1118,12 +1213,13 @@ module Google
1118
1213
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1119
1214
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1120
1215
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1121
- def stop_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block)
1216
+ def stop_instance_replica(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
1122
1217
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/stopReplica', options)
1123
1218
  command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
1124
1219
  command.response_class = Google::Apis::SqlV1beta4::Operation
1125
1220
  command.params['project'] = project unless project.nil?
1126
1221
  command.params['instance'] = instance unless instance.nil?
1222
+ command.query['parent'] = parent unless parent.nil?
1127
1223
  command.query['fields'] = fields unless fields.nil?
1128
1224
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1129
1225
  execute_or_queue_command(command, &block)
@@ -1135,6 +1231,9 @@ module Google
1135
1231
  # @param [String] instance
1136
1232
  # Cloud SQL instance ID. This does not include the project ID.
1137
1233
  # @param [Google::Apis::SqlV1beta4::InstancesTruncateLogRequest] instances_truncate_log_request_object
1234
+ # @param [String] parent
1235
+ # The parent resource where Cloud SQL truncates this log.
1236
+ # Format: projects/`project`/locations/`location`/instances/`instance`
1138
1237
  # @param [String] fields
1139
1238
  # Selector specifying which fields to include in a partial response.
1140
1239
  # @param [String] quota_user
@@ -1152,7 +1251,7 @@ module Google
1152
1251
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1153
1252
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1154
1253
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1155
- def truncate_instance_log(project, instance, instances_truncate_log_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1254
+ def truncate_instance_log(project, instance, instances_truncate_log_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
1156
1255
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/truncateLog', options)
1157
1256
  command.request_representation = Google::Apis::SqlV1beta4::InstancesTruncateLogRequest::Representation
1158
1257
  command.request_object = instances_truncate_log_request_object
@@ -1160,6 +1259,7 @@ module Google
1160
1259
  command.response_class = Google::Apis::SqlV1beta4::Operation
1161
1260
  command.params['project'] = project unless project.nil?
1162
1261
  command.params['instance'] = instance unless instance.nil?
1262
+ command.query['parent'] = parent unless parent.nil?
1163
1263
  command.query['fields'] = fields unless fields.nil?
1164
1264
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1165
1265
  execute_or_queue_command(command, &block)
@@ -1250,6 +1350,11 @@ module Google
1250
1350
  # @param [String] page_token
1251
1351
  # A previously-returned page token representing part of the larger set of
1252
1352
  # results to view.
1353
+ # @param [String] parent
1354
+ # Indirect parent. The direct parent should combine with the instance name,
1355
+ # which owns this collection of operations.
1356
+ # Format:
1357
+ # projects/`project`/locations/`location`
1253
1358
  # @param [String] fields
1254
1359
  # Selector specifying which fields to include in a partial response.
1255
1360
  # @param [String] quota_user
@@ -1267,7 +1372,7 @@ module Google
1267
1372
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1268
1373
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1269
1374
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1270
- def list_operations(project, instance: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1375
+ def list_operations(project, instance: nil, max_results: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
1271
1376
  command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/operations', options)
1272
1377
  command.response_representation = Google::Apis::SqlV1beta4::OperationsListResponse::Representation
1273
1378
  command.response_class = Google::Apis::SqlV1beta4::OperationsListResponse
@@ -1275,6 +1380,7 @@ module Google
1275
1380
  command.query['instance'] = instance unless instance.nil?
1276
1381
  command.query['maxResults'] = max_results unless max_results.nil?
1277
1382
  command.query['pageToken'] = page_token unless page_token.nil?
1383
+ command.query['parent'] = parent unless parent.nil?
1278
1384
  command.query['fields'] = fields unless fields.nil?
1279
1385
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1280
1386
  execute_or_queue_command(command, &block)
@@ -1289,6 +1395,9 @@ module Google
1289
1395
  # @param [String] instance
1290
1396
  # Cloud SQL instance ID. This does not include the project ID.
1291
1397
  # @param [Google::Apis::SqlV1beta4::SslCertsCreateEphemeralRequest] ssl_certs_create_ephemeral_request_object
1398
+ # @param [String] parent
1399
+ # The parent resource where Cloud SQL creates this ephemeral certificate.
1400
+ # Format: projects/`project`/locations/`location`/instances/`instance`
1292
1401
  # @param [String] fields
1293
1402
  # Selector specifying which fields to include in a partial response.
1294
1403
  # @param [String] quota_user
@@ -1306,7 +1415,7 @@ module Google
1306
1415
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1307
1416
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1308
1417
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1309
- def create_ssl_cert_ephemeral(project, instance, ssl_certs_create_ephemeral_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1418
+ def create_ssl_cert_ephemeral(project, instance, ssl_certs_create_ephemeral_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
1310
1419
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral', options)
1311
1420
  command.request_representation = Google::Apis::SqlV1beta4::SslCertsCreateEphemeralRequest::Representation
1312
1421
  command.request_object = ssl_certs_create_ephemeral_request_object
@@ -1314,6 +1423,7 @@ module Google
1314
1423
  command.response_class = Google::Apis::SqlV1beta4::SslCert
1315
1424
  command.params['project'] = project unless project.nil?
1316
1425
  command.params['instance'] = instance unless instance.nil?
1426
+ command.query['parent'] = parent unless parent.nil?
1317
1427
  command.query['fields'] = fields unless fields.nil?
1318
1428
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1319
1429
  execute_or_queue_command(command, &block)
@@ -1365,6 +1475,10 @@ module Google
1365
1475
  # Cloud SQL instance ID. This does not include the project ID.
1366
1476
  # @param [String] sha1_fingerprint
1367
1477
  # Sha1 FingerPrint.
1478
+ # @param [String] resource_name
1479
+ # Name of the resource ssl certificate.
1480
+ # Format:
1481
+ # projects/`project`/locations/`location`/instances/`instance`/sslCerts/`sslCert`
1368
1482
  # @param [String] fields
1369
1483
  # Selector specifying which fields to include in a partial response.
1370
1484
  # @param [String] quota_user
@@ -1382,13 +1496,14 @@ module Google
1382
1496
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1383
1497
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1384
1498
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1385
- def get_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, options: nil, &block)
1499
+ def get_ssl_cert(project, instance, sha1_fingerprint, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
1386
1500
  command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options)
1387
1501
  command.response_representation = Google::Apis::SqlV1beta4::SslCert::Representation
1388
1502
  command.response_class = Google::Apis::SqlV1beta4::SslCert
1389
1503
  command.params['project'] = project unless project.nil?
1390
1504
  command.params['instance'] = instance unless instance.nil?
1391
1505
  command.params['sha1Fingerprint'] = sha1_fingerprint unless sha1_fingerprint.nil?
1506
+ command.query['resourceName'] = resource_name unless resource_name.nil?
1392
1507
  command.query['fields'] = fields unless fields.nil?
1393
1508
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1394
1509
  execute_or_queue_command(command, &block)
@@ -1402,6 +1517,9 @@ module Google
1402
1517
  # @param [String] instance
1403
1518
  # Cloud SQL instance ID. This does not include the project ID.
1404
1519
  # @param [Google::Apis::SqlV1beta4::SslCertsInsertRequest] ssl_certs_insert_request_object
1520
+ # @param [String] parent
1521
+ # The parent resource where Cloud SQL creates this SSL certificate.
1522
+ # Format: projects/`project`/locations/`location`/instances/`instance`
1405
1523
  # @param [String] fields
1406
1524
  # Selector specifying which fields to include in a partial response.
1407
1525
  # @param [String] quota_user
@@ -1419,7 +1537,7 @@ module Google
1419
1537
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1420
1538
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1421
1539
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1422
- def insert_ssl_cert(project, instance, ssl_certs_insert_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1540
+ def insert_ssl_cert(project, instance, ssl_certs_insert_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
1423
1541
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts', options)
1424
1542
  command.request_representation = Google::Apis::SqlV1beta4::SslCertsInsertRequest::Representation
1425
1543
  command.request_object = ssl_certs_insert_request_object
@@ -1427,6 +1545,7 @@ module Google
1427
1545
  command.response_class = Google::Apis::SqlV1beta4::SslCertsInsertResponse
1428
1546
  command.params['project'] = project unless project.nil?
1429
1547
  command.params['instance'] = instance unless instance.nil?
1548
+ command.query['parent'] = parent unless parent.nil?
1430
1549
  command.query['fields'] = fields unless fields.nil?
1431
1550
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1432
1551
  execute_or_queue_command(command, &block)
@@ -1437,6 +1556,9 @@ module Google
1437
1556
  # Project ID of the project that contains the instance.
1438
1557
  # @param [String] instance
1439
1558
  # Cloud SQL instance ID. This does not include the project ID.
1559
+ # @param [String] parent
1560
+ # The parent, which owns this collection of SSL certificates.
1561
+ # Format: projects/`project`/locations/`location`/instances/`instance`
1440
1562
  # @param [String] fields
1441
1563
  # Selector specifying which fields to include in a partial response.
1442
1564
  # @param [String] quota_user
@@ -1454,12 +1576,13 @@ module Google
1454
1576
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1455
1577
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1456
1578
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1457
- def list_ssl_certs(project, instance, fields: nil, quota_user: nil, options: nil, &block)
1579
+ def list_ssl_certs(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
1458
1580
  command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts', options)
1459
1581
  command.response_representation = Google::Apis::SqlV1beta4::SslCertsListResponse::Representation
1460
1582
  command.response_class = Google::Apis::SqlV1beta4::SslCertsListResponse
1461
1583
  command.params['project'] = project unless project.nil?
1462
1584
  command.params['instance'] = instance unless instance.nil?
1585
+ command.query['parent'] = parent unless parent.nil?
1463
1586
  command.query['fields'] = fields unless fields.nil?
1464
1587
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1465
1588
  execute_or_queue_command(command, &block)
@@ -1542,6 +1665,9 @@ module Google
1542
1665
  # @param [String] instance
1543
1666
  # Database instance ID. This does not include the project ID.
1544
1667
  # @param [Google::Apis::SqlV1beta4::User] user_object
1668
+ # @param [String] parent
1669
+ # The parent resource where Cloud SQL creates this user.
1670
+ # Format: projects/`project`/locations/`location`/instances/`instance`
1545
1671
  # @param [String] fields
1546
1672
  # Selector specifying which fields to include in a partial response.
1547
1673
  # @param [String] quota_user
@@ -1559,7 +1685,7 @@ module Google
1559
1685
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1560
1686
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1561
1687
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1562
- def insert_user(project, instance, user_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1688
+ def insert_user(project, instance, user_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
1563
1689
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options)
1564
1690
  command.request_representation = Google::Apis::SqlV1beta4::User::Representation
1565
1691
  command.request_object = user_object
@@ -1567,6 +1693,7 @@ module Google
1567
1693
  command.response_class = Google::Apis::SqlV1beta4::Operation
1568
1694
  command.params['project'] = project unless project.nil?
1569
1695
  command.params['instance'] = instance unless instance.nil?
1696
+ command.query['parent'] = parent unless parent.nil?
1570
1697
  command.query['fields'] = fields unless fields.nil?
1571
1698
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1572
1699
  execute_or_queue_command(command, &block)
@@ -1577,6 +1704,9 @@ module Google
1577
1704
  # Project ID of the project that contains the instance.
1578
1705
  # @param [String] instance
1579
1706
  # Database instance ID. This does not include the project ID.
1707
+ # @param [String] parent
1708
+ # The parent, which owns this collection of users.
1709
+ # Format: projects/`project`/locations/`location`/instances/`instance`
1580
1710
  # @param [String] fields
1581
1711
  # Selector specifying which fields to include in a partial response.
1582
1712
  # @param [String] quota_user
@@ -1594,12 +1724,13 @@ module Google
1594
1724
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1595
1725
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1596
1726
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1597
- def list_users(project, instance, fields: nil, quota_user: nil, options: nil, &block)
1727
+ def list_users(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
1598
1728
  command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options)
1599
1729
  command.response_representation = Google::Apis::SqlV1beta4::UsersListResponse::Representation
1600
1730
  command.response_class = Google::Apis::SqlV1beta4::UsersListResponse
1601
1731
  command.params['project'] = project unless project.nil?
1602
1732
  command.params['instance'] = instance unless instance.nil?
1733
+ command.query['parent'] = parent unless parent.nil?
1603
1734
  command.query['fields'] = fields unless fields.nil?
1604
1735
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1605
1736
  execute_or_queue_command(command, &block)