google-api-client 0.21.1 → 0.21.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/admin_reports_v1.rb +1 -1
  4. data/generated/google/apis/analytics_v3.rb +4 -1
  5. data/generated/google/apis/analytics_v3/classes.rb +68 -0
  6. data/generated/google/apis/analytics_v3/representations.rb +33 -0
  7. data/generated/google/apis/analytics_v3/service.rb +33 -0
  8. data/generated/google/apis/analyticsreporting_v4.rb +2 -2
  9. data/generated/google/apis/analyticsreporting_v4/classes.rb +1 -1
  10. data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
  11. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  12. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +8 -0
  13. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +1 -0
  14. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  15. data/generated/google/apis/androidpublisher_v2/service.rb +42 -0
  16. data/generated/google/apis/appengine_v1.rb +1 -1
  17. data/generated/google/apis/appengine_v1/classes.rb +11 -4
  18. data/generated/google/apis/appengine_v1/service.rb +28 -19
  19. data/generated/google/apis/appengine_v1beta.rb +1 -1
  20. data/generated/google/apis/appengine_v1beta/classes.rb +11 -7
  21. data/generated/google/apis/appengine_v1beta/service.rb +28 -19
  22. data/generated/google/apis/bigquery_v2.rb +1 -1
  23. data/generated/google/apis/bigquery_v2/classes.rb +9 -6
  24. data/generated/google/apis/clouddebugger_v2.rb +2 -2
  25. data/generated/google/apis/clouddebugger_v2/classes.rb +2 -1
  26. data/generated/google/apis/clouddebugger_v2/service.rb +1 -1
  27. data/generated/google/apis/cloudiot_v1.rb +1 -1
  28. data/generated/google/apis/cloudiot_v1/service.rb +2 -12
  29. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  30. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1 -1
  31. data/generated/google/apis/composer_v1beta1.rb +1 -1
  32. data/generated/google/apis/composer_v1beta1/classes.rb +49 -52
  33. data/generated/google/apis/composer_v1beta1/service.rb +5 -5
  34. data/generated/google/apis/compute_v1.rb +1 -1
  35. data/generated/google/apis/container_v1.rb +1 -1
  36. data/generated/google/apis/container_v1/service.rb +18 -18
  37. data/generated/google/apis/container_v1beta1.rb +1 -1
  38. data/generated/google/apis/container_v1beta1/classes.rb +7 -0
  39. data/generated/google/apis/container_v1beta1/representations.rb +1 -0
  40. data/generated/google/apis/container_v1beta1/service.rb +18 -18
  41. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  42. data/generated/google/apis/dfareporting_v2_8/classes.rb +5 -5
  43. data/generated/google/apis/dfareporting_v2_8/service.rb +4 -1
  44. data/generated/google/apis/dfareporting_v3_0.rb +1 -1
  45. data/generated/google/apis/dfareporting_v3_0/classes.rb +5 -5
  46. data/generated/google/apis/dfareporting_v3_0/service.rb +4 -1
  47. data/generated/google/apis/dfareporting_v3_1.rb +40 -0
  48. data/generated/google/apis/dfareporting_v3_1/classes.rb +12256 -0
  49. data/generated/google/apis/dfareporting_v3_1/representations.rb +4389 -0
  50. data/generated/google/apis/dfareporting_v3_1/service.rb +8790 -0
  51. data/generated/google/apis/dlp_v2.rb +1 -1
  52. data/generated/google/apis/dlp_v2/classes.rb +20 -0
  53. data/generated/google/apis/dlp_v2/representations.rb +3 -0
  54. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  55. data/generated/google/apis/identitytoolkit_v3/classes.rb +56 -0
  56. data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
  57. data/generated/google/apis/jobs_v2.rb +1 -1
  58. data/generated/google/apis/jobs_v2/classes.rb +1 -5
  59. data/generated/google/apis/jobs_v2/service.rb +9 -10
  60. data/generated/google/apis/language_v1.rb +1 -1
  61. data/generated/google/apis/language_v1/classes.rb +1 -0
  62. data/generated/google/apis/language_v1beta1.rb +1 -1
  63. data/generated/google/apis/language_v1beta1/classes.rb +1 -0
  64. data/generated/google/apis/language_v1beta2.rb +1 -1
  65. data/generated/google/apis/language_v1beta2/classes.rb +1 -0
  66. data/generated/google/apis/monitoring_v3.rb +1 -1
  67. data/generated/google/apis/monitoring_v3/classes.rb +7 -7
  68. data/generated/google/apis/partners_v2.rb +1 -1
  69. data/generated/google/apis/partners_v2/classes.rb +7 -0
  70. data/generated/google/apis/partners_v2/representations.rb +1 -0
  71. data/generated/google/apis/people_v1.rb +1 -1
  72. data/generated/google/apis/people_v1/service.rb +4 -0
  73. data/generated/google/apis/redis_v1beta1.rb +1 -1
  74. data/generated/google/apis/redis_v1beta1/classes.rb +11 -11
  75. data/generated/google/apis/redis_v1beta1/service.rb +6 -6
  76. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  77. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +1 -1
  78. data/generated/google/apis/script_v1.rb +1 -1
  79. data/generated/google/apis/spanner_v1.rb +1 -1
  80. data/generated/google/apis/spanner_v1/classes.rb +1 -1
  81. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  82. data/generated/google/apis/sqladmin_v1beta4/classes.rb +76 -0
  83. data/generated/google/apis/sqladmin_v1beta4/representations.rb +44 -0
  84. data/generated/google/apis/sqladmin_v1beta4/service.rb +120 -0
  85. data/generated/google/apis/testing_v1.rb +1 -1
  86. data/generated/google/apis/texttospeech_v1beta1.rb +2 -2
  87. data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -1
  88. data/generated/google/apis/vision_v1.rb +1 -1
  89. data/generated/google/apis/vision_v1/classes.rb +517 -0
  90. data/generated/google/apis/vision_v1/representations.rb +272 -0
  91. data/generated/google/apis/vision_v1/service.rb +35 -0
  92. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  93. data/generated/google/apis/vision_v1p1beta1/classes.rb +3411 -1415
  94. data/generated/google/apis/vision_v1p1beta1/representations.rb +868 -0
  95. data/generated/google/apis/vision_v1p1beta1/service.rb +35 -0
  96. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  97. data/generated/google/apis/vision_v1p2beta1/classes.rb +2521 -822
  98. data/generated/google/apis/vision_v1p2beta1/representations.rb +758 -14
  99. data/generated/google/apis/vision_v1p2beta1/service.rb +3 -3
  100. data/generated/google/apis/youtube_analytics_v2.rb +2 -2
  101. data/generated/google/apis/youtube_analytics_v2/service.rb +1 -1
  102. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  103. data/lib/google/apis/version.rb +1 -1
  104. metadata +7 -3
