google-api-client 0.27.3 → 0.28.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +44 -0
  3. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  4. data/generated/google/apis/alertcenter_v1beta1/service.rb +4 -4
  5. data/generated/google/apis/analytics_v3.rb +1 -1
  6. data/generated/google/apis/analytics_v3/classes.rb +18 -112
  7. data/generated/google/apis/analytics_v3/representations.rb +0 -36
  8. data/generated/google/apis/analytics_v3/service.rb +18 -18
  9. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  10. data/generated/google/apis/bigquery_v2.rb +1 -1
  11. data/generated/google/apis/bigquery_v2/classes.rb +20 -0
  12. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  13. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  14. data/generated/google/apis/cloudbilling_v1/classes.rb +7 -0
  15. data/generated/google/apis/cloudbilling_v1/representations.rb +1 -0
  16. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  17. data/generated/google/apis/cloudbuild_v1/classes.rb +2 -2
  18. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  19. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +2 -2
  20. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  21. data/generated/google/apis/cloudsearch_v1/classes.rb +5 -8
  22. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  23. data/generated/google/apis/composer_v1.rb +1 -1
  24. data/generated/google/apis/composer_v1/classes.rb +59 -0
  25. data/generated/google/apis/composer_v1/representations.rb +30 -0
  26. data/generated/google/apis/composer_v1/service.rb +37 -0
  27. data/generated/google/apis/composer_v1beta1.rb +1 -1
  28. data/generated/google/apis/composer_v1beta1/classes.rb +59 -0
  29. data/generated/google/apis/composer_v1beta1/representations.rb +30 -0
  30. data/generated/google/apis/composer_v1beta1/service.rb +37 -0
  31. data/generated/google/apis/dialogflow_v2.rb +1 -1
  32. data/generated/google/apis/dialogflow_v2/classes.rb +2 -0
  33. data/generated/google/apis/dialogflow_v2/service.rb +8 -16
  34. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  35. data/generated/google/apis/dialogflow_v2beta1/classes.rb +7 -0
  36. data/generated/google/apis/dialogflow_v2beta1/service.rb +8 -16
  37. data/generated/google/apis/firebasehosting_v1beta1.rb +4 -3
  38. data/generated/google/apis/firebasehosting_v1beta1/service.rb +3 -2
  39. data/generated/google/apis/fitness_v1.rb +1 -1
  40. data/generated/google/apis/fitness_v1/classes.rb +7 -6
  41. data/generated/google/apis/iam_v1.rb +1 -1
  42. data/generated/google/apis/iam_v1/classes.rb +37 -0
  43. data/generated/google/apis/iam_v1/representations.rb +15 -0
  44. data/generated/google/apis/iam_v1/service.rb +44 -0
  45. data/generated/google/apis/iap_v1.rb +1 -1
  46. data/generated/google/apis/iap_v1/service.rb +3 -558
  47. data/generated/google/apis/iap_v1beta1.rb +1 -1
  48. data/generated/google/apis/iap_v1beta1/service.rb +3 -568
  49. data/generated/google/apis/jobs_v2.rb +1 -1
  50. data/generated/google/apis/jobs_v2/classes.rb +1 -1
  51. data/generated/google/apis/jobs_v2/service.rb +2 -2
  52. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  53. data/generated/google/apis/jobs_v3p1beta1/classes.rb +13 -0
  54. data/generated/google/apis/logging_v2.rb +1 -1
  55. data/generated/google/apis/logging_v2/classes.rb +52 -10
  56. data/generated/google/apis/logging_v2/representations.rb +6 -0
  57. data/generated/google/apis/logging_v2/service.rb +9 -9
  58. data/generated/google/apis/logging_v2beta1.rb +1 -1
  59. data/generated/google/apis/logging_v2beta1/classes.rb +37 -9
  60. data/generated/google/apis/logging_v2beta1/representations.rb +4 -0
  61. data/generated/google/apis/logging_v2beta1/service.rb +1 -1
  62. data/generated/google/apis/ml_v1.rb +1 -1
  63. data/generated/google/apis/ml_v1/classes.rb +10 -12
  64. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  65. data/generated/google/apis/remotebuildexecution_v1/classes.rb +111 -88
  66. data/generated/google/apis/remotebuildexecution_v1/representations.rb +3 -1
  67. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  68. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +111 -88
  69. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +3 -1
  70. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  71. data/generated/google/apis/remotebuildexecution_v2/classes.rb +141 -116
  72. data/generated/google/apis/remotebuildexecution_v2/representations.rb +3 -1
  73. data/generated/google/apis/remotebuildexecution_v2/service.rb +6 -5
  74. data/generated/google/apis/script_v1.rb +1 -1
  75. data/generated/google/apis/script_v1/classes.rb +2 -1
  76. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  77. data/generated/google/apis/servicecontrol_v1/classes.rb +1 -0
  78. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  79. data/generated/google/apis/servicemanagement_v1/classes.rb +12 -0
  80. data/generated/google/apis/servicemanagement_v1/representations.rb +2 -0
  81. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  82. data/generated/google/apis/servicenetworking_v1beta/classes.rb +71 -0
  83. data/generated/google/apis/servicenetworking_v1beta/representations.rb +30 -0
  84. data/generated/google/apis/serviceusage_v1.rb +1 -1
  85. data/generated/google/apis/serviceusage_v1/service.rb +0 -3
  86. data/generated/google/apis/speech_v1.rb +1 -1
  87. data/generated/google/apis/speech_v1/classes.rb +20 -0
  88. data/generated/google/apis/speech_v1/representations.rb +2 -0
  89. data/generated/google/apis/speech_v1/service.rb +111 -0
  90. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  91. data/generated/google/apis/speech_v1p1beta1/classes.rb +1 -1
  92. data/generated/google/apis/speech_v1p1beta1/service.rb +111 -0
  93. data/generated/google/apis/videointelligence_v1.rb +1 -1
  94. data/generated/google/apis/videointelligence_v1/classes.rb +14 -0
  95. data/generated/google/apis/videointelligence_v1/representations.rb +1 -0
  96. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  97. data/generated/google/apis/videointelligence_v1beta2/classes.rb +14 -0
  98. data/generated/google/apis/videointelligence_v1beta2/representations.rb +1 -0
  99. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  100. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +14 -0
  101. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +1 -0
  102. data/generated/google/apis/vision_v1.rb +1 -1
  103. data/generated/google/apis/vision_v1/classes.rb +2 -1
  104. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  105. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  106. data/lib/google/apis/version.rb +1 -1
  107. metadata +2 -6
  108. data/generated/google/apis/monitoring_v1.rb +0 -33
  109. data/generated/google/apis/monitoring_v1/classes.rb +0 -474
  110. data/generated/google/apis/monitoring_v1/representations.rb +0 -195
  111. data/generated/google/apis/monitoring_v1/service.rb +0 -211
