From 54d1b4778b023191438ba3141e60d6b23a46aba1 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Fri, 30 Nov 2018 00:36:50 +0000 Subject: [PATCH] Autogenerated update (2018-11-30) Delete: - speech_v1beta1 Update: - cloudfunctions_v1 - composer_v1 - container_v1 - dataproc_v1 - dataproc_v1beta2 - dialogflow_v2beta1 - firebasehosting_v1beta1 - monitoring_v3 - servicecontrol_v1 - testing_v1 - youtube_partner_v1 --- api_names_out.yaml | 210 +++ generated/google/apis/cloudfunctions_v1.rb | 2 +- .../google/apis/cloudfunctions_v1/classes.rb | 5 +- generated/google/apis/composer_v1.rb | 2 +- generated/google/apis/composer_v1/classes.rb | 9 + .../apis/composer_v1/representations.rb | 1 + generated/google/apis/container_v1.rb | 6 +- generated/google/apis/container_v1/classes.rb | 105 +- .../apis/container_v1/representations.rb | 39 + generated/google/apis/container_v1/service.rb | 4 +- generated/google/apis/dataproc_v1.rb | 2 +- generated/google/apis/dataproc_v1/classes.rb | 8 +- .../apis/dataproc_v1/representations.rb | 1 + generated/google/apis/dataproc_v1beta2.rb | 2 +- .../google/apis/dataproc_v1beta2/classes.rb | 8 +- .../apis/dataproc_v1beta2/representations.rb | 1 + generated/google/apis/dialogflow_v2beta1.rb | 2 +- .../google/apis/dialogflow_v2beta1/classes.rb | 21 +- .../dialogflow_v2beta1/representations.rb | 12 + .../google/apis/dialogflow_v2beta1/service.rb | 246 ++++ .../google/apis/firebasehosting_v1beta1.rb | 5 +- .../apis/firebasehosting_v1beta1/classes.rb | 36 +- .../apis/firebasehosting_v1beta1/service.rb | 3 +- generated/google/apis/monitoring_v3.rb | 2 +- .../google/apis/monitoring_v3/classes.rb | 21 +- generated/google/apis/servicecontrol_v1.rb | 2 +- .../google/apis/speech_v1beta1/classes.rb | 480 ------- .../apis/speech_v1beta1/representations.rb | 194 --- .../google/apis/speech_v1beta1/service.rb | 204 --- ...{speech_v1beta1.rb => speech_v1p1beta1.rb} | 12 +- .../google/apis/speech_v1p1beta1/classes.rb | 1263 +++++++++++++++++ .../apis/speech_v1p1beta1/representations.rb | 423 ++++++ .../google/apis/speech_v1p1beta1/service.rb | 492 +++++++ generated/google/apis/testing_v1.rb | 2 +- generated/google/apis/testing_v1/classes.rb | 49 + .../google/apis/testing_v1/representations.rb | 20 + generated/google/apis/youtube_partner_v1.rb | 2 +- 37 files changed, 2958 insertions(+), 938 deletions(-) delete mode 100644 generated/google/apis/speech_v1beta1/classes.rb delete mode 100644 generated/google/apis/speech_v1beta1/representations.rb delete mode 100644 generated/google/apis/speech_v1beta1/service.rb rename generated/google/apis/{speech_v1beta1.rb => speech_v1p1beta1.rb} (79%) create mode 100644 generated/google/apis/speech_v1p1beta1/classes.rb create mode 100644 generated/google/apis/speech_v1p1beta1/representations.rb create mode 100644 generated/google/apis/speech_v1p1beta1/service.rb diff --git a/api_names_out.yaml b/api_names_out.yaml index b967bd84c..0ca5837d2 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -19139,6 +19139,7 @@ "/composer:v1/SoftwareConfig/imageVersion": image_version "/composer:v1/SoftwareConfig/pypiPackages": pypi_packages "/composer:v1/SoftwareConfig/pypiPackages/pypi_package": pypi_package +"/composer:v1/SoftwareConfig/pythonVersion": python_version "/composer:v1/Status": status "/composer:v1/Status/code": code "/composer:v1/Status/details": details @@ -36340,6 +36341,8 @@ "/container:v1/Cluster": cluster "/container:v1/Cluster/addonsConfig": addons_config "/container:v1/Cluster/clusterIpv4Cidr": cluster_ipv4_cidr +"/container:v1/Cluster/conditions": conditions +"/container:v1/Cluster/conditions/condition": condition "/container:v1/Cluster/createTime": create_time "/container:v1/Cluster/currentMasterVersion": current_master_version "/container:v1/Cluster/currentNodeCount": current_node_count @@ -36486,12 +36489,16 @@ "/container:v1/NodeConfig/serviceAccount": service_account "/container:v1/NodeConfig/tags": tags "/container:v1/NodeConfig/tags/tag": tag +"/container:v1/NodeConfig/taints": taints +"/container:v1/NodeConfig/taints/taint": taint_prop "/container:v1/NodeManagement": node_management "/container:v1/NodeManagement/autoRepair": auto_repair "/container:v1/NodeManagement/autoUpgrade": auto_upgrade "/container:v1/NodeManagement/upgradeOptions": upgrade_options "/container:v1/NodePool": node_pool "/container:v1/NodePool/autoscaling": autoscaling +"/container:v1/NodePool/conditions": conditions +"/container:v1/NodePool/conditions/condition": condition "/container:v1/NodePool/config": config "/container:v1/NodePool/initialNodeCount": initial_node_count "/container:v1/NodePool/instanceGroupUrls": instance_group_urls @@ -36506,11 +36513,19 @@ "/container:v1/NodePoolAutoscaling/enabled": enabled "/container:v1/NodePoolAutoscaling/maxNodeCount": max_node_count "/container:v1/NodePoolAutoscaling/minNodeCount": min_node_count +"/container:v1/NodeTaint": node_taint +"/container:v1/NodeTaint/effect": effect +"/container:v1/NodeTaint/key": key +"/container:v1/NodeTaint/value": value "/container:v1/Operation": operation +"/container:v1/Operation/clusterConditions": cluster_conditions +"/container:v1/Operation/clusterConditions/cluster_condition": cluster_condition "/container:v1/Operation/detail": detail "/container:v1/Operation/endTime": end_time "/container:v1/Operation/location": location "/container:v1/Operation/name": name +"/container:v1/Operation/nodepoolConditions": nodepool_conditions +"/container:v1/Operation/nodepoolConditions/nodepool_condition": nodepool_condition "/container:v1/Operation/operationType": operation_type "/container:v1/Operation/selfLink": self_link "/container:v1/Operation/startTime": start_time @@ -36624,6 +36639,9 @@ "/container:v1/StartIPRotationRequest/projectId": project_id "/container:v1/StartIPRotationRequest/rotateCredentials": rotate_credentials "/container:v1/StartIPRotationRequest/zone": zone +"/container:v1/StatusCondition": status_condition +"/container:v1/StatusCondition/code": code +"/container:v1/StatusCondition/message": message "/container:v1/UpdateClusterRequest": update_cluster_request "/container:v1/UpdateClusterRequest/clusterId": cluster_id "/container:v1/UpdateClusterRequest/name": name @@ -41673,6 +41691,7 @@ "/dataproc:v1/WorkflowGraph/nodes/node": node "/dataproc:v1/WorkflowMetadata": workflow_metadata "/dataproc:v1/WorkflowMetadata/clusterName": cluster_name +"/dataproc:v1/WorkflowMetadata/clusterUuid": cluster_uuid "/dataproc:v1/WorkflowMetadata/createCluster": create_cluster "/dataproc:v1/WorkflowMetadata/deleteCluster": delete_cluster "/dataproc:v1/WorkflowMetadata/endTime": end_time @@ -42196,6 +42215,7 @@ "/dataproc:v1beta2/WorkflowGraph/nodes/node": node "/dataproc:v1beta2/WorkflowMetadata": workflow_metadata "/dataproc:v1beta2/WorkflowMetadata/clusterName": cluster_name +"/dataproc:v1beta2/WorkflowMetadata/clusterUuid": cluster_uuid "/dataproc:v1beta2/WorkflowMetadata/createCluster": create_cluster "/dataproc:v1beta2/WorkflowMetadata/deleteCluster": delete_cluster "/dataproc:v1beta2/WorkflowMetadata/endTime": end_time @@ -58812,6 +58832,7 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/webhookPayload": webhook_payload "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/webhookPayload/webhook_payload": webhook_payload "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/webhookSource": webhook_source +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1ReloadDocumentRequest": google_cloud_dialogflow_v2beta1_reload_document_request "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1RestoreAgentRequest": google_cloud_dialogflow_v2beta1_restore_agent_request "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1RestoreAgentRequest/agentContent": agent_content "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1RestoreAgentRequest/agentUri": agent_uri @@ -59266,12 +59287,20 @@ "/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.list/pageSize": page_size "/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.list/pageToken": page_token "/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.list/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.patch": patch_project_agent_knowledge_basis_document +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.patch/name": name +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.patch/updateMask": update_mask +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.reload": reload_project_agent_knowledge_basis_document +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.reload/name": name "/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.get": get_project_agent_knowledge_basis "/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.get/name": name "/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.list": list_project_agent_knowledge_bases "/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.list/pageSize": page_size "/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.list/pageToken": page_token "/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.list/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.patch": patch_project_agent_knowledge_basis +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.patch/name": name +"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.patch/updateMask": update_mask "/dialogflow:v2beta1/dialogflow.projects.agent.restore": restore_agent "/dialogflow:v2beta1/dialogflow.projects.agent.restore/parent": parent "/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.contexts.create": create_project_agent_runtime_session_context @@ -59448,12 +59477,20 @@ "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.list/pageSize": page_size "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.list/pageToken": page_token "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.list/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.patch": patch_project_knowledge_basis_document +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.patch/name": name +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.patch/updateMask": update_mask +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.reload": reload_project_knowledge_basis_document +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.reload/name": name "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.get": get_project_knowledge_basis "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.get/name": name "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.list": list_project_knowledge_bases "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.list/pageSize": page_size "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.list/pageToken": page_token "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.list/parent": parent +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.patch": patch_project_knowledge_basis +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.patch/name": name +"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.patch/updateMask": update_mask "/dialogflow:v2beta1/dialogflow.projects.operations.get": get_project_operation "/dialogflow:v2beta1/dialogflow.projects.operations.get/name": name "/dialogflow:v2beta1/dialogflow.projects.phoneNumberOrders.cancel": cancel_project_phone_number_order @@ -85471,6 +85508,174 @@ "/speech:v1beta1/speech.operations.list/pageToken": page_token "/speech:v1beta1/speech.speech.asyncrecognize": async_recognize_speech "/speech:v1beta1/speech.speech.syncrecognize": sync_recognize_speech +"/speech:v1p1beta1/DataErrors": data_errors +"/speech:v1p1beta1/DataErrors/count": count +"/speech:v1p1beta1/DataErrors/errorType": error_type +"/speech:v1p1beta1/DataStats": data_stats +"/speech:v1p1beta1/DataStats/dataErrors": data_errors +"/speech:v1p1beta1/DataStats/dataErrors/data_error": data_error +"/speech:v1p1beta1/DataStats/testExampleCount": test_example_count +"/speech:v1p1beta1/DataStats/trainingExampleCount": training_example_count +"/speech:v1p1beta1/Dataset": dataset +"/speech:v1p1beta1/Dataset/blockingOperationIds": blocking_operation_ids +"/speech:v1p1beta1/Dataset/blockingOperationIds/blocking_operation_id": blocking_operation_id +"/speech:v1p1beta1/Dataset/bucketName": bucket_name +"/speech:v1p1beta1/Dataset/createTime": create_time +"/speech:v1p1beta1/Dataset/dataProcessingRegion": data_processing_region +"/speech:v1p1beta1/Dataset/dataStats": data_stats +"/speech:v1p1beta1/Dataset/displayName": display_name +"/speech:v1p1beta1/Dataset/hasSufficientData": has_sufficient_data +"/speech:v1p1beta1/Dataset/languageCode": language_code +"/speech:v1p1beta1/Dataset/models": models +"/speech:v1p1beta1/Dataset/models/model": model +"/speech:v1p1beta1/Dataset/name": name +"/speech:v1p1beta1/Dataset/updateTime": update_time +"/speech:v1p1beta1/Dataset/uri": uri +"/speech:v1p1beta1/Dataset/useLoggedData": use_logged_data +"/speech:v1p1beta1/DeployModelRequest": deploy_model_request +"/speech:v1p1beta1/EvaluateModelRequest": evaluate_model_request +"/speech:v1p1beta1/EvaluateModelResponse": evaluate_model_response +"/speech:v1p1beta1/EvaluateModelResponse/isEnhancedModel": is_enhanced_model +"/speech:v1p1beta1/EvaluateModelResponse/modelType": model_type +"/speech:v1p1beta1/EvaluateModelResponse/wordCount": word_count +"/speech:v1p1beta1/EvaluateModelResponse/wordErrorRate": word_error_rate +"/speech:v1p1beta1/ListDatasetsResponse": list_datasets_response +"/speech:v1p1beta1/ListDatasetsResponse/datasets": datasets +"/speech:v1p1beta1/ListDatasetsResponse/datasets/dataset": dataset +"/speech:v1p1beta1/ListDatasetsResponse/nextPageToken": next_page_token +"/speech:v1p1beta1/ListLogDataStatsResponse": list_log_data_stats_response +"/speech:v1p1beta1/ListLogDataStatsResponse/logDataEnabled": log_data_enabled +"/speech:v1p1beta1/ListLogDataStatsResponse/logDataStats": log_data_stats +"/speech:v1p1beta1/ListLogDataStatsResponse/logDataStats/log_data_stat": log_data_stat +"/speech:v1p1beta1/ListLogDataStatsResponse/totalCount": total_count +"/speech:v1p1beta1/ListModelsResponse": list_models_response +"/speech:v1p1beta1/ListModelsResponse/models": models +"/speech:v1p1beta1/ListModelsResponse/models/model": model +"/speech:v1p1beta1/ListModelsResponse/nextPageToken": next_page_token +"/speech:v1p1beta1/LogBucketStats": log_bucket_stats +"/speech:v1p1beta1/LogBucketStats/bucketName": bucket_name +"/speech:v1p1beta1/LogBucketStats/count": count +"/speech:v1p1beta1/LongRunningRecognizeRequest": long_running_recognize_request +"/speech:v1p1beta1/LongRunningRecognizeRequest/audio": audio +"/speech:v1p1beta1/LongRunningRecognizeRequest/config": config +"/speech:v1p1beta1/Model": model +"/speech:v1p1beta1/Model/createTime": create_time +"/speech:v1p1beta1/Model/displayName": display_name +"/speech:v1p1beta1/Model/evaluateModelResponses": evaluate_model_responses +"/speech:v1p1beta1/Model/evaluateModelResponses/evaluate_model_response": evaluate_model_response +"/speech:v1p1beta1/Model/name": name +"/speech:v1p1beta1/Model/trainingType": training_type +"/speech:v1p1beta1/Operation": operation +"/speech:v1p1beta1/Operation/done": done +"/speech:v1p1beta1/Operation/error": error +"/speech:v1p1beta1/Operation/metadata": metadata +"/speech:v1p1beta1/Operation/metadata/metadatum": metadatum +"/speech:v1p1beta1/Operation/name": name +"/speech:v1p1beta1/Operation/response": response +"/speech:v1p1beta1/Operation/response/response": response +"/speech:v1p1beta1/RecognitionAudio": recognition_audio +"/speech:v1p1beta1/RecognitionAudio/content": content +"/speech:v1p1beta1/RecognitionAudio/uri": uri +"/speech:v1p1beta1/RecognitionConfig": recognition_config +"/speech:v1p1beta1/RecognitionConfig/alternativeLanguageCodes": alternative_language_codes +"/speech:v1p1beta1/RecognitionConfig/alternativeLanguageCodes/alternative_language_code": alternative_language_code +"/speech:v1p1beta1/RecognitionConfig/audioChannelCount": audio_channel_count +"/speech:v1p1beta1/RecognitionConfig/diarizationSpeakerCount": diarization_speaker_count +"/speech:v1p1beta1/RecognitionConfig/enableAutomaticPunctuation": enable_automatic_punctuation +"/speech:v1p1beta1/RecognitionConfig/enableSeparateRecognitionPerChannel": enable_separate_recognition_per_channel +"/speech:v1p1beta1/RecognitionConfig/enableSpeakerDiarization": enable_speaker_diarization +"/speech:v1p1beta1/RecognitionConfig/enableWordConfidence": enable_word_confidence +"/speech:v1p1beta1/RecognitionConfig/enableWordTimeOffsets": enable_word_time_offsets +"/speech:v1p1beta1/RecognitionConfig/encoding": encoding +"/speech:v1p1beta1/RecognitionConfig/languageCode": language_code +"/speech:v1p1beta1/RecognitionConfig/maxAlternatives": max_alternatives +"/speech:v1p1beta1/RecognitionConfig/metadata": metadata +"/speech:v1p1beta1/RecognitionConfig/model": model +"/speech:v1p1beta1/RecognitionConfig/profanityFilter": profanity_filter +"/speech:v1p1beta1/RecognitionConfig/sampleRateHertz": sample_rate_hertz +"/speech:v1p1beta1/RecognitionConfig/speechContexts": speech_contexts +"/speech:v1p1beta1/RecognitionConfig/speechContexts/speech_context": speech_context +"/speech:v1p1beta1/RecognitionConfig/useEnhanced": use_enhanced +"/speech:v1p1beta1/RecognitionMetadata": recognition_metadata +"/speech:v1p1beta1/RecognitionMetadata/audioTopic": audio_topic +"/speech:v1p1beta1/RecognitionMetadata/industryNaicsCodeOfAudio": industry_naics_code_of_audio +"/speech:v1p1beta1/RecognitionMetadata/interactionType": interaction_type +"/speech:v1p1beta1/RecognitionMetadata/microphoneDistance": microphone_distance +"/speech:v1p1beta1/RecognitionMetadata/obfuscatedId": obfuscated_id +"/speech:v1p1beta1/RecognitionMetadata/originalMediaType": original_media_type +"/speech:v1p1beta1/RecognitionMetadata/originalMimeType": original_mime_type +"/speech:v1p1beta1/RecognitionMetadata/recordingDeviceName": recording_device_name +"/speech:v1p1beta1/RecognitionMetadata/recordingDeviceType": recording_device_type +"/speech:v1p1beta1/RecognitionMetadata/tags": tags +"/speech:v1p1beta1/RecognitionMetadata/tags/tag": tag +"/speech:v1p1beta1/RecognizeRequest": recognize_request +"/speech:v1p1beta1/RecognizeRequest/audio": audio +"/speech:v1p1beta1/RecognizeRequest/config": config +"/speech:v1p1beta1/RecognizeResponse": recognize_response +"/speech:v1p1beta1/RecognizeResponse/results": results +"/speech:v1p1beta1/RecognizeResponse/results/result": result +"/speech:v1p1beta1/RefreshDataRequest": refresh_data_request +"/speech:v1p1beta1/RefreshDataRequest/uri": uri +"/speech:v1p1beta1/SpeechContext": speech_context +"/speech:v1p1beta1/SpeechContext/phrases": phrases +"/speech:v1p1beta1/SpeechContext/phrases/phrase": phrase +"/speech:v1p1beta1/SpeechContext/strength": strength +"/speech:v1p1beta1/SpeechRecognitionAlternative": speech_recognition_alternative +"/speech:v1p1beta1/SpeechRecognitionAlternative/confidence": confidence +"/speech:v1p1beta1/SpeechRecognitionAlternative/transcript": transcript +"/speech:v1p1beta1/SpeechRecognitionAlternative/words": words +"/speech:v1p1beta1/SpeechRecognitionAlternative/words/word": word +"/speech:v1p1beta1/SpeechRecognitionResult": speech_recognition_result +"/speech:v1p1beta1/SpeechRecognitionResult/alternatives": alternatives +"/speech:v1p1beta1/SpeechRecognitionResult/alternatives/alternative": alternative +"/speech:v1p1beta1/SpeechRecognitionResult/channelTag": channel_tag +"/speech:v1p1beta1/SpeechRecognitionResult/languageCode": language_code +"/speech:v1p1beta1/Status": status +"/speech:v1p1beta1/Status/code": code +"/speech:v1p1beta1/Status/details": details +"/speech:v1p1beta1/Status/details/detail": detail +"/speech:v1p1beta1/Status/details/detail/detail": detail +"/speech:v1p1beta1/Status/message": message +"/speech:v1p1beta1/WordInfo": word_info +"/speech:v1p1beta1/WordInfo/confidence": confidence +"/speech:v1p1beta1/WordInfo/endTime": end_time +"/speech:v1p1beta1/WordInfo/speakerTag": speaker_tag +"/speech:v1p1beta1/WordInfo/startTime": start_time +"/speech:v1p1beta1/WordInfo/word": word +"/speech:v1p1beta1/fields": fields +"/speech:v1p1beta1/key": key +"/speech:v1p1beta1/quotaUser": quota_user +"/speech:v1p1beta1/speech.operations.get": get_operation +"/speech:v1p1beta1/speech.operations.get/name": name +"/speech:v1p1beta1/speech.projects.locations.datasets.create": create_project_location_dataset +"/speech:v1p1beta1/speech.projects.locations.datasets.create/parent": parent +"/speech:v1p1beta1/speech.projects.locations.datasets.get": get_project_location_dataset +"/speech:v1p1beta1/speech.projects.locations.datasets.get/includeModelInfo": include_model_info +"/speech:v1p1beta1/speech.projects.locations.datasets.get/name": name +"/speech:v1p1beta1/speech.projects.locations.datasets.list": list_project_location_datasets +"/speech:v1p1beta1/speech.projects.locations.datasets.list/filter": filter +"/speech:v1p1beta1/speech.projects.locations.datasets.list/includeModelInfo": include_model_info +"/speech:v1p1beta1/speech.projects.locations.datasets.list/pageSize": page_size +"/speech:v1p1beta1/speech.projects.locations.datasets.list/pageToken": page_token +"/speech:v1p1beta1/speech.projects.locations.datasets.list/parent": parent +"/speech:v1p1beta1/speech.projects.locations.datasets.refreshData": refresh_dataset_data +"/speech:v1p1beta1/speech.projects.locations.datasets.refreshData/name": name +"/speech:v1p1beta1/speech.projects.locations.log_data_stats.list": list_project_location_log_data_stats +"/speech:v1p1beta1/speech.projects.locations.log_data_stats.list/parent": parent +"/speech:v1p1beta1/speech.projects.locations.models.create": create_project_location_model +"/speech:v1p1beta1/speech.projects.locations.models.create/name": name +"/speech:v1p1beta1/speech.projects.locations.models.create/parent": parent +"/speech:v1p1beta1/speech.projects.locations.models.deploy": deploy_model +"/speech:v1p1beta1/speech.projects.locations.models.deploy/name": name +"/speech:v1p1beta1/speech.projects.locations.models.evaluate": evaluate_model +"/speech:v1p1beta1/speech.projects.locations.models.evaluate/name": name +"/speech:v1p1beta1/speech.projects.locations.models.list": list_project_location_models +"/speech:v1p1beta1/speech.projects.locations.models.list/filter": filter +"/speech:v1p1beta1/speech.projects.locations.models.list/pageSize": page_size +"/speech:v1p1beta1/speech.projects.locations.models.list/pageToken": page_token +"/speech:v1p1beta1/speech.projects.locations.models.list/parent": parent +"/speech:v1p1beta1/speech.speech.longrunningrecognize": longrunningrecognize_speech +"/speech:v1p1beta1/speech.speech.recognize": recognize_speech "/sqladmin:v1beta3/BackupConfiguration": backup_configuration "/sqladmin:v1beta3/BackupConfiguration/binaryLogEnabled": binary_log_enabled "/sqladmin:v1beta3/BackupConfiguration/enabled": enabled @@ -88876,6 +89081,7 @@ "/testing:v1/AndroidDeviceList/androidDevices/android_device": android_device "/testing:v1/AndroidInstrumentationTest": android_instrumentation_test "/testing:v1/AndroidInstrumentationTest/appApk": app_apk +"/testing:v1/AndroidInstrumentationTest/appBundle": app_bundle "/testing:v1/AndroidInstrumentationTest/appPackageId": app_package_id "/testing:v1/AndroidInstrumentationTest/orchestratorOption": orchestrator_option "/testing:v1/AndroidInstrumentationTest/testApk": test_apk @@ -88913,6 +89119,7 @@ "/testing:v1/AndroidModel/videoRecordingNotSupported": video_recording_not_supported "/testing:v1/AndroidRoboTest": android_robo_test "/testing:v1/AndroidRoboTest/appApk": app_apk +"/testing:v1/AndroidRoboTest/appBundle": app_bundle "/testing:v1/AndroidRoboTest/appInitialActivity": app_initial_activity "/testing:v1/AndroidRoboTest/appPackageId": app_package_id "/testing:v1/AndroidRoboTest/maxDepth": max_depth @@ -88929,6 +89136,7 @@ "/testing:v1/AndroidRuntimeConfiguration/orientations/orientation": orientation "/testing:v1/AndroidTestLoop": android_test_loop "/testing:v1/AndroidTestLoop/appApk": app_apk +"/testing:v1/AndroidTestLoop/appBundle": app_bundle "/testing:v1/AndroidTestLoop/appPackageId": app_package_id "/testing:v1/AndroidTestLoop/scenarioLabels": scenario_labels "/testing:v1/AndroidTestLoop/scenarioLabels/scenario_label": scenario_label @@ -88955,6 +89163,8 @@ "/testing:v1/ApkManifest/maxSdkVersion": max_sdk_version "/testing:v1/ApkManifest/minSdkVersion": min_sdk_version "/testing:v1/ApkManifest/packageName": package_name +"/testing:v1/AppBundle": app_bundle +"/testing:v1/AppBundle/bundleLocation": bundle_location "/testing:v1/CancelTestMatrixResponse": cancel_test_matrix_response "/testing:v1/CancelTestMatrixResponse/testState": test_state "/testing:v1/ClientInfo": client_info diff --git a/generated/google/apis/cloudfunctions_v1.rb b/generated/google/apis/cloudfunctions_v1.rb index 9c041b781..2a38b9e11 100644 --- a/generated/google/apis/cloudfunctions_v1.rb +++ b/generated/google/apis/cloudfunctions_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/functions module CloudfunctionsV1 VERSION = 'V1' - REVISION = '20181018' + REVISION = '20181121' # 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/cloudfunctions_v1/classes.rb b/generated/google/apis/cloudfunctions_v1/classes.rb index 7872c473d..5c42175d4 100644 --- a/generated/google/apis/cloudfunctions_v1/classes.rb +++ b/generated/google/apis/cloudfunctions_v1/classes.rb @@ -265,7 +265,6 @@ module Google # @return [String] attr_accessor :entry_point - # **Beta Feature** # Environment variables that shall be available during function execution. # Corresponds to the JSON property `environmentVariables` # @return [Hash] @@ -891,7 +890,7 @@ module Google attr_accessor :update_time # Version id of the function created or updated by an API call. - # This field is only pupulated for Create and Update operations. + # This field is only populated for Create and Update operations. # Corresponds to the JSON property `versionId` # @return [Fixnum] attr_accessor :version_id @@ -936,7 +935,7 @@ module Google attr_accessor :update_time # Version id of the function created or updated by an API call. - # This field is only pupulated for Create and Update operations. + # This field is only populated for Create and Update operations. # Corresponds to the JSON property `versionId` # @return [Fixnum] attr_accessor :version_id diff --git a/generated/google/apis/composer_v1.rb b/generated/google/apis/composer_v1.rb index cf1043930..3edd11a2e 100644 --- a/generated/google/apis/composer_v1.rb +++ b/generated/google/apis/composer_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/composer/ module ComposerV1 VERSION = 'V1' - REVISION = '20181001' + REVISION = '20181120' # 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/composer_v1/classes.rb b/generated/google/apis/composer_v1/classes.rb index 05a230346..14b65a695 100644 --- a/generated/google/apis/composer_v1/classes.rb +++ b/generated/google/apis/composer_v1/classes.rb @@ -552,6 +552,14 @@ module Google # @return [Hash] attr_accessor :pypi_packages + # Optional. The major version of Python used to run the Apache Airflow + # scheduler, worker, and webserver processes. + # Can be set to '2' or '3'. If not specified, the default is '2'. Cannot be + # updated. + # Corresponds to the JSON property `pythonVersion` + # @return [String] + attr_accessor :python_version + def initialize(**args) update!(**args) end @@ -562,6 +570,7 @@ module Google @env_variables = args[:env_variables] if args.key?(:env_variables) @image_version = args[:image_version] if args.key?(:image_version) @pypi_packages = args[:pypi_packages] if args.key?(:pypi_packages) + @python_version = args[:python_version] if args.key?(:python_version) end end diff --git a/generated/google/apis/composer_v1/representations.rb b/generated/google/apis/composer_v1/representations.rb index 6197ea410..b6b71bdfe 100644 --- a/generated/google/apis/composer_v1/representations.rb +++ b/generated/google/apis/composer_v1/representations.rb @@ -179,6 +179,7 @@ module Google hash :env_variables, as: 'envVariables' property :image_version, as: 'imageVersion' hash :pypi_packages, as: 'pypiPackages' + property :python_version, as: 'pythonVersion' end end diff --git a/generated/google/apis/container_v1.rb b/generated/google/apis/container_v1.rb index c7c92442a..cf4712c89 100644 --- a/generated/google/apis/container_v1.rb +++ b/generated/google/apis/container_v1.rb @@ -20,13 +20,13 @@ module Google module Apis # Kubernetes Engine API # - # The Google Kubernetes Engine API is used for building and managing container - # based applications, powered by the open source Kubernetes technology. + # Builds and manages container-based applications, powered by the open source + # Kubernetes technology. # # @see https://cloud.google.com/container-engine/ module ContainerV1 VERSION = 'V1' - REVISION = '20180917' + REVISION = '20181109' # 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/container_v1/classes.rb b/generated/google/apis/container_v1/classes.rb index 6e394c806..4127c968d 100644 --- a/generated/google/apis/container_v1/classes.rb +++ b/generated/google/apis/container_v1/classes.rb @@ -226,6 +226,11 @@ module Google # @return [String] attr_accessor :cluster_ipv4_cidr + # Which conditions caused the current cluster state. + # Corresponds to the JSON property `conditions` + # @return [Array] + attr_accessor :conditions + # [Output only] The time the cluster was created, in # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. # Corresponds to the JSON property `createTime` @@ -237,7 +242,8 @@ module Google # @return [String] attr_accessor :current_master_version - # [Output only] The number of nodes currently in the cluster. + # [Output only] The number of nodes currently in the cluster. Deprecated. + # Call Kubernetes API directly to retrieve node information. # Corresponds to the JSON property `currentNodeCount` # @return [Fixnum] attr_accessor :current_node_count @@ -340,7 +346,7 @@ module Google attr_accessor :location # The list of Google Compute Engine - # [locations](/compute/docs/zones#available) in which the cluster's nodes + # [zones](/compute/docs/zones#available) in which the cluster's nodes # should be located. # Corresponds to the JSON property `locations` # @return [Array] @@ -490,6 +496,7 @@ module Google def update!(**args) @addons_config = args[:addons_config] if args.key?(:addons_config) @cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr) + @conditions = args[:conditions] if args.key?(:conditions) @create_time = args[:create_time] if args.key?(:create_time) @current_master_version = args[:current_master_version] if args.key?(:current_master_version) @current_node_count = args[:current_node_count] if args.key?(:current_node_count) @@ -548,7 +555,7 @@ module Google attr_accessor :desired_image_type # The desired list of Google Compute Engine - # [locations](/compute/docs/zones#available) in which the cluster's nodes + # [zones](/compute/docs/zones#available) in which the cluster's nodes # should be located. Changing the locations a cluster is in will result # in nodes being either created or removed from the cluster, depending on # whether locations are being added or removed. @@ -1184,8 +1191,8 @@ module Google attr_accessor :password # The username to use for HTTP basic authentication to the master endpoint. - # For clusters v1.6.0 and later, you can disable basic authentication by - # providing an empty username. + # For clusters v1.6.0 and later, basic authentication can be disabled by + # leaving username unspecified (or setting it to the empty string). # Corresponds to the JSON property `username` # @return [String] attr_accessor :username @@ -1447,6 +1454,13 @@ module Google # @return [Array] attr_accessor :tags + # List of kubernetes taints to be applied to each node. + # For more information, including usage and the valid values, see: + # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ + # Corresponds to the JSON property `taints` + # @return [Array] + attr_accessor :taints + def initialize(**args) update!(**args) end @@ -1466,6 +1480,7 @@ module Google @preemptible = args[:preemptible] if args.key?(:preemptible) @service_account = args[:service_account] if args.key?(:service_account) @tags = args[:tags] if args.key?(:tags) + @taints = args[:taints] if args.key?(:taints) end end @@ -1524,6 +1539,11 @@ module Google # @return [Google::Apis::ContainerV1::NodePoolAutoscaling] attr_accessor :autoscaling + # Which conditions caused the current node pool state. + # Corresponds to the JSON property `conditions` + # @return [Array] + attr_accessor :conditions + # Parameters that describe the nodes in a cluster. # Corresponds to the JSON property `config` # @return [Google::Apis::ContainerV1::NodeConfig] @@ -1583,6 +1603,7 @@ module Google # Update properties of this object def update!(**args) @autoscaling = args[:autoscaling] if args.key?(:autoscaling) + @conditions = args[:conditions] if args.key?(:conditions) @config = args[:config] if args.key?(:config) @initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count) @instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls) @@ -1630,11 +1651,50 @@ module Google end end + # Kubernetes taint is comprised of three fields: key, value, and effect. Effect + # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. + # For more information, including usage and the valid values, see: + # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ + class NodeTaint + include Google::Apis::Core::Hashable + + # Effect for taint. + # Corresponds to the JSON property `effect` + # @return [String] + attr_accessor :effect + + # Key for taint. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Value for taint. + # 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) + @effect = args[:effect] if args.key?(:effect) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + # This operation resource represents operations that may have happened or are # happening on the cluster. All fields are output only. class Operation include Google::Apis::Core::Hashable + # Which conditions caused the current cluster state. + # Corresponds to the JSON property `clusterConditions` + # @return [Array] + attr_accessor :cluster_conditions + # Detailed operation progress, if available. # Corresponds to the JSON property `detail` # @return [String] @@ -1659,6 +1719,11 @@ module Google # @return [String] attr_accessor :name + # Which conditions caused the current node pool state. + # Corresponds to the JSON property `nodepoolConditions` + # @return [Array] + attr_accessor :nodepool_conditions + # The operation type. # Corresponds to the JSON property `operationType` # @return [String] @@ -1704,10 +1769,12 @@ module Google # Update properties of this object def update!(**args) + @cluster_conditions = args[:cluster_conditions] if args.key?(:cluster_conditions) @detail = args[:detail] if args.key?(:detail) @end_time = args[:end_time] if args.key?(:end_time) @location = args[:location] if args.key?(:location) @name = args[:name] if args.key?(:name) + @nodepool_conditions = args[:nodepool_conditions] if args.key?(:nodepool_conditions) @operation_type = args[:operation_type] if args.key?(:operation_type) @self_link = args[:self_link] if args.key?(:self_link) @start_time = args[:start_time] if args.key?(:start_time) @@ -2042,7 +2109,7 @@ module Google attr_accessor :cluster_id # The desired list of Google Compute Engine - # [locations](/compute/docs/zones#available) in which the cluster's nodes + # [zones](/compute/docs/zones#available) in which the cluster's nodes # should be located. Changing the locations a cluster is in will result # in nodes being either created or removed from the cluster, depending on # whether locations are being added or removed. @@ -2579,6 +2646,32 @@ module Google end end + # StatusCondition describes why a cluster or a node pool has a certain status + # (e.g., ERROR or DEGRADED). + class StatusCondition + include Google::Apis::Core::Hashable + + # Machine-friendly representation of the condition + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # Human-friendly representation of the condition + # 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) + @message = args[:message] if args.key?(:message) + end + end + # UpdateClusterRequest updates the settings of a cluster. class UpdateClusterRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/container_v1/representations.rb b/generated/google/apis/container_v1/representations.rb index b8ee7724e..ea71f5c66 100644 --- a/generated/google/apis/container_v1/representations.rb +++ b/generated/google/apis/container_v1/representations.rb @@ -214,6 +214,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class NodeTaint + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Operation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -316,6 +322,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class StatusCondition + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UpdateClusterRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -395,6 +407,8 @@ module Google property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr' + collection :conditions, as: 'conditions', class: Google::Apis::ContainerV1::StatusCondition, decorator: Google::Apis::ContainerV1::StatusCondition::Representation + property :create_time, as: 'createTime' property :current_master_version, as: 'currentMasterVersion' property :current_node_count, as: 'currentNodeCount' @@ -658,6 +672,8 @@ module Google property :preemptible, as: 'preemptible' property :service_account, as: 'serviceAccount' collection :tags, as: 'tags' + collection :taints, as: 'taints', class: Google::Apis::ContainerV1::NodeTaint, decorator: Google::Apis::ContainerV1::NodeTaint::Representation + end end @@ -676,6 +692,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation + collection :conditions, as: 'conditions', class: Google::Apis::ContainerV1::StatusCondition, decorator: Google::Apis::ContainerV1::StatusCondition::Representation + property :config, as: 'config', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation property :initial_node_count, as: 'initialNodeCount' @@ -699,13 +717,26 @@ module Google end end + class NodeTaint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :effect, as: 'effect' + property :key, as: 'key' + property :value, as: 'value' + end + end + class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :cluster_conditions, as: 'clusterConditions', class: Google::Apis::ContainerV1::StatusCondition, decorator: Google::Apis::ContainerV1::StatusCondition::Representation + property :detail, as: 'detail' property :end_time, as: 'endTime' property :location, as: 'location' property :name, as: 'name' + collection :nodepool_conditions, as: 'nodepoolConditions', class: Google::Apis::ContainerV1::StatusCondition, decorator: Google::Apis::ContainerV1::StatusCondition::Representation + property :operation_type, as: 'operationType' property :self_link, as: 'selfLink' property :start_time, as: 'startTime' @@ -903,6 +934,14 @@ module Google end end + class StatusCondition + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + property :message, as: 'message' + end + end + class UpdateClusterRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/container_v1/service.rb b/generated/google/apis/container_v1/service.rb index cbd673eb6..58d1a9eda 100644 --- a/generated/google/apis/container_v1/service.rb +++ b/generated/google/apis/container_v1/service.rb @@ -22,8 +22,8 @@ module Google module ContainerV1 # Kubernetes Engine API # - # The Google Kubernetes Engine API is used for building and managing container - # based applications, powered by the open source Kubernetes technology. + # Builds and manages container-based applications, powered by the open source + # Kubernetes technology. # # @example # require 'google/apis/container_v1' diff --git a/generated/google/apis/dataproc_v1.rb b/generated/google/apis/dataproc_v1.rb index 6a2b89f39..ea8bf2f20 100644 --- a/generated/google/apis/dataproc_v1.rb +++ b/generated/google/apis/dataproc_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1 VERSION = 'V1' - REVISION = '20181105' + REVISION = '20181126' # 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/dataproc_v1/classes.rb b/generated/google/apis/dataproc_v1/classes.rb index 4bd3bce46..506df6040 100644 --- a/generated/google/apis/dataproc_v1/classes.rb +++ b/generated/google/apis/dataproc_v1/classes.rb @@ -2417,11 +2417,16 @@ module Google class WorkflowMetadata include Google::Apis::Core::Hashable - # Output only. The name of the managed cluster. + # Output only. The name of the target cluster. # Corresponds to the JSON property `clusterName` # @return [String] attr_accessor :cluster_name + # Output only. The UUID of target cluster. + # Corresponds to the JSON property `clusterUuid` + # @return [String] + attr_accessor :cluster_uuid + # The cluster operation triggered by a workflow. # Corresponds to the JSON property `createCluster` # @return [Google::Apis::DataprocV1::ClusterOperation] @@ -2474,6 +2479,7 @@ module Google # Update properties of this object def update!(**args) @cluster_name = args[:cluster_name] if args.key?(:cluster_name) + @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid) @create_cluster = args[:create_cluster] if args.key?(:create_cluster) @delete_cluster = args[:delete_cluster] if args.key?(:delete_cluster) @end_time = args[:end_time] if args.key?(:end_time) diff --git a/generated/google/apis/dataproc_v1/representations.rb b/generated/google/apis/dataproc_v1/representations.rb index fa0f12d0f..90048bad3 100644 --- a/generated/google/apis/dataproc_v1/representations.rb +++ b/generated/google/apis/dataproc_v1/representations.rb @@ -967,6 +967,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :cluster_name, as: 'clusterName' + property :cluster_uuid, as: 'clusterUuid' property :create_cluster, as: 'createCluster', class: Google::Apis::DataprocV1::ClusterOperation, decorator: Google::Apis::DataprocV1::ClusterOperation::Representation property :delete_cluster, as: 'deleteCluster', class: Google::Apis::DataprocV1::ClusterOperation, decorator: Google::Apis::DataprocV1::ClusterOperation::Representation diff --git a/generated/google/apis/dataproc_v1beta2.rb b/generated/google/apis/dataproc_v1beta2.rb index 17dded8c0..6643115a8 100644 --- a/generated/google/apis/dataproc_v1beta2.rb +++ b/generated/google/apis/dataproc_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1beta2 VERSION = 'V1beta2' - REVISION = '20181114' + REVISION = '20181126' # 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/dataproc_v1beta2/classes.rb b/generated/google/apis/dataproc_v1beta2/classes.rb index ad9a54b15..cc9411f49 100644 --- a/generated/google/apis/dataproc_v1beta2/classes.rb +++ b/generated/google/apis/dataproc_v1beta2/classes.rb @@ -2588,11 +2588,16 @@ module Google class WorkflowMetadata include Google::Apis::Core::Hashable - # Output only. The name of the managed cluster. + # Output only. The name of the target cluster. # Corresponds to the JSON property `clusterName` # @return [String] attr_accessor :cluster_name + # Output only. The UUID of target cluster. + # Corresponds to the JSON property `clusterUuid` + # @return [String] + attr_accessor :cluster_uuid + # The cluster operation triggered by a workflow. # Corresponds to the JSON property `createCluster` # @return [Google::Apis::DataprocV1beta2::ClusterOperation] @@ -2645,6 +2650,7 @@ module Google # Update properties of this object def update!(**args) @cluster_name = args[:cluster_name] if args.key?(:cluster_name) + @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid) @create_cluster = args[:create_cluster] if args.key?(:create_cluster) @delete_cluster = args[:delete_cluster] if args.key?(:delete_cluster) @end_time = args[:end_time] if args.key?(:end_time) diff --git a/generated/google/apis/dataproc_v1beta2/representations.rb b/generated/google/apis/dataproc_v1beta2/representations.rb index 5e245743b..61fc8e149 100644 --- a/generated/google/apis/dataproc_v1beta2/representations.rb +++ b/generated/google/apis/dataproc_v1beta2/representations.rb @@ -1026,6 +1026,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :cluster_name, as: 'clusterName' + property :cluster_uuid, as: 'clusterUuid' property :create_cluster, as: 'createCluster', class: Google::Apis::DataprocV1beta2::ClusterOperation, decorator: Google::Apis::DataprocV1beta2::ClusterOperation::Representation property :delete_cluster, as: 'deleteCluster', class: Google::Apis::DataprocV1beta2::ClusterOperation, decorator: Google::Apis::DataprocV1beta2::ClusterOperation::Representation diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index 36133d64b..401188501 100644 --- a/generated/google/apis/dialogflow_v2beta1.rb +++ b/generated/google/apis/dialogflow_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow-enterprise/ module DialogflowV2beta1 VERSION = 'V2beta1' - REVISION = '20181110' + REVISION = '20181121' # 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/dialogflow_v2beta1/classes.rb b/generated/google/apis/dialogflow_v2beta1/classes.rb index b6f37d64b..1cf7b2b18 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -354,7 +354,9 @@ module Google attr_accessor :parent_followup_intent_name # Optional. The priority of this intent. Higher numbers represent higher - # priorities. Zero or negative numbers mean that the intent is disabled. + # priorities. If this is zero or unspecified, we use the default + # priority 500000. + # Negative numbers mean that the intent is disabled. # Corresponds to the JSON property `priority` # @return [Fixnum] attr_accessor :priority @@ -2612,7 +2614,9 @@ module Google attr_accessor :parent_followup_intent_name # Optional. The priority of this intent. Higher numbers represent higher - # priorities. Zero or negative numbers mean that the intent is disabled. + # priorities. If this is zero or unspecified, we use the default + # priority 500000. + # Negative numbers mean that the intent is disabled. # Corresponds to the JSON property `priority` # @return [Fixnum] attr_accessor :priority @@ -4185,6 +4189,19 @@ module Google end end + # Request message for Documents.ReloadDocument. + class GoogleCloudDialogflowV2beta1ReloadDocumentRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # The request message for Agents.RestoreAgent. class GoogleCloudDialogflowV2beta1RestoreAgentRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dialogflow_v2beta1/representations.rb b/generated/google/apis/dialogflow_v2beta1/representations.rb index 42555c170..04a70fba9 100644 --- a/generated/google/apis/dialogflow_v2beta1/representations.rb +++ b/generated/google/apis/dialogflow_v2beta1/representations.rb @@ -634,6 +634,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1ReloadDocumentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1RestoreAgentRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1810,6 +1816,12 @@ module Google end end + class GoogleCloudDialogflowV2beta1ReloadDocumentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class GoogleCloudDialogflowV2beta1RestoreAgentRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dialogflow_v2beta1/service.rb b/generated/google/apis/dialogflow_v2beta1/service.rb index 875964daa..6807b1b59 100644 --- a/generated/google/apis/dialogflow_v2beta1/service.rb +++ b/generated/google/apis/dialogflow_v2beta1/service.rb @@ -1544,6 +1544,46 @@ module Google execute_or_queue_command(command, &block) end + # Updates the specified knowledge base. + # @param [String] name + # The knowledge base resource name. + # The name must be empty when creating a knowledge base. + # Format: `projects//knowledgeBases/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] google_cloud_dialogflow_v2beta1_knowledge_base_object + # @param [String] update_mask + # Optional. Not specified means `update all`. + # Currently, only `display_name` can be updated, an InvalidArgument will be + # returned for attempting to update other fields. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] + # + # @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_project_agent_knowledge_basis(name, google_cloud_dialogflow_v2beta1_knowledge_base_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2beta1/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation + command.request_object = google_cloud_dialogflow_v2beta1_knowledge_base_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a new document. # Operation @@ -1684,6 +1724,89 @@ module Google execute_or_queue_command(command, &block) end + # Updates the specified document. + # Operation + # @param [String] name + # The document resource name. + # The name must be empty when creating a document. + # Format: `projects//knowledgeBases//documents/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document] google_cloud_dialogflow_v2beta1_document_object + # @param [String] update_mask + # Optional. Not specified means `update all`. + # Currently, only `display_name` can be updated, an InvalidArgument will be + # returned for attempting to update other fields. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] + # + # @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_project_agent_knowledge_basis_document(name, google_cloud_dialogflow_v2beta1_document_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2beta1/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document::Representation + command.request_object = google_cloud_dialogflow_v2beta1_document_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Reloads the specified document from its specified source, content_uri or + # content. The previously loaded content of the document will be deleted. + # Note: Even when the content of the document has not changed, there still + # may be side effects because of internal implementation changes. + # Operation + # @param [String] name + # The name of the document to reload. + # Format: `projects//knowledgeBases//documents/` + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ReloadDocumentRequest] google_cloud_dialogflow_v2beta1_reload_document_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] + # + # @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 reload_project_agent_knowledge_basis_document(name, google_cloud_dialogflow_v2beta1_reload_document_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+name}:reload', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ReloadDocumentRequest::Representation + command.request_object = google_cloud_dialogflow_v2beta1_reload_document_request_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Deletes all active contexts in the specified session. # @param [String] parent # Required. The name of the session to delete all contexts from. Format: @@ -2518,6 +2641,46 @@ module Google execute_or_queue_command(command, &block) end + # Updates the specified knowledge base. + # @param [String] name + # The knowledge base resource name. + # The name must be empty when creating a knowledge base. + # Format: `projects//knowledgeBases/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] google_cloud_dialogflow_v2beta1_knowledge_base_object + # @param [String] update_mask + # Optional. Not specified means `update all`. + # Currently, only `display_name` can be updated, an InvalidArgument will be + # returned for attempting to update other fields. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] + # + # @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_project_knowledge_basis(name, google_cloud_dialogflow_v2beta1_knowledge_base_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2beta1/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation + command.request_object = google_cloud_dialogflow_v2beta1_knowledge_base_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates a new document. # Operation @@ -2658,6 +2821,89 @@ module Google execute_or_queue_command(command, &block) end + # Updates the specified document. + # Operation + # @param [String] name + # The document resource name. + # The name must be empty when creating a document. + # Format: `projects//knowledgeBases//documents/`. + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document] google_cloud_dialogflow_v2beta1_document_object + # @param [String] update_mask + # Optional. Not specified means `update all`. + # Currently, only `display_name` can be updated, an InvalidArgument will be + # returned for attempting to update other fields. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] + # + # @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_project_knowledge_basis_document(name, google_cloud_dialogflow_v2beta1_document_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v2beta1/{+name}', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document::Representation + command.request_object = google_cloud_dialogflow_v2beta1_document_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Reloads the specified document from its specified source, content_uri or + # content. The previously loaded content of the document will be deleted. + # Note: Even when the content of the document has not changed, there still + # may be side effects because of internal implementation changes. + # Operation + # @param [String] name + # The name of the document to reload. + # Format: `projects//knowledgeBases//documents/` + # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ReloadDocumentRequest] google_cloud_dialogflow_v2beta1_reload_document_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] + # + # @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 reload_project_knowledge_basis_document(name, google_cloud_dialogflow_v2beta1_reload_document_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+name}:reload', options) + command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ReloadDocumentRequest::Representation + command.request_object = google_cloud_dialogflow_v2beta1_reload_document_request_object + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.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. diff --git a/generated/google/apis/firebasehosting_v1beta1.rb b/generated/google/apis/firebasehosting_v1beta1.rb index ad749b725..e87ab6be4 100644 --- a/generated/google/apis/firebasehosting_v1beta1.rb +++ b/generated/google/apis/firebasehosting_v1beta1.rb @@ -20,12 +20,13 @@ module Google module Apis # Firebase Hosting API # - # + # The Firebase Hosting REST API enables programmatic custom deployment for + # releasing versions of your Firebase hosted content and configuration files. # # @see https://firebase.google.com/docs/hosting/ module FirebasehostingV1beta1 VERSION = 'V1beta1' - REVISION = '20181116' + REVISION = '20181129' # 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/firebasehosting_v1beta1/classes.rb b/generated/google/apis/firebasehosting_v1beta1/classes.rb index e4c125936..c6056a445 100644 --- a/generated/google/apis/firebasehosting_v1beta1/classes.rb +++ b/generated/google/apis/firebasehosting_v1beta1/classes.rb @@ -262,14 +262,14 @@ module Google end end - # A `Header` defines custom headers to add to a response should the request - # URL path match the pattern. + # A [`header`](/docs/hosting/full-config#headers) defines custom headers to + # add to a response should the request URL path match the pattern. class Header include Google::Apis::Core::Hashable # Required. The user-supplied - # [glob pattern](/docs/hosting/full-config#section-glob) to match against - # the request URL path. + # [glob pattern](/docs/hosting/full-config#glob_pattern_matching) to match + # against the request URL path. # Corresponds to the JSON property `glob` # @return [String] attr_accessor :glob @@ -420,21 +420,22 @@ module Google end end - # A `Redirect` represents the configuration for returning an HTTP redirect - # response given a matching request URL path. + # A [`redirect`](/docs/hosting/full-config#redirects) represents the + # configuration for returning an HTTP redirect response given a matching + # request URL path. class Redirect include Google::Apis::Core::Hashable # Required. The user-supplied - # [glob pattern](/docs/hosting/full-config#section-glob) to match against - # the request URL path. + # [glob pattern](/docs/hosting/full-config#glob_pattern_matching) to match + # against the request URL path. # Corresponds to the JSON property `glob` # @return [String] attr_accessor :glob # Required. The value to put in the HTTP location header of the response. - #
The location can contain capture group values from the pattern using a - # `":"` prefix to identify the segment and an optional `"*"` to capture the + #
The location can contain capture group values from the pattern using + # a `:` prefix to identify the segment and an optional `*` to capture the # rest of the URL. # For example: # "glob": "/:capture*", @@ -521,9 +522,10 @@ module Google end end - # A `Rewrite` represents an internal content rewrite on the version. If the - # pattern matches, the request will be handled as if it were to the - # destination path specified in the configuration. + # A [`rewrite`](/docs/hosting/full-config#rewrites) represents an internal + # content rewrite on the version. If the pattern matches, the request will be + # handled as if it were to the destination path specified in the + # configuration. class Rewrite include Google::Apis::Core::Hashable @@ -540,8 +542,8 @@ module Google attr_accessor :function # Required. The user-supplied - # [glob pattern](/docs/hosting/full-config#section-glob) to match against - # the request URL path. + # [glob pattern](/docs/hosting/full-config#glob_pattern_matching) to match + # against the request URL path. # Corresponds to the JSON property `glob` # @return [String] attr_accessor :glob @@ -567,7 +569,7 @@ module Google # The configuration for how incoming requests to a site should be routed and # processed before serving content. The patterns are matched and applied # according to a specific - # [priority order](/docs/hosting/url-redirects-rewrites#section-priorities). + # [priority order](/docs/hosting/full-config#hosting_priority_order). class ServingConfig include Google::Apis::Core::Hashable @@ -652,7 +654,7 @@ module Google # The configuration for how incoming requests to a site should be routed and # processed before serving content. The patterns are matched and applied # according to a specific - # [priority order](/docs/hosting/url-redirects-rewrites#section-priorities). + # [priority order](/docs/hosting/full-config#hosting_priority_order). # Corresponds to the JSON property `config` # @return [Google::Apis::FirebasehostingV1beta1::ServingConfig] attr_accessor :config diff --git a/generated/google/apis/firebasehosting_v1beta1/service.rb b/generated/google/apis/firebasehosting_v1beta1/service.rb index a95f1ca01..0c0dbff26 100644 --- a/generated/google/apis/firebasehosting_v1beta1/service.rb +++ b/generated/google/apis/firebasehosting_v1beta1/service.rb @@ -22,7 +22,8 @@ module Google module FirebasehostingV1beta1 # Firebase Hosting API # - # + # The Firebase Hosting REST API enables programmatic custom deployment for + # releasing versions of your Firebase hosted content and configuration files. # # @example # require 'google/apis/firebasehosting_v1beta1' diff --git a/generated/google/apis/monitoring_v3.rb b/generated/google/apis/monitoring_v3.rb index 6f1bd2e60..a81371ad0 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 = '20181107' + REVISION = '20181126' # 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 691e26d98..41ae08abe 100644 --- a/generated/google/apis/monitoring_v3/classes.rb +++ b/generated/google/apis/monitoring_v3/classes.rb @@ -646,7 +646,8 @@ module Google # to each of several time series. The new data point must be more recent than # any other point in its time series. Each TimeSeries value must fully specify a # unique time series by supplying all label values for the metric and the - # monitored resource. + # monitored resource.The maximum number of TimeSeries objects per Create request + # is 200. # Corresponds to the JSON property `timeSeries` # @return [Array] attr_accessor :time_series @@ -2321,9 +2322,12 @@ module Google class Point include Google::Apis::Core::Hashable - # A time interval extending just after a start time through an end time. If the - # start time is the same as the end time, then the interval represents a single - # point in time. + # A time interval extending just after a start time through an end time. The + # start time must not be later than the end time. The default start time is the + # end time, making the startTime value technically optional. Whether this is + # useful depends on the MetricKind. If the start and end times are the same, the + # interval represents a point in time. This is appropriate for GAUGE metrics, + # but not for DELTA and CUMULATIVE metrics, which cover a span of time. # Corresponds to the JSON property `interval` # @return [Google::Apis::MonitoringV3::TimeInterval] attr_accessor :interval @@ -2543,9 +2547,12 @@ module Google end end - # A time interval extending just after a start time through an end time. If the - # start time is the same as the end time, then the interval represents a single - # point in time. + # A time interval extending just after a start time through an end time. The + # start time must not be later than the end time. The default start time is the + # end time, making the startTime value technically optional. Whether this is + # useful depends on the MetricKind. If the start and end times are the same, the + # interval represents a point in time. This is appropriate for GAUGE metrics, + # but not for DELTA and CUMULATIVE metrics, which cover a span of time. class TimeInterval include Google::Apis::Core::Hashable diff --git a/generated/google/apis/servicecontrol_v1.rb b/generated/google/apis/servicecontrol_v1.rb index 30b53dc58..50eb0b863 100644 --- a/generated/google/apis/servicecontrol_v1.rb +++ b/generated/google/apis/servicecontrol_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/service-control/ module ServicecontrolV1 VERSION = 'V1' - REVISION = '20181029' + REVISION = '20181121' # 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/speech_v1beta1/classes.rb b/generated/google/apis/speech_v1beta1/classes.rb deleted file mode 100644 index 6ad1d17c1..000000000 --- a/generated/google/apis/speech_v1beta1/classes.rb +++ /dev/null @@ -1,480 +0,0 @@ -# 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 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 - - # 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 - - # 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 - - # This resource represents a long-running operation that is the result of a - # network API call. - class Operation - include Google::Apis::Core::Hashable - - # 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 - - # 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` that 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. - # - 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 - - # 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 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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @done = args[:done] if args.key?(:done) - @error = args[:error] if args.key?(:error) - @metadata = args[:metadata] if args.key?(:metadata) - @name = args[:name] if args.key?(:name) - @response = args[:response] if args.key?(:response) - 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` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @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 - - # Provides information to the recognizer that specifies how to process the - # request. - class RecognitionConfig - include Google::Apis::Core::Hashable - - # *Required* Encoding of audio data sent in all `RecognitionAudio` messages. - # Corresponds to the JSON property `encoding` - # @return [String] - attr_accessor :encoding - - # *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/languages) - # for a list of the currently supported language codes. - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_code - - # *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 - # one. If omitted, will return a maximum of one. - # Corresponds to the JSON property `maxAlternatives` - # @return [Fixnum] - attr_accessor :max_alternatives - - # *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 - - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @encoding = args[:encoding] if args.key?(:encoding) - @language_code = args[:language_code] if args.key?(:language_code) - @max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives) - @profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter) - @sample_rate = args[:sample_rate] if args.key?(:sample_rate) - @speech_context = args[:speech_context] if args.key?(:speech_context) - 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 - - # Alternative hypotheses (a.k.a. n-best list). - class SpeechRecognitionAlternative - include Google::Apis::Core::Hashable - - # *Output-only* The confidence estimate between 0.0 and 1.0. A higher number - # indicates an estimated greater likelihood that the recognized words are - # correct. This field is typically provided only for the top hypothesis, and - # only for `is_final=true` results. Clients should not rely on the - # `confidence` field as it is not guaranteed to be accurate, or even set, in - # any of the 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 - - # *Output-only* Transcript text representing the words that the user spoke. - # Corresponds to the JSON property `transcript` - # @return [String] - attr_accessor :transcript - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @confidence = args[:confidence] if args.key?(:confidence) - @transcript = args[:transcript] if args.key?(:transcript) - 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 `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` that 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. - # - 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 is 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 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 - - # 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 - - # The only message returned to the client by `SyncRecognize`. method. 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 - end - end -end diff --git a/generated/google/apis/speech_v1beta1/representations.rb b/generated/google/apis/speech_v1beta1/representations.rb deleted file mode 100644 index f179bd100..000000000 --- a/generated/google/apis/speech_v1beta1/representations.rb +++ /dev/null @@ -1,194 +0,0 @@ -# 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 AsyncRecognizeRequest - 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 Operation - 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 RecognitionConfig - 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 SpeechRecognitionAlternative - 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 Status - 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 SyncRecognizeResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - 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 - - 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 Operation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :done, as: 'done' - property :error, as: 'error', class: Google::Apis::SpeechV1beta1::Status, decorator: Google::Apis::SpeechV1beta1::Status::Representation - - hash :metadata, as: 'metadata' - property :name, as: 'name' - hash :response, as: 'response' - end - end - - class RecognitionAudio - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :content, :base64 => true, as: 'content' - property :uri, as: 'uri' - end - end - - class RecognitionConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :encoding, as: 'encoding' - property :language_code, as: 'languageCode' - property :max_alternatives, as: 'maxAlternatives' - property :profanity_filter, as: 'profanityFilter' - property :sample_rate, as: 'sampleRate' - property :speech_context, as: 'speechContext', class: Google::Apis::SpeechV1beta1::SpeechContext, decorator: Google::Apis::SpeechV1beta1::SpeechContext::Representation - - end - end - - class SpeechContext - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :phrases, as: 'phrases' - end - end - - class SpeechRecognitionAlternative - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :confidence, as: 'confidence' - property :transcript, as: 'transcript' - 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 Status - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - collection :details, as: 'details' - property :message, as: 'message' - 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 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 - end - end -end diff --git a/generated/google/apis/speech_v1beta1/service.rb b/generated/google/apis/speech_v1beta1/service.rb deleted file mode 100644 index 2e9e97cec..000000000 --- a/generated/google/apis/speech_v1beta1/service.rb +++ /dev/null @@ -1,204 +0,0 @@ -# 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 - # Cloud Speech API - # - # Converts audio to text by applying powerful neural network models. - # - # @example - # require 'google/apis/speech_v1beta1' - # - # Speech = Google::Apis::SpeechV1beta1 # Alias the module - # service = Speech::SpeechService.new - # - # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol - class SpeechService < 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/', '') - @batch_path = 'batch' - 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] fields - # Selector specifying which fields to include in a partial response. - # @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 [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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.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 allows API services to override the binding - # to use different resource name schemes, such as `users/*/operations`. To - # override the binding, API services can add a binding such as - # `"/v1/`name=users/*`/operations"` to their service configuration. - # For backwards compatibility, the default name includes the operations - # collection id, however overriding users must ensure the name binding - # is the parent resource, without the operations collection id. - # @param [String] filter - # The standard list filter. - # @param [String] name - # The name of the operation's parent resource. - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @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 [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(filter: nil, name: nil, page_size: nil, page_token: nil, fields: nil, quota_user: 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['filter'] = filter unless filter.nil? - command.query['name'] = name unless name.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Performs asynchronous speech recognition: receive results via the - # [google.longrunning.Operations] - # (/speech/reference/rest/v1beta1/operations#Operation) - # 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] fields - # Selector specifying which fields to include in a partial response. - # @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 [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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Performs synchronous speech recognition: receive results after all audio - # has been sent and processed. - # @param [Google::Apis::SpeechV1beta1::SyncRecognizeRequest] sync_recognize_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @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 [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, fields: nil, quota_user: 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['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.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/speech_v1beta1.rb b/generated/google/apis/speech_v1p1beta1.rb similarity index 79% rename from generated/google/apis/speech_v1beta1.rb rename to generated/google/apis/speech_v1p1beta1.rb index be6dbdb6d..2ecf312e4 100644 --- a/generated/google/apis/speech_v1beta1.rb +++ b/generated/google/apis/speech_v1p1beta1.rb @@ -12,9 +12,9 @@ # 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' +require 'google/apis/speech_v1p1beta1/service.rb' +require 'google/apis/speech_v1p1beta1/classes.rb' +require 'google/apis/speech_v1p1beta1/representations.rb' module Google module Apis @@ -23,9 +23,9 @@ module Google # Converts audio to text by applying powerful neural network models. # # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol - module SpeechV1beta1 - VERSION = 'V1beta1' - REVISION = '20180911' + module SpeechV1p1beta1 + VERSION = 'V1p1beta1' + REVISION = '20181107' # 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/speech_v1p1beta1/classes.rb b/generated/google/apis/speech_v1p1beta1/classes.rb new file mode 100644 index 000000000..a0308f664 --- /dev/null +++ b/generated/google/apis/speech_v1p1beta1/classes.rb @@ -0,0 +1,1263 @@ +# 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 SpeechV1p1beta1 + + # Different types of dataset errors and the stats associated with each error. + class DataErrors + include Google::Apis::Core::Hashable + + # Number of records having errors associated with the enum. + # Corresponds to the JSON property `count` + # @return [Fixnum] + attr_accessor :count + + # Type of the error. + # Corresponds to the JSON property `errorType` + # @return [String] + attr_accessor :error_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @count = args[:count] if args.key?(:count) + @error_type = args[:error_type] if args.key?(:error_type) + end + end + + # Contains stats about the data which was uploaded and preprocessed to be + # use by downstream pipelines like training, evals pipelines. + class DataStats + include Google::Apis::Core::Hashable + + # Different types of data errors and the counts associated with them. + # Corresponds to the JSON property `dataErrors` + # @return [Array] + attr_accessor :data_errors + + # The number of examples used for testing. + # Corresponds to the JSON property `testExampleCount` + # @return [Fixnum] + attr_accessor :test_example_count + + # The number of examples used for training. + # Corresponds to the JSON property `trainingExampleCount` + # @return [Fixnum] + attr_accessor :training_example_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @data_errors = args[:data_errors] if args.key?(:data_errors) + @test_example_count = args[:test_example_count] if args.key?(:test_example_count) + @training_example_count = args[:training_example_count] if args.key?(:training_example_count) + end + end + + # Specifies the parameters needed for creating a dataset. In addition this + # is also the message returned to the client by the `CreateDataset` method. + # It is included in the `result.response` field of the `Operation` + # returned by the `GetOperation` call of the `google::longrunning::Operations` + # service. + class Dataset + include Google::Apis::Core::Hashable + + # Output only. All the blocking operations associated with this dataset. + # Like (pre-processing, training-model, testing-model) + # Corresponds to the JSON property `blockingOperationIds` + # @return [Array] + attr_accessor :blocking_operation_ids + + # If set, the log data to be used in this dataset is restricted to the + # bucket specified. This field is only applicable if use_logged_data is true. + # If use_logged_data is true, but this field is not set, then all logs will + # be used for training the models. See: RecognitionMetadata for information + # on setting up data logs. + # Corresponds to the JSON property `bucketName` + # @return [String] + attr_accessor :bucket_name + + # Output only. The timestamp this dataset is created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Location where the data should be processed. If not specified then we will + # pick a location on behalf of the user for storing and processing the data. + # Currently only us-central is supported. + # Corresponds to the JSON property `dataProcessingRegion` + # @return [String] + attr_accessor :data_processing_region + + # Contains stats about the data which was uploaded and preprocessed to be + # use by downstream pipelines like training, evals pipelines. + # Corresponds to the JSON property `dataStats` + # @return [Google::Apis::SpeechV1p1beta1::DataStats] + attr_accessor :data_stats + + # Required. Name of the data set for display. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Output only. True if the data is sufficient to create custom models. + # Corresponds to the JSON property `hasSufficientData` + # @return [Boolean] + attr_accessor :has_sufficient_data + alias_method :has_sufficient_data?, :has_sufficient_data + + # Required. The language of the supplied audio as a + # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. + # Example: "en-US". + # See [Language Support](/speech-to-text/docs/languages) + # for a list of the currently supported language codes. + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # All the models (including models pending training) built using the dataset. + # Corresponds to the JSON property `models` + # @return [Array] + attr_accessor :models + + # Output only. Resource name of the dataset. Form :- + # '/projects/`project_number`/locations/`location_id`/datasets/`dataset_id`' + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The timestamp this dataset is last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + # URI that points to a file in csv file where each row has following format. + # ,,