From 0dc543205efedddd3ec3e75c74e740d798bd116c Mon Sep 17 00:00:00 2001 From: Steve Bazyl Date: Wed, 31 Aug 2016 13:33:12 -0700 Subject: [PATCH] add language_v1beta1 and speech_v1beta1 APIs, bump version --- CHANGELOG.md | 6 +- api_names.yaml | 2 + api_names_out.yaml | 178 ++++++ generated/google/apis/adexchangebuyer_v1_4.rb | 2 +- .../apis/adexchangebuyer_v1_4/classes.rb | 8 + .../adexchangebuyer_v1_4/representations.rb | 1 + .../apis/adexchangebuyer_v1_4/service.rb | 16 +- generated/google/apis/admin_directory_v1.rb | 2 +- generated/google/apis/adsense_v1_4.rb | 2 +- generated/google/apis/adsensehost_v4_1.rb | 2 +- generated/google/apis/androidenterprise_v1.rb | 2 +- .../apis/androidenterprise_v1/classes.rb | 18 +- generated/google/apis/androidpublisher_v2.rb | 2 +- generated/google/apis/appstate_v1.rb | 2 +- generated/google/apis/bigquery_v2.rb | 2 +- generated/google/apis/bigquery_v2/classes.rb | 186 ++++++ .../apis/bigquery_v2/representations.rb | 77 +++ generated/google/apis/calendar_v3.rb | 2 +- generated/google/apis/civicinfo_v2.rb | 2 +- generated/google/apis/civicinfo_v2/classes.rb | 14 +- .../apis/civicinfo_v2/representations.rb | 1 + generated/google/apis/civicinfo_v2/service.rb | 7 +- generated/google/apis/cloudbuild_v1.rb | 2 +- .../google/apis/cloudbuild_v1/classes.rb | 7 + .../apis/cloudbuild_v1/representations.rb | 1 + generated/google/apis/compute_beta.rb | 2 +- generated/google/apis/compute_v1.rb | 2 +- generated/google/apis/content_v2.rb | 2 +- generated/google/apis/datastore_v1beta3.rb | 2 +- .../google/apis/datastore_v1beta3/classes.rb | 53 +- generated/google/apis/deploymentmanager_v2.rb | 2 +- .../apis/deploymentmanager_v2/classes.rb | 6 +- generated/google/apis/dns_v1.rb | 2 +- generated/google/apis/dns_v1/classes.rb | 2 +- generated/google/apis/doubleclicksearch_v2.rb | 2 +- generated/google/apis/drive_v2.rb | 2 +- generated/google/apis/drive_v2/classes.rb | 6 +- generated/google/apis/drive_v3.rb | 2 +- .../games_configuration_v1configuration.rb | 2 +- .../apis/games_management_v1management.rb | 2 +- generated/google/apis/games_v1.rb | 2 +- generated/google/apis/genomics_v1.rb | 2 +- generated/google/apis/identitytoolkit_v3.rb | 2 +- .../google/apis/identitytoolkit_v3/classes.rb | 26 + .../identitytoolkit_v3/representations.rb | 4 + generated/google/apis/language_v1beta1.rb | 36 ++ .../google/apis/language_v1beta1/classes.rb | 596 ++++++++++++++++++ .../apis/language_v1beta1/representations.rb | 289 +++++++++ .../google/apis/language_v1beta1/service.rb | 154 +++++ generated/google/apis/monitoring_v3.rb | 2 +- .../google/apis/monitoring_v3/classes.rb | 4 +- generated/google/apis/oauth2_v2.rb | 2 +- generated/google/apis/plus_domains_v1.rb | 2 +- generated/google/apis/plus_v1.rb | 2 +- generated/google/apis/sheets_v4.rb | 2 +- generated/google/apis/speech_v1beta1.rb | 34 + .../google/apis/speech_v1beta1/classes.rb | 512 +++++++++++++++ .../apis/speech_v1beta1/representations.rb | 218 +++++++ .../google/apis/speech_v1beta1/service.rb | 268 ++++++++ generated/google/apis/sqladmin_v1beta4.rb | 2 +- .../google/apis/sqladmin_v1beta4/service.rb | 3 +- generated/google/apis/vision_v1.rb | 2 +- generated/google/apis/youtube_partner_v1.rb | 2 +- lib/google/apis/version.rb | 2 +- script/generate | 2 + 65 files changed, 2719 insertions(+), 84 deletions(-) create mode 100644 generated/google/apis/language_v1beta1.rb create mode 100644 generated/google/apis/language_v1beta1/classes.rb create mode 100644 generated/google/apis/language_v1beta1/representations.rb create mode 100644 generated/google/apis/language_v1beta1/service.rb create mode 100644 generated/google/apis/speech_v1beta1.rb create mode 100644 generated/google/apis/speech_v1beta1/classes.rb create mode 100644 generated/google/apis/speech_v1beta1/representations.rb create mode 100644 generated/google/apis/speech_v1beta1/service.rb diff --git a/CHANGELOG.md b/CHANGELOG.md index a360e2662..99162b2e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,11 @@ +# 0.9.13 +* Fix fetch_all to work correctly with the genomics API +* Add speech & language APIs, regenerate APIs + + # 0.9.12 * Regenerated APIs - # 0.9.11 * Add DFA Reporting 2.5, regenerate APIs diff --git a/api_names.yaml b/api_names.yaml index 2ec57a2b0..0bdd5b1dd 100644 --- a/api_names.yaml +++ b/api_names.yaml @@ -1050,3 +1050,5 @@ "/classroom:v1/classroom.courses.courseWork.studentSubmissions.get": get_student_submission "/classroom:v1/classroom.courses.courseWork.studentSubmissions.patch": patch_student_submission "/classroom:v1/classroom.courses.courseWork.studentSubmissions.list": list_student_submissions +"/speech:v1beta1/speech.speech.syncrecognize": sync_recognize_speech +"/speech:v1beta1/speech.speech.asyncrecognize": async_recognize_speech diff --git a/api_names_out.yaml b/api_names_out.yaml index 74ae2732c..64bbbe037 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -1026,6 +1026,8 @@ "/classroom:v1/classroom.courses.courseWork.studentSubmissions.get": get_student_submission "/classroom:v1/classroom.courses.courseWork.studentSubmissions.patch": patch_student_submission "/classroom:v1/classroom.courses.courseWork.studentSubmissions.list": list_student_submissions +"/speech:v1beta1/speech.speech.syncrecognize": sync_recognize_speech +"/speech:v1beta1/speech.speech.asyncrecognize": async_recognize_speech "/youtubePartner:v1/fields": fields "/youtubePartner:v1/key": key "/youtubePartner:v1/quotaUser": quota_user @@ -4899,8 +4901,10 @@ "/adexchangebuyer:v1.4/adexchangebuyer.accounts.get/id": id "/adexchangebuyer:v1.4/adexchangebuyer.accounts.list": list_accounts "/adexchangebuyer:v1.4/adexchangebuyer.accounts.patch": patch_account +"/adexchangebuyer:v1.4/adexchangebuyer.accounts.patch/confirmUnsafeAccountChange": confirm_unsafe_account_change "/adexchangebuyer:v1.4/adexchangebuyer.accounts.patch/id": id "/adexchangebuyer:v1.4/adexchangebuyer.accounts.update": update_account +"/adexchangebuyer:v1.4/adexchangebuyer.accounts.update/confirmUnsafeAccountChange": confirm_unsafe_account_change "/adexchangebuyer:v1.4/adexchangebuyer.accounts.update/id": id "/adexchangebuyer:v1.4/adexchangebuyer.billingInfo.get": get_billing_info "/adexchangebuyer:v1.4/adexchangebuyer.billingInfo.get/accountId": account_id @@ -5161,6 +5165,7 @@ "/adexchangebuyer:v1.4/DealServingMetadataDealPauseStatus/sellerPauseReason": seller_pause_reason "/adexchangebuyer:v1.4/DealTerms": deal_terms "/adexchangebuyer:v1.4/DealTerms/brandingType": branding_type +"/adexchangebuyer:v1.4/DealTerms/crossListedExternalDealIdType": cross_listed_external_deal_id_type "/adexchangebuyer:v1.4/DealTerms/description": description "/adexchangebuyer:v1.4/DealTerms/estimatedGrossSpend": estimated_gross_spend "/adexchangebuyer:v1.4/DealTerms/estimatedImpressionsPerDay": estimated_impressions_per_day @@ -9577,6 +9582,8 @@ "/bigquery:v2/JobConfigurationLoad/schema": schema "/bigquery:v2/JobConfigurationLoad/schemaInline": schema_inline "/bigquery:v2/JobConfigurationLoad/schemaInlineFormat": schema_inline_format +"/bigquery:v2/JobConfigurationLoad/schemaUpdateOptions": schema_update_options +"/bigquery:v2/JobConfigurationLoad/schemaUpdateOptions/schema_update_option": schema_update_option "/bigquery:v2/JobConfigurationLoad/skipLeadingRows": skip_leading_rows "/bigquery:v2/JobConfigurationLoad/sourceFormat": source_format "/bigquery:v2/JobConfigurationLoad/sourceUris": source_uris @@ -9590,9 +9597,14 @@ "/bigquery:v2/JobConfigurationQuery/flattenResults": flatten_results "/bigquery:v2/JobConfigurationQuery/maximumBillingTier": maximum_billing_tier "/bigquery:v2/JobConfigurationQuery/maximumBytesBilled": maximum_bytes_billed +"/bigquery:v2/JobConfigurationQuery/parameterMode": parameter_mode "/bigquery:v2/JobConfigurationQuery/preserveNulls": preserve_nulls "/bigquery:v2/JobConfigurationQuery/priority": priority "/bigquery:v2/JobConfigurationQuery/query": query +"/bigquery:v2/JobConfigurationQuery/queryParameters": query_parameters +"/bigquery:v2/JobConfigurationQuery/queryParameters/query_parameter": query_parameter +"/bigquery:v2/JobConfigurationQuery/schemaUpdateOptions": schema_update_options +"/bigquery:v2/JobConfigurationQuery/schemaUpdateOptions/schema_update_option": schema_update_option "/bigquery:v2/JobConfigurationQuery/tableDefinitions": table_definitions "/bigquery:v2/JobConfigurationQuery/tableDefinitions/table_definition": table_definition "/bigquery:v2/JobConfigurationQuery/useLegacySql": use_legacy_sql @@ -9644,6 +9656,8 @@ "/bigquery:v2/JobStatistics2/schema": schema "/bigquery:v2/JobStatistics2/totalBytesBilled": total_bytes_billed "/bigquery:v2/JobStatistics2/totalBytesProcessed": total_bytes_processed +"/bigquery:v2/JobStatistics2/undeclaredQueryParameters": undeclared_query_parameters +"/bigquery:v2/JobStatistics2/undeclaredQueryParameters/undeclared_query_parameter": undeclared_query_parameter "/bigquery:v2/JobStatistics3": job_statistics3 "/bigquery:v2/JobStatistics3/inputFileBytes": input_file_bytes "/bigquery:v2/JobStatistics3/inputFiles": input_files @@ -9674,13 +9688,34 @@ "/bigquery:v2/ProjectList/totalItems": total_items "/bigquery:v2/ProjectReference": project_reference "/bigquery:v2/ProjectReference/projectId": project_id +"/bigquery:v2/QueryParameter": query_parameter +"/bigquery:v2/QueryParameter/name": name +"/bigquery:v2/QueryParameter/parameterType": parameter_type +"/bigquery:v2/QueryParameter/parameterValue": parameter_value +"/bigquery:v2/QueryParameterType": query_parameter_type +"/bigquery:v2/QueryParameterType/arrayType": array_type +"/bigquery:v2/QueryParameterType/structTypes": struct_types +"/bigquery:v2/QueryParameterType/structTypes/struct_type": struct_type +"/bigquery:v2/QueryParameterType/structTypes/struct_type/description": description +"/bigquery:v2/QueryParameterType/structTypes/struct_type/name": name +"/bigquery:v2/QueryParameterType/structTypes/struct_type/type": type +"/bigquery:v2/QueryParameterType/type": type +"/bigquery:v2/QueryParameterValue": query_parameter_value +"/bigquery:v2/QueryParameterValue/arrayValues": array_values +"/bigquery:v2/QueryParameterValue/arrayValues/array_value": array_value +"/bigquery:v2/QueryParameterValue/structValues": struct_values +"/bigquery:v2/QueryParameterValue/structValues/struct_value": struct_value +"/bigquery:v2/QueryParameterValue/value": value "/bigquery:v2/QueryRequest": query_request "/bigquery:v2/QueryRequest/defaultDataset": default_dataset "/bigquery:v2/QueryRequest/dryRun": dry_run "/bigquery:v2/QueryRequest/kind": kind "/bigquery:v2/QueryRequest/maxResults": max_results +"/bigquery:v2/QueryRequest/parameterMode": parameter_mode "/bigquery:v2/QueryRequest/preserveNulls": preserve_nulls "/bigquery:v2/QueryRequest/query": query +"/bigquery:v2/QueryRequest/queryParameters": query_parameters +"/bigquery:v2/QueryRequest/queryParameters/query_parameter": query_parameter "/bigquery:v2/QueryRequest/timeoutMs": timeout_ms "/bigquery:v2/QueryRequest/useLegacySql": use_legacy_sql "/bigquery:v2/QueryRequest/useQueryCache": use_query_cache @@ -11266,6 +11301,7 @@ "/civicinfo:v2/civicinfo.elections.voterInfoQuery/address": address "/civicinfo:v2/civicinfo.elections.voterInfoQuery/electionId": election_id "/civicinfo:v2/civicinfo.elections.voterInfoQuery/officialOnly": official_only +"/civicinfo:v2/civicinfo.elections.voterInfoQuery/returnAllAvailableData": return_all_available_data "/civicinfo:v2/civicinfo.representatives.representativeInfoByAddress/address": address "/civicinfo:v2/civicinfo.representatives.representativeInfoByAddress/includeOffices": include_offices "/civicinfo:v2/civicinfo.representatives.representativeInfoByAddress/levels": levels @@ -11367,6 +11403,7 @@ "/civicinfo:v2/ElectionsQueryResponse/kind": kind "/civicinfo:v2/ElectoralDistrict": electoral_district "/civicinfo:v2/ElectoralDistrict/id": id +"/civicinfo:v2/ElectoralDistrict/kgForeignKey": kg_foreign_key "/civicinfo:v2/ElectoralDistrict/name": name "/civicinfo:v2/ElectoralDistrict/scope": scope "/civicinfo:v2/GeographicDivision": geographic_division @@ -11516,6 +11553,7 @@ "/cloudbuild:v1/Operation/response/response": response "/cloudbuild:v1/Operation/name": name "/cloudbuild:v1/BuildTrigger": build_trigger +"/cloudbuild:v1/BuildTrigger/filename": filename "/cloudbuild:v1/BuildTrigger/triggerTemplate": trigger_template "/cloudbuild:v1/BuildTrigger/build": build "/cloudbuild:v1/BuildTrigger/createTime": create_time @@ -24805,6 +24843,7 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/pendingIdToken": pending_id_token "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/postBody": post_body "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/requestUri": request_uri +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/returnIdpCredential": return_idp_credential "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/returnRefreshToken": return_refresh_token "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/returnSecureToken": return_secure_token "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/sessionId": session_id @@ -24891,6 +24930,7 @@ "/identitytoolkit:v3/UserInfo/providerUserInfo/provider_user_info/photoUrl": photo_url "/identitytoolkit:v3/UserInfo/providerUserInfo/provider_user_info/providerId": provider_id "/identitytoolkit:v3/UserInfo/providerUserInfo/provider_user_info/rawId": raw_id +"/identitytoolkit:v3/UserInfo/providerUserInfo/provider_user_info/rawUserInfo": raw_user_info "/identitytoolkit:v3/UserInfo/providerUserInfo/provider_user_info/screenName": screen_name "/identitytoolkit:v3/UserInfo/salt": salt "/identitytoolkit:v3/UserInfo/screenName": screen_name @@ -24906,6 +24946,7 @@ "/identitytoolkit:v3/VerifyAssertionResponse/email": email "/identitytoolkit:v3/VerifyAssertionResponse/emailRecycled": email_recycled "/identitytoolkit:v3/VerifyAssertionResponse/emailVerified": email_verified +"/identitytoolkit:v3/VerifyAssertionResponse/errorMessage": error_message "/identitytoolkit:v3/VerifyAssertionResponse/expiresIn": expires_in "/identitytoolkit:v3/VerifyAssertionResponse/federatedId": federated_id "/identitytoolkit:v3/VerifyAssertionResponse/firstName": first_name @@ -24929,6 +24970,7 @@ "/identitytoolkit:v3/VerifyAssertionResponse/originalEmail": original_email "/identitytoolkit:v3/VerifyAssertionResponse/photoUrl": photo_url "/identitytoolkit:v3/VerifyAssertionResponse/providerId": provider_id +"/identitytoolkit:v3/VerifyAssertionResponse/rawUserInfo": raw_user_info "/identitytoolkit:v3/VerifyAssertionResponse/refreshToken": refresh_token "/identitytoolkit:v3/VerifyAssertionResponse/screenName": screen_name "/identitytoolkit:v3/VerifyAssertionResponse/timeZone": time_zone @@ -24952,6 +24994,80 @@ "/identitytoolkit:v3/VerifyPasswordResponse/photoUrl": photo_url "/identitytoolkit:v3/VerifyPasswordResponse/refreshToken": refresh_token "/identitytoolkit:v3/VerifyPasswordResponse/registered": registered +"/language:v1beta1/key": key +"/language:v1beta1/quotaUser": quota_user +"/language:v1beta1/fields": fields +"/language:v1beta1/language.documents.analyzeSentiment": analyze_document_sentiment +"/language:v1beta1/language.documents.annotateText": annotate_document_text +"/language:v1beta1/language.documents.analyzeEntities": analyze_document_entities +"/language:v1beta1/Document": document +"/language:v1beta1/Document/language": language +"/language:v1beta1/Document/gcsContentUri": gcs_content_uri +"/language:v1beta1/Document/type": type +"/language:v1beta1/Document/content": content +"/language:v1beta1/TextSpan": text_span +"/language:v1beta1/TextSpan/beginOffset": begin_offset +"/language:v1beta1/TextSpan/content": content +"/language:v1beta1/Status": status +"/language:v1beta1/Status/code": code +"/language:v1beta1/Status/details": details +"/language:v1beta1/Status/details/detail": detail +"/language:v1beta1/Status/details/detail/detail": detail +"/language:v1beta1/Status/message": message +"/language:v1beta1/AnalyzeEntitiesRequest": analyze_entities_request +"/language:v1beta1/AnalyzeEntitiesRequest/document": document +"/language:v1beta1/AnalyzeEntitiesRequest/encodingType": encoding_type +"/language:v1beta1/EntityMention": entity_mention +"/language:v1beta1/EntityMention/text": text +"/language:v1beta1/AnalyzeSentimentRequest": analyze_sentiment_request +"/language:v1beta1/AnalyzeSentimentRequest/document": document +"/language:v1beta1/AnalyzeSentimentResponse": analyze_sentiment_response +"/language:v1beta1/AnalyzeSentimentResponse/documentSentiment": document_sentiment +"/language:v1beta1/AnalyzeSentimentResponse/language": language +"/language:v1beta1/DependencyEdge": dependency_edge +"/language:v1beta1/DependencyEdge/headTokenIndex": head_token_index +"/language:v1beta1/DependencyEdge/label": label +"/language:v1beta1/AnnotateTextRequest": annotate_text_request +"/language:v1beta1/AnnotateTextRequest/document": document +"/language:v1beta1/AnnotateTextRequest/encodingType": encoding_type +"/language:v1beta1/AnnotateTextRequest/features": features +"/language:v1beta1/Sentence": sentence +"/language:v1beta1/Sentence/text": text +"/language:v1beta1/Features": features +"/language:v1beta1/Features/extractDocumentSentiment": extract_document_sentiment +"/language:v1beta1/Features/extractEntities": extract_entities +"/language:v1beta1/Features/extractSyntax": extract_syntax +"/language:v1beta1/PartOfSpeech": part_of_speech +"/language:v1beta1/PartOfSpeech/tag": tag +"/language:v1beta1/AnnotateTextResponse": annotate_text_response +"/language:v1beta1/AnnotateTextResponse/entities": entities +"/language:v1beta1/AnnotateTextResponse/entities/entity": entity +"/language:v1beta1/AnnotateTextResponse/documentSentiment": document_sentiment +"/language:v1beta1/AnnotateTextResponse/language": language +"/language:v1beta1/AnnotateTextResponse/tokens": tokens +"/language:v1beta1/AnnotateTextResponse/tokens/token": token +"/language:v1beta1/AnnotateTextResponse/sentences": sentences +"/language:v1beta1/AnnotateTextResponse/sentences/sentence": sentence +"/language:v1beta1/Entity": entity +"/language:v1beta1/Entity/metadata": metadata +"/language:v1beta1/Entity/metadata/metadatum": metadatum +"/language:v1beta1/Entity/salience": salience +"/language:v1beta1/Entity/type": type +"/language:v1beta1/Entity/mentions": mentions +"/language:v1beta1/Entity/mentions/mention": mention +"/language:v1beta1/Entity/name": name +"/language:v1beta1/Sentiment": sentiment +"/language:v1beta1/Sentiment/polarity": polarity +"/language:v1beta1/Sentiment/magnitude": magnitude +"/language:v1beta1/Token": token +"/language:v1beta1/Token/text": text +"/language:v1beta1/Token/partOfSpeech": part_of_speech +"/language:v1beta1/Token/dependencyEdge": dependency_edge +"/language:v1beta1/Token/lemma": lemma +"/language:v1beta1/AnalyzeEntitiesResponse": analyze_entities_response +"/language:v1beta1/AnalyzeEntitiesResponse/entities": entities +"/language:v1beta1/AnalyzeEntitiesResponse/entities/entity": entity +"/language:v1beta1/AnalyzeEntitiesResponse/language": language "/licensing:v1/fields": fields "/licensing:v1/key": key "/licensing:v1/quotaUser": quota_user @@ -27417,6 +27533,68 @@ "/siteVerification:v1/SiteVerificationWebResourceResource/site": site "/siteVerification:v1/SiteVerificationWebResourceResource/site/identifier": identifier "/siteVerification:v1/SiteVerificationWebResourceResource/site/type": type +"/speech:v1beta1/key": key +"/speech:v1beta1/quotaUser": quota_user +"/speech:v1beta1/fields": fields +"/speech:v1beta1/speech.operations.get": get_operation +"/speech:v1beta1/speech.operations.get/name": name +"/speech:v1beta1/speech.operations.list": list_operations +"/speech:v1beta1/speech.operations.list/pageSize": page_size +"/speech:v1beta1/speech.operations.list/filter": filter +"/speech:v1beta1/speech.operations.list/name": name +"/speech:v1beta1/speech.operations.list/pageToken": page_token +"/speech:v1beta1/speech.operations.cancel": cancel_operation +"/speech:v1beta1/speech.operations.cancel/name": name +"/speech:v1beta1/speech.operations.delete": delete_operation +"/speech:v1beta1/speech.operations.delete/name": name +"/speech:v1beta1/Status": status +"/speech:v1beta1/Status/code": code +"/speech:v1beta1/Status/details": details +"/speech:v1beta1/Status/details/detail": detail +"/speech:v1beta1/Status/details/detail/detail": detail +"/speech:v1beta1/Status/message": message +"/speech:v1beta1/RecognitionAudio": recognition_audio +"/speech:v1beta1/RecognitionAudio/content": content +"/speech:v1beta1/RecognitionAudio/uri": uri +"/speech:v1beta1/Operation": operation +"/speech:v1beta1/Operation/error": error +"/speech:v1beta1/Operation/done": done +"/speech:v1beta1/Operation/metadata": metadata +"/speech:v1beta1/Operation/metadata/metadatum": metadatum +"/speech:v1beta1/Operation/response": response +"/speech:v1beta1/Operation/response/response": response +"/speech:v1beta1/Operation/name": name +"/speech:v1beta1/SpeechRecognitionAlternative": speech_recognition_alternative +"/speech:v1beta1/SpeechRecognitionAlternative/transcript": transcript +"/speech:v1beta1/SpeechRecognitionAlternative/confidence": confidence +"/speech:v1beta1/CancelOperationRequest": cancel_operation_request +"/speech:v1beta1/RecognitionConfig": recognition_config +"/speech:v1beta1/RecognitionConfig/maxAlternatives": max_alternatives +"/speech:v1beta1/RecognitionConfig/languageCode": language_code +"/speech:v1beta1/RecognitionConfig/speechContext": speech_context +"/speech:v1beta1/RecognitionConfig/encoding": encoding +"/speech:v1beta1/RecognitionConfig/profanityFilter": profanity_filter +"/speech:v1beta1/RecognitionConfig/sampleRate": sample_rate +"/speech:v1beta1/SyncRecognizeRequest": sync_recognize_request +"/speech:v1beta1/SyncRecognizeRequest/audio": audio +"/speech:v1beta1/SyncRecognizeRequest/config": config +"/speech:v1beta1/SpeechRecognitionResult": speech_recognition_result +"/speech:v1beta1/SpeechRecognitionResult/alternatives": alternatives +"/speech:v1beta1/SpeechRecognitionResult/alternatives/alternative": alternative +"/speech:v1beta1/ListOperationsResponse": list_operations_response +"/speech:v1beta1/ListOperationsResponse/nextPageToken": next_page_token +"/speech:v1beta1/ListOperationsResponse/operations": operations +"/speech:v1beta1/ListOperationsResponse/operations/operation": operation +"/speech:v1beta1/SyncRecognizeResponse": sync_recognize_response +"/speech:v1beta1/SyncRecognizeResponse/results": results +"/speech:v1beta1/SyncRecognizeResponse/results/result": result +"/speech:v1beta1/Empty": empty +"/speech:v1beta1/SpeechContext": speech_context +"/speech:v1beta1/SpeechContext/phrases": phrases +"/speech:v1beta1/SpeechContext/phrases/phrase": phrase +"/speech:v1beta1/AsyncRecognizeRequest": async_recognize_request +"/speech:v1beta1/AsyncRecognizeRequest/audio": audio +"/speech:v1beta1/AsyncRecognizeRequest/config": config "/sqladmin:v1beta4/fields": fields "/sqladmin:v1beta4/key": key "/sqladmin:v1beta4/quotaUser": quota_user diff --git a/generated/google/apis/adexchangebuyer_v1_4.rb b/generated/google/apis/adexchangebuyer_v1_4.rb index 0b54c4237..8ba1e9d71 100644 --- a/generated/google/apis/adexchangebuyer_v1_4.rb +++ b/generated/google/apis/adexchangebuyer_v1_4.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-exchange/buyer-rest module AdexchangebuyerV1_4 VERSION = 'V1_4' - REVISION = '20160721' + REVISION = '20160831' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/adexchangebuyer_v1_4/classes.rb b/generated/google/apis/adexchangebuyer_v1_4/classes.rb index 55d449af8..da4faf272 100644 --- a/generated/google/apis/adexchangebuyer_v1_4/classes.rb +++ b/generated/google/apis/adexchangebuyer_v1_4/classes.rb @@ -1180,6 +1180,13 @@ module Google # @return [String] attr_accessor :branding_type + # Indicates that this ExternalDealId exists under at least two different + # AdxInventoryDeals. Currently, the only case that the same ExternalDealId will + # exist is programmatic cross sell case. + # Corresponds to the JSON property `crossListedExternalDealIdType` + # @return [String] + attr_accessor :cross_listed_external_deal_id_type + # Description for the proposed terms of the deal. # Corresponds to the JSON property `description` # @return [String] @@ -1230,6 +1237,7 @@ module Google # Update properties of this object def update!(**args) @branding_type = args[:branding_type] if args.key?(:branding_type) + @cross_listed_external_deal_id_type = args[:cross_listed_external_deal_id_type] if args.key?(:cross_listed_external_deal_id_type) @description = args[:description] if args.key?(:description) @estimated_gross_spend = args[:estimated_gross_spend] if args.key?(:estimated_gross_spend) @estimated_impressions_per_day = args[:estimated_impressions_per_day] if args.key?(:estimated_impressions_per_day) diff --git a/generated/google/apis/adexchangebuyer_v1_4/representations.rb b/generated/google/apis/adexchangebuyer_v1_4/representations.rb index 71799c14e..a2b44d280 100644 --- a/generated/google/apis/adexchangebuyer_v1_4/representations.rb +++ b/generated/google/apis/adexchangebuyer_v1_4/representations.rb @@ -790,6 +790,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :branding_type, as: 'brandingType' + property :cross_listed_external_deal_id_type, as: 'crossListedExternalDealIdType' property :description, as: 'description' property :estimated_gross_spend, as: 'estimatedGrossSpend', class: Google::Apis::AdexchangebuyerV1_4::Price, decorator: Google::Apis::AdexchangebuyerV1_4::Price::Representation diff --git a/generated/google/apis/adexchangebuyer_v1_4/service.rb b/generated/google/apis/adexchangebuyer_v1_4/service.rb index d224bdcf9..99faee456 100644 --- a/generated/google/apis/adexchangebuyer_v1_4/service.rb +++ b/generated/google/apis/adexchangebuyer_v1_4/service.rb @@ -124,6 +124,8 @@ module Google # @param [Fixnum] id # The account id # @param [Google::Apis::AdexchangebuyerV1_4::Account] account_object + # @param [Boolean] confirm_unsafe_account_change + # Confirmation for erasing bidder and cookie matching urls. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -145,13 +147,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def patch_account(id, account_object = nil, confirm_unsafe_account_change: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'accounts/{id}', options) command.request_representation = Google::Apis::AdexchangebuyerV1_4::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::AdexchangebuyerV1_4::Account::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::Account command.params['id'] = id unless id.nil? + command.query['confirmUnsafeAccountChange'] = confirm_unsafe_account_change unless confirm_unsafe_account_change.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -162,6 +165,8 @@ module Google # @param [Fixnum] id # The account id # @param [Google::Apis::AdexchangebuyerV1_4::Account] account_object + # @param [Boolean] confirm_unsafe_account_change + # Confirmation for erasing bidder and cookie matching urls. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -183,13 +188,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_account(id, account_object = nil, confirm_unsafe_account_change: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'accounts/{id}', options) command.request_representation = Google::Apis::AdexchangebuyerV1_4::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::AdexchangebuyerV1_4::Account::Representation command.response_class = Google::Apis::AdexchangebuyerV1_4::Account command.params['id'] = id unless id.nil? + command.query['confirmUnsafeAccountChange'] = confirm_unsafe_account_change unless confirm_unsafe_account_change.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -1291,7 +1297,8 @@ module Google # should then fetch the latest proposal at head revision and retry the update at # that revision. # @param [String] update_action - # The proposed action to take on the proposal. + # The proposed action to take on the proposal. This field is required and it + # must be set when updating a proposal. # @param [Google::Apis::AdexchangebuyerV1_4::Proposal] proposal_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1406,7 +1413,8 @@ module Google # should then fetch the latest proposal at head revision and retry the update at # that revision. # @param [String] update_action - # The proposed action to take on the proposal. + # The proposed action to take on the proposal. This field is required and it + # must be set when updating a proposal. # @param [Google::Apis::AdexchangebuyerV1_4::Proposal] proposal_object # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/admin_directory_v1.rb b/generated/google/apis/admin_directory_v1.rb index bae9d01a5..2fdad1ad5 100644 --- a/generated/google/apis/admin_directory_v1.rb +++ b/generated/google/apis/admin_directory_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/admin-sdk/directory/ module AdminDirectoryV1 VERSION = 'DirectoryV1' - REVISION = '20160715' + REVISION = '20160824' # View and manage customer related information AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer' diff --git a/generated/google/apis/adsense_v1_4.rb b/generated/google/apis/adsense_v1_4.rb index b789dd8f0..47cb694f7 100644 --- a/generated/google/apis/adsense_v1_4.rb +++ b/generated/google/apis/adsense_v1_4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/adsense/management/ module AdsenseV1_4 VERSION = 'V1_4' - REVISION = '20160815' + REVISION = '20160830' # View and manage your AdSense data AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense' diff --git a/generated/google/apis/adsensehost_v4_1.rb b/generated/google/apis/adsensehost_v4_1.rb index 805ed670b..70201f9c1 100644 --- a/generated/google/apis/adsensehost_v4_1.rb +++ b/generated/google/apis/adsensehost_v4_1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/adsense/host/ module AdsensehostV4_1 VERSION = 'V4_1' - REVISION = '20160815' + REVISION = '20160830' # View and manage your AdSense host data and associated accounts AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost' diff --git a/generated/google/apis/androidenterprise_v1.rb b/generated/google/apis/androidenterprise_v1.rb index f0592c3f7..1ea4a0ff2 100644 --- a/generated/google/apis/androidenterprise_v1.rb +++ b/generated/google/apis/androidenterprise_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android/work/play/emm-api module AndroidenterpriseV1 VERSION = 'V1' - REVISION = '20160803' + REVISION = '20160825' # Manage corporate Android devices AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise' diff --git a/generated/google/apis/androidenterprise_v1/classes.rb b/generated/google/apis/androidenterprise_v1/classes.rb index 505132000..a4dda58bd 100644 --- a/generated/google/apis/androidenterprise_v1/classes.rb +++ b/generated/google/apis/androidenterprise_v1/classes.rb @@ -439,11 +439,19 @@ module Google # @return [String] attr_accessor :kind - # The mechanism by which this device is managed by the EMM. "managedDevice" - # means that the EMM's app is a device owner. "managedProfile" means that the - # EMM's app is the profile owner (and there is a separate personal profile which - # is not managed). "containerApp" means that the EMM's app is managing the - # Android for Work container app on the device. + # Identifies the extent to which the device is controlled by an Android for Work + # EMM in various deployment configurations. + # Possible values include: + # - "managedDevice"—A device that has the EMM's device policy controller (DPC) + # as the device owner. + # - "managedProfile"—A device that has a work profile managed by the DPC (DPC is + # profile owner) in addition to a separate, personal profile that is unavailable + # to the DPC. + # - "containerApp"—A device running the Android for Work App. The Android for + # Work App is managed by the DPC. + # - "unmanagedProfile"—A device that has been allowed (by the domain's admin, + # using the Admin Console to enable the privilege) to use Android for Work apps + # or Google Apps for Work, but the profile is itself not owned by a DPC. # Corresponds to the JSON property `managementType` # @return [String] attr_accessor :management_type diff --git a/generated/google/apis/androidpublisher_v2.rb b/generated/google/apis/androidpublisher_v2.rb index 4a483e85f..78062ddf2 100644 --- a/generated/google/apis/androidpublisher_v2.rb +++ b/generated/google/apis/androidpublisher_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/android-publisher module AndroidpublisherV2 VERSION = 'V2' - REVISION = '20160816' + REVISION = '20160817' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/appstate_v1.rb b/generated/google/apis/appstate_v1.rb index bc4b77547..64e4c30fd 100644 --- a/generated/google/apis/appstate_v1.rb +++ b/generated/google/apis/appstate_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services/web/api/states module AppstateV1 VERSION = 'V1' - REVISION = '20160810' + REVISION = '20160824' # View and manage your data for this application AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate' diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index 6bd4df9e3..2507adb8f 100644 --- a/generated/google/apis/bigquery_v2.rb +++ b/generated/google/apis/bigquery_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryV2 VERSION = 'V2' - REVISION = '20160804' + REVISION = '20160822' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigquery_v2/classes.rb b/generated/google/apis/bigquery_v2/classes.rb index 053e4c9ad..051d87fba 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -1271,6 +1271,18 @@ module Google # @return [String] attr_accessor :schema_inline_format + # [Experimental] Allows the schema of the desitination table to be updated as a + # side effect of the load job. Schema update options are supported in two cases: + # when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE + # and the destination table is a partition of a table, specified by partition + # decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema. + # One or more of the following values are specified: ALLOW_FIELD_ADDITION: + # allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow + # relaxing a required field in the original schema to nullable. + # Corresponds to the JSON property `schemaUpdateOptions` + # @return [Array] + attr_accessor :schema_update_options + # [Optional] The number of rows at the top of a CSV file that BigQuery will skip # when loading the data. The default value is 0. This property is useful if you # have header rows in the file that should be skipped. @@ -1325,6 +1337,7 @@ module Google @schema = args[:schema] if args.key?(:schema) @schema_inline = args[:schema_inline] if args.key?(:schema_inline) @schema_inline_format = args[:schema_inline_format] if args.key?(:schema_inline_format) + @schema_update_options = args[:schema_update_options] if args.key?(:schema_update_options) @skip_leading_rows = args[:skip_leading_rows] if args.key?(:skip_leading_rows) @source_format = args[:source_format] if args.key?(:source_format) @source_uris = args[:source_uris] if args.key?(:source_uris) @@ -1386,6 +1399,12 @@ module Google # @return [String] attr_accessor :maximum_bytes_billed + # [Experimental] Standard SQL only. Whether to use positional (?) or named (@ + # myparam) query parameters in this query. + # Corresponds to the JSON property `parameterMode` + # @return [String] + attr_accessor :parameter_mode + # [Deprecated] This property is deprecated. # Corresponds to the JSON property `preserveNulls` # @return [Boolean] @@ -1403,6 +1422,24 @@ module Google # @return [String] attr_accessor :query + # [Experimental] Query parameters for Standard SQL queries. + # Corresponds to the JSON property `queryParameters` + # @return [Array] + attr_accessor :query_parameters + + # [Experimental] Allows the schema of the desitination table to be updated as a + # side effect of the query job. Schema update options are supported in two cases: + # when writeDisposition is WRITE_APPEND; when writeDisposition is + # WRITE_TRUNCATE and the destination table is a partition of a table, specified + # by partition decorators. For normal tables, WRITE_TRUNCATE will always + # overwrite the schema. One or more of the following values are specified: + # ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema. + # ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema + # to nullable. + # Corresponds to the JSON property `schemaUpdateOptions` + # @return [Array] + attr_accessor :schema_update_options + # [Optional] If querying an external data source outside of BigQuery, describes # the data format, location and other properties of the data source. By defining # these properties, the data source can then be queried as if it were a standard @@ -1461,9 +1498,12 @@ module Google @flatten_results = args[:flatten_results] if args.key?(:flatten_results) @maximum_billing_tier = args[:maximum_billing_tier] if args.key?(:maximum_billing_tier) @maximum_bytes_billed = args[:maximum_bytes_billed] if args.key?(:maximum_bytes_billed) + @parameter_mode = args[:parameter_mode] if args.key?(:parameter_mode) @preserve_nulls = args[:preserve_nulls] if args.key?(:preserve_nulls) @priority = args[:priority] if args.key?(:priority) @query = args[:query] if args.key?(:query) + @query_parameters = args[:query_parameters] if args.key?(:query_parameters) + @schema_update_options = args[:schema_update_options] if args.key?(:schema_update_options) @table_definitions = args[:table_definitions] if args.key?(:table_definitions) @use_legacy_sql = args[:use_legacy_sql] if args.key?(:use_legacy_sql) @use_query_cache = args[:use_query_cache] if args.key?(:use_query_cache) @@ -1768,6 +1808,12 @@ module Google # @return [String] attr_accessor :total_bytes_processed + # [Output-only, Experimental] Standard SQL only: list of undeclared query + # parameters detected during a dry run validation. + # Corresponds to the JSON property `undeclaredQueryParameters` + # @return [Array] + attr_accessor :undeclared_query_parameters + def initialize(**args) update!(**args) end @@ -1782,6 +1828,7 @@ module Google @schema = args[:schema] if args.key?(:schema) @total_bytes_billed = args[:total_bytes_billed] if args.key?(:total_bytes_billed) @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed) + @undeclared_query_parameters = args[:undeclared_query_parameters] if args.key?(:undeclared_query_parameters) end end @@ -1984,6 +2031,132 @@ module Google end end + # + class QueryParameter + include Google::Apis::Core::Hashable + + # [Optional] If unset, this is a positional parameter. Otherwise, should be + # unique within a query. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Required] The type of this parameter. + # Corresponds to the JSON property `parameterType` + # @return [Google::Apis::BigqueryV2::QueryParameterType] + attr_accessor :parameter_type + + # [Required] The value of this parameter. + # Corresponds to the JSON property `parameterValue` + # @return [Google::Apis::BigqueryV2::QueryParameterValue] + attr_accessor :parameter_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @parameter_type = args[:parameter_type] if args.key?(:parameter_type) + @parameter_value = args[:parameter_value] if args.key?(:parameter_value) + end + end + + # + class QueryParameterType + include Google::Apis::Core::Hashable + + # [Optional] The type of the array's elements, if this is an array. + # Corresponds to the JSON property `arrayType` + # @return [Google::Apis::BigqueryV2::QueryParameterType] + attr_accessor :array_type + + # [Optional] The types of the fields of this struct, in order, if this is a + # struct. + # Corresponds to the JSON property `structTypes` + # @return [Array] + attr_accessor :struct_types + + # [Required] The top level type of this field. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @array_type = args[:array_type] if args.key?(:array_type) + @struct_types = args[:struct_types] if args.key?(:struct_types) + @type = args[:type] if args.key?(:type) + end + + # + class StructType + include Google::Apis::Core::Hashable + + # [Optional] Human-oriented description of the field. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Optional] The name of this field. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # [Required] The type of this field. + # Corresponds to the JSON property `type` + # @return [Google::Apis::BigqueryV2::QueryParameterType] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) + end + end + end + + # + class QueryParameterValue + include Google::Apis::Core::Hashable + + # [Optional] The array values, if this is an array type. + # Corresponds to the JSON property `arrayValues` + # @return [Array] + attr_accessor :array_values + + # [Optional] The struct field values, in order of the struct type's declaration. + # Corresponds to the JSON property `structValues` + # @return [Array] + attr_accessor :struct_values + + # [Optional] The value of this value, if a simple scalar type. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @array_values = args[:array_values] if args.key?(:array_values) + @struct_values = args[:struct_values] if args.key?(:struct_values) + @value = args[:value] if args.key?(:value) + end + end + # class QueryRequest include Google::Apis::Core::Hashable @@ -2018,6 +2191,12 @@ module Google # @return [Fixnum] attr_accessor :max_results + # [Experimental] Standard SQL only. Whether to use positional (?) or named (@ + # myparam) query parameters in this query. + # Corresponds to the JSON property `parameterMode` + # @return [String] + attr_accessor :parameter_mode + # [Deprecated] This property is deprecated. # Corresponds to the JSON property `preserveNulls` # @return [Boolean] @@ -2031,6 +2210,11 @@ module Google # @return [String] attr_accessor :query + # [Experimental] Query parameters for Standard SQL queries. + # Corresponds to the JSON property `queryParameters` + # @return [Array] + attr_accessor :query_parameters + # [Optional] How long to wait for the query to complete, in milliseconds, before # the request times out and returns. Note that this is only a timeout for the # request, not the query. If the query takes longer to run than the timeout @@ -2070,8 +2254,10 @@ module Google @dry_run = args[:dry_run] if args.key?(:dry_run) @kind = args[:kind] if args.key?(:kind) @max_results = args[:max_results] if args.key?(:max_results) + @parameter_mode = args[:parameter_mode] if args.key?(:parameter_mode) @preserve_nulls = args[:preserve_nulls] if args.key?(:preserve_nulls) @query = args[:query] if args.key?(:query) + @query_parameters = args[:query_parameters] if args.key?(:query_parameters) @timeout_ms = args[:timeout_ms] if args.key?(:timeout_ms) @use_legacy_sql = args[:use_legacy_sql] if args.key?(:use_legacy_sql) @use_query_cache = args[:use_query_cache] if args.key?(:use_query_cache) diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb index 469b28597..f371fd4e3 100644 --- a/generated/google/apis/bigquery_v2/representations.rb +++ b/generated/google/apis/bigquery_v2/representations.rb @@ -220,6 +220,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class QueryParameter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class QueryParameterType + class Representation < Google::Apis::Core::JsonRepresentation; end + + class StructType + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + include Google::Apis::Core::JsonObjectSupport + end + + class QueryParameterValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class QueryRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -608,6 +632,7 @@ module Google property :schema_inline, as: 'schemaInline' property :schema_inline_format, as: 'schemaInlineFormat' + collection :schema_update_options, as: 'schemaUpdateOptions' property :skip_leading_rows, as: 'skipLeadingRows' property :source_format, as: 'sourceFormat' collection :source_uris, as: 'sourceUris' @@ -627,9 +652,13 @@ module Google property :flatten_results, as: 'flattenResults' property :maximum_billing_tier, as: 'maximumBillingTier' property :maximum_bytes_billed, as: 'maximumBytesBilled' + property :parameter_mode, as: 'parameterMode' property :preserve_nulls, as: 'preserveNulls' property :priority, as: 'priority' property :query, as: 'query' + collection :query_parameters, as: 'queryParameters', class: Google::Apis::BigqueryV2::QueryParameter, decorator: Google::Apis::BigqueryV2::QueryParameter::Representation + + collection :schema_update_options, as: 'schemaUpdateOptions' hash :table_definitions, as: 'tableDefinitions', class: Google::Apis::BigqueryV2::ExternalDataConfiguration, decorator: Google::Apis::BigqueryV2::ExternalDataConfiguration::Representation property :use_legacy_sql, as: 'useLegacySql' @@ -723,6 +752,8 @@ module Google property :total_bytes_billed, as: 'totalBytesBilled' property :total_bytes_processed, as: 'totalBytesProcessed' + collection :undeclared_query_parameters, as: 'undeclaredQueryParameters', class: Google::Apis::BigqueryV2::QueryParameter, decorator: Google::Apis::BigqueryV2::QueryParameter::Representation + end end @@ -785,6 +816,49 @@ module Google end end + class QueryParameter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :parameter_type, as: 'parameterType', class: Google::Apis::BigqueryV2::QueryParameterType, decorator: Google::Apis::BigqueryV2::QueryParameterType::Representation + + property :parameter_value, as: 'parameterValue', class: Google::Apis::BigqueryV2::QueryParameterValue, decorator: Google::Apis::BigqueryV2::QueryParameterValue::Representation + + end + end + + class QueryParameterType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :array_type, as: 'arrayType', class: Google::Apis::BigqueryV2::QueryParameterType, decorator: Google::Apis::BigqueryV2::QueryParameterType::Representation + + collection :struct_types, as: 'structTypes', class: Google::Apis::BigqueryV2::QueryParameterType::StructType, decorator: Google::Apis::BigqueryV2::QueryParameterType::StructType::Representation + + property :type, as: 'type' + end + + class StructType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :name, as: 'name' + property :type, as: 'type', class: Google::Apis::BigqueryV2::QueryParameterType, decorator: Google::Apis::BigqueryV2::QueryParameterType::Representation + + end + end + end + + class QueryParameterValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :array_values, as: 'arrayValues', class: Google::Apis::BigqueryV2::QueryParameterValue, decorator: Google::Apis::BigqueryV2::QueryParameterValue::Representation + + collection :struct_values, as: 'structValues', class: Google::Apis::BigqueryV2::QueryParameterValue, decorator: Google::Apis::BigqueryV2::QueryParameterValue::Representation + + property :value, as: 'value' + end + end + class QueryRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -793,8 +867,11 @@ module Google property :dry_run, as: 'dryRun' property :kind, as: 'kind' property :max_results, as: 'maxResults' + property :parameter_mode, as: 'parameterMode' property :preserve_nulls, as: 'preserveNulls' property :query, as: 'query' + collection :query_parameters, as: 'queryParameters', class: Google::Apis::BigqueryV2::QueryParameter, decorator: Google::Apis::BigqueryV2::QueryParameter::Representation + property :timeout_ms, as: 'timeoutMs' property :use_legacy_sql, as: 'useLegacySql' property :use_query_cache, as: 'useQueryCache' diff --git a/generated/google/apis/calendar_v3.rb b/generated/google/apis/calendar_v3.rb index 8b43706a3..ea883d5c4 100644 --- a/generated/google/apis/calendar_v3.rb +++ b/generated/google/apis/calendar_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/google-apps/calendar/firstapp module CalendarV3 VERSION = 'V3' - REVISION = '20160815' + REVISION = '20160829' # Manage your calendars AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar' diff --git a/generated/google/apis/civicinfo_v2.rb b/generated/google/apis/civicinfo_v2.rb index 47ff052ae..af8339156 100644 --- a/generated/google/apis/civicinfo_v2.rb +++ b/generated/google/apis/civicinfo_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/civic-information module CivicinfoV2 VERSION = 'V2' - REVISION = '20160707' + REVISION = '20160823' end end end diff --git a/generated/google/apis/civicinfo_v2/classes.rb b/generated/google/apis/civicinfo_v2/classes.rb index c456d434e..7b9b321cc 100644 --- a/generated/google/apis/civicinfo_v2/classes.rb +++ b/generated/google/apis/civicinfo_v2/classes.rb @@ -322,9 +322,8 @@ module Google attr_accessor :primary_party # The set of ballot responses for the referendum. A ballot response represents a - # line on the ballot. Common examples might include "yes" or "no" for referenda, - # or a judge's name for a retention contest. This field is only populated for - # contests of type 'Referendum'. + # line on the ballot. Common examples might include "yes" or "no" for referenda. + # This field is only populated for contests of type 'Referendum'. # Corresponds to the JSON property `referendumBallotResponses` # @return [Array] attr_accessor :referendum_ballot_responses @@ -403,7 +402,8 @@ module Google attr_accessor :special # The type of contest. Usually this will be 'General', 'Primary', or 'Run-off' - # for contests with candidates. For referenda this will be 'Referendum'. + # for contests with candidates. For referenda this will be 'Referendum'. For + # Retention contests this will typically be 'Retention'. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -621,6 +621,11 @@ module Google # @return [String] attr_accessor :id + # + # Corresponds to the JSON property `kgForeignKey` + # @return [String] + attr_accessor :kg_foreign_key + # The name of the district. # Corresponds to the JSON property `name` # @return [String] @@ -641,6 +646,7 @@ module Google # Update properties of this object def update!(**args) @id = args[:id] if args.key?(:id) + @kg_foreign_key = args[:kg_foreign_key] if args.key?(:kg_foreign_key) @name = args[:name] if args.key?(:name) @scope = args[:scope] if args.key?(:scope) end diff --git a/generated/google/apis/civicinfo_v2/representations.rb b/generated/google/apis/civicinfo_v2/representations.rb index 68f359491..f1082eb95 100644 --- a/generated/google/apis/civicinfo_v2/representations.rb +++ b/generated/google/apis/civicinfo_v2/representations.rb @@ -287,6 +287,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :id, as: 'id' + property :kg_foreign_key, as: 'kgForeignKey' property :name, as: 'name' property :scope, as: 'scope' end diff --git a/generated/google/apis/civicinfo_v2/service.rb b/generated/google/apis/civicinfo_v2/service.rb index 846a81ccf..935849d57 100644 --- a/generated/google/apis/civicinfo_v2/service.rb +++ b/generated/google/apis/civicinfo_v2/service.rb @@ -132,6 +132,10 @@ module Google # obtained at https://www.googleapis.com/civicinfo/`version`/elections # @param [Boolean] official_only # If set to true, only data from official state sources will be returned. + # @param [Boolean] return_all_available_data + # If set to true, the query will return the success codeand include any partial + # information when it is unable to determine a matching address or unable to + # determine the election for electionId=0 queries. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -153,13 +157,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def query_voter_info(address, election_id: nil, official_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def query_voter_info(address, election_id: nil, official_only: nil, return_all_available_data: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'voterinfo', options) command.response_representation = Google::Apis::CivicinfoV2::VoterInfoResponse::Representation command.response_class = Google::Apis::CivicinfoV2::VoterInfoResponse command.query['address'] = address unless address.nil? command.query['electionId'] = election_id unless election_id.nil? command.query['officialOnly'] = official_only unless official_only.nil? + command.query['returnAllAvailableData'] = return_all_available_data unless return_all_available_data.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? diff --git a/generated/google/apis/cloudbuild_v1.rb b/generated/google/apis/cloudbuild_v1.rb index 1bab93c60..e1ecef226 100644 --- a/generated/google/apis/cloudbuild_v1.rb +++ b/generated/google/apis/cloudbuild_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/container-builder/docs/ module CloudbuildV1 VERSION = 'V1' - REVISION = '20160817' + REVISION = '20160831' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudbuild_v1/classes.rb b/generated/google/apis/cloudbuild_v1/classes.rb index 660b31e4b..2bd9b7525 100644 --- a/generated/google/apis/cloudbuild_v1/classes.rb +++ b/generated/google/apis/cloudbuild_v1/classes.rb @@ -287,6 +287,12 @@ module Google class BuildTrigger include Google::Apis::Core::Hashable + # Path, from the source root, to a file whose contents is used for the + # template. + # Corresponds to the JSON property `filename` + # @return [String] + attr_accessor :filename + # RepoSource describes the location of the source in a Google Cloud Source # Repository. # Corresponds to the JSON property `triggerTemplate` @@ -319,6 +325,7 @@ module Google # Update properties of this object def update!(**args) + @filename = args[:filename] if args.key?(:filename) @trigger_template = args[:trigger_template] if args.key?(:trigger_template) @build = args[:build] if args.key?(:build) @create_time = args[:create_time] if args.key?(:create_time) diff --git a/generated/google/apis/cloudbuild_v1/representations.rb b/generated/google/apis/cloudbuild_v1/representations.rb index 96128d80c..9ff165025 100644 --- a/generated/google/apis/cloudbuild_v1/representations.rb +++ b/generated/google/apis/cloudbuild_v1/representations.rb @@ -196,6 +196,7 @@ module Google class BuildTrigger # @private class Representation < Google::Apis::Core::JsonRepresentation + property :filename, as: 'filename' property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index 9ef024fa0..5839a99e6 100644 --- a/generated/google/apis/compute_beta.rb +++ b/generated/google/apis/compute_beta.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeBeta VERSION = 'Beta' - REVISION = '20160812' + REVISION = '20160817' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index eb385faa0..84e23082a 100644 --- a/generated/google/apis/compute_v1.rb +++ b/generated/google/apis/compute_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeV1 VERSION = 'V1' - REVISION = '20160812' + REVISION = '20160817' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index c3414e4cd..a96e75778 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2 VERSION = 'V2' - REVISION = '20160808' + REVISION = '20160824' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/datastore_v1beta3.rb b/generated/google/apis/datastore_v1beta3.rb index ce56ab718..a7b2ca9be 100644 --- a/generated/google/apis/datastore_v1beta3.rb +++ b/generated/google/apis/datastore_v1beta3.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/datastore/ module DatastoreV1beta3 VERSION = 'V1beta3' - REVISION = '20160802' + REVISION = '20160823' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/datastore_v1beta3/classes.rb b/generated/google/apis/datastore_v1beta3/classes.rb index 0985dfc09..e5c9e397a 100644 --- a/generated/google/apis/datastore_v1beta3/classes.rb +++ b/generated/google/apis/datastore_v1beta3/classes.rb @@ -171,7 +171,7 @@ module Google # The identifier of the transaction in which to read. A # transaction identifier is returned by a call to - # BeginTransaction. + # Datastore.BeginTransaction. # Corresponds to the JSON property `transaction` # @return [String] attr_accessor :transaction @@ -218,13 +218,13 @@ module Google end end - # The request for google.datastore.v1beta3.Datastore.Commit. + # The request for Datastore.Commit. class CommitRequest include Google::Apis::Core::Hashable # The identifier of the transaction associated with the commit. A # transaction identifier is returned by a call to - # BeginTransaction. + # Datastore.BeginTransaction. # Corresponds to the JSON property `transaction` # @return [String] attr_accessor :transaction @@ -340,12 +340,12 @@ module Google end end - # The request for google.datastore.v1beta3.Datastore.Rollback. + # The request for Datastore.Rollback. class RollbackRequest include Google::Apis::Core::Hashable # The transaction identifier, returned by a call to - # google.datastore.v1beta3.Datastore.BeginTransaction. + # Datastore.BeginTransaction. # Corresponds to the JSON property `transaction` # @return [String] attr_accessor :transaction @@ -380,10 +380,11 @@ module Google # The version of the entity, a strictly positive number that monotonically # increases with changes to the entity. - # This field is set for `FULL` entity results. - # For missing entities in - # `LookupResponse`, this is the version of the snapshot that was used to look - # up the entity, and it is always set except for eventually consistent reads. + # This field is set for `FULL` entity + # results. + # For missing entities in `LookupResponse`, this + # is the version of the snapshot that was used to look up the entity, and it + # is always set except for eventually consistent reads. # Corresponds to the JSON property `version` # @return [String] attr_accessor :version @@ -473,7 +474,7 @@ module Google end end - # The response for google.datastore.v1beta3.Datastore.BeginTransaction. + # The response for Datastore.BeginTransaction. class BeginTransactionResponse include Google::Apis::Core::Hashable @@ -594,7 +595,7 @@ module Google end end - # The request for google.datastore.v1beta3.Datastore.AllocateIds. + # The request for Datastore.AllocateIds. class AllocateIdsRequest include Google::Apis::Core::Hashable @@ -706,7 +707,7 @@ module Google end end - # The response for google.datastore.v1beta3.Datastore.Rollback + # The response for Datastore.Rollback. # (an empty message). class RollbackResponse include Google::Apis::Core::Hashable @@ -799,7 +800,7 @@ module Google end end - # The response for google.datastore.v1beta3.Datastore.AllocateIds. + # The response for Datastore.AllocateIds. class AllocateIdsResponse include Google::Apis::Core::Hashable @@ -819,7 +820,7 @@ module Google end end - # The response for google.datastore.v1beta3.Datastore.Lookup. + # The response for Datastore.Lookup. class LookupResponse include Google::Apis::Core::Hashable @@ -856,7 +857,7 @@ module Google end end - # The request for google.datastore.v1beta3.Datastore.BeginTransaction. + # The request for Datastore.BeginTransaction. class BeginTransactionRequest include Google::Apis::Core::Hashable @@ -925,7 +926,7 @@ module Google end end - # The response for google.datastore.v1beta3.Datastore.RunQuery. + # The response for Datastore.RunQuery. class RunQueryResponse include Google::Apis::Core::Hashable @@ -996,17 +997,16 @@ module Google # @return [String] attr_accessor :query_string - # For each non-reserved named binding site in the query string, - # there must be a named parameter with that name, - # but not necessarily the inverse. + # For each non-reserved named binding site in the query string, there must be + # a named parameter with that name, but not necessarily the inverse. # Key must match regex `A-Za-z_$*`, must not match regex # `__.*__`, and must not be `""`. # Corresponds to the JSON property `namedBindings` # @return [Hash] attr_accessor :named_bindings - # When false, the query string must not contain any literals and instead - # must bind all values. For example, + # When false, the query string must not contain any literals and instead must + # bind all values. For example, # `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while # `SELECT * FROM Kind WHERE a = @value` is. # Corresponds to the JSON property `allowLiterals` @@ -1016,9 +1016,8 @@ module Google # Numbered binding site @1 references the first numbered parameter, # effectively using 1-based indexing, rather than the usual 0. - # For each binding site numbered i in `query_string`, - # there must be an i-th numbered parameter. - # The inverse must also be true. + # For each binding site numbered i in `query_string`, there must be an i-th + # numbered parameter. The inverse must also be true. # Corresponds to the JSON property `positionalBindings` # @return [Array] attr_accessor :positional_bindings @@ -1092,7 +1091,7 @@ module Google end end - # The response for google.datastore.v1beta3.Datastore.Commit. + # The response for Datastore.Commit. class CommitResponse include Google::Apis::Core::Hashable @@ -1119,7 +1118,7 @@ module Google end end - # The request for google.datastore.v1beta3.Datastore.RunQuery. + # The request for Datastore.RunQuery. class RunQueryRequest include Google::Apis::Core::Hashable @@ -1171,7 +1170,7 @@ module Google end end - # The request for google.datastore.v1beta3.Datastore.Lookup. + # The request for Datastore.Lookup. class LookupRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/deploymentmanager_v2.rb b/generated/google/apis/deploymentmanager_v2.rb index 17d7d1a71..b0905c0e9 100644 --- a/generated/google/apis/deploymentmanager_v2.rb +++ b/generated/google/apis/deploymentmanager_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/deployment-manager/ module DeploymentmanagerV2 VERSION = 'V2' - REVISION = '20160731' + REVISION = '20160819' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/deploymentmanager_v2/classes.rb b/generated/google/apis/deploymentmanager_v2/classes.rb index d6741f2d5..ea4bc31f2 100644 --- a/generated/google/apis/deploymentmanager_v2/classes.rb +++ b/generated/google/apis/deploymentmanager_v2/classes.rb @@ -528,7 +528,9 @@ module Google # @return [String] attr_accessor :target_id - # [Output Only] The URL of the resource that the operation modifies. + # [Output Only] The URL of the resource that the operation modifies. If creating + # a persistent disk snapshot, this points to the persistent disk that the + # snapshot was created from. # Corresponds to the JSON property `targetLink` # @return [String] attr_accessor :target_link @@ -763,7 +765,7 @@ module Google attr_accessor :properties # [Output Only] The type of the resource, for example compute.v1.instance, or - # replicaPools.v1beta2.instanceGroupManager. + # cloudfunctions.v1beta1.function. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type diff --git a/generated/google/apis/dns_v1.rb b/generated/google/apis/dns_v1.rb index a0e13aab7..0dd3deda0 100644 --- a/generated/google/apis/dns_v1.rb +++ b/generated/google/apis/dns_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/cloud-dns module DnsV1 VERSION = 'V1' - REVISION = '20160601' + REVISION = '20160825' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dns_v1/classes.rb b/generated/google/apis/dns_v1/classes.rb index 19ddf0c09..cd6943f6a 100644 --- a/generated/google/apis/dns_v1/classes.rb +++ b/generated/google/apis/dns_v1/classes.rb @@ -146,7 +146,7 @@ module Google attr_accessor :kind # User assigned name for this resource. Must be unique within the project. The - # name must be 1-32 characters long, must begin with a letter, end with a letter + # name must be 1-63 characters long, must begin with a letter, end with a letter # or digit, and only contain lowercase letters, digits or dashes. # Corresponds to the JSON property `name` # @return [String] diff --git a/generated/google/apis/doubleclicksearch_v2.rb b/generated/google/apis/doubleclicksearch_v2.rb index 4f99544aa..a5974f17b 100644 --- a/generated/google/apis/doubleclicksearch_v2.rb +++ b/generated/google/apis/doubleclicksearch_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/doubleclick-search/ module DoubleclicksearchV2 VERSION = 'V2' - REVISION = '20160810' + REVISION = '20160829' # View and manage your advertising data in DoubleClick Search AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch' diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index a95392c4d..60a2ec4a3 100644 --- a/generated/google/apis/drive_v2.rb +++ b/generated/google/apis/drive_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV2 VERSION = 'V2' - REVISION = '20160805' + REVISION = '20160819' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/drive_v2/classes.rb b/generated/google/apis/drive_v2/classes.rb index d74730d3f..367405e02 100644 --- a/generated/google/apis/drive_v2/classes.rb +++ b/generated/google/apis/drive_v2/classes.rb @@ -2100,7 +2100,8 @@ module Google # The ID of the user this permission refers to, and identical to the # permissionId in the About and Files resources. When making a drive.permissions. - # insert request, exactly one of the id or value fields must be specified. + # insert request, exactly one of the id or value fields must be specified unless + # the permission type anyone, in which case both id and value are ignored. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -2144,7 +2145,8 @@ module Google # The email address or domain name for the entity. This is used during inserts # and is not populated in responses. When making a drive.permissions.insert - # request, exactly one of the id or value fields must be specified. + # request, exactly one of the id or value fields must be specified unless the + # permission type anyone, in which case both id and value are ignored. # Corresponds to the JSON property `value` # @return [String] attr_accessor :value diff --git a/generated/google/apis/drive_v3.rb b/generated/google/apis/drive_v3.rb index a0b79efc9..a1d80dad1 100644 --- a/generated/google/apis/drive_v3.rb +++ b/generated/google/apis/drive_v3.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV3 VERSION = 'V3' - REVISION = '20160805' + REVISION = '20160819' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/games_configuration_v1configuration.rb b/generated/google/apis/games_configuration_v1configuration.rb index 2f8d2db3b..aadac41ec 100644 --- a/generated/google/apis/games_configuration_v1configuration.rb +++ b/generated/google/apis/games_configuration_v1configuration.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services module GamesConfigurationV1configuration VERSION = 'V1configuration' - REVISION = '20160810' + REVISION = '20160824' # View and manage your Google Play Developer account AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' diff --git a/generated/google/apis/games_management_v1management.rb b/generated/google/apis/games_management_v1management.rb index 1fa4634c1..cbdd13094 100644 --- a/generated/google/apis/games_management_v1management.rb +++ b/generated/google/apis/games_management_v1management.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services module GamesManagementV1management VERSION = 'V1management' - REVISION = '20160810' + REVISION = '20160824' # Share your Google+ profile information and view and manage your game activity AUTH_GAMES = 'https://www.googleapis.com/auth/games' diff --git a/generated/google/apis/games_v1.rb b/generated/google/apis/games_v1.rb index c75bd7348..c2f68a907 100644 --- a/generated/google/apis/games_v1.rb +++ b/generated/google/apis/games_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services/ module GamesV1 VERSION = 'V1' - REVISION = '20160810' + REVISION = '20160824' # View and manage its own configuration data in your Google Drive AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata' diff --git a/generated/google/apis/genomics_v1.rb b/generated/google/apis/genomics_v1.rb index c10284e4e..8a1c05d56 100644 --- a/generated/google/apis/genomics_v1.rb +++ b/generated/google/apis/genomics_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/genomics/ module GenomicsV1 VERSION = 'V1' - REVISION = '20160809' + REVISION = '20160830' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/identitytoolkit_v3.rb b/generated/google/apis/identitytoolkit_v3.rb index ec2d42ad3..25a561474 100644 --- a/generated/google/apis/identitytoolkit_v3.rb +++ b/generated/google/apis/identitytoolkit_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/identity-toolkit/v3/ module IdentitytoolkitV3 VERSION = 'V3' - REVISION = '20160810' + REVISION = '20160812' end end end diff --git a/generated/google/apis/identitytoolkit_v3/classes.rb b/generated/google/apis/identitytoolkit_v3/classes.rb index 63957017e..d3598a843 100644 --- a/generated/google/apis/identitytoolkit_v3/classes.rb +++ b/generated/google/apis/identitytoolkit_v3/classes.rb @@ -1030,6 +1030,13 @@ module Google # @return [String] attr_accessor :request_uri + # Whether return 200 and IDP credential rather than throw exception when + # federated id is already linked. + # Corresponds to the JSON property `returnIdpCredential` + # @return [Boolean] + attr_accessor :return_idp_credential + alias_method :return_idp_credential?, :return_idp_credential + # Whether to return refresh tokens. # Corresponds to the JSON property `returnRefreshToken` # @return [Boolean] @@ -1059,6 +1066,7 @@ module Google @pending_id_token = args[:pending_id_token] if args.key?(:pending_id_token) @post_body = args[:post_body] if args.key?(:post_body) @request_uri = args[:request_uri] if args.key?(:request_uri) + @return_idp_credential = args[:return_idp_credential] if args.key?(:return_idp_credential) @return_refresh_token = args[:return_refresh_token] if args.key?(:return_refresh_token) @return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token) @session_id = args[:session_id] if args.key?(:session_id) @@ -1674,6 +1682,11 @@ module Google # @return [String] attr_accessor :raw_id + # Raw IDP-returned user info. + # Corresponds to the JSON property `rawUserInfo` + # @return [String] + attr_accessor :raw_user_info + # User's screen name at Twitter. # Corresponds to the JSON property `screenName` # @return [String] @@ -1691,6 +1704,7 @@ module Google @photo_url = args[:photo_url] if args.key?(:photo_url) @provider_id = args[:provider_id] if args.key?(:provider_id) @raw_id = args[:raw_id] if args.key?(:raw_id) + @raw_user_info = args[:raw_user_info] if args.key?(:raw_user_info) @screen_name = args[:screen_name] if args.key?(:screen_name) end end @@ -1750,6 +1764,11 @@ module Google attr_accessor :email_verified alias_method :email_verified?, :email_verified + # Client error code. + # Corresponds to the JSON property `errorMessage` + # @return [String] + attr_accessor :error_message + # If idToken is STS id token, then this field will be expiration time of STS id # token in seconds. # Corresponds to the JSON property `expiresIn` @@ -1877,6 +1896,11 @@ module Google # @return [String] attr_accessor :provider_id + # Raw IDP-returned user info. + # Corresponds to the JSON property `rawUserInfo` + # @return [String] + attr_accessor :raw_user_info + # If idToken is STS id token, then this field will be refresh token. # Corresponds to the JSON property `refreshToken` # @return [String] @@ -1912,6 +1936,7 @@ module Google @email = args[:email] if args.key?(:email) @email_recycled = args[:email_recycled] if args.key?(:email_recycled) @email_verified = args[:email_verified] if args.key?(:email_verified) + @error_message = args[:error_message] if args.key?(:error_message) @expires_in = args[:expires_in] if args.key?(:expires_in) @federated_id = args[:federated_id] if args.key?(:federated_id) @first_name = args[:first_name] if args.key?(:first_name) @@ -1935,6 +1960,7 @@ module Google @original_email = args[:original_email] if args.key?(:original_email) @photo_url = args[:photo_url] if args.key?(:photo_url) @provider_id = args[:provider_id] if args.key?(:provider_id) + @raw_user_info = args[:raw_user_info] if args.key?(:raw_user_info) @refresh_token = args[:refresh_token] if args.key?(:refresh_token) @screen_name = args[:screen_name] if args.key?(:screen_name) @time_zone = args[:time_zone] if args.key?(:time_zone) diff --git a/generated/google/apis/identitytoolkit_v3/representations.rb b/generated/google/apis/identitytoolkit_v3/representations.rb index 68b962273..be5bc3099 100644 --- a/generated/google/apis/identitytoolkit_v3/representations.rb +++ b/generated/google/apis/identitytoolkit_v3/representations.rb @@ -494,6 +494,7 @@ module Google property :pending_id_token, as: 'pendingIdToken' property :post_body, as: 'postBody' property :request_uri, as: 'requestUri' + property :return_idp_credential, as: 'returnIdpCredential' property :return_refresh_token, as: 'returnRefreshToken' property :return_secure_token, as: 'returnSecureToken' property :session_id, as: 'sessionId' @@ -647,6 +648,7 @@ module Google property :photo_url, as: 'photoUrl' property :provider_id, as: 'providerId' property :raw_id, as: 'rawId' + property :raw_user_info, as: 'rawUserInfo' property :screen_name, as: 'screenName' end end @@ -664,6 +666,7 @@ module Google property :email, as: 'email' property :email_recycled, as: 'emailRecycled' property :email_verified, as: 'emailVerified' + property :error_message, as: 'errorMessage' property :expires_in, as: 'expiresIn' property :federated_id, as: 'federatedId' property :first_name, as: 'firstName' @@ -687,6 +690,7 @@ module Google property :original_email, as: 'originalEmail' property :photo_url, as: 'photoUrl' property :provider_id, as: 'providerId' + property :raw_user_info, as: 'rawUserInfo' property :refresh_token, as: 'refreshToken' property :screen_name, as: 'screenName' property :time_zone, as: 'timeZone' diff --git a/generated/google/apis/language_v1beta1.rb b/generated/google/apis/language_v1beta1.rb new file mode 100644 index 000000000..0bc9bfeb2 --- /dev/null +++ b/generated/google/apis/language_v1beta1.rb @@ -0,0 +1,36 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/language_v1beta1/service.rb' +require 'google/apis/language_v1beta1/classes.rb' +require 'google/apis/language_v1beta1/representations.rb' + +module Google + module Apis + # Google Cloud Natural Language API + # + # Google Cloud Natural Language API provides natural language understanding + # technologies to developers. Examples include sentiment analysis, entity + # recognition, and text annotations. + # + # @see https://cloud.google.com/natural-language/ + module LanguageV1beta1 + VERSION = 'V1beta1' + REVISION = '20160816' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/language_v1beta1/classes.rb b/generated/google/apis/language_v1beta1/classes.rb new file mode 100644 index 000000000..f5387d7b7 --- /dev/null +++ b/generated/google/apis/language_v1beta1/classes.rb @@ -0,0 +1,596 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module LanguageV1beta1 + + # ################################################################ # + # Represents the input to API methods. + class Document + include Google::Apis::Core::Hashable + + # The language of the document (if not specified, the language is + # automatically detected). Both ISO and BCP-47 language codes are + # accepted.
+ # **Current Language Restrictions:** + # * Only English, Spanish, and Japanese textual content + # are supported, with the following additional restriction: + # * `analyzeSentiment` only supports English text. + # If the language (either specified by the caller or automatically detected) + # is not supported by the called API method, an `INVALID_ARGUMENT` error + # is returned. + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + + # The Google Cloud Storage URI where the file content is located. + # Corresponds to the JSON property `gcsContentUri` + # @return [String] + attr_accessor :gcs_content_uri + + # Required. If the type is not set or is `TYPE_UNSPECIFIED`, + # returns an `INVALID_ARGUMENT` error. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # The content of the input in string format. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @language = args[:language] if args.key?(:language) + @gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri) + @type = args[:type] if args.key?(:type) + @content = args[:content] if args.key?(:content) + end + end + + # Represents an output piece of text. + class TextSpan + include Google::Apis::Core::Hashable + + # The API calculates the beginning offset of the content in the original + # document according to the EncodingType specified in the API request. + # Corresponds to the JSON property `beginOffset` + # @return [Fixnum] + attr_accessor :begin_offset + + # The content of the output text. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @begin_offset = args[:begin_offset] if args.key?(:begin_offset) + @content = args[:content] if args.key?(:content) + end + end + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` which can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting purpose. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There will be a + # common set of message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # google.rpc.Status.details field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + + # The entity analysis request message. + class AnalyzeEntitiesRequest + include Google::Apis::Core::Hashable + + # ################################################################ # + # Represents the input to API methods. + # Corresponds to the JSON property `document` + # @return [Google::Apis::LanguageV1beta1::Document] + attr_accessor :document + + # The encoding type used by the API to calculate offsets. + # Corresponds to the JSON property `encodingType` + # @return [String] + attr_accessor :encoding_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @document = args[:document] if args.key?(:document) + @encoding_type = args[:encoding_type] if args.key?(:encoding_type) + end + end + + # Represents a mention for an entity in the text. Currently, proper noun + # mentions are supported. + class EntityMention + include Google::Apis::Core::Hashable + + # Represents an output piece of text. + # Corresponds to the JSON property `text` + # @return [Google::Apis::LanguageV1beta1::TextSpan] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @text = args[:text] if args.key?(:text) + end + end + + # The sentiment analysis request message. + class AnalyzeSentimentRequest + include Google::Apis::Core::Hashable + + # ################################################################ # + # Represents the input to API methods. + # Corresponds to the JSON property `document` + # @return [Google::Apis::LanguageV1beta1::Document] + attr_accessor :document + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @document = args[:document] if args.key?(:document) + end + end + + # The sentiment analysis response message. + class AnalyzeSentimentResponse + include Google::Apis::Core::Hashable + + # Represents the feeling associated with the entire text or entities in + # the text. + # Corresponds to the JSON property `documentSentiment` + # @return [Google::Apis::LanguageV1beta1::Sentiment] + attr_accessor :document_sentiment + + # The language of the text, which will be the same as the language specified + # in the request or, if not specified, the automatically-detected language. + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment) + @language = args[:language] if args.key?(:language) + end + end + + # Represents dependency parse tree information for a token. + class DependencyEdge + include Google::Apis::Core::Hashable + + # Represents the head of this token in the dependency tree. + # This is the index of the token which has an arc going to this token. + # The index is the position of the token in the array of tokens returned + # by the API method. If this token is a root token, then the + # `head_token_index` is its own index. + # Corresponds to the JSON property `headTokenIndex` + # @return [Fixnum] + attr_accessor :head_token_index + + # The parse label for the token. + # Corresponds to the JSON property `label` + # @return [String] + attr_accessor :label + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @head_token_index = args[:head_token_index] if args.key?(:head_token_index) + @label = args[:label] if args.key?(:label) + end + end + + # The request message for the advanced text annotation API, which performs all + # the above plus syntactic analysis. + class AnnotateTextRequest + include Google::Apis::Core::Hashable + + # ################################################################ # + # Represents the input to API methods. + # Corresponds to the JSON property `document` + # @return [Google::Apis::LanguageV1beta1::Document] + attr_accessor :document + + # The encoding type used by the API to calculate offsets. + # Corresponds to the JSON property `encodingType` + # @return [String] + attr_accessor :encoding_type + + # All available features for sentiment, syntax, and semantic analysis. + # Setting each one to true will enable that specific analysis for the input. + # Corresponds to the JSON property `features` + # @return [Google::Apis::LanguageV1beta1::Features] + attr_accessor :features + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @document = args[:document] if args.key?(:document) + @encoding_type = args[:encoding_type] if args.key?(:encoding_type) + @features = args[:features] if args.key?(:features) + end + end + + # Represents a sentence in the input document. + class Sentence + include Google::Apis::Core::Hashable + + # Represents an output piece of text. + # Corresponds to the JSON property `text` + # @return [Google::Apis::LanguageV1beta1::TextSpan] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @text = args[:text] if args.key?(:text) + end + end + + # All available features for sentiment, syntax, and semantic analysis. + # Setting each one to true will enable that specific analysis for the input. + class Features + include Google::Apis::Core::Hashable + + # Extract document-level sentiment. + # Corresponds to the JSON property `extractDocumentSentiment` + # @return [Boolean] + attr_accessor :extract_document_sentiment + alias_method :extract_document_sentiment?, :extract_document_sentiment + + # Extract entities. + # Corresponds to the JSON property `extractEntities` + # @return [Boolean] + attr_accessor :extract_entities + alias_method :extract_entities?, :extract_entities + + # Extract syntax information. + # Corresponds to the JSON property `extractSyntax` + # @return [Boolean] + attr_accessor :extract_syntax + alias_method :extract_syntax?, :extract_syntax + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment) + @extract_entities = args[:extract_entities] if args.key?(:extract_entities) + @extract_syntax = args[:extract_syntax] if args.key?(:extract_syntax) + end + end + + # Represents part of speech information for a token. + class PartOfSpeech + include Google::Apis::Core::Hashable + + # The part of speech tag. + # Corresponds to the JSON property `tag` + # @return [String] + attr_accessor :tag + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @tag = args[:tag] if args.key?(:tag) + end + end + + # The text annotations response message. + class AnnotateTextResponse + include Google::Apis::Core::Hashable + + # Entities, along with their semantic information, in the input document. + # Populated if the user enables + # AnnotateTextRequest.Features.extract_entities. + # Corresponds to the JSON property `entities` + # @return [Array] + attr_accessor :entities + + # Represents the feeling associated with the entire text or entities in + # the text. + # Corresponds to the JSON property `documentSentiment` + # @return [Google::Apis::LanguageV1beta1::Sentiment] + attr_accessor :document_sentiment + + # The language of the text, which will be the same as the language specified + # in the request or, if not specified, the automatically-detected language. + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + + # Tokens, along with their syntactic information, in the input document. + # Populated if the user enables + # AnnotateTextRequest.Features.extract_syntax. + # Corresponds to the JSON property `tokens` + # @return [Array] + attr_accessor :tokens + + # Sentences in the input document. Populated if the user enables + # AnnotateTextRequest.Features.extract_syntax. + # Corresponds to the JSON property `sentences` + # @return [Array] + attr_accessor :sentences + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entities = args[:entities] if args.key?(:entities) + @document_sentiment = args[:document_sentiment] if args.key?(:document_sentiment) + @language = args[:language] if args.key?(:language) + @tokens = args[:tokens] if args.key?(:tokens) + @sentences = args[:sentences] if args.key?(:sentences) + end + end + + # Represents a phrase in the text that is a known entity, such as + # a person, an organization, or location. The API associates information, such + # as salience and mentions, with entities. + class Entity + include Google::Apis::Core::Hashable + + # Metadata associated with the entity. + # Currently, only Wikipedia URLs are provided, if available. + # The associated key is "wikipedia_url". + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The salience score associated with the entity in the [0, 1.0] range. + # The salience score for an entity provides information about the + # importance or centrality of that entity to the entire document text. + # Scores closer to 0 are less salient, while scores closer to 1.0 are highly + # salient. + # Corresponds to the JSON property `salience` + # @return [Float] + attr_accessor :salience + + # The entity type. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # The mentions of this entity in the input document. The API currently + # supports proper noun mentions. + # Corresponds to the JSON property `mentions` + # @return [Array] + attr_accessor :mentions + + # The representative name for the entity. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @metadata = args[:metadata] if args.key?(:metadata) + @salience = args[:salience] if args.key?(:salience) + @type = args[:type] if args.key?(:type) + @mentions = args[:mentions] if args.key?(:mentions) + @name = args[:name] if args.key?(:name) + end + end + + # Represents the feeling associated with the entire text or entities in + # the text. + class Sentiment + include Google::Apis::Core::Hashable + + # Polarity of the sentiment in the [-1.0, 1.0] range. Larger numbers + # represent more positive sentiments. + # Corresponds to the JSON property `polarity` + # @return [Float] + attr_accessor :polarity + + # A non-negative number in the [0, +inf) range, which represents + # the absolute magnitude of sentiment regardless of polarity (positive or + # negative). + # Corresponds to the JSON property `magnitude` + # @return [Float] + attr_accessor :magnitude + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @polarity = args[:polarity] if args.key?(:polarity) + @magnitude = args[:magnitude] if args.key?(:magnitude) + end + end + + # Represents the smallest syntactic building block of the text. + class Token + include Google::Apis::Core::Hashable + + # Represents an output piece of text. + # Corresponds to the JSON property `text` + # @return [Google::Apis::LanguageV1beta1::TextSpan] + attr_accessor :text + + # Represents part of speech information for a token. + # Corresponds to the JSON property `partOfSpeech` + # @return [Google::Apis::LanguageV1beta1::PartOfSpeech] + attr_accessor :part_of_speech + + # Represents dependency parse tree information for a token. + # Corresponds to the JSON property `dependencyEdge` + # @return [Google::Apis::LanguageV1beta1::DependencyEdge] + attr_accessor :dependency_edge + + # [Lemma](https://en.wikipedia.org/wiki/Lemma_(morphology)) + # of the token. + # Corresponds to the JSON property `lemma` + # @return [String] + attr_accessor :lemma + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @text = args[:text] if args.key?(:text) + @part_of_speech = args[:part_of_speech] if args.key?(:part_of_speech) + @dependency_edge = args[:dependency_edge] if args.key?(:dependency_edge) + @lemma = args[:lemma] if args.key?(:lemma) + end + end + + # The entity analysis response message. + class AnalyzeEntitiesResponse + include Google::Apis::Core::Hashable + + # The recognized entities in the input document. + # Corresponds to the JSON property `entities` + # @return [Array] + attr_accessor :entities + + # The language of the text, which will be the same as the language specified + # in the request or, if not specified, the automatically-detected language. + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entities = args[:entities] if args.key?(:entities) + @language = args[:language] if args.key?(:language) + end + end + end + end +end diff --git a/generated/google/apis/language_v1beta1/representations.rb b/generated/google/apis/language_v1beta1/representations.rb new file mode 100644 index 000000000..35f38d967 --- /dev/null +++ b/generated/google/apis/language_v1beta1/representations.rb @@ -0,0 +1,289 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module LanguageV1beta1 + + class Document + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TextSpan + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnalyzeEntitiesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EntityMention + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnalyzeSentimentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnalyzeSentimentResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DependencyEdge + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnnotateTextRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Sentence + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Features + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PartOfSpeech + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnnotateTextResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Entity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Sentiment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Token + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnalyzeEntitiesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Document + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :language, as: 'language' + property :gcs_content_uri, as: 'gcsContentUri' + property :type, as: 'type' + property :content, as: 'content' + end + end + + class TextSpan + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :begin_offset, as: 'beginOffset' + property :content, as: 'content' + end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + property :message, as: 'message' + end + end + + class AnalyzeEntitiesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation + + property :encoding_type, as: 'encodingType' + end + end + + class EntityMention + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation + + end + end + + class AnalyzeSentimentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation + + end + end + + class AnalyzeSentimentResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation + + property :language, as: 'language' + end + end + + class DependencyEdge + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :head_token_index, as: 'headTokenIndex' + property :label, as: 'label' + end + end + + class AnnotateTextRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :document, as: 'document', class: Google::Apis::LanguageV1beta1::Document, decorator: Google::Apis::LanguageV1beta1::Document::Representation + + property :encoding_type, as: 'encodingType' + property :features, as: 'features', class: Google::Apis::LanguageV1beta1::Features, decorator: Google::Apis::LanguageV1beta1::Features::Representation + + end + end + + class Sentence + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation + + end + end + + class Features + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :extract_document_sentiment, as: 'extractDocumentSentiment' + property :extract_entities, as: 'extractEntities' + property :extract_syntax, as: 'extractSyntax' + end + end + + class PartOfSpeech + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :tag, as: 'tag' + end + end + + class AnnotateTextResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation + + property :document_sentiment, as: 'documentSentiment', class: Google::Apis::LanguageV1beta1::Sentiment, decorator: Google::Apis::LanguageV1beta1::Sentiment::Representation + + property :language, as: 'language' + collection :tokens, as: 'tokens', class: Google::Apis::LanguageV1beta1::Token, decorator: Google::Apis::LanguageV1beta1::Token::Representation + + collection :sentences, as: 'sentences', class: Google::Apis::LanguageV1beta1::Sentence, decorator: Google::Apis::LanguageV1beta1::Sentence::Representation + + end + end + + class Entity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :metadata, as: 'metadata' + property :salience, as: 'salience' + property :type, as: 'type' + collection :mentions, as: 'mentions', class: Google::Apis::LanguageV1beta1::EntityMention, decorator: Google::Apis::LanguageV1beta1::EntityMention::Representation + + property :name, as: 'name' + end + end + + class Sentiment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :polarity, as: 'polarity' + property :magnitude, as: 'magnitude' + end + end + + class Token + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :text, as: 'text', class: Google::Apis::LanguageV1beta1::TextSpan, decorator: Google::Apis::LanguageV1beta1::TextSpan::Representation + + property :part_of_speech, as: 'partOfSpeech', class: Google::Apis::LanguageV1beta1::PartOfSpeech, decorator: Google::Apis::LanguageV1beta1::PartOfSpeech::Representation + + property :dependency_edge, as: 'dependencyEdge', class: Google::Apis::LanguageV1beta1::DependencyEdge, decorator: Google::Apis::LanguageV1beta1::DependencyEdge::Representation + + property :lemma, as: 'lemma' + end + end + + class AnalyzeEntitiesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entities, as: 'entities', class: Google::Apis::LanguageV1beta1::Entity, decorator: Google::Apis::LanguageV1beta1::Entity::Representation + + property :language, as: 'language' + end + end + end + end +end diff --git a/generated/google/apis/language_v1beta1/service.rb b/generated/google/apis/language_v1beta1/service.rb new file mode 100644 index 000000000..53e276ac3 --- /dev/null +++ b/generated/google/apis/language_v1beta1/service.rb @@ -0,0 +1,154 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module LanguageV1beta1 + # Google Cloud Natural Language API + # + # Google Cloud Natural Language API provides natural language understanding + # technologies to developers. Examples include sentiment analysis, entity + # recognition, and text annotations. + # + # @example + # require 'google/apis/language_v1beta1' + # + # Language = Google::Apis::LanguageV1beta1 # Alias the module + # service = Language::CloudNaturalLanguageAPIService.new + # + # @see https://cloud.google.com/natural-language/ + class CloudNaturalLanguageAPIService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://language.googleapis.com/', '') + end + + # Analyzes the sentiment of the provided text. + # @param [Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest] analyze_sentiment_request_object + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def analyze_document_sentiment(analyze_sentiment_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/documents:analyzeSentiment', options) + command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentRequest::Representation + command.request_object = analyze_sentiment_request_object + command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse::Representation + command.response_class = Google::Apis::LanguageV1beta1::AnalyzeSentimentResponse + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Advanced API that analyzes the document and provides a full set of text + # annotations, including semantic, syntactic, and sentiment information. This + # API is intended for users who are familiar with machine learning and need + # in-depth text features to build upon. + # @param [Google::Apis::LanguageV1beta1::AnnotateTextRequest] annotate_text_request_object + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LanguageV1beta1::AnnotateTextResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LanguageV1beta1::AnnotateTextResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def annotate_document_text(annotate_text_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/documents:annotateText', options) + command.request_representation = Google::Apis::LanguageV1beta1::AnnotateTextRequest::Representation + command.request_object = annotate_text_request_object + command.response_representation = Google::Apis::LanguageV1beta1::AnnotateTextResponse::Representation + command.response_class = Google::Apis::LanguageV1beta1::AnnotateTextResponse + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Finds named entities (currently finds proper names) in the text, + # entity types, salience, mentions for each entity, and other properties. + # @param [Google::Apis::LanguageV1beta1::AnalyzeEntitiesRequest] analyze_entities_request_object + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def analyze_document_entities(analyze_entities_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/documents:analyzeEntities', options) + command.request_representation = Google::Apis::LanguageV1beta1::AnalyzeEntitiesRequest::Representation + command.request_object = analyze_entities_request_object + command.response_representation = Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse::Representation + command.response_class = Google::Apis::LanguageV1beta1::AnalyzeEntitiesResponse + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/monitoring_v3.rb b/generated/google/apis/monitoring_v3.rb index e4fd405f2..a721352ae 100644 --- a/generated/google/apis/monitoring_v3.rb +++ b/generated/google/apis/monitoring_v3.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/monitoring/api/ module MonitoringV3 VERSION = 'V3' - REVISION = '20160816' + REVISION = '20160829' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/monitoring_v3/classes.rb b/generated/google/apis/monitoring_v3/classes.rb index 9180fce4c..1021d75ab 100644 --- a/generated/google/apis/monitoring_v3/classes.rb +++ b/generated/google/apis/monitoring_v3/classes.rb @@ -680,7 +680,7 @@ module Google # The finite buckets are so-called because both bounds are finite.BucketOptions # describes bucket boundaries in one of three ways. Two describe the boundaries # by giving parameters for a formula to generate boundaries and one gives the - # bucket boundaries explicitly.If bucket_boundaries is not given, then no + # bucket boundaries explicitly.If bucket_options is not given, then no # bucket_counts may be given. # Corresponds to the JSON property `bucketOptions` # @return [Google::Apis::MonitoringV3::BucketOptions] @@ -1151,7 +1151,7 @@ module Google # The finite buckets are so-called because both bounds are finite.BucketOptions # describes bucket boundaries in one of three ways. Two describe the boundaries # by giving parameters for a formula to generate boundaries and one gives the - # bucket boundaries explicitly.If bucket_boundaries is not given, then no + # bucket boundaries explicitly.If bucket_options is not given, then no # bucket_counts may be given. class BucketOptions include Google::Apis::Core::Hashable diff --git a/generated/google/apis/oauth2_v2.rb b/generated/google/apis/oauth2_v2.rb index b1bf4778b..4db81f3c5 100644 --- a/generated/google/apis/oauth2_v2.rb +++ b/generated/google/apis/oauth2_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/accounts/docs/OAuth2 module Oauth2V2 VERSION = 'V2' - REVISION = '20160804' + REVISION = '20160817' # Know the list of people in your circles, your age range, and language AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' diff --git a/generated/google/apis/plus_domains_v1.rb b/generated/google/apis/plus_domains_v1.rb index a9cab1f95..159842c2e 100644 --- a/generated/google/apis/plus_domains_v1.rb +++ b/generated/google/apis/plus_domains_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/+/domains/ module PlusDomainsV1 VERSION = 'V1' - REVISION = '20160815' + REVISION = '20160830' # View your circles and the people and pages in them AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read' diff --git a/generated/google/apis/plus_v1.rb b/generated/google/apis/plus_v1.rb index 03db771c7..3e6540fce 100644 --- a/generated/google/apis/plus_v1.rb +++ b/generated/google/apis/plus_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/+/api/ module PlusV1 VERSION = 'V1' - REVISION = '20160815' + REVISION = '20160830' # Know the list of people in your circles, your age range, and language AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' diff --git a/generated/google/apis/sheets_v4.rb b/generated/google/apis/sheets_v4.rb index d29053a03..0c6275a97 100644 --- a/generated/google/apis/sheets_v4.rb +++ b/generated/google/apis/sheets_v4.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/sheets/ module SheetsV4 VERSION = 'V4' - REVISION = '20160815' + REVISION = '20160826' # View the files in your Google Drive AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly' diff --git a/generated/google/apis/speech_v1beta1.rb b/generated/google/apis/speech_v1beta1.rb new file mode 100644 index 000000000..be92ed750 --- /dev/null +++ b/generated/google/apis/speech_v1beta1.rb @@ -0,0 +1,34 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/speech_v1beta1/service.rb' +require 'google/apis/speech_v1beta1/classes.rb' +require 'google/apis/speech_v1beta1/representations.rb' + +module Google + module Apis + # Google Cloud Speech API + # + # Google Cloud Speech API. + # + # @see https://cloud.google.com/speech/ + module SpeechV1beta1 + VERSION = 'V1beta1' + REVISION = '20160824' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/speech_v1beta1/classes.rb b/generated/google/apis/speech_v1beta1/classes.rb new file mode 100644 index 000000000..592b32b67 --- /dev/null +++ b/generated/google/apis/speech_v1beta1/classes.rb @@ -0,0 +1,512 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module SpeechV1beta1 + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` which can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting purpose. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + class Status + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There will be a + # common set of message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # google.rpc.Status.details field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + + # Contains audio data in the encoding specified in the `RecognitionConfig`. + # Either `content` or `uri` must be supplied. Supplying both or neither + # returns google.rpc.Code.INVALID_ARGUMENT. See + # [audio limits](https://cloud.google.com/speech/limits#content). + class RecognitionAudio + include Google::Apis::Core::Hashable + + # The audio data bytes encoded as specified in + # `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a + # pure binary representation, whereas JSON representations use base64. + # Corresponds to the JSON property `content` + # @return [String] + attr_accessor :content + + # URI that points to a file that contains audio data bytes as specified in + # `RecognitionConfig`. Currently, only Google Cloud Storage URIs are + # supported, which must be specified in the following format: + # `gs://bucket_name/object_name` (other URI formats return + # google.rpc.Code.INVALID_ARGUMENT). For more information, see + # [Request URIs](https://cloud.google.com/storage/docs/reference-uris). + # Corresponds to the JSON property `uri` + # @return [String] + attr_accessor :uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content = args[:content] if args.key?(:content) + @uri = args[:uri] if args.key?(:uri) + end + end + + # This resource represents a long-running operation that is the result of a + # network API call. + class Operation + include Google::Apis::Core::Hashable + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` which can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting purpose. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::SpeechV1beta1::Status] + attr_accessor :error + + # If the value is `false`, it means the operation is still in progress. + # If true, the operation is completed, and either `error` or `response` is + # available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # Service-specific metadata associated with the operation. It typically + # contains progress information and common metadata such as create time. + # Some services might not provide such metadata. Any method that returns a + # long-running operation should document the metadata type, if any. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is + # `google.protobuf.Empty`. If the original method is standard + # `Get`/`Create`/`Update`, the response should be the resource. For other + # methods, the response should have the type `XxxResponse`, where `Xxx` + # is the original method name. For example, if the original method name + # is `TakeSnapshot()`, the inferred response type is + # `TakeSnapshotResponse`. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the + # `name` should have the format of `operations/some/unique/name`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error = args[:error] if args.key?(:error) + @done = args[:done] if args.key?(:done) + @metadata = args[:metadata] if args.key?(:metadata) + @response = args[:response] if args.key?(:response) + @name = args[:name] if args.key?(:name) + end + end + + # Alternative hypotheses (a.k.a. n-best list). + class SpeechRecognitionAlternative + include Google::Apis::Core::Hashable + + # [Output-only] Transcript text representing the words that the user spoke. + # Corresponds to the JSON property `transcript` + # @return [String] + attr_accessor :transcript + + # [Output-only] The confidence estimate between 0.0 and 1.0. A higher number + # means the system is more confident that the recognition is correct. + # This field is typically provided only for the top hypothesis, and only for + # `is_final=true` results. + # The default of 0.0 is a sentinel value indicating confidence was not set. + # Corresponds to the JSON property `confidence` + # @return [Float] + attr_accessor :confidence + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @transcript = args[:transcript] if args.key?(:transcript) + @confidence = args[:confidence] if args.key?(:confidence) + end + end + + # The request message for Operations.CancelOperation. + class CancelOperationRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The `RecognitionConfig` message provides information to the recognizer + # that specifies how to process the request. + class RecognitionConfig + include Google::Apis::Core::Hashable + + # [Optional] Maximum number of recognition hypotheses to be returned. + # Specifically, the maximum number of `SpeechRecognitionAlternative` messages + # within each `SpeechRecognitionResult`. + # The server may return fewer than `max_alternatives`. + # Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of + # `1`. If omitted, defaults to `1`. + # Corresponds to the JSON property `maxAlternatives` + # @return [Fixnum] + attr_accessor :max_alternatives + + # [Optional] The language of the supplied audio as a BCP-47 language tag. + # Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt + # If omitted, defaults to "en-US". See + # [Language Support](https://cloud.google.com/speech/docs/best-practices# + # language_support) + # for a list of the currently supported language codes. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Provides "hints" to the speech recognizer to favor specific words and phrases + # in the results. + # Corresponds to the JSON property `speechContext` + # @return [Google::Apis::SpeechV1beta1::SpeechContext] + attr_accessor :speech_context + + # [Required] Encoding of audio data sent in all `RecognitionAudio` messages. + # Corresponds to the JSON property `encoding` + # @return [String] + attr_accessor :encoding + + # [Optional] If set to `true`, the server will attempt to filter out + # profanities, replacing all but the initial character in each filtered word + # with asterisks, e.g. "f***". If set to `false` or omitted, profanities + # won't be filtered out. + # Corresponds to the JSON property `profanityFilter` + # @return [Boolean] + attr_accessor :profanity_filter + alias_method :profanity_filter?, :profanity_filter + + # [Required] Sample rate in Hertz of the audio data sent in all + # `RecognitionAudio` messages. Valid values are: 8000-48000. + # 16000 is optimal. For best results, set the sampling rate of the audio + # source to 16000 Hz. If that's not possible, use the native sample rate of + # the audio source (instead of re-sampling). + # Corresponds to the JSON property `sampleRate` + # @return [Fixnum] + attr_accessor :sample_rate + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives) + @language_code = args[:language_code] if args.key?(:language_code) + @speech_context = args[:speech_context] if args.key?(:speech_context) + @encoding = args[:encoding] if args.key?(:encoding) + @profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter) + @sample_rate = args[:sample_rate] if args.key?(:sample_rate) + end + end + + # `SyncRecognizeRequest` is the top-level message sent by the client for + # the `SyncRecognize` method. + class SyncRecognizeRequest + include Google::Apis::Core::Hashable + + # Contains audio data in the encoding specified in the `RecognitionConfig`. + # Either `content` or `uri` must be supplied. Supplying both or neither + # returns google.rpc.Code.INVALID_ARGUMENT. See + # [audio limits](https://cloud.google.com/speech/limits#content). + # Corresponds to the JSON property `audio` + # @return [Google::Apis::SpeechV1beta1::RecognitionAudio] + attr_accessor :audio + + # The `RecognitionConfig` message provides information to the recognizer + # that specifies how to process the request. + # Corresponds to the JSON property `config` + # @return [Google::Apis::SpeechV1beta1::RecognitionConfig] + attr_accessor :config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audio = args[:audio] if args.key?(:audio) + @config = args[:config] if args.key?(:config) + end + end + + # A speech recognition result corresponding to a portion of the audio. + class SpeechRecognitionResult + include Google::Apis::Core::Hashable + + # [Output-only] May contain one or more recognition hypotheses (up to the + # maximum specified in `max_alternatives`). + # Corresponds to the JSON property `alternatives` + # @return [Array] + attr_accessor :alternatives + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @alternatives = args[:alternatives] if args.key?(:alternatives) + end + end + + # The response message for Operations.ListOperations. + class ListOperationsResponse + include Google::Apis::Core::Hashable + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of operations that matches the specified filter in the request. + # Corresponds to the JSON property `operations` + # @return [Array] + attr_accessor :operations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @operations = args[:operations] if args.key?(:operations) + end + end + + # `SyncRecognizeResponse` is the only message returned to the client by + # `SyncRecognize`. It contains the result as zero or more sequential + # `SpeechRecognitionResult` messages. + class SyncRecognizeResponse + include Google::Apis::Core::Hashable + + # [Output-only] Sequential list of transcription results corresponding to + # sequential portions of audio. + # Corresponds to the JSON property `results` + # @return [Array] + attr_accessor :results + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @results = args[:results] if args.key?(:results) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Provides "hints" to the speech recognizer to favor specific words and phrases + # in the results. + class SpeechContext + include Google::Apis::Core::Hashable + + # [Optional] A list of strings containing words and phrases "hints" so that + # the speech recognition is more likely to recognize them. This can be used + # to improve the accuracy for specific words and phrases, for example, if + # specific commands are typically spoken by the user. This can also be used + # to add additional words to the vocabulary of the recognizer. See + # [usage limits](https://cloud.google.com/speech/limits#content). + # Corresponds to the JSON property `phrases` + # @return [Array] + attr_accessor :phrases + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @phrases = args[:phrases] if args.key?(:phrases) + end + end + + # `AsyncRecognizeRequest` is the top-level message sent by the client for + # the `AsyncRecognize` method. + class AsyncRecognizeRequest + include Google::Apis::Core::Hashable + + # Contains audio data in the encoding specified in the `RecognitionConfig`. + # Either `content` or `uri` must be supplied. Supplying both or neither + # returns google.rpc.Code.INVALID_ARGUMENT. See + # [audio limits](https://cloud.google.com/speech/limits#content). + # Corresponds to the JSON property `audio` + # @return [Google::Apis::SpeechV1beta1::RecognitionAudio] + attr_accessor :audio + + # The `RecognitionConfig` message provides information to the recognizer + # that specifies how to process the request. + # Corresponds to the JSON property `config` + # @return [Google::Apis::SpeechV1beta1::RecognitionConfig] + attr_accessor :config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audio = args[:audio] if args.key?(:audio) + @config = args[:config] if args.key?(:config) + end + end + end + end +end diff --git a/generated/google/apis/speech_v1beta1/representations.rb b/generated/google/apis/speech_v1beta1/representations.rb new file mode 100644 index 000000000..4f6b966b8 --- /dev/null +++ b/generated/google/apis/speech_v1beta1/representations.rb @@ -0,0 +1,218 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module SpeechV1beta1 + + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RecognitionAudio + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Operation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SpeechRecognitionAlternative + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CancelOperationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RecognitionConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SyncRecognizeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SpeechRecognitionResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListOperationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SyncRecognizeResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SpeechContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AsyncRecognizeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + property :message, as: 'message' + end + end + + class RecognitionAudio + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content, :base64 => true, as: 'content' + property :uri, as: 'uri' + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :error, as: 'error', class: Google::Apis::SpeechV1beta1::Status, decorator: Google::Apis::SpeechV1beta1::Status::Representation + + property :done, as: 'done' + hash :metadata, as: 'metadata' + hash :response, as: 'response' + property :name, as: 'name' + end + end + + class SpeechRecognitionAlternative + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :transcript, as: 'transcript' + property :confidence, as: 'confidence' + end + end + + class CancelOperationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class RecognitionConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_alternatives, as: 'maxAlternatives' + property :language_code, as: 'languageCode' + property :speech_context, as: 'speechContext', class: Google::Apis::SpeechV1beta1::SpeechContext, decorator: Google::Apis::SpeechV1beta1::SpeechContext::Representation + + property :encoding, as: 'encoding' + property :profanity_filter, as: 'profanityFilter' + property :sample_rate, as: 'sampleRate' + end + end + + class SyncRecognizeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audio, as: 'audio', class: Google::Apis::SpeechV1beta1::RecognitionAudio, decorator: Google::Apis::SpeechV1beta1::RecognitionAudio::Representation + + property :config, as: 'config', class: Google::Apis::SpeechV1beta1::RecognitionConfig, decorator: Google::Apis::SpeechV1beta1::RecognitionConfig::Representation + + end + end + + class SpeechRecognitionResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :alternatives, as: 'alternatives', class: Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative, decorator: Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative::Representation + + end + end + + class ListOperationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :operations, as: 'operations', class: Google::Apis::SpeechV1beta1::Operation, decorator: Google::Apis::SpeechV1beta1::Operation::Representation + + end + end + + class SyncRecognizeResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :results, as: 'results', class: Google::Apis::SpeechV1beta1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1beta1::SpeechRecognitionResult::Representation + + end + end + + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class SpeechContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :phrases, as: 'phrases' + end + end + + class AsyncRecognizeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audio, as: 'audio', class: Google::Apis::SpeechV1beta1::RecognitionAudio, decorator: Google::Apis::SpeechV1beta1::RecognitionAudio::Representation + + property :config, as: 'config', class: Google::Apis::SpeechV1beta1::RecognitionConfig, decorator: Google::Apis::SpeechV1beta1::RecognitionConfig::Representation + + end + end + end + end +end diff --git a/generated/google/apis/speech_v1beta1/service.rb b/generated/google/apis/speech_v1beta1/service.rb new file mode 100644 index 000000000..5db0bca60 --- /dev/null +++ b/generated/google/apis/speech_v1beta1/service.rb @@ -0,0 +1,268 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module SpeechV1beta1 + # Google Cloud Speech API + # + # Google Cloud Speech API. + # + # @example + # require 'google/apis/speech_v1beta1' + # + # Speech = Google::Apis::SpeechV1beta1 # Alias the module + # service = Speech::CloudSpeechAPIService.new + # + # @see https://cloud.google.com/speech/ + class CloudSpeechAPIService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://speech.googleapis.com/', '') + end + + # Perform synchronous speech-recognition: receive results after all audio + # has been sent and processed. + # @param [Google::Apis::SpeechV1beta1::SyncRecognizeRequest] sync_recognize_request_object + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SpeechV1beta1::SyncRecognizeResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SpeechV1beta1::SyncRecognizeResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def sync_recognize_speech(sync_recognize_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/speech:syncrecognize', options) + command.request_representation = Google::Apis::SpeechV1beta1::SyncRecognizeRequest::Representation + command.request_object = sync_recognize_request_object + command.response_representation = Google::Apis::SpeechV1beta1::SyncRecognizeResponse::Representation + command.response_class = Google::Apis::SpeechV1beta1::SyncRecognizeResponse + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Perform asynchronous speech-recognition: receive results via the + # google.longrunning.Operations interface. Returns either an + # `Operation.error` or an `Operation.response` which contains + # an `AsyncRecognizeResponse` message. + # @param [Google::Apis::SpeechV1beta1::AsyncRecognizeRequest] async_recognize_request_object + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SpeechV1beta1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SpeechV1beta1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def async_recognize_speech(async_recognize_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/speech:asyncrecognize', options) + command.request_representation = Google::Apis::SpeechV1beta1::AsyncRecognizeRequest::Representation + command.request_object = async_recognize_request_object + command.response_representation = Google::Apis::SpeechV1beta1::Operation::Representation + command.response_class = Google::Apis::SpeechV1beta1::Operation + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # @param [String] name + # The name of the operation resource. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SpeechV1beta1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SpeechV1beta1::Operation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_operation(name, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/operations/{+name}', options) + command.response_representation = Google::Apis::SpeechV1beta1::Operation::Representation + command.response_class = Google::Apis::SpeechV1beta1::Operation + command.params['name'] = name unless name.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # NOTE: the `name` binding below allows API services to override the binding + # to use different resource name schemes, such as `users/*/operations`. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] filter + # The standard list filter. + # @param [String] name + # The name of the operation collection. + # @param [String] page_token + # The standard list page token. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SpeechV1beta1::ListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SpeechV1beta1::ListOperationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_operations(page_size: nil, filter: nil, name: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/operations', options) + command.response_representation = Google::Apis::SpeechV1beta1::ListOperationsResponse::Representation + command.response_class = Google::Apis::SpeechV1beta1::ListOperationsResponse + command.query['pageSize'] = page_size unless page_size.nil? + command.query['filter'] = filter unless filter.nil? + command.query['name'] = name unless name.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. + # @param [String] name + # The name of the operation resource to be cancelled. + # @param [Google::Apis::SpeechV1beta1::CancelOperationRequest] cancel_operation_request_object + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SpeechV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SpeechV1beta1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def cancel_operation(name, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/operations/{+name}:cancel', options) + command.request_representation = Google::Apis::SpeechV1beta1::CancelOperationRequest::Representation + command.request_object = cancel_operation_request_object + command.response_representation = Google::Apis::SpeechV1beta1::Empty::Representation + command.response_class = Google::Apis::SpeechV1beta1::Empty + command.params['name'] = name unless name.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # @param [String] name + # The name of the operation resource to be deleted. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SpeechV1beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SpeechV1beta1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_operation(name, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/operations/{+name}', options) + command.response_representation = Google::Apis::SpeechV1beta1::Empty::Representation + command.response_class = Google::Apis::SpeechV1beta1::Empty + command.params['name'] = name unless name.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/sqladmin_v1beta4.rb b/generated/google/apis/sqladmin_v1beta4.rb index f67aa3f20..2e7b59e4b 100644 --- a/generated/google/apis/sqladmin_v1beta4.rb +++ b/generated/google/apis/sqladmin_v1beta4.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/sql/docs/reference/latest module SqladminV1beta4 VERSION = 'V1beta4' - REVISION = '20160712' + REVISION = '20160822' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/sqladmin_v1beta4/service.rb b/generated/google/apis/sqladmin_v1beta4/service.rb index e050ef722..cb06aaecb 100644 --- a/generated/google/apis/sqladmin_v1beta4/service.rb +++ b/generated/google/apis/sqladmin_v1beta4/service.rb @@ -136,7 +136,8 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new backup run on demand. + # Creates a new backup run on demand. This method is applicable only to Second + # Generation instances. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance diff --git a/generated/google/apis/vision_v1.rb b/generated/google/apis/vision_v1.rb index d00e17399..00c771650 100644 --- a/generated/google/apis/vision_v1.rb +++ b/generated/google/apis/vision_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1 VERSION = 'V1' - REVISION = '20160726' + REVISION = '20160822' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index 1c42b8262..e54f7ea41 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/youtube/partner/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20160809' + REVISION = '20160823' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner' diff --git a/lib/google/apis/version.rb b/lib/google/apis/version.rb index 94eef67a5..f1df88201 100644 --- a/lib/google/apis/version.rb +++ b/lib/google/apis/version.rb @@ -15,7 +15,7 @@ module Google module Apis # Client library version - VERSION = '0.9.12' + VERSION = '0.9.13' # Current operating system # @private diff --git a/script/generate b/script/generate index 172050e19..cabbe9ba2 100755 --- a/script/generate +++ b/script/generate @@ -63,6 +63,7 @@ API_IDS=(adexchangebuyer:v1.4 \ iam:v1 \ identitytoolkit:v3 \ kgsearch:v1 \ + language:v1beta1 \ licensing:v1 \ logging:v2beta1 \ manager:v1beta2 \ @@ -85,6 +86,7 @@ API_IDS=(adexchangebuyer:v1.4 \ script:v1 \ sheets:v4 \ siteVerification:v1 \ + speech:v1beta1 \ sqladmin:v1beta4 \ storage:v1 \ storagetransfer:v1 \