google-api-client 0.23.9 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +2030 -58
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +878 -43
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +604 -0
  7. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  8. data/generated/google/apis/adexperiencereport_v1/classes.rb +0 -1
  9. data/generated/google/apis/admin_directory_v1.rb +1 -1
  10. data/generated/google/apis/admin_directory_v1/classes.rb +8 -2
  11. data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
  12. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  13. data/generated/google/apis/androidenterprise_v1/classes.rb +108 -5
  14. data/generated/google/apis/androidenterprise_v1/representations.rb +60 -0
  15. data/generated/google/apis/appengine_v1.rb +1 -1
  16. data/generated/google/apis/appengine_v1/classes.rb +1 -1
  17. data/generated/google/apis/appengine_v1/service.rb +3 -3
  18. data/generated/google/apis/appengine_v1beta.rb +1 -1
  19. data/generated/google/apis/appengine_v1beta/classes.rb +1 -1
  20. data/generated/google/apis/appengine_v1beta/service.rb +3 -3
  21. data/generated/google/apis/classroom_v1.rb +1 -1
  22. data/generated/google/apis/classroom_v1/classes.rb +14 -14
  23. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  24. data/generated/google/apis/cloudbuild_v1/classes.rb +6 -0
  25. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  26. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  27. data/generated/google/apis/cloudtrace_v1/classes.rb +3 -2
  28. data/generated/google/apis/composer_v1.rb +1 -1
  29. data/generated/google/apis/composer_v1/classes.rb +1 -1
  30. data/generated/google/apis/composer_v1/service.rb +6 -6
  31. data/generated/google/apis/composer_v1beta1.rb +1 -1
  32. data/generated/google/apis/composer_v1beta1/classes.rb +1 -1
  33. data/generated/google/apis/dataproc_v1.rb +1 -1
  34. data/generated/google/apis/dataproc_v1/classes.rb +475 -0
  35. data/generated/google/apis/dataproc_v1/representations.rb +188 -0
  36. data/generated/google/apis/dataproc_v1/service.rb +550 -0
  37. data/generated/google/apis/dlp_v2.rb +1 -1
  38. data/generated/google/apis/dlp_v2/classes.rb +21 -21
  39. data/generated/google/apis/file_v1beta1.rb +34 -0
  40. data/generated/google/apis/file_v1beta1/classes.rb +810 -0
  41. data/generated/google/apis/file_v1beta1/representations.rb +298 -0
  42. data/generated/google/apis/file_v1beta1/service.rb +472 -0
  43. data/generated/google/apis/jobs_v3.rb +1 -1
  44. data/generated/google/apis/jobs_v3/classes.rb +16 -17
  45. data/generated/google/apis/logging_v2.rb +1 -1
  46. data/generated/google/apis/logging_v2/classes.rb +8 -9
  47. data/generated/google/apis/logging_v2/service.rb +9 -9
  48. data/generated/google/apis/logging_v2beta1.rb +1 -1
  49. data/generated/google/apis/logging_v2beta1/classes.rb +8 -9
  50. data/generated/google/apis/logging_v2beta1/service.rb +1 -1
  51. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  52. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +14 -14
  53. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  54. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +142 -98
  55. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  56. data/generated/google/apis/servicecontrol_v1/classes.rb +0 -2
  57. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  58. data/generated/google/apis/servicemanagement_v1/classes.rb +142 -98
  59. data/generated/google/apis/serviceusage_v1.rb +1 -1
  60. data/generated/google/apis/serviceusage_v1/classes.rb +142 -98
  61. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  62. data/generated/google/apis/serviceusage_v1beta1/classes.rb +142 -98
  63. data/generated/google/apis/serviceuser_v1.rb +1 -1
  64. data/generated/google/apis/serviceuser_v1/classes.rb +142 -98
  65. data/generated/google/apis/speech_v1.rb +1 -1
  66. data/generated/google/apis/speech_v1/classes.rb +91 -0
  67. data/generated/google/apis/speech_v1/representations.rb +18 -0
  68. data/generated/google/apis/speech_v1/service.rb +47 -0
  69. data/generated/google/apis/speech_v1beta1.rb +1 -1
  70. data/generated/google/apis/speech_v1beta1/classes.rb +25 -0
  71. data/generated/google/apis/speech_v1beta1/representations.rb +15 -0
  72. data/generated/google/apis/speech_v1beta1/service.rb +47 -0
  73. data/generated/google/apis/sqladmin_v1beta4.rb +3 -3
  74. data/generated/google/apis/sqladmin_v1beta4/classes.rb +34 -31
  75. data/generated/google/apis/sqladmin_v1beta4/service.rb +8 -8
  76. data/generated/google/apis/storage_v1.rb +1 -1
  77. data/generated/google/apis/storage_v1/classes.rb +3 -4
  78. data/generated/google/apis/storage_v1/service.rb +2 -1
  79. data/generated/google/apis/storage_v1beta2.rb +1 -1
  80. data/generated/google/apis/storage_v1beta2/classes.rb +1 -2
  81. data/generated/google/apis/storage_v1beta2/service.rb +2 -1
  82. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  83. data/generated/google/apis/storagetransfer_v1/classes.rb +21 -21
  84. data/generated/google/apis/testing_v1.rb +1 -1
  85. data/generated/google/apis/testing_v1/classes.rb +308 -14
  86. data/generated/google/apis/testing_v1/representations.rb +136 -0
  87. data/generated/google/apis/vision_v1.rb +1 -1
  88. data/generated/google/apis/vision_v1/classes.rb +156 -2
  89. data/generated/google/apis/vision_v1/representations.rb +60 -0
  90. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  91. data/generated/google/apis/vision_v1p1beta1/classes.rb +156 -2
  92. data/generated/google/apis/vision_v1p1beta1/representations.rb +60 -0
  93. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  94. data/generated/google/apis/vision_v1p2beta1/classes.rb +156 -2
  95. data/generated/google/apis/vision_v1p2beta1/representations.rb +60 -0
  96. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  97. data/lib/google/apis/version.rb +1 -1
  98. metadata +6 -14
  99. data/generated/google/apis/adexchangeseller_v1.rb +0 -37
  100. data/generated/google/apis/adexchangeseller_v1/classes.rb +0 -557
  101. data/generated/google/apis/adexchangeseller_v1/representations.rb +0 -248
  102. data/generated/google/apis/adexchangeseller_v1/service.rb +0 -544
  103. data/generated/google/apis/adexchangeseller_v1_1.rb +0 -37
  104. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +0 -842
  105. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +0 -364
  106. data/generated/google/apis/adexchangeseller_v1_1/service.rb +0 -735
  107. data/generated/google/apis/adexchangeseller_v2_0.rb +0 -37
  108. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +0 -792
  109. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +0 -347
  110. data/generated/google/apis/adexchangeseller_v2_0/service.rb +0 -638
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol
26
26
  module SpeechV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180823'