@@ -393,6 +393,7 @@ module Google
393
393
  # * skills
394
394
  # * taglines
395
395
  # * urls
396
+ # * userDefined
396
397
  # @param [String] request_mask_include_field
397
398
  # **Required.** Comma-separated list of person fields to be included in the
398
399
  # response. Each path should start with `person.`: for example,
@@ -462,6 +463,7 @@ module Google
462
463
  # * skills
463
464
  # * taglines
464
465
  # * urls
466
+ # * userDefined
465
467
  # @param [String] request_mask_include_field
466
468
  # **Required.** Comma-separated list of person fields to be included in the
467
469
  # response. Each path should start with `person.`: for example,
@@ -541,6 +543,7 @@ module Google
541
543
  # * relations
542
544
  # * residences
543
545
  # * urls
546
+ # * userDefined
544
547
  # @param [String] fields
545
548
  # Selector specifying which fields to include in a partial response.
546
549
  # @param [String] quota_user
@@ -613,6 +616,7 @@ module Google
613
616
  # * skills
614
617
  # * taglines
615
618
  # * urls
619
+ # * userDefined
616
620
  # @param [String] request_mask_include_field
617
621
  # **Required.** Comma-separated list of person fields to be included in the
618
622
  # response. Each path should start with `person.`: for example,
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/memorystore/docs/redis/
27
27
  module RedisV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20180423'