@@ -752,6 +752,7 @@ module Google
752
752
  # @private
753
753
  class Representation < Google::Apis::Core::JsonRepresentation
754
754
  property :cached_result, as: 'cachedResult'
755
+ property :message, as: 'message'
755
756
  property :result, as: 'result', class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2ActionResult, decorator: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2ActionResult::Representation
756
757
 
757
758
  hash :server_logs, as: 'serverLogs', class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2LogFile, decorator: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2LogFile::Representation
@@ -1047,6 +1048,7 @@ module Google
1047
1048
  # @private
1048
1049
  class Representation < Google::Apis::Core::JsonRepresentation
1049
1050
  property :location, as: 'location'
1051
+ property :logging_enabled, as: 'loggingEnabled'
1050
1052
  property :name, as: 'name'
1051
1053
  property :state, as: 'state'
1052
1054
  end
@@ -1307,10 +1309,10 @@ module Google
1307
1309
  class Representation < Google::Apis::Core::JsonRepresentation
1308
1310
  property :duration, as: 'duration'
1309
1311
  property :exit_code, as: 'exitCode'
1312
+ collection :metadata, as: 'metadata'
1310
1313
  property :outputs, as: 'outputs', class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemoteworkersV1test2Digest, decorator: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemoteworkersV1test2Digest::Representation
1311
1314
 
1312
1315
  property :overhead, as: 'overhead'