28
+ REVISION = '20180911'
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'
@@ -22,6 +22,31 @@ module Google
22
22
  module Apis
23
23
  module SpeechV1
24
24
 
25
+ # The response message for Operations.ListOperations.
26
+ class ListOperationsResponse
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The standard List next-page token.
30
+ # Corresponds to the JSON property `nextPageToken`
31
+ # @return [String]
32
+ attr_accessor :next_page_token
33
+
34
+ # A list of operations that matches the specified filter in the request.
35
+ # Corresponds to the JSON property `operations`
36
+ # @return [Array<Google::Apis::SpeechV1::Operation>]
37
+ attr_accessor :operations
38
+
39
+ def initialize(**args)
40
+ update!(**args)
41
+ end
42
+
43
+ # Update properties of this object
44
+ def update!(**args)
45
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
46
+ @operations = args[:operations] if args.key?(:operations)
47
+ end
48
+ end
49
+
25
50
  # The top-level message sent by the client for the `LongRunningRecognize`
26
51
  # method.
27
52
  class LongRunningRecognizeRequest
@@ -191,6 +216,18 @@ module Google
191
216
  class RecognitionConfig
192
217
  include Google::Apis::Core::Hashable
193
218
 
219
+ # *Optional* If 'true', adds punctuation to recognition result hypotheses.
220
+ # This feature is only available in select languages. Setting this for
221
+ # requests in other languages has no effect at all.
222
+ # The default 'false' value does not add punctuation to result hypotheses.
223
+ # Note: This is currently offered as an experimental service, complimentary
224
+ # to all users. In the future this may be exclusively available as a
225
+ # premium feature.
226
+ # Corresponds to the JSON property `enableAutomaticPunctuation`
227
+ # @return [Boolean]
228
+ attr_accessor :enable_automatic_punctuation
229
+ alias_method :enable_automatic_punctuation?, :enable_automatic_punctuation
230
+
194
231
  # *Optional* If `true`, the top result includes a list of words and