29
+ REVISION = '20180518'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -144,11 +144,11 @@ module Google
144
144
  # @return [String]
145
145
  attr_accessor :create_time
146
146
 
147
- # Output only. The current zone where the Redis endpoint is placed. In
148
- # single zone deployments, this will always be the same as [location_id]
149
- # provided by the user at creation time. In cross-zone instances (only
150
- # applicable in STANDARD_HA tier), this can be either [location_id] or
151
- # [alternative_location_id] and can change on a failover event.
147
+ # Output only. The current zone where the Redis endpoint is placed. For Basic
148
+ # Tier instances, this will always be the same as the [location_id]
149
+ # provided by the user at creation time. For Standard Tier instances,
150
+ # this can be either [location_id] or [alternative_location_id] and can
151
+ # change after a failover event.
152
152
  # Corresponds to the JSON property `currentLocationId`
153
153
  # @return [String]
154
154
  attr_accessor :current_location_id
@@ -172,13 +172,13 @@ module Google
172
172
  # Optional. The zone where the instance will be provisioned. If not provided,
173
173
  # the service will choose a zone for the instance. For STANDARD_HA tier,
174
174
  # instances will be created across two zones for protection against zonal
175
- # failures. if [alternative_location_id] is also provided, it must be
175
+ # failures. If [alternative_location_id] is also provided, it must be
176
176
  # different from [location_id].
177
177
  # Corresponds to the JSON property `locationId`
178
178
  # @return [String]
179
179
  attr_accessor :location_id
180
180
 
181
- # Required. Redis memory size in GB, up to 200GB.
181
+ # Required. Redis memory size in GiB.
182
182
  # Corresponds to the JSON property `memorySizeGb`
183
183
  # @return [Fixnum]
184
184
  attr_accessor :memory_size_gb
@@ -187,7 +187,7 @@ module Google
187
187
  # location using the form:
188
188
  # `projects/`project_id`/locations/`location_id`/instances/`instance_id``
189
189
  # Note: Redis instances are managed and addressed at regional level so
190
- # location_id here refers to a GCP region; however, users get to choose which
190
+ # location_id here refers to a GCP region; however, users may choose which
191
191
  # specific zone (or collection of zones for cross-zone instances) an instance
192
192
  # should be provisioned in. Refer to [location_id] and
193
193
  # [alternative_location_id] fields for more details.
@@ -203,8 +203,8 @@ module Google
203
203
  # Optional. Redis configuration parameters, according to
204
204
  # http://redis.io/topics/config. Currently, the only supported parameters
205
205
  # are:
206
- # * maxmemory-policy
207
- # * notify-keyspace-events
206
+ # * maxmemory-policy
207
+ # * notify-keyspace-events
208
208
  # Corresponds to the JSON property `redisConfigs`
209
209
  # @return [Hash<String,String>]
210
210
  attr_accessor :redis_configs
@@ -220,7 +220,7 @@ module Google
220
220
  # Optional. The CIDR range of internal addresses that are reserved for this
221
221
  # instance. If not provided, the service will choose an unused /29 block,
222
222
  # for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
223
- # and non-overlapping with existing subnets in a network.
223
+ # and non-overlapping with existing subnets in an authorized network.
224
224
  # Corresponds to the JSON property `reservedIpRange`
225
225
  # @return [String]
226
226
  attr_accessor :reserved_ip_range
@@ -118,7 +118,7 @@ module Google
118
118
  end
119
119
 
120
120
  # Creates a Redis instance based on the specified tier and memory size.
121
- # By default, the instance is peered to the project's
121
+ # By default, the instance is accessible from the project's
122
122
  # [default network](/compute/docs/networks-and-firewalls#networks).