1313
- collection :statistics, as: 'statistics'
1314
1316
  property :status, as: 'status', class: Google::Apis::RemotebuildexecutionV2::GoogleRpcStatus, decorator: Google::Apis::RemotebuildexecutionV2::GoogleRpcStatus::Representation
1315
1317
 
1316
1318
  end
@@ -91,10 +91,6 @@ module Google
91
91
  end
92
92
 
93
93
  # Upload a new execution result.
94
- # This method is intended for servers which implement the distributed cache
95
- # independently of the
96
- # Execution API. As a
97
- # result, it is OPTIONAL for servers to implement.
98
94
  # In order to allow the server to perform access control based on the type of
99
95
  # action, and to assist with client debugging, the client MUST first upload
100
96
  # the Action that produced the
@@ -102,7 +98,9 @@ module Google
102
98
  # Command, into the
103
99
  # `ContentAddressableStorage`.
104
100
  # Errors:
105
- # * `UNIMPLEMENTED`: This method is not supported by the server.
101
+ # * `INVALID_ARGUMENT`: One or more arguments are invalid.
102
+ # * `FAILED_PRECONDITION`: One or more errors occurred in updating the
103
+ # action result, such as a missing command or action.
106
104
  # * `RESOURCE_EXHAUSTED`: There is insufficient storage space to add the
107
105
  # entry to the cache.
108
106
  # @param [String] instance_name
@@ -204,6 +202,9 @@ module Google
204
202
  # * `INTERNAL`: An internal error occurred in the execution engine or the
205
203
  # worker.
206
204
  # * `DEADLINE_EXCEEDED`: The execution timed out.
205
+ # * `CANCELLED`: The operation was cancelled by the client. This status is
206
+ # only possible if the server implements the Operations API CancelOperation
207
+ # method, and it was called for the current execution.
207
208
  # In the case of a missing input or command, the server SHOULD additionally
208
209
  # send a PreconditionFailure error detail
209
210
  # where, for each requested blob not present in the CAS, there is a
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/apps-script/api/
26
26
  module ScriptV1
27
27
  VERSION = 'V1'
28
- REVISION = '20181202'
28
+ REVISION = '20190112'
29
29
 
30
30
  # Read, compose, send, and permanently delete all your email from Gmail
31
31
  AUTH_SCOPE = 'https://mail.google.com/'
@@ -263,7 +263,8 @@ module Google
263
263
  alias_method :dev_mode?, :dev_mode
264
264
 
265
265
  # The name of the function to execute in the given script. The name does not
266
- # include parentheses or parameters.
266
+ # include parentheses or parameters. It can reference a function in an
267
+ # included library such as `Library.libFunction1`.
267
268
  # Corresponds to the JSON property `function`
268
269
  # @return [String]
269
270
  attr_accessor :function
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/service-control/
27
27
  module ServicecontrolV1
28
28
  VERSION = 'V1'
29
- REVISION = '20181229'
29
+ REVISION = '20190114'
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'
@@ -547,6 +547,7 @@ module Google
547
547
 
548
548
  # Indicates if service activation check should be skipped for this request.
549
549
  # Default behavior is to perform the check and apply relevant quota.
550
+ # WARNING: Setting this flag to "true" will disable quota enforcement.
550
551
  # Corresponds to the JSON property `skipActivationCheck`
551
552
  # @return [Boolean]
552
553
  attr_accessor :skip_activation_check
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/service-management/
28
28
  module ServicemanagementV1
29
29
  VERSION = 'V1'
30
- REVISION = '20190102'
30
+ REVISION = '20190112'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -512,6 +512,11 @@ module Google
512
512
  # @return [Float]
513
513
  attr_accessor :deadline
514
514
 
515
+ # The JWT audience is used when generating a JWT id token for the backend.
516
+ # Corresponds to the JSON property `jwtAudience`
517
+ # @return [String]
518
+ attr_accessor :jwt_audience
519
+
515
520
  # Minimum deadline in seconds needed for this method. Calls having deadline
516
521
  # value lower than this will be rejected.
517
522
  # Corresponds to the JSON property `minDeadline`
@@ -524,6 +529,11 @@ module Google
524
529
  # @return [Float]
525
530
  attr_accessor :operation_deadline
526
531
 