195
232
  # the start and end time offsets (timestamps) for those words. If
196
233
  # `false`, no word-level time offset information is returned. The default is
@@ -226,6 +263,42 @@ module Google
226
263
  # @return [Fixnum]
227
264
  attr_accessor :max_alternatives
228
265
 
266
+ # *Optional* Which model to select for the given request. Select the model
267
+ # best suited to your domain to get best results. If a model is not
268
+ # explicitly specified, then we auto-select a model based on the parameters
269
+ # in the RecognitionConfig.
270
+ # <table>
271
+ # <tr>
272
+ # <td><b>Model</b></td>
273
+ # <td><b>Description</b></td>
274
+ # </tr>
275
+ # <tr>
276
+ # <td><code>command_and_search</code></td>
277
+ # <td>Best for short queries such as voice commands or voice search.</td>
278
+ # </tr>
279
+ # <tr>
280
+ # <td><code>phone_call</code></td>
281
+ # <td>Best for audio that originated from a phone call (typically
282
+ # recorded at an 8khz sampling rate).</td>
283
+ # </tr>
284
+ # <tr>
285
+ # <td><code>video</code></td>
286
+ # <td>Best for audio that originated from from video or includes multiple
287
+ # speakers. Ideally the audio is recorded at a 16khz or greater
288
+ # sampling rate. This is a premium model that costs more than the
289
+ # standard rate.</td>
290
+ # </tr>
291
+ # <tr>
292
+ # <td><code>default</code></td>
293
+ # <td>Best for audio that is not one of the specific audio models.
294
+ # For example, long-form audio. Ideally the audio is high-fidelity,
295
+ # recorded at a 16khz or greater sampling rate.</td>
296
+ # </tr>
297
+ # </table>
298
+ # Corresponds to the JSON property `model`
299
+ # @return [String]
300
+ attr_accessor :model
301
+
229
302
  # *Optional* If set to `true`, the server will attempt to filter out
230
303
  # profanities, replacing all but the initial character in each filtered word
231
304
  # with asterisks, e.g. "f***". If set to `false` or omitted, profanities
@@ -253,19 +326,37 @@ module Google
253
326
  # @return [Array<Google::Apis::SpeechV1::SpeechContext>]
254
327
  attr_accessor :speech_contexts
255
328
 
329
+ # *Optional* Set to true to use an enhanced model for speech recognition.
330
+ # You must also set the `model` field to a valid, enhanced model. If
331
+ # `use_enhanced` is set to true and the `model` field is not set, then
332
+ # `use_enhanced` is ignored. If `use_enhanced` is true and an enhanced
333
+ # version of the specified model does not exist, then the speech is
334
+ # recognized using the standard version of the specified model.
335
+ # Enhanced speech models require that you opt-in to data logging using
336
+ # instructions in the [documentation](/speech-to-text/enable-data-logging).
337
+ # If you set `use_enhanced` to true and you have not enabled audio logging,
338
+ # then you will receive an error.
339
+ # Corresponds to the JSON property `useEnhanced`
340
+ # @return [Boolean]
341
+ attr_accessor :use_enhanced
342
+ alias_method :use_enhanced?, :use_enhanced
343
+
256
344
  def initialize(**args)