123
123
  # The creation is executed asynchronously and callers may check the returned
124
124
  # operation to track its progress. Once the operation is completed the Redis
@@ -292,7 +292,7 @@ module Google
292
292
  # location using the form:
293
293
  # `projects/`project_id`/locations/`location_id`/instances/`instance_id``
294
294
  # Note: Redis instances are managed and addressed at regional level so
295
- # location_id here refers to a GCP region; however, users get to choose which
295
+ # location_id here refers to a GCP region; however, users may choose which
296
296
  # specific zone (or collection of zones for cross-zone instances) an instance
297
297
  # should be provisioned in. Refer to [location_id] and
298
298
  # [alternative_location_id] fields for more details.
@@ -301,10 +301,10 @@ module Google
301
301
  # Required. Mask of fields to update. At least one path must be supplied in
302
302
  # this field. The elements of the repeated paths field may only include these
303
303
  # fields from Instance:
304
- # * `display_name`
305
- # * `labels`
306
- # * `redis_config`
307
- # * `redis_version`
304
+ # * `displayName`
305
+ # * `labels`
306
+ # * `memorySizeGb`
307
+ # * `redisConfig`
308
308
  # @param [String] fields
309
309
  # Selector specifying which fields to include in a partial response.
310
310
  # @param [String] quota_user
@@ -28,7 +28,7 @@ module Google
28
28
  # @see https://cloud.google.com/deployment-manager/runtime-configurator/
29
29
  module RuntimeconfigV1beta1
30
30
  VERSION = 'V1beta1'
31
- REVISION = '20180416'
31
+ REVISION = '20180515'
32
32
 
33
33
  # View and manage your data across Google Cloud Platform services
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -33,7 +33,7 @@ module Google
33
33
  # * `allAuthenticatedUsers`: A special identifier that represents anyone
34
34
  # who is authenticated with a Google account or a service account.
35
35
  # * `user:`emailid``: An email address that represents a specific Google
36
- # account. For example, `alice@gmail.com` or `joe@example.com`.
36
+ # account. For example, `alice@gmail.com` .
37
37
  # * `serviceAccount:`emailid``: An email address that represents a service
38
38
  # account. For example, `my-other-app@appspot.gserviceaccount.com`.
39
39
  # * `group:`emailid``: An email address that represents a Google group.
@@ -31,7 +31,7 @@ module Google
31
31
  # @see https://developers.google.com/apps-script/api/
32
32
  module ScriptV1
33
33
  VERSION = 'V1'
34
- REVISION = '20180501'
34
+ REVISION = '20180516'
35
35
 
36
36
  # Read, send, delete, and manage your email
37
37
  AUTH_SCOPE = 'https://mail.google.com/'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/spanner/
27
27
  module SpannerV1
28
28
  VERSION = 'V1'
29
- REVISION = '20180417'
29
+ REVISION = '20180511'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -220,7 +220,7 @@ module Google
220
220
  # * `allAuthenticatedUsers`: A special identifier that represents anyone
221
221
  # who is authenticated with a Google account or a service account.
222
222
  # * `user:`emailid``: An email address that represents a specific Google
223
- # account. For example, `alice@gmail.com` or `joe@example.com`.
223
+ # account. For example, `alice@gmail.com` .
224
224
  # * `serviceAccount:`emailid``: An email address that represents a service
225
225
  # account. For example, `my-other-app@appspot.gserviceaccount.com`.
226
226
  # * `group:`emailid``: An email address that represents a Google group.
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/sql/docs/reference/latest
27
27
  module SqladminV1beta4
28
28
  VERSION = 'V1beta4'
29
- REVISION = '20180314'
29
+ REVISION = '20180507'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1191,6 +1191,37 @@ module Google
1191
1191
  end
1192
1192
  end
1193
1193
 