532
+ #
533
+ # Corresponds to the JSON property `pathTranslation`
534
+ # @return [String]
535
+ attr_accessor :path_translation
536
+
527
537
  # Selects the methods to which this rule applies.
528
538
  # Refer to selector for syntax details.
529
539
  # Corresponds to the JSON property `selector`
@@ -538,8 +548,10 @@ module Google
538
548
  def update!(**args)
539
549
  @address = args[:address] if args.key?(:address)
540
550
  @deadline = args[:deadline] if args.key?(:deadline)
551
+ @jwt_audience = args[:jwt_audience] if args.key?(:jwt_audience)
541
552
  @min_deadline = args[:min_deadline] if args.key?(:min_deadline)
542
553
  @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
554
+ @path_translation = args[:path_translation] if args.key?(:path_translation)
543
555
  @selector = args[:selector] if args.key?(:selector)
544
556
  end
545
557
  end
@@ -640,8 +640,10 @@ module Google
640
640
  class Representation < Google::Apis::Core::JsonRepresentation
641
641
  property :address, as: 'address'
642
642
  property :deadline, as: 'deadline'
643
+ property :jwt_audience, as: 'jwtAudience'
643
644
  property :min_deadline, as: 'minDeadline'
644
645
  property :operation_deadline, as: 'operationDeadline'
646
+ property :path_translation, as: 'pathTranslation'
645
647
  property :selector, as: 'selector'
646
648
  end
647
649
  end
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
27
27
  module ServicenetworkingV1beta
28
28
  VERSION = 'V1beta'
29
- REVISION = '20190109'
29
+ REVISION = '20190114'
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'
@@ -1211,6 +1211,49 @@ module Google
1211
1211
  end
1212
1212
  end
1213
1213
 
1214
+ # Represents a subnet that was created or discovered by a private access
1215
+ # management service.
1216
+ class GoogleCloudServicenetworkingV1betaSubnetwork
1217
+ include Google::Apis::Core::Hashable
1218
+
1219
+ # Subnetwork CIDR range in `10.x.x.x/y` format.
1220
+ # Corresponds to the JSON property `ipCidrRange`
1221
+ # @return [String]
1222
+ attr_accessor :ip_cidr_range
1223
+
1224
+ # Subnetwork name.
1225
+ # See https://cloud.google.com/compute/docs/vpc/
1226
+ # Corresponds to the JSON property `name`
1227
+ # @return [String]
1228
+ attr_accessor :name
1229
+
1230
+ # In the Shared VPC host project, the VPC network that's peered with the
1231
+ # consumer network. For example:
1232
+ # `projects/1234321/global/networks/host-network`
1233
+ # Corresponds to the JSON property `network`
1234
+ # @return [String]
1235
+ attr_accessor :network
1236
+
1237
+ # This is a discovered subnet that is not within the current consumer
1238
+ # allocated ranges.
1239
+ # Corresponds to the JSON property `outsideAllocation`
1240
+ # @return [Boolean]
1241
+ attr_accessor :outside_allocation
1242
+ alias_method :outside_allocation?, :outside_allocation
1243
+
1244
+ def initialize(**args)
1245
+ update!(**args)
1246
+ end
1247
+
1248
+ # Update properties of this object
1249
+ def update!(**args)
1250
+ @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
1251
+ @name = args[:name] if args.key?(:name)
1252
+ @network = args[:network] if args.key?(:network)
1253
+ @outside_allocation = args[:outside_allocation] if args.key?(:outside_allocation)
1254
+ end
1255
+ end
1256
+
1214
1257
  # Defines the HTTP configuration for an API service. It contains a list of
1215
1258
  # HttpRule, each specifying the mapping of an RPC method
1216
1259
  # to one or more HTTP REST API methods.
@@ -2637,6 +2680,34 @@ module Google
2637
2680
  end
2638
2681
  end
2639
2682
 
2683
+ # Represents a found unused range.
2684
+ class Range
2685
+ include Google::Apis::Core::Hashable
2686
+
2687
+ # CIDR range in "10.x.x.x/y" format that is within the
2688
+ # allocated ranges and currently unused.
2689
+ # Corresponds to the JSON property `ipCidrRange`
2690
+ # @return [String]
2691
+ attr_accessor :ip_cidr_range
2692
+
2693
+ # In the Shared VPC host project, the VPC network that's peered with the
2694
+ # consumer network. For example:
2695
+ # `projects/1234321/global/networks/host-network`
2696
+ # Corresponds to the JSON property `network`
2697
+ # @return [String]
2698
+ attr_accessor :network
2699
+
2700
+ def initialize(**args)
2701
+ update!(**args)
2702
+ end
2703
+
2704
+ # Update properties of this object
2705
+ def update!(**args)
2706
+ @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
2707
+ @network = args[:network] if args.key?(:network)
2708
+ end
2709
+ end
2710
+
2640
2711
  # Request to search for an unused range within allocated ranges.
2641
2712
  class SearchRangeRequest
2642
2713
  include Google::Apis::Core::Hashable
@@ -172,6 +172,12 @@ module Google
172
172
  include Google::Apis::Core::JsonObjectSupport
173
173
  end
174
174
 
175
+ class GoogleCloudServicenetworkingV1betaSubnetwork
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
175
181
  class Http
176
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
183
 
@@ -298,6 +304,12 @@ module Google
298
304
  include Google::Apis::Core::JsonObjectSupport
299
305
  end
300
306
 
307
+ class Range
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
301
313
  class SearchRangeRequest
302
314
  class Representation < Google::Apis::Core::JsonRepresentation; end
303
315
 
@@ -629,6 +641,16 @@ module Google
629
641
  end
630
642
  end
631
643
 
644
+ class GoogleCloudServicenetworkingV1betaSubnetwork
645
+ # @private
646
+ class Representation < Google::Apis::Core::JsonRepresentation
647
+ property :ip_cidr_range, as: 'ipCidrRange'
648
+ property :name, as: 'name'
649
+ property :network, as: 'network'
650
+ property :outside_allocation, as: 'outsideAllocation'
651
+ end
652
+ end
653
+
632
654
  class Http
633
655
  # @private
634
656
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -851,6 +873,14 @@ module Google
851
873
  end
852
874
  end
853
875
 
876
+ class Range
877
+ # @private
878
+ class Representation < Google::Apis::Core::JsonRepresentation
879
+ property :ip_cidr_range, as: 'ipCidrRange'
880
+ property :network, as: 'network'
881
+ end
882
+ end
883
+
854
884
  class SearchRangeRequest
855
885
  # @private
856
886
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/service-usage/
28
28
  module ServiceusageV1
29
29
  VERSION = 'V1'
30
- REVISION = '20190109'
30
+ REVISION = '20190115'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -205,7 +205,6 @@ module Google
205
205
 
206
206
  # Enable multiple services on a project. The operation is atomic: if enabling
207
207
  # any service fails, then the entire batch fails, and no state changes occur.
208
- # Operation<response: BatchEnableServicesResponse>
209
208
  # @param [String] parent
210
209
  # Parent to enable services on.
211
210
  # An example name would be:
@@ -248,7 +247,6 @@ module Google
248
247
  # It is not valid to call the disable method on a service that is not
249
248
  # currently enabled. Callers will receive a `FAILED_PRECONDITION` status if
250
249
  # the target service is not currently enabled.
251
- # Operation<response: DisableServiceResponse>
252
250
  # @param [String] name
253
251
  # Name of the consumer and service to disable the service on.
254
252
  # The enable and disable methods currently only support projects.
@@ -286,7 +284,6 @@ module Google
286
284
  end
287
285
 
288
286
  # Enable a service so that it can be used with a project.
289
- # Operation<response: EnableServiceResponse>
290
287
  # @param [String] name
291
288
  # Name of the consumer and service to enable the service on.
292
289
  # The `EnableService` and `DisableService` methods currently only support
@@ -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 = '20190111'
28
+ REVISION = '20190114'
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'
@@ -286,6 +286,17 @@ module Google
286
286
  attr_accessor :enable_automatic_punctuation
287
287
  alias_method :enable_automatic_punctuation?, :enable_automatic_punctuation
288
288
 
289
+ # This needs to be set to `true` explicitly and `audio_channel_count` > 1
290
+ # to get each channel recognized separately. The recognition result will
291
+ # contain a `channel_tag` field to state which channel that result belongs
292
+ # to. If this is not true, we will only recognize the first channel. The
293
+ # request is billed cumulatively for all channels recognized:
294
+ # `audio_channel_count` multiplied by the length of the audio.
295
+ # Corresponds to the JSON property `enableSeparateRecognitionPerChannel`
296
+ # @return [Boolean]
297
+ attr_accessor :enable_separate_recognition_per_channel
298
+ alias_method :enable_separate_recognition_per_channel?, :enable_separate_recognition_per_channel
299
+
289
300
  # *Optional* If `true`, the top result includes a list of words and
290
301
  # the start and end time offsets (timestamps) for those words. If
291
302
  # `false`, no word-level time offset information is returned. The default is
@@ -409,6 +420,7 @@ module Google
409
420
  # Update properties of this object
410
421
  def update!(**args)
411
422
  @enable_automatic_punctuation = args[:enable_automatic_punctuation] if args.key?(:enable_automatic_punctuation)
423
+ @enable_separate_recognition_per_channel = args[:enable_separate_recognition_per_channel] if args.key?(:enable_separate_recognition_per_channel)
412
424
  @enable_word_time_offsets = args[:enable_word_time_offsets] if args.key?(:enable_word_time_offsets)
413
425
  @encoding = args[:encoding] if args.key?(:encoding)
414
426
  @language_code = args[:language_code] if args.key?(:language_code)
@@ -548,6 +560,13 @@ module Google
548
560
  # @return [Array<Google::Apis::SpeechV1::SpeechRecognitionAlternative>]
549
561
  attr_accessor :alternatives
550
562
 
563
+ # For multi-channel audio, this is the channel number corresponding to the
564
+ # recognized result for the audio from that channel.
565
+ # For audio_channel_count = N, its output values can range from '1' to 'N'.
566
+ # Corresponds to the JSON property `channelTag`
567
+ # @return [Fixnum]
568
+ attr_accessor :channel_tag
569
+
551
570
  def initialize(**args)
552
571
  update!(**args)
553
572
  end
@@ -555,6 +574,7 @@ module Google
555
574
  # Update properties of this object
556
575
  def update!(**args)
557
576
  @alternatives = args[:alternatives] if args.key?(:alternatives)
577
+ @channel_tag = args[:channel_tag] if args.key?(:channel_tag)
558
578
  end
559
579
  end
560
580
 
@@ -166,6 +166,7 @@ module Google
166
166
  # @private
167
167
  class Representation < Google::Apis::Core::JsonRepresentation
168
168
  property :enable_automatic_punctuation, as: 'enableAutomaticPunctuation'
169
+ property :enable_separate_recognition_per_channel, as: 'enableSeparateRecognitionPerChannel'
169
170
  property :enable_word_time_offsets, as: 'enableWordTimeOffsets'
170
171
  property :encoding, as: 'encoding'
171
172
  property :language_code, as: 'languageCode'
@@ -219,6 +220,7 @@ module Google
219
220
  class Representation < Google::Apis::Core::JsonRepresentation
220
221
  collection :alternatives, as: 'alternatives', class: Google::Apis::SpeechV1::SpeechRecognitionAlternative, decorator: Google::Apis::SpeechV1::SpeechRecognitionAlternative::Representation
221
222
 
223
+ property :channel_tag, as: 'channelTag'
222
224
  end
223
225
  end
224
226
 
@@ -126,6 +126,117 @@ module Google
126
126
  execute_or_queue_command(command, &block)
127
127
  end
128
128
 