257
345
  update!(**args)
258
346
  end
259
347
 
260
348
  # Update properties of this object
261
349
  def update!(**args)
350
+ @enable_automatic_punctuation = args[:enable_automatic_punctuation] if args.key?(:enable_automatic_punctuation)
262
351
  @enable_word_time_offsets = args[:enable_word_time_offsets] if args.key?(:enable_word_time_offsets)
263
352
  @encoding = args[:encoding] if args.key?(:encoding)
264
353
  @language_code = args[:language_code] if args.key?(:language_code)
265
354
  @max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives)
355
+ @model = args[:model] if args.key?(:model)
266
356
  @profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
267
357
  @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
268
358
  @speech_contexts = args[:speech_contexts] if args.key?(:speech_contexts)
359
+ @use_enhanced = args[:use_enhanced] if args.key?(:use_enhanced)
269
360
  end
270
361
  end
271
362
 
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module SpeechV1
24
24
 
25
+ class ListOperationsResponse
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class LongRunningRecognizeRequest
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -88,6 +94,15 @@ module Google
88
94
  include Google::Apis::Core::JsonObjectSupport
89
95
  end
90
96
 
97
+ class ListOperationsResponse
98
+ # @private
99
+ class Representation < Google::Apis::Core::JsonRepresentation
100
+ property :next_page_token, as: 'nextPageToken'
101
+ collection :operations, as: 'operations', class: Google::Apis::SpeechV1::Operation, decorator: Google::Apis::SpeechV1::Operation::Representation
102
+
103
+ end
104
+ end
105
+
91
106
  class LongRunningRecognizeRequest
92
107
  # @private
93
108
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -121,14 +136,17 @@ module Google
121
136
  class RecognitionConfig
122
137
  # @private
123
138
  class Representation < Google::Apis::Core::JsonRepresentation
139
+ property :enable_automatic_punctuation, as: 'enableAutomaticPunctuation'
124
140
  property :enable_word_time_offsets, as: 'enableWordTimeOffsets'
125
141
  property :encoding, as: 'encoding'
126
142
  property :language_code, as: 'languageCode'
127
143
  property :max_alternatives, as: 'maxAlternatives'
144
+ property :model, as: 'model'
128
145
  property :profanity_filter, as: 'profanityFilter'
129
146
  property :sample_rate_hertz, as: 'sampleRateHertz'
130
147
  collection :speech_contexts, as: 'speechContexts', class: Google::Apis::SpeechV1::SpeechContext, decorator: Google::Apis::SpeechV1::SpeechContext::Representation
131
148
 
149
+ property :use_enhanced, as: 'useEnhanced'
132
150
  end
133
151
  end
134
152
 
@@ -79,6 +79,53 @@ module Google
79
79
  execute_or_queue_command(command, &block)
80
80
  end
81
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] filter
92
+ # The standard list filter.
93
+ # @param [String] name
94
+ # The name of the operation's parent resource.
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::SpeechV1::ListOperationsResponse] parsed result object
109
+ # @yieldparam err [StandardError] error object if request failed
110
+ #
111
+ # @return [Google::Apis::SpeechV1::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_operations(filter: nil, name: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
117
+ command = make_simple_command(:get, 'v1/operations', options)
118
+ command.response_representation = Google::Apis::SpeechV1::ListOperationsResponse::Representation
119
+ command.response_class = Google::Apis::SpeechV1::ListOperationsResponse
120
+ command.query['filter'] = filter unless filter.nil?
121
+ command.query['name'] = name unless name.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
+
82
129
  # Performs asynchronous speech recognition: receive results via the
83
130
  # google.longrunning.Operations interface. Returns either an
84
131
  # `Operation.error` or an `Operation.response` which contains
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol
26
26
  module SpeechV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20180629'
28
+ REVISION = '20180911'
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'
@@ -51,6 +51,31 @@ module Google
51
51
  end
52
52
  end
53
53
 