1194
+ # Instances ListServerCas response.
1195
+ class InstancesListServerCasResponse
1196
+ include Google::Apis::Core::Hashable
1197
+
1198
+ #
1199
+ # Corresponds to the JSON property `activeVersion`
1200
+ # @return [String]
1201
+ attr_accessor :active_version
1202
+
1203
+ # List of server CA certificates for the instance.
1204
+ # Corresponds to the JSON property `certs`
1205
+ # @return [Array<Google::Apis::SqladminV1beta4::SslCert>]
1206
+ attr_accessor :certs
1207
+
1208
+ # This is always sql#instancesListServerCas.
1209
+ # Corresponds to the JSON property `kind`
1210
+ # @return [String]
1211
+ attr_accessor :kind
1212
+
1213
+ def initialize(**args)
1214
+ update!(**args)
1215
+ end
1216
+
1217
+ # Update properties of this object
1218
+ def update!(**args)
1219
+ @active_version = args[:active_version] if args.key?(:active_version)
1220
+ @certs = args[:certs] if args.key?(:certs)
1221
+ @kind = args[:kind] if args.key?(:kind)
1222
+ end
1223
+ end
1224
+
1194
1225
  # Database instance restore backup request.
1195
1226
  class RestoreInstancesBackupRequest
1196
1227
  include Google::Apis::Core::Hashable
@@ -1210,6 +1241,25 @@ module Google
1210
1241
  end
1211
1242
  end
1212
1243
 
1244
+ # Rotate Server CA request.
1245
+ class InstancesRotateServerCaRequest
1246
+ include Google::Apis::Core::Hashable
1247
+
1248
+ # Instance rotate server CA context.
1249
+ # Corresponds to the JSON property `rotateServerCaContext`
1250
+ # @return [Google::Apis::SqladminV1beta4::RotateServerCaContext]
1251
+ attr_accessor :rotate_server_ca_context
1252
+
1253
+ def initialize(**args)
1254
+ update!(**args)
1255
+ end
1256
+
1257
+ # Update properties of this object
1258
+ def update!(**args)
1259
+ @rotate_server_ca_context = args[:rotate_server_ca_context] if args.key?(:rotate_server_ca_context)
1260
+ end
1261
+ end
1262
+
1213
1263
  # Instance truncate log request.
1214
1264
  class InstancesTruncateLogRequest
1215
1265
  include Google::Apis::Core::Hashable
@@ -1753,6 +1803,32 @@ module Google
1753
1803
  end
1754
1804
  end
1755
1805
 
1806
+ # Instance rotate server CA context.
1807
+ class RotateServerCaContext
1808
+ include Google::Apis::Core::Hashable
1809
+
1810
+ # This is always sql#rotateServerCaContext.
1811
+ # Corresponds to the JSON property `kind`
1812
+ # @return [String]
1813
+ attr_accessor :kind
1814
+
1815
+ # The fingerprint of the next version to be rotated to. If left unspecified,
1816
+ # will be rotated to the most recently added server CA version.
1817
+ # Corresponds to the JSON property `nextVersion`
1818
+ # @return [String]
1819
+ attr_accessor :next_version
1820
+
1821
+ def initialize(**args)
1822
+ update!(**args)
1823
+ end
1824
+
1825
+ # Update properties of this object
1826
+ def update!(**args)
1827
+ @kind = args[:kind] if args.key?(:kind)
1828
+ @next_version = args[:next_version] if args.key?(:next_version)
1829
+ end
1830
+ end
1831
+
1756
1832
  # Database instance settings.
1757
1833
  class Settings
1758
1834
  include Google::Apis::Core::Hashable
@@ -190,12 +190,24 @@ module Google
190
190
  include Google::Apis::Core::JsonObjectSupport
191
191
  end
192
192
 
193
+ class InstancesListServerCasResponse
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
193
199
  class RestoreInstancesBackupRequest
194
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
201
 
196
202
  include Google::Apis::Core::JsonObjectSupport
197
203
  end
198
204
 
205
+ class InstancesRotateServerCaRequest
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
199
211
  class InstancesTruncateLogRequest
200
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
213
 
@@ -274,6 +286,12 @@ module Google
274
286
  include Google::Apis::Core::JsonObjectSupport