129
+ # Gets the latest state of a long-running operation. Clients can use this
130
+ # method to poll the operation result at intervals as recommended by the API
131
+ # service.
132
+ # @param [String] name
133
+ # The name of the operation resource.
134
+ # @param [String] fields
135
+ # Selector specifying which fields to include in a partial response.
136
+ # @param [String] quota_user
137
+ # Available to use for quota purposes for server-side applications. Can be any
138
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
139
+ # @param [Google::Apis::RequestOptions] options
140
+ # Request-specific options
141
+ #
142
+ # @yield [result, err] Result & error if block supplied
143
+ # @yieldparam result [Google::Apis::SpeechV1::Operation] parsed result object
144
+ # @yieldparam err [StandardError] error object if request failed
145
+ #
146
+ # @return [Google::Apis::SpeechV1::Operation]
147
+ #
148
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
149
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
150
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
151
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
152
+ command = make_simple_command(:get, 'v1/{+name}', options)
153
+ command.response_representation = Google::Apis::SpeechV1::Operation::Representation
154
+ command.response_class = Google::Apis::SpeechV1::Operation
155
+ command.params['name'] = name unless name.nil?
156
+ command.query['fields'] = fields unless fields.nil?
157
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
158
+ execute_or_queue_command(command, &block)
159
+ end
160
+
161
+ # Lists operations that match the specified filter in the request. If the
162
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
163
+ # NOTE: the `name` binding allows API services to override the binding
164
+ # to use different resource name schemes, such as `users/*/operations`. To
165
+ # override the binding, API services can add a binding such as
166
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
167
+ # For backwards compatibility, the default name includes the operations
168
+ # collection id, however overriding users must ensure the name binding
169
+ # is the parent resource, without the operations collection id.
170
+ # @param [String] name
171
+ # The name of the operation's parent resource.
172
+ # @param [String] filter
173
+ # The standard list filter.
174
+ # @param [Fixnum] page_size
175
+ # The standard list page size.
176
+ # @param [String] page_token
177
+ # The standard list page token.
178
+ # @param [String] fields
179
+ # Selector specifying which fields to include in a partial response.
180
+ # @param [String] quota_user
181
+ # Available to use for quota purposes for server-side applications. Can be any
182
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
183
+ # @param [Google::Apis::RequestOptions] options
184
+ # Request-specific options
185
+ #
186
+ # @yield [result, err] Result & error if block supplied
187
+ # @yieldparam result [Google::Apis::SpeechV1::ListOperationsResponse] parsed result object
188
+ # @yieldparam err [StandardError] error object if request failed
189
+ #
190
+ # @return [Google::Apis::SpeechV1::ListOperationsResponse]
191
+ #
192
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
193
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
194
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
195
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
196
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
197
+ command.response_representation = Google::Apis::SpeechV1::ListOperationsResponse::Representation
198
+ command.response_class = Google::Apis::SpeechV1::ListOperationsResponse
199
+ command.params['name'] = name unless name.nil?
200
+ command.query['filter'] = filter unless filter.nil?
201
+ command.query['pageSize'] = page_size unless page_size.nil?
202
+ command.query['pageToken'] = page_token unless page_token.nil?
203
+ command.query['fields'] = fields unless fields.nil?
204
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
205
+ execute_or_queue_command(command, &block)
206
+ end
207
+
208
+ # Gets the latest state of a long-running operation. Clients can use this
209
+ # method to poll the operation result at intervals as recommended by the API
210
+ # service.
211
+ # @param [String] name
212
+ # The name of the operation resource.
213
+ # @param [String] fields
214
+ # Selector specifying which fields to include in a partial response.
215
+ # @param [String] quota_user
216
+ # Available to use for quota purposes for server-side applications. Can be any
217
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
218
+ # @param [Google::Apis::RequestOptions] options
219
+ # Request-specific options
220
+ #
221
+ # @yield [result, err] Result & error if block supplied
222
+ # @yieldparam result [Google::Apis::SpeechV1::Operation] parsed result object
223
+ # @yieldparam err [StandardError] error object if request failed
224
+ #
225
+ # @return [Google::Apis::SpeechV1::Operation]
226
+ #
227
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
228
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
229
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
230
+ def get_project_operation_manual_recognition_task(name, fields: nil, quota_user: nil, options: nil, &block)
231
+ command = make_simple_command(:get, 'v1/{+name}', options)
232
+ command.response_representation = Google::Apis::SpeechV1::Operation::Representation
233
+ command.response_class = Google::Apis::SpeechV1::Operation
234
+ command.params['name'] = name unless name.nil?
235
+ command.query['fields'] = fields unless fields.nil?
236
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
237
+ execute_or_queue_command(command, &block)
238
+ end
239
+
129
240
  # Performs asynchronous speech recognition: receive results via the
130
241
  # google.longrunning.Operations interface. Returns either an
131
242
  # `Operation.error` or an `Operation.response` which contains