54
+ # The response message for Operations.ListOperations.
55
+ class ListOperationsResponse
56
+ include Google::Apis::Core::Hashable
57
+
58
+ # The standard List next-page token.
59
+ # Corresponds to the JSON property `nextPageToken`
60
+ # @return [String]
61
+ attr_accessor :next_page_token
62
+
63
+ # A list of operations that matches the specified filter in the request.
64
+ # Corresponds to the JSON property `operations`
65
+ # @return [Array<Google::Apis::SpeechV1beta1::Operation>]
66
+ attr_accessor :operations
67
+
68
+ def initialize(**args)
69
+ update!(**args)
70
+ end
71
+
72
+ # Update properties of this object
73
+ def update!(**args)
74
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
75
+ @operations = args[:operations] if args.key?(:operations)
76
+ end
77
+ end
78
+
54
79
  # This resource represents a long-running operation that is the result of a
55
80
  # network API call.
56
81
  class Operation
@@ -28,6 +28,12 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class ListOperationsResponse
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class Operation
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -92,6 +98,15 @@ module Google
92
98
  end
93
99
  end
94
100
 
101
+ class ListOperationsResponse
102
+ # @private
103
+ class Representation < Google::Apis::Core::JsonRepresentation
104
+ property :next_page_token, as: 'nextPageToken'
105
+ collection :operations, as: 'operations', class: Google::Apis::SpeechV1beta1::Operation, decorator: Google::Apis::SpeechV1beta1::Operation::Representation
106
+
107
+ end
108
+ end
109
+
95
110
  class Operation
96
111
  # @private
97
112
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -79,6 +79,53 @@ module Google
79
79
  execute_or_queue_command(command, &block)
80
80
  end
81
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] filter
92
+ # The standard list filter.
93
+ # @param [String] name
94
+ # The name of the operation's parent resource.
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::SpeechV1beta1::ListOperationsResponse] parsed result object
109
+ # @yieldparam err [StandardError] error object if request failed
110
+ #
111
+ # @return [Google::Apis::SpeechV1beta1::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_operations(filter: nil, name: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
117
+ command = make_simple_command(:get, 'v1beta1/operations', options)
118
+ command.response_representation = Google::Apis::SpeechV1beta1::ListOperationsResponse::Representation
119
+ command.response_class = Google::Apis::SpeechV1beta1::ListOperationsResponse
120
+ command.query['filter'] = filter unless filter.nil?
121
+ command.query['name'] = name unless name.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
+
82
129
  # Performs asynchronous speech recognition: receive results via the
83
130
  # [google.longrunning.Operations]
84
131
  # (/speech/reference/rest/v1beta1/operations#Operation)
@@ -20,13 +20,13 @@ module Google
20
20
  module Apis
21
21
  # Cloud SQL Admin API
22
22
  #
23
- # Cloud SQL provides the Cloud SQL Admin API, a REST API for administering your
24
- # instances programmatically.
23
+ # Creates and manages Cloud SQL instances, which provide fully managed MySQL or
24
+ # PostgreSQL databases.
25
25
  #
26
26
  # @see https://cloud.google.com/sql/docs/reference/latest
27
27
  module SqladminV1beta4
28
28
  VERSION = 'V1beta4'
29
- REVISION = '20180727'
29
+ REVISION = '20180912'
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'
@@ -108,7 +108,7 @@ module Google
108
108
  end
109
109
  end
110
110
 
111
- # A database instance backup run resource.
111
+ # A BackupRun resource.
112
112
  class BackupRun
113
113
  include Google::Apis::Core::Hashable
114
114
 
@@ -134,8 +134,8 @@ module Google
134
134
  # @return [Google::Apis::SqladminV1beta4::OperationError]
135
135
  attr_accessor :error
136
136
 
137
- # A unique identifier for this backup run. Note that this is unique only within
138
- # the scope of a particular Cloud SQL instance.
137
+ # The identifier for this backup run. Unique only for a specific Cloud SQL
138
+ # instance.
139
139
  # Corresponds to the JSON property `id`
140
140
  # @return [Fixnum]