275
287
  end
276
288
 
289
+ class RotateServerCaContext
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
277
295
  class Settings
278
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
279
297
 
@@ -660,6 +678,16 @@ module Google
660
678
  end
661
679
  end
662
680
 
681
+ class InstancesListServerCasResponse
682
+ # @private
683
+ class Representation < Google::Apis::Core::JsonRepresentation
684
+ property :active_version, as: 'activeVersion'
685
+ collection :certs, as: 'certs', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation
686
+
687
+ property :kind, as: 'kind'
688
+ end
689
+ end
690
+
663
691
  class RestoreInstancesBackupRequest
664
692
  # @private
665
693
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -668,6 +696,14 @@ module Google
668
696
  end
669
697
  end
670
698
 
699
+ class InstancesRotateServerCaRequest
700
+ # @private
701
+ class Representation < Google::Apis::Core::JsonRepresentation
702
+ property :rotate_server_ca_context, as: 'rotateServerCaContext', class: Google::Apis::SqladminV1beta4::RotateServerCaContext, decorator: Google::Apis::SqladminV1beta4::RotateServerCaContext::Representation
703
+
704
+ end
705
+ end
706
+
671
707
  class InstancesTruncateLogRequest
672
708
  # @private
673
709
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -814,6 +850,14 @@ module Google
814
850
  end
815
851
  end
816
852
 
853
+ class RotateServerCaContext
854
+ # @private
855
+ class Representation < Google::Apis::Core::JsonRepresentation
856
+ property :kind, as: 'kind'
857
+ property :next_version, as: 'nextVersion'
858
+ end
859
+ end
860
+
817
861
  class Settings
818
862
  # @private
819
863
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -490,6 +490,46 @@ module Google
490
490
  execute_or_queue_command(command, &block)
491
491
  end
492
492
 
