google-api-client 0.19.4 → 0.19.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +35 -0
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +3 -3
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +4 -3
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +53 -0
- data/generated/google/apis/appengine_v1beta/representations.rb +19 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -13
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +4 -4
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +0 -136
- data/generated/google/apis/cloudiot_v1/representations.rb +0 -33
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +197 -165
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +86 -75
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +194 -2
- data/generated/google/apis/content_v2/representations.rb +72 -0
- data/generated/google/apis/content_v2/service.rb +35 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/service.rb +22 -28
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +8 -5
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +8 -5
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +8 -5
- data/generated/google/apis/dlp_v2beta2.rb +1 -1
- data/generated/google/apis/dlp_v2beta2/service.rb +25 -13
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +6 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +1 -0
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +7 -0
- data/generated/google/apis/drive_v2/representations.rb +1 -0
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +7 -0
- data/generated/google/apis/drive_v3/representations.rb +1 -0
- data/generated/google/apis/firebaseremoteconfig_v1.rb +1 -1
- data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +1 -1
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +52 -0
- data/generated/google/apis/gmail_v1/representations.rb +16 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +69 -0
- data/generated/google/apis/iam_v1/representations.rb +41 -0
- data/generated/google/apis/iam_v1/service.rb +31 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +7 -0
- data/generated/google/apis/ml_v1/representations.rb +1 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/service.rb +5 -5
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +0 -31
- data/generated/google/apis/partners_v2/representations.rb +0 -15
- data/generated/google/apis/partners_v2/service.rb +0 -55
- data/generated/google/apis/safebrowsing_v4.rb +1 -1
- data/generated/google/apis/safebrowsing_v4/classes.rb +7 -0
- data/generated/google/apis/safebrowsing_v4/representations.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +14 -7
- data/generated/google/apis/speech_v1/representations.rb +1 -0
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +95 -11
- data/generated/google/apis/tpu_v1alpha1/representations.rb +54 -0
- data/generated/google/apis/tpu_v1alpha1/service.rb +139 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +128 -0
- data/generated/google/apis/vision_v1/representations.rb +43 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +0 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -49,6 +49,37 @@ module Google
|
|
49
49
|
@batch_path = 'batch'
|
50
50
|
end
|
51
51
|
|
52
|
+
# Returns a list of services that support service level audit logging
|
53
|
+
# configuration for the given resource.
|
54
|
+
# @param [Google::Apis::IamV1::QueryAuditableServicesRequest] query_auditable_services_request_object
|
55
|
+
# @param [String] fields
|
56
|
+
# Selector specifying which fields to include in a partial response.
|
57
|
+
# @param [String] quota_user
|
58
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
59
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60
|
+
# @param [Google::Apis::RequestOptions] options
|
61
|
+
# Request-specific options
|
62
|
+
#
|
63
|
+
# @yield [result, err] Result & error if block supplied
|
64
|
+
# @yieldparam result [Google::Apis::IamV1::QueryAuditableServicesResponse] parsed result object
|
65
|
+
# @yieldparam err [StandardError] error object if request failed
|
66
|
+
#
|
67
|
+
# @return [Google::Apis::IamV1::QueryAuditableServicesResponse]
|
68
|
+
#
|
69
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
70
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
71
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
72
|
+
def query_iam_policy_auditable_services(query_auditable_services_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
73
|
+
command = make_simple_command(:post, 'v1/iamPolicies:queryAuditableServices', options)
|
74
|
+
command.request_representation = Google::Apis::IamV1::QueryAuditableServicesRequest::Representation
|
75
|
+
command.request_object = query_auditable_services_request_object
|
76
|
+
command.response_representation = Google::Apis::IamV1::QueryAuditableServicesResponse::Representation
|
77
|
+
command.response_class = Google::Apis::IamV1::QueryAuditableServicesResponse
|
78
|
+
command.query['fields'] = fields unless fields.nil?
|
79
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
80
|
+
execute_or_queue_command(command, &block)
|
81
|
+
end
|
82
|
+
|
52
83
|
# Creates a new Role.
|
53
84
|
# @param [String] parent
|
54
85
|
# The resource name of the parent resource in one of the following formats:
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/ml/
|
26
26
|
module MlV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20180122'
|
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'
|
@@ -227,6 +227,12 @@ module Google
|
|
227
227
|
# @return [Hash<String,String>]
|
228
228
|
attr_accessor :hyperparameters
|
229
229
|
|
230
|
+
# True if the trial is stopped early.
|
231
|
+
# Corresponds to the JSON property `isTrialStoppedEarly`
|
232
|
+
# @return [Boolean]
|
233
|
+
attr_accessor :is_trial_stopped_early
|
234
|
+
alias_method :is_trial_stopped_early?, :is_trial_stopped_early
|
235
|
+
|
230
236
|
# The trial id for these results.
|
231
237
|
# Corresponds to the JSON property `trialId`
|
232
238
|
# @return [String]
|
@@ -241,6 +247,7 @@ module Google
|
|
241
247
|
@all_metrics = args[:all_metrics] if args.key?(:all_metrics)
|
242
248
|
@final_metric = args[:final_metric] if args.key?(:final_metric)
|
243
249
|
@hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters)
|
250
|
+
@is_trial_stopped_early = args[:is_trial_stopped_early] if args.key?(:is_trial_stopped_early)
|
244
251
|
@trial_id = args[:trial_id] if args.key?(:trial_id)
|
245
252
|
end
|
246
253
|
end
|
@@ -286,6 +286,7 @@ module Google
|
|
286
286
|
property :final_metric, as: 'finalMetric', class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric, decorator: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric::Representation
|
287
287
|
|
288
288
|
hash :hyperparameters, as: 'hyperparameters'
|
289
|
+
property :is_trial_stopped_early, as: 'isTrialStoppedEarly'
|
289
290
|
property :trial_id, as: 'trialId'
|
290
291
|
end
|
291
292
|
end
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://cloud.google.com/monitoring/api/
|
28
28
|
module MonitoringV3
|
29
29
|
VERSION = 'V3'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20180120'
|
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'
|
@@ -697,7 +697,7 @@ module Google
|
|
697
697
|
|
698
698
|
# Creates a new uptime check configuration.
|
699
699
|
# @param [String] parent
|
700
|
-
# The project in which to create the uptime check. The
|
700
|
+
# The project in which to create the uptime check. The formatis projects/[
|
701
701
|
# PROJECT_ID].
|
702
702
|
# @param [Google::Apis::MonitoringV3::UptimeCheckConfig] uptime_check_config_object
|
703
703
|
# @param [String] fields
|
@@ -733,7 +733,7 @@ module Google
|
|
733
733
|
# uptime check configuration is referenced by an alert policy or other dependent
|
734
734
|
# configs that would be rendered invalid by the deletion.
|
735
735
|
# @param [String] name
|
736
|
-
# The uptime check configuration to delete. The
|
736
|
+
# The uptime check configuration to delete. The formatis projects/[PROJECT_ID]/
|
737
737
|
# uptimeCheckConfigs/[UPTIME_CHECK_ID].
|
738
738
|
# @param [String] fields
|
739
739
|
# Selector specifying which fields to include in a partial response.
|
@@ -764,7 +764,7 @@ module Google
|
|
764
764
|
|
765
765
|
# Gets a single uptime check configuration.
|
766
766
|
# @param [String] name
|
767
|
-
# The uptime check configuration to retrieve. The
|
767
|
+
# The uptime check configuration to retrieve. The formatis projects/[PROJECT_ID]/
|
768
768
|
# uptimeCheckConfigs/[UPTIME_CHECK_ID].
|
769
769
|
# @param [String] fields
|
770
770
|
# Selector specifying which fields to include in a partial response.
|
@@ -796,8 +796,8 @@ module Google
|
|
796
796
|
# Lists the existing valid uptime check configurations for the project, leaving
|
797
797
|
# out any invalid configurations.
|
798
798
|
# @param [String] parent
|
799
|
-
# The project whose uptime check configurations are listed. The
|
800
|
-
#
|
799
|
+
# The project whose uptime check configurations are listed. The formatis
|
800
|
+
# projects/[PROJECT_ID].
|
801
801
|
# @param [Fixnum] page_size
|
802
802
|
# The maximum number of results to return in a single response. The server may
|
803
803
|
# further constrain the maximum number of results returned in a single page. If
|
@@ -897,37 +897,6 @@ module Google
|
|
897
897
|
end
|
898
898
|
end
|
899
899
|
|
900
|
-
# A token that allows a user to take an exam.
|
901
|
-
class ExamToken
|
902
|
-
include Google::Apis::Core::Hashable
|
903
|
-
|
904
|
-
# The id of the exam the token is for.
|
905
|
-
# Corresponds to the JSON property `examId`
|
906
|
-
# @return [Fixnum]
|
907
|
-
attr_accessor :exam_id
|
908
|
-
|
909
|
-
# The type of the exam the token belongs to.
|
910
|
-
# Corresponds to the JSON property `examType`
|
911
|
-
# @return [String]
|
912
|
-
attr_accessor :exam_type
|
913
|
-
|
914
|
-
# The token, only present if the user has access to the exam.
|
915
|
-
# Corresponds to the JSON property `token`
|
916
|
-
# @return [String]
|
917
|
-
attr_accessor :token
|
918
|
-
|
919
|
-
def initialize(**args)
|
920
|
-
update!(**args)
|
921
|
-
end
|
922
|
-
|
923
|
-
# Update properties of this object
|
924
|
-
def update!(**args)
|
925
|
-
@exam_id = args[:exam_id] if args.key?(:exam_id)
|
926
|
-
@exam_type = args[:exam_type] if args.key?(:exam_type)
|
927
|
-
@token = args[:token] if args.key?(:token)
|
928
|
-
end
|
929
|
-
end
|
930
|
-
|
931
900
|
# Response message for GetCompany.
|
932
901
|
class GetCompanyResponse
|
933
902
|
include Google::Apis::Core::Hashable
|
@@ -130,12 +130,6 @@ module Google
|
|
130
130
|
include Google::Apis::Core::JsonObjectSupport
|
131
131
|
end
|
132
132
|
|
133
|
-
class ExamToken
|
134
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
-
|
136
|
-
include Google::Apis::Core::JsonObjectSupport
|
137
|
-
end
|
138
|
-
|
139
133
|
class GetCompanyResponse
|
140
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
135
|
|
@@ -546,15 +540,6 @@ module Google
|
|
546
540
|
end
|
547
541
|
end
|
548
542
|
|
549
|
-
class ExamToken
|
550
|
-
# @private
|
551
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
552
|
-
property :exam_id, :numeric_string => true, as: 'examId'
|
553
|
-
property :exam_type, as: 'examType'
|
554
|
-
property :token, as: 'token'
|
555
|
-
end
|
556
|
-
end
|
557
|
-
|
558
543
|
class GetCompanyResponse
|
559
544
|
# @private
|
560
545
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -393,61 +393,6 @@ module Google
|
|
393
393
|
execute_or_queue_command(command, &block)
|
394
394
|
end
|
395
395
|
|
396
|
-
# Gets an Exam Token for a Partner's user to take an exam in the Exams System
|
397
|
-
# @param [String] exam_type
|
398
|
-
# The exam type we are requesting a token for.
|
399
|
-
# @param [Array<String>, String] request_metadata_experiment_ids
|
400
|
-
# Experiment IDs the current request belongs to.
|
401
|
-
# @param [String] request_metadata_locale
|
402
|
-
# Locale to use for the current request.
|
403
|
-
# @param [String] request_metadata_partners_session_id
|
404
|
-
# Google Partners session ID.
|
405
|
-
# @param [String] request_metadata_traffic_source_traffic_source_id
|
406
|
-
# Identifier to indicate where the traffic comes from.
|
407
|
-
# An identifier has multiple letters created by a team which redirected the
|
408
|
-
# traffic to us.
|
409
|
-
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
410
|
-
# Second level identifier to indicate where the traffic comes from.
|
411
|
-
# An identifier has multiple letters created by a team which redirected the
|
412
|
-
# traffic to us.
|
413
|
-
# @param [String] request_metadata_user_overrides_ip_address
|
414
|
-
# IP address to use instead of the user's geo-located IP address.
|
415
|
-
# @param [String] request_metadata_user_overrides_user_id
|
416
|
-
# Logged-in user ID to impersonate instead of the user's ID.
|
417
|
-
# @param [String] fields
|
418
|
-
# Selector specifying which fields to include in a partial response.
|
419
|
-
# @param [String] quota_user
|
420
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
421
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
422
|
-
# @param [Google::Apis::RequestOptions] options
|
423
|
-
# Request-specific options
|
424
|
-
#
|
425
|
-
# @yield [result, err] Result & error if block supplied
|
426
|
-
# @yieldparam result [Google::Apis::PartnersV2::ExamToken] parsed result object
|
427
|
-
# @yieldparam err [StandardError] error object if request failed
|
428
|
-
#
|
429
|
-
# @return [Google::Apis::PartnersV2::ExamToken]
|
430
|
-
#
|
431
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
432
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
433
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
434
|
-
def get_exam_token(exam_type, request_metadata_experiment_ids: nil, request_metadata_locale: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_user_overrides_user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
435
|
-
command = make_simple_command(:get, 'v2/exams/{examType}/token', options)
|
436
|
-
command.response_representation = Google::Apis::PartnersV2::ExamToken::Representation
|
437
|
-
command.response_class = Google::Apis::PartnersV2::ExamToken
|
438
|
-
command.params['examType'] = exam_type unless exam_type.nil?
|
439
|
-
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
440
|
-
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
441
|
-
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
442
|
-
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
443
|
-
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
444
|
-
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
445
|
-
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
446
|
-
command.query['fields'] = fields unless fields.nil?
|
447
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
448
|
-
execute_or_queue_command(command, &block)
|
449
|
-
end
|
450
|
-
|
451
396
|
# Lists advertiser leads for a user's associated company.
|
452
397
|
# Should only be called within the context of an authorized logged in user.
|
453
398
|
# @param [String] order_by
|
@@ -73,6 +73,12 @@ module Google
|
|
73
73
|
class Constraints
|
74
74
|
include Google::Apis::Core::Hashable
|
75
75
|
|
76
|
+
# Requests the lists for a specific language. Expects ISO 639 alpha-2
|
77
|
+
# format.
|
78
|
+
# Corresponds to the JSON property `language`
|
79
|
+
# @return [String]
|
80
|
+
attr_accessor :language
|
81
|
+
|
76
82
|
# Sets the maximum number of entries that the client is willing to have
|
77
83
|
# in the local database. This should be a power of 2 between 2**10 and
|
78
84
|
# 2**20. If zero, no database size limit is set.
|
@@ -105,6 +111,7 @@ module Google
|
|
105
111
|
|
106
112
|
# Update properties of this object
|
107
113
|
def update!(**args)
|
114
|
+
@language = args[:language] if args.key?(:language)
|
108
115
|
@max_database_entries = args[:max_database_entries] if args.key?(:max_database_entries)
|
109
116
|
@max_update_entries = args[:max_update_entries] if args.key?(:max_update_entries)
|
110
117
|
@region = args[:region] if args.key?(:region)
|
@@ -196,6 +196,7 @@ module Google
|
|
196
196
|
class Constraints
|
197
197
|
# @private
|
198
198
|
class Representation < Google::Apis::Core::JsonRepresentation
|
199
|
+
property :language, as: 'language'
|
199
200
|
property :max_database_entries, as: 'maxDatabaseEntries'
|
200
201
|
property :max_update_entries, as: 'maxUpdateEntries'
|
201
202
|
property :region, as: 'region'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/speech/
|
26
26
|
module SpeechV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20180123'
|
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'
|
@@ -190,6 +190,14 @@ module Google
|
|
190
190
|
class RecognitionConfig
|
191
191
|
include Google::Apis::Core::Hashable
|
192
192
|
|
193
|
+
# *Optional* If `true`, the top result includes a list of words and the
|
194
|
+
# confidence for those words. If `false`, no word-level confidence
|
195
|
+
# information is returned. The default is `false`.
|
196
|
+
# Corresponds to the JSON property `enableWordConfidence`
|
197
|
+
# @return [Boolean]
|
198
|
+
attr_accessor :enable_word_confidence
|
199
|
+
alias_method :enable_word_confidence?, :enable_word_confidence
|
200
|
+
|
193
201
|
# *Optional* If `true`, the top result includes a list of words and
|
194
202
|
# the start and end time offsets (timestamps) for those words. If
|
195
203
|
# `false`, no word-level time offset information is returned. The default is
|
@@ -252,6 +260,7 @@ module Google
|
|
252
260
|
|
253
261
|
# Update properties of this object
|
254
262
|
def update!(**args)
|
263
|
+
@enable_word_confidence = args[:enable_word_confidence] if args.key?(:enable_word_confidence)
|
255
264
|
@enable_word_time_offsets = args[:enable_word_time_offsets] if args.key?(:enable_word_time_offsets)
|
256
265
|
@encoding = args[:encoding] if args.key?(:encoding)
|
257
266
|
@language_code = args[:language_code] if args.key?(:language_code)
|
@@ -344,10 +353,10 @@ module Google
|
|
344
353
|
|
345
354
|
# *Output-only* The confidence estimate between 0.0 and 1.0. A higher number
|
346
355
|
# indicates an estimated greater likelihood that the recognized words are
|
347
|
-
# correct. This field is
|
348
|
-
#
|
349
|
-
#
|
350
|
-
#
|
356
|
+
# correct. This field is set only for the top alternative of a non-streaming
|
357
|
+
# result or, of a streaming result where `is_final=true`.
|
358
|
+
# This field is not guaranteed to be accurate and users should not rely on it
|
359
|
+
# to be always provided.
|
351
360
|
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
|
352
361
|
# Corresponds to the JSON property `confidence`
|
353
362
|
# @return [Float]
|
@@ -469,9 +478,7 @@ module Google
|
|
469
478
|
end
|
470
479
|
end
|
471
480
|
|
472
|
-
# Word-specific information for recognized words.
|
473
|
-
# included in the response when certain request parameters are set, such
|
474
|
-
# as `enable_word_time_offsets`.
|
481
|
+
# Word-specific information for recognized words.
|
475
482
|
class WordInfo
|
476
483
|
include Google::Apis::Core::Hashable
|
477
484
|
|
@@ -121,6 +121,7 @@ module Google
|
|
121
121
|
class RecognitionConfig
|
122
122
|
# @private
|
123
123
|
class Representation < Google::Apis::Core::JsonRepresentation
|
124
|
+
property :enable_word_confidence, as: 'enableWordConfidence'
|
124
125
|
property :enable_word_time_offsets, as: 'enableWordTimeOffsets'
|
125
126
|
property :encoding, as: 'encoding'
|
126
127
|
property :language_code, as: 'languageCode'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/tpu/
|
26
26
|
module TpuV1alpha1
|
27
27
|
VERSION = 'V1alpha1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20180127'
|
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'
|
@@ -116,6 +116,31 @@ module Google
|
|
116
116
|
end
|
117
117
|
end
|
118
118
|
|
119
|
+
# Response for ListTensorFlowVersions.
|
120
|
+
class ListTensorFlowVersionsResponse
|
121
|
+
include Google::Apis::Core::Hashable
|
122
|
+
|
123
|
+
# The next page token or empty if none.
|
124
|
+
# Corresponds to the JSON property `nextPageToken`
|
125
|
+
# @return [String]
|
126
|
+
attr_accessor :next_page_token
|
127
|
+
|
128
|
+
# The listed nodes.
|
129
|
+
# Corresponds to the JSON property `tensorflowVersions`
|
130
|
+
# @return [Array<Google::Apis::TpuV1alpha1::TensorFlowVersion>]
|
131
|
+
attr_accessor :tensorflow_versions
|
132
|
+
|
133
|
+
def initialize(**args)
|
134
|
+
update!(**args)
|
135
|
+
end
|
136
|
+
|
137
|
+
# Update properties of this object
|
138
|
+
def update!(**args)
|
139
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
140
|
+
@tensorflow_versions = args[:tensorflow_versions] if args.key?(:tensorflow_versions)
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
119
144
|
# A resource that represents Google Cloud Platform location.
|
120
145
|
class Location
|
121
146
|
include Google::Apis::Core::Hashable
|
@@ -191,13 +216,14 @@ module Google
|
|
191
216
|
# @return [String]
|
192
217
|
attr_accessor :accelerator_type
|
193
218
|
|
194
|
-
# The CIDR block that the TPU node will use when selecting
|
195
|
-
# This CIDR block must be a /29 block; the
|
196
|
-
# block, and using a larger block would be wasteful (a
|
197
|
-
# one IP address). Errors will occur if the CIDR block
|
198
|
-
# for a currently existing TPU node, the CIDR block
|
199
|
-
# subnetworks in the user's provided network, or the
|
200
|
-
# peered with another network that is using that CIDR
|
219
|
+
# The CIDR block that the TPU node will use when selecting an IP address.
|
220
|
+
# This CIDR block must be a /29 block; the Compute Engine networks API
|
221
|
+
# forbids a smaller block, and using a larger block would be wasteful (a
|
222
|
+
# node can only consume one IP address). Errors will occur if the CIDR block
|
223
|
+
# has already been used for a currently existing TPU node, the CIDR block
|
224
|
+
# conflicts with any subnetworks in the user's provided network, or the
|
225
|
+
# provided network is peered with another network that is using that CIDR
|
226
|
+
# block.
|
201
227
|
# Required.
|
202
228
|
# Corresponds to the JSON property `cidrBlock`
|
203
229
|
# @return [String]
|
@@ -228,11 +254,17 @@ module Google
|
|
228
254
|
|
229
255
|
# Output only.
|
230
256
|
# DEPRECATED! Use network_endpoints instead.
|
231
|
-
# The network address for the TPU Node as visible to
|
257
|
+
# The network address for the TPU Node as visible to Compute Engine
|
258
|
+
# instances.
|
232
259
|
# Corresponds to the JSON property `ipAddress`
|
233
260
|
# @return [String]
|
234
261
|
attr_accessor :ip_address
|
235
262
|
|
263
|
+
# Resource labels to represent user-provided metadata.
|
264
|
+
# Corresponds to the JSON property `labels`
|
265
|
+
# @return [Hash<String,String>]
|
266
|
+
attr_accessor :labels
|
267
|
+
|
236
268
|
# Output only.
|
237
269
|
# The immutable name of the TPU
|
238
270
|
# Corresponds to the JSON property `name`
|
@@ -240,8 +272,8 @@ module Google
|
|
240
272
|
attr_accessor :name
|
241
273
|
|
242
274
|
# The name of a network they wish to peer the TPU node to. It must be a
|
243
|
-
# preexisting
|
244
|
-
# activated. If none is provided, "default" will be used.
|
275
|
+
# preexisting Compute Engine network inside of the project on which this API
|
276
|
+
# has been activated. If none is provided, "default" will be used.
|
245
277
|
# Corresponds to the JSON property `network`
|
246
278
|
# @return [String]
|
247
279
|
attr_accessor :network
|
@@ -256,7 +288,7 @@ module Google
|
|
256
288
|
|
257
289
|
# Output only.
|
258
290
|
# DEPRECATED! Use network_endpoints instead.
|
259
|
-
# The network port for the TPU Node as visible to
|
291
|
+
# The network port for the TPU Node as visible to Compute Engine instances.
|
260
292
|
# Corresponds to the JSON property `port`
|
261
293
|
# @return [String]
|
262
294
|
attr_accessor :port
|
@@ -295,6 +327,7 @@ module Google
|
|
295
327
|
@health = args[:health] if args.key?(:health)
|
296
328
|
@health_description = args[:health_description] if args.key?(:health_description)
|
297
329
|
@ip_address = args[:ip_address] if args.key?(:ip_address)
|
330
|
+
@labels = args[:labels] if args.key?(:labels)
|
298
331
|
@name = args[:name] if args.key?(:name)
|
299
332
|
@network = args[:network] if args.key?(:network)
|
300
333
|
@network_endpoints = args[:network_endpoints] if args.key?(:network_endpoints)
|
@@ -493,6 +526,19 @@ module Google
|
|
493
526
|
end
|
494
527
|
end
|
495
528
|
|
529
|
+
# Request for StartNode.
|
530
|
+
class StartNodeRequest
|
531
|
+
include Google::Apis::Core::Hashable
|
532
|
+
|
533
|
+
def initialize(**args)
|
534
|
+
update!(**args)
|
535
|
+
end
|
536
|
+
|
537
|
+
# Update properties of this object
|
538
|
+
def update!(**args)
|
539
|
+
end
|
540
|
+
end
|
541
|
+
|
496
542
|
# The `Status` type defines a logical error model that is suitable for different
|
497
543
|
# programming environments, including REST APIs and RPC APIs. It is used by
|
498
544
|
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
@@ -564,6 +610,44 @@ module Google
|
|
564
610
|
@message = args[:message] if args.key?(:message)
|
565
611
|
end
|
566
612
|
end
|
613
|
+
|
614
|
+
# Request for StopNode.
|
615
|
+
class StopNodeRequest
|
616
|
+
include Google::Apis::Core::Hashable
|
617
|
+
|
618
|
+
def initialize(**args)
|
619
|
+
update!(**args)
|
620
|
+
end
|
621
|
+
|
622
|
+
# Update properties of this object
|
623
|
+
def update!(**args)
|
624
|
+
end
|
625
|
+
end
|
626
|
+
|
627
|
+
# A tensorflow version that a Node can be configured with.
|
628
|
+
class TensorFlowVersion
|
629
|
+
include Google::Apis::Core::Hashable
|
630
|
+
|
631
|
+
# The resource name.
|
632
|
+
# Corresponds to the JSON property `name`
|
633
|
+
# @return [String]
|
634
|
+
attr_accessor :name
|
635
|
+
|
636
|
+
# the tensorflow version.
|
637
|
+
# Corresponds to the JSON property `version`
|
638
|
+
# @return [String]
|
639
|
+
attr_accessor :version
|
640
|
+
|
641
|
+
def initialize(**args)
|
642
|
+
update!(**args)
|
643
|
+
end
|
644
|
+
|
645
|
+
# Update properties of this object
|
646
|
+
def update!(**args)
|
647
|
+
@name = args[:name] if args.key?(:name)
|
648
|
+
@version = args[:version] if args.key?(:version)
|
649
|
+
end
|
650
|
+
end
|
567
651
|
end
|
568
652
|
end
|
569
653
|
end
|