141
141
  attr_accessor :id
@@ -298,7 +298,7 @@ module Google
298
298
  end
299
299
  end
300
300
 
301
- # A database resource inside a Cloud SQL instance.
301
+ # Represents a SQL database on the Cloud SQL instance.
302
302
  class Database
303
303
  include Google::Apis::Core::Hashable
304
304
 
@@ -312,7 +312,7 @@ module Google
312
312
  # @return [String]
313
313
  attr_accessor :collation
314
314
 
315
- # HTTP 1.1 Entity tag for the resource.
315
+ # This field is deprecated and will be removed from a future version of the API.
316
316
  # Corresponds to the JSON property `etag`
317
317
  # @return [String]
318
318
  attr_accessor :etag
@@ -361,15 +361,14 @@ module Google
361
361
  end
362
362
  end
363
363
 
364
- # MySQL flags for Cloud SQL instances.
364
+ # Database flags for Cloud SQL instances.
365
365
  class DatabaseFlags
366
366
  include Google::Apis::Core::Hashable
367
367
 
368
368
  # The name of the flag. These flags are passed at instance startup, so include
369
- # both MySQL server options and MySQL system variables. Flags should be
370
- # specified with underscores, not hyphens. For more information, see Configuring
371
- # MySQL Flags in the Google Cloud SQL documentation, as well as the official
372
- # MySQL documentation for server options and system variables.
369
+ # both server options and system variables for MySQL. Flags should be specified
370
+ # with underscores, not hyphens. For more information, see Configuring Database
371
+ # Flags in the Cloud SQL documentation.
373
372
  # Corresponds to the JSON property `name`
374
373
  # @return [String]
375
374
  attr_accessor :name
@@ -395,9 +394,11 @@ module Google
395
394
  class DatabaseInstance
396
395
  include Google::Apis::Core::Hashable
397
396
 
398
- # FIRST_GEN: Basic Cloud SQL instance that runs in a Google-managed container.
399
- # SECOND_GEN: A newer Cloud SQL backend that runs in a Compute Engine VM.
400
- # EXTERNAL: A MySQL server that is not managed by Google.
397
+ # FIRST_GEN: First Generation instance. MySQL only.
398
+ # SECOND_GEN: Second Generation instance or PostgreSQL instance.
399
+ # EXTERNAL: A database server that is not managed by Google.
400
+ # This property is read-only; use the tier property in the settings object to
401
+ # determine the database type and Second or First Generation.
401
402
  # Corresponds to the JSON property `backendType`
402
403
  # @return [String]
403
404
  attr_accessor :backend_type
@@ -409,9 +410,8 @@ module Google
409
410
 
410
411
  # The current disk usage of the instance in bytes. This property has been
411
412
  # deprecated. Users should use the "cloudsql.googleapis.com/database/disk/
412
- # bytes_used" metric in Cloud Monitoring API instead. Please see https://groups.
413
- # google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ for
414
- # details.
413
+ # bytes_used" metric in Cloud Monitoring API instead. Please see this
414
+ # announcement for details.
415
415
  # Corresponds to the JSON property `currentDiskSize`
416
416
  # @return [Fixnum]
417
417
  attr_accessor :current_disk_size
@@ -424,7 +424,8 @@ module Google
424
424
  # @return [String]
425
425
  attr_accessor :database_version
426
426
 
427
- # HTTP 1.1 Entity tag for the resource.
427
+ # This field is deprecated and will be removed from a future version of the API.
428
+ # Use the settings.settingsVersion field instead.
428
429
  # Corresponds to the JSON property `etag`
429
430
  # @return [String]
430
431
  attr_accessor :etag
@@ -899,7 +900,7 @@ module Google
899
900
  end
900
901
  end
901
902
 
902
- # A Google Cloud SQL service flag resource.
903
+ # A flag resource.
903
904
  class Flag
904
905
  include Google::Apis::Core::Hashable
905
906
 
@@ -1869,8 +1870,8 @@ module Google
1869
1870
  # @return [String]