493
+ # Add a new trusted Certificate Authority (CA) version for the specified
494
+ # instance. Required to prepare for a certificate rotation. If a CA version was
495
+ # previously added but never used in a certificate rotation, this operation
496
+ # replaces that version. There can not be more than one CA version waiting to be
497
+ # rotated in.
498
+ # @param [String] project
499
+ # Project ID of the project that contains the instance.
500
+ # @param [String] instance
501
+ # Cloud SQL instance ID. This does not include the project ID.
502
+ # @param [String] fields
503
+ # Selector specifying which fields to include in a partial response.
504
+ # @param [String] quota_user
505
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
506
+ # characters.
507
+ # @param [String] user_ip
508
+ # Deprecated. Please use quotaUser instead.
509
+ # @param [Google::Apis::RequestOptions] options
510
+ # Request-specific options
511
+ #
512
+ # @yield [result, err] Result & error if block supplied
513
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
514
+ # @yieldparam err [StandardError] error object if request failed
515
+ #
516
+ # @return [Google::Apis::SqladminV1beta4::Operation]
517
+ #
518
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
519
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
520
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
521
+ def add_instance_server_ca(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
522
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/addServerCa', options)
523
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
524
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
525
+ command.params['project'] = project unless project.nil?
526
+ command.params['instance'] = instance unless instance.nil?
527
+ command.query['fields'] = fields unless fields.nil?
528
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
529
+ command.query['userIp'] = user_ip unless user_ip.nil?
530
+ execute_or_queue_command(command, &block)
531
+ end
532
+
493
533
  # Creates a Cloud SQL instance as a clone of the source instance. The API is not
494
534
  # ready for Second Generation instances yet.
495
535
  # @param [String] project
@@ -843,6 +883,46 @@ module Google
843
883
  execute_or_queue_command(command, &block)
844
884
  end
845
885
 
886
+ # Lists all of the trusted Certificate Authorities (CAs) for the specified
887
+ # instance. There can be up to three CAs listed: the CA that was used to sign
888
+ # the certificate that is currently in use, a CA that has been added but not yet
889
+ # used to sign a certificate, and a CA used to sign a certificate that has
890
+ # previously rotated out.
891
+ # @param [String] project
892
+ # Project ID of the project that contains the instance.
893
+ # @param [String] instance
894
+ # Cloud SQL instance ID. This does not include the project ID.
895
+ # @param [String] fields
896
+ # Selector specifying which fields to include in a partial response.
897
+ # @param [String] quota_user
898
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
899
+ # characters.
900
+ # @param [String] user_ip
901
+ # Deprecated. Please use quotaUser instead.
902
+ # @param [Google::Apis::RequestOptions] options
903
+ # Request-specific options
904
+ #
905
+ # @yield [result, err] Result & error if block supplied
906
+ # @yieldparam result [Google::Apis::SqladminV1beta4::InstancesListServerCasResponse] parsed result object
907
+ # @yieldparam err [StandardError] error object if request failed
908
+ #
909
+ # @return [Google::Apis::SqladminV1beta4::InstancesListServerCasResponse]
910
+ #
911
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
912
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
913
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
914
+ def list_instance_server_cas(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
915
+ command = make_simple_command(:get, 'projects/{project}/instances/{instance}/listServerCas', options)
916
+ command.response_representation = Google::Apis::SqladminV1beta4::InstancesListServerCasResponse::Representation
917
+ command.response_class = Google::Apis::SqladminV1beta4::InstancesListServerCasResponse
918
+ command.params['project'] = project unless project.nil?
919
+ command.params['instance'] = instance unless instance.nil?
920
+ command.query['fields'] = fields unless fields.nil?
921
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
922
+ command.query['userIp'] = user_ip unless user_ip.nil?
923
+ execute_or_queue_command(command, &block)
924
+ end
925
+
846
926
  # Updates settings of a Cloud SQL instance. Caution: This is not a partial
847
927
  # update, so you must include values for all the settings that you want to
848
928
  # retain. For partial updates, use patch.. This method supports patch semantics.
@@ -1034,6 +1114,46 @@ module Google
1034
1114
  execute_or_queue_command(command, &block)
1035
1115
  end
1036
1116
 
1117
+ # Rotates the server certificate to one signed by the Certificate Authority (CA)
1118
+ # version previously added with the addServerCA method.
1119
+ # @param [String] project
1120
+ # Project ID of the project that contains the instance.
1121
+ # @param [String] instance
1122
+ # Cloud SQL instance ID. This does not include the project ID.
1123
+ # @param [Google::Apis::SqladminV1beta4::InstancesRotateServerCaRequest] instances_rotate_server_ca_request_object
1124
+ # @param [String] fields
1125
+ # Selector specifying which fields to include in a partial response.
1126
+ # @param [String] quota_user
1127
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1128
+ # characters.
1129
+ # @param [String] user_ip
1130
+ # Deprecated. Please use quotaUser instead.
1131
+ # @param [Google::Apis::RequestOptions] options
1132
+ # Request-specific options
1133
+ #
1134
+ # @yield [result, err] Result & error if block supplied
1135
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1136
+ # @yieldparam err [StandardError] error object if request failed
1137
+ #
1138
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1139
+ #
1140
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1141
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1142
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1143
+ def rotate_instance_server_ca(project, instance, instances_rotate_server_ca_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1144
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/rotateServerCa', options)
1145
+ command.request_representation = Google::Apis::SqladminV1beta4::InstancesRotateServerCaRequest::Representation
1146
+ command.request_object = instances_rotate_server_ca_request_object
1147
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1148
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
1149
+ command.params['project'] = project unless project.nil?
1150
+ command.params['instance'] = instance unless instance.nil?
1151
+ command.query['fields'] = fields unless fields.nil?
1152
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1153
+ command.query['userIp'] = user_ip unless user_ip.nil?
1154
+ execute_or_queue_command(command, &block)
1155
+ end
1156
+
1037
1157
  # Starts the replication in the read replica instance.
1038
1158
  # @param [String] project
1039
1159
  # ID of the project that contains the read replica.