1870
1871
  attr_accessor :activation_policy
1871
1872
 
1872
- # The App Engine app IDs that can access this instance. This property is only
1873
- # applicable to First Generation instances.
1873
+ # The App Engine app IDs that can access this instance. First Generation
1874
+ # instances only.
1874
1875
  # Corresponds to the JSON property `authorizedGaeApplications`
1875
1876
  # @return [Array<String>]
1876
1877
  attr_accessor :authorized_gae_applications
@@ -1898,14 +1899,14 @@ module Google
1898
1899
  attr_accessor :crash_safe_replication_enabled
1899
1900
  alias_method :crash_safe_replication_enabled?, :crash_safe_replication_enabled
1900
1901
 
1901
- # The size of data disk, in GB. The data disk size minimum is 10GB. Applies only
1902
- # to Second Generation instances.
1902
+ # The size of data disk, in GB. The data disk size minimum is 10GB. Not used for
1903
+ # First Generation instances.
1903
1904
  # Corresponds to the JSON property `dataDiskSizeGb`
1904
1905
  # @return [Fixnum]
1905
1906
  attr_accessor :data_disk_size_gb
1906
1907
 
1907
- # The type of data disk. Only supported for Second Generation instances. The
1908
- # default type is PD_SSD. Applies only to Second Generation instances.
1908
+ # The type of data disk: PD_SSD (default) or PD_HDD. Not used for First
1909
+ # Generation instances.
1909
1910
  # Corresponds to the JSON property `dataDiskType`
1910
1911
  # @return [String]
1911
1912
  attr_accessor :data_disk_type
@@ -1968,21 +1969,23 @@ module Google
1968
1969
  attr_accessor :settings_version
1969
1970
 
1970
1971
  # Configuration to increase storage size automatically. The default value is
1971
- # true. Applies only to Second Generation instances.
1972
+ # true. Not used for First Generation instances.
1972
1973
  # Corresponds to the JSON property `storageAutoResize`
1973
1974
  # @return [Boolean]
1974
1975
  attr_accessor :storage_auto_resize
1975
1976
  alias_method :storage_auto_resize?, :storage_auto_resize
1976
1977
 
1977
1978
  # The maximum size to which storage capacity can be automatically increased. The
1978
- # default value is 0, which specifies that there is no limit. Applies only to
1979
- # Second Generation instances.
1979
+ # default value is 0, which specifies that there is no limit. Not used for First
1980
+ # Generation instances.
1980
1981
  # Corresponds to the JSON property `storageAutoResizeLimit`
1981
1982
  # @return [Fixnum]
1982
1983
  attr_accessor :storage_auto_resize_limit
1983
1984
 
1984
- # The tier of service for this instance, for example D1, D2. For more
1985
- # information, see pricing.
1985
+ # The tier (or machine type) for this instance, for example db-n1-standard-1 (
1986
+ # MySQL instances) or db-custom-1-3840 (PostgreSQL instances). For MySQL
1987
+ # instances, this property determines whether the instance is First or Second
1988
+ # Generation. For more information, see Instance Settings.
1986
1989
  # Corresponds to the JSON property `tier`
1987
1990
  # @return [String]
1988
1991
  attr_accessor :tier
@@ -2319,7 +2322,7 @@ module Google
2319
2322
  class User
2320
2323
  include Google::Apis::Core::Hashable
2321
2324
 
2322
- # HTTP 1.1 Entity tag for the resource.
2325
+ # This field is deprecated and will be removed from a future version of the API.
2323
2326
  # Corresponds to the JSON property `etag`
2324
2327
  # @return [String]
2325
2328
  attr_accessor :etag
@@ -2343,7 +2346,7 @@ module Google
2343
2346
  attr_accessor :kind
2344
2347
 
2345
2348
  # The name of the user in the Cloud SQL instance. Can be omitted for update
2346
- # since it is already specified on the URL.
2349
+ # since it is already specified in the URL.
2347
2350
  # Corresponds to the JSON property `name`
2348
2351
  # @return [String]
2349
2352
  attr_accessor :name