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
This commit is contained in:
Google APIs 2018-11-30 00:36:50 +00:00
parent e5f65e7852
commit 54d1b4778b
37 changed files with 2958 additions and 938 deletions

View File

@ -19139,6 +19139,7 @@
"/composer:v1/SoftwareConfig/imageVersion": image_version "/composer:v1/SoftwareConfig/imageVersion": image_version
"/composer:v1/SoftwareConfig/pypiPackages": pypi_packages "/composer:v1/SoftwareConfig/pypiPackages": pypi_packages
"/composer:v1/SoftwareConfig/pypiPackages/pypi_package": pypi_package "/composer:v1/SoftwareConfig/pypiPackages/pypi_package": pypi_package
"/composer:v1/SoftwareConfig/pythonVersion": python_version
"/composer:v1/Status": status "/composer:v1/Status": status
"/composer:v1/Status/code": code "/composer:v1/Status/code": code
"/composer:v1/Status/details": details "/composer:v1/Status/details": details
@ -36340,6 +36341,8 @@
"/container:v1/Cluster": cluster "/container:v1/Cluster": cluster
"/container:v1/Cluster/addonsConfig": addons_config "/container:v1/Cluster/addonsConfig": addons_config
"/container:v1/Cluster/clusterIpv4Cidr": cluster_ipv4_cidr "/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/createTime": create_time
"/container:v1/Cluster/currentMasterVersion": current_master_version "/container:v1/Cluster/currentMasterVersion": current_master_version
"/container:v1/Cluster/currentNodeCount": current_node_count "/container:v1/Cluster/currentNodeCount": current_node_count
@ -36486,12 +36489,16 @@
"/container:v1/NodeConfig/serviceAccount": service_account "/container:v1/NodeConfig/serviceAccount": service_account
"/container:v1/NodeConfig/tags": tags "/container:v1/NodeConfig/tags": tags
"/container:v1/NodeConfig/tags/tag": tag "/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": node_management
"/container:v1/NodeManagement/autoRepair": auto_repair "/container:v1/NodeManagement/autoRepair": auto_repair
"/container:v1/NodeManagement/autoUpgrade": auto_upgrade "/container:v1/NodeManagement/autoUpgrade": auto_upgrade
"/container:v1/NodeManagement/upgradeOptions": upgrade_options "/container:v1/NodeManagement/upgradeOptions": upgrade_options
"/container:v1/NodePool": node_pool "/container:v1/NodePool": node_pool
"/container:v1/NodePool/autoscaling": autoscaling "/container:v1/NodePool/autoscaling": autoscaling
"/container:v1/NodePool/conditions": conditions
"/container:v1/NodePool/conditions/condition": condition
"/container:v1/NodePool/config": config "/container:v1/NodePool/config": config
"/container:v1/NodePool/initialNodeCount": initial_node_count "/container:v1/NodePool/initialNodeCount": initial_node_count
"/container:v1/NodePool/instanceGroupUrls": instance_group_urls "/container:v1/NodePool/instanceGroupUrls": instance_group_urls
@ -36506,11 +36513,19 @@
"/container:v1/NodePoolAutoscaling/enabled": enabled "/container:v1/NodePoolAutoscaling/enabled": enabled
"/container:v1/NodePoolAutoscaling/maxNodeCount": max_node_count "/container:v1/NodePoolAutoscaling/maxNodeCount": max_node_count
"/container:v1/NodePoolAutoscaling/minNodeCount": min_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": operation
"/container:v1/Operation/clusterConditions": cluster_conditions
"/container:v1/Operation/clusterConditions/cluster_condition": cluster_condition
"/container:v1/Operation/detail": detail "/container:v1/Operation/detail": detail
"/container:v1/Operation/endTime": end_time "/container:v1/Operation/endTime": end_time
"/container:v1/Operation/location": location "/container:v1/Operation/location": location
"/container:v1/Operation/name": name "/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/operationType": operation_type
"/container:v1/Operation/selfLink": self_link "/container:v1/Operation/selfLink": self_link
"/container:v1/Operation/startTime": start_time "/container:v1/Operation/startTime": start_time
@ -36624,6 +36639,9 @@
"/container:v1/StartIPRotationRequest/projectId": project_id "/container:v1/StartIPRotationRequest/projectId": project_id
"/container:v1/StartIPRotationRequest/rotateCredentials": rotate_credentials "/container:v1/StartIPRotationRequest/rotateCredentials": rotate_credentials
"/container:v1/StartIPRotationRequest/zone": zone "/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": update_cluster_request
"/container:v1/UpdateClusterRequest/clusterId": cluster_id "/container:v1/UpdateClusterRequest/clusterId": cluster_id
"/container:v1/UpdateClusterRequest/name": name "/container:v1/UpdateClusterRequest/name": name
@ -41673,6 +41691,7 @@
"/dataproc:v1/WorkflowGraph/nodes/node": node "/dataproc:v1/WorkflowGraph/nodes/node": node
"/dataproc:v1/WorkflowMetadata": workflow_metadata "/dataproc:v1/WorkflowMetadata": workflow_metadata
"/dataproc:v1/WorkflowMetadata/clusterName": cluster_name "/dataproc:v1/WorkflowMetadata/clusterName": cluster_name
"/dataproc:v1/WorkflowMetadata/clusterUuid": cluster_uuid
"/dataproc:v1/WorkflowMetadata/createCluster": create_cluster "/dataproc:v1/WorkflowMetadata/createCluster": create_cluster
"/dataproc:v1/WorkflowMetadata/deleteCluster": delete_cluster "/dataproc:v1/WorkflowMetadata/deleteCluster": delete_cluster
"/dataproc:v1/WorkflowMetadata/endTime": end_time "/dataproc:v1/WorkflowMetadata/endTime": end_time
@ -42196,6 +42215,7 @@
"/dataproc:v1beta2/WorkflowGraph/nodes/node": node "/dataproc:v1beta2/WorkflowGraph/nodes/node": node
"/dataproc:v1beta2/WorkflowMetadata": workflow_metadata "/dataproc:v1beta2/WorkflowMetadata": workflow_metadata
"/dataproc:v1beta2/WorkflowMetadata/clusterName": cluster_name "/dataproc:v1beta2/WorkflowMetadata/clusterName": cluster_name
"/dataproc:v1beta2/WorkflowMetadata/clusterUuid": cluster_uuid
"/dataproc:v1beta2/WorkflowMetadata/createCluster": create_cluster "/dataproc:v1beta2/WorkflowMetadata/createCluster": create_cluster
"/dataproc:v1beta2/WorkflowMetadata/deleteCluster": delete_cluster "/dataproc:v1beta2/WorkflowMetadata/deleteCluster": delete_cluster
"/dataproc:v1beta2/WorkflowMetadata/endTime": end_time "/dataproc:v1beta2/WorkflowMetadata/endTime": end_time
@ -58812,6 +58832,7 @@
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/webhookPayload": webhook_payload "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/webhookPayload": webhook_payload
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/webhookPayload/webhook_payload": webhook_payload "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/webhookPayload/webhook_payload": webhook_payload
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1QueryResult/webhookSource": webhook_source "/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": google_cloud_dialogflow_v2beta1_restore_agent_request
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1RestoreAgentRequest/agentContent": agent_content "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1RestoreAgentRequest/agentContent": agent_content
"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1RestoreAgentRequest/agentUri": agent_uri "/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/pageSize": page_size
"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.documents.list/pageToken": page_token "/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.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": get_project_agent_knowledge_basis
"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.get/name": name "/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": list_project_agent_knowledge_bases
"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.list/pageSize": page_size "/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/pageToken": page_token
"/dialogflow:v2beta1/dialogflow.projects.agent.knowledgeBases.list/parent": parent "/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": restore_agent
"/dialogflow:v2beta1/dialogflow.projects.agent.restore/parent": parent "/dialogflow:v2beta1/dialogflow.projects.agent.restore/parent": parent
"/dialogflow:v2beta1/dialogflow.projects.agent.runtimes.sessions.contexts.create": create_project_agent_runtime_session_context "/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/pageSize": page_size
"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.documents.list/pageToken": page_token "/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.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": get_project_knowledge_basis
"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.get/name": name "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.get/name": name
"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.list": list_project_knowledge_bases "/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/pageSize": page_size
"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.list/pageToken": page_token "/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.list/pageToken": page_token
"/dialogflow:v2beta1/dialogflow.projects.knowledgeBases.list/parent": parent "/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": get_project_operation
"/dialogflow:v2beta1/dialogflow.projects.operations.get/name": name "/dialogflow:v2beta1/dialogflow.projects.operations.get/name": name
"/dialogflow:v2beta1/dialogflow.projects.phoneNumberOrders.cancel": cancel_project_phone_number_order "/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.operations.list/pageToken": page_token
"/speech:v1beta1/speech.speech.asyncrecognize": async_recognize_speech "/speech:v1beta1/speech.speech.asyncrecognize": async_recognize_speech
"/speech:v1beta1/speech.speech.syncrecognize": sync_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": backup_configuration
"/sqladmin:v1beta3/BackupConfiguration/binaryLogEnabled": binary_log_enabled "/sqladmin:v1beta3/BackupConfiguration/binaryLogEnabled": binary_log_enabled
"/sqladmin:v1beta3/BackupConfiguration/enabled": enabled "/sqladmin:v1beta3/BackupConfiguration/enabled": enabled
@ -88876,6 +89081,7 @@
"/testing:v1/AndroidDeviceList/androidDevices/android_device": android_device "/testing:v1/AndroidDeviceList/androidDevices/android_device": android_device
"/testing:v1/AndroidInstrumentationTest": android_instrumentation_test "/testing:v1/AndroidInstrumentationTest": android_instrumentation_test
"/testing:v1/AndroidInstrumentationTest/appApk": app_apk "/testing:v1/AndroidInstrumentationTest/appApk": app_apk
"/testing:v1/AndroidInstrumentationTest/appBundle": app_bundle
"/testing:v1/AndroidInstrumentationTest/appPackageId": app_package_id "/testing:v1/AndroidInstrumentationTest/appPackageId": app_package_id
"/testing:v1/AndroidInstrumentationTest/orchestratorOption": orchestrator_option "/testing:v1/AndroidInstrumentationTest/orchestratorOption": orchestrator_option
"/testing:v1/AndroidInstrumentationTest/testApk": test_apk "/testing:v1/AndroidInstrumentationTest/testApk": test_apk
@ -88913,6 +89119,7 @@
"/testing:v1/AndroidModel/videoRecordingNotSupported": video_recording_not_supported "/testing:v1/AndroidModel/videoRecordingNotSupported": video_recording_not_supported
"/testing:v1/AndroidRoboTest": android_robo_test "/testing:v1/AndroidRoboTest": android_robo_test
"/testing:v1/AndroidRoboTest/appApk": app_apk "/testing:v1/AndroidRoboTest/appApk": app_apk
"/testing:v1/AndroidRoboTest/appBundle": app_bundle
"/testing:v1/AndroidRoboTest/appInitialActivity": app_initial_activity "/testing:v1/AndroidRoboTest/appInitialActivity": app_initial_activity
"/testing:v1/AndroidRoboTest/appPackageId": app_package_id "/testing:v1/AndroidRoboTest/appPackageId": app_package_id
"/testing:v1/AndroidRoboTest/maxDepth": max_depth "/testing:v1/AndroidRoboTest/maxDepth": max_depth
@ -88929,6 +89136,7 @@
"/testing:v1/AndroidRuntimeConfiguration/orientations/orientation": orientation "/testing:v1/AndroidRuntimeConfiguration/orientations/orientation": orientation
"/testing:v1/AndroidTestLoop": android_test_loop "/testing:v1/AndroidTestLoop": android_test_loop
"/testing:v1/AndroidTestLoop/appApk": app_apk "/testing:v1/AndroidTestLoop/appApk": app_apk
"/testing:v1/AndroidTestLoop/appBundle": app_bundle
"/testing:v1/AndroidTestLoop/appPackageId": app_package_id "/testing:v1/AndroidTestLoop/appPackageId": app_package_id
"/testing:v1/AndroidTestLoop/scenarioLabels": scenario_labels "/testing:v1/AndroidTestLoop/scenarioLabels": scenario_labels
"/testing:v1/AndroidTestLoop/scenarioLabels/scenario_label": scenario_label "/testing:v1/AndroidTestLoop/scenarioLabels/scenario_label": scenario_label
@ -88955,6 +89163,8 @@
"/testing:v1/ApkManifest/maxSdkVersion": max_sdk_version "/testing:v1/ApkManifest/maxSdkVersion": max_sdk_version
"/testing:v1/ApkManifest/minSdkVersion": min_sdk_version "/testing:v1/ApkManifest/minSdkVersion": min_sdk_version
"/testing:v1/ApkManifest/packageName": package_name "/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": cancel_test_matrix_response
"/testing:v1/CancelTestMatrixResponse/testState": test_state "/testing:v1/CancelTestMatrixResponse/testState": test_state
"/testing:v1/ClientInfo": client_info "/testing:v1/ClientInfo": client_info

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/functions # @see https://cloud.google.com/functions
module CloudfunctionsV1 module CloudfunctionsV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20181018' REVISION = '20181121'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -265,7 +265,6 @@ module Google
# @return [String] # @return [String]
attr_accessor :entry_point attr_accessor :entry_point
# **Beta Feature**
# Environment variables that shall be available during function execution. # Environment variables that shall be available during function execution.
# Corresponds to the JSON property `environmentVariables` # Corresponds to the JSON property `environmentVariables`
# @return [Hash<String,String>] # @return [Hash<String,String>]
@ -891,7 +890,7 @@ module Google
attr_accessor :update_time attr_accessor :update_time
# Version id of the function created or updated by an API call. # 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` # Corresponds to the JSON property `versionId`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version_id attr_accessor :version_id
@ -936,7 +935,7 @@ module Google
attr_accessor :update_time attr_accessor :update_time
# Version id of the function created or updated by an API call. # 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` # Corresponds to the JSON property `versionId`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version_id attr_accessor :version_id

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/composer/ # @see https://cloud.google.com/composer/
module ComposerV1 module ComposerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20181001' REVISION = '20181120'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -552,6 +552,14 @@ module Google
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :pypi_packages 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) def initialize(**args)
update!(**args) update!(**args)
end end
@ -562,6 +570,7 @@ module Google
@env_variables = args[:env_variables] if args.key?(:env_variables) @env_variables = args[:env_variables] if args.key?(:env_variables)
@image_version = args[:image_version] if args.key?(:image_version) @image_version = args[:image_version] if args.key?(:image_version)
@pypi_packages = args[:pypi_packages] if args.key?(:pypi_packages) @pypi_packages = args[:pypi_packages] if args.key?(:pypi_packages)
@python_version = args[:python_version] if args.key?(:python_version)
end end
end end

View File

@ -179,6 +179,7 @@ module Google
hash :env_variables, as: 'envVariables' hash :env_variables, as: 'envVariables'
property :image_version, as: 'imageVersion' property :image_version, as: 'imageVersion'
hash :pypi_packages, as: 'pypiPackages' hash :pypi_packages, as: 'pypiPackages'
property :python_version, as: 'pythonVersion'
end end
end end

View File

@ -20,13 +20,13 @@ module Google
module Apis module Apis
# Kubernetes Engine API # Kubernetes Engine API
# #
# The Google Kubernetes Engine API is used for building and managing container # Builds and manages container-based applications, powered by the open source
# based applications, powered by the open source Kubernetes technology. # Kubernetes technology.
# #
# @see https://cloud.google.com/container-engine/ # @see https://cloud.google.com/container-engine/
module ContainerV1 module ContainerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20180917' REVISION = '20181109'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -226,6 +226,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :cluster_ipv4_cidr attr_accessor :cluster_ipv4_cidr
# Which conditions caused the current cluster state.
# Corresponds to the JSON property `conditions`
# @return [Array<Google::Apis::ContainerV1::StatusCondition>]
attr_accessor :conditions
# [Output only] The time the cluster was created, in # [Output only] The time the cluster was created, in
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
# Corresponds to the JSON property `createTime` # Corresponds to the JSON property `createTime`
@ -237,7 +242,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :current_master_version 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` # Corresponds to the JSON property `currentNodeCount`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :current_node_count attr_accessor :current_node_count
@ -340,7 +346,7 @@ module Google
attr_accessor :location attr_accessor :location
# The list of Google Compute Engine # 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. # should be located.
# Corresponds to the JSON property `locations` # Corresponds to the JSON property `locations`
# @return [Array<String>] # @return [Array<String>]
@ -490,6 +496,7 @@ module Google
def update!(**args) def update!(**args)
@addons_config = args[:addons_config] if args.key?(:addons_config) @addons_config = args[:addons_config] if args.key?(:addons_config)
@cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr) @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) @create_time = args[:create_time] if args.key?(:create_time)
@current_master_version = args[:current_master_version] if args.key?(:current_master_version) @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) @current_node_count = args[:current_node_count] if args.key?(:current_node_count)
@ -548,7 +555,7 @@ module Google
attr_accessor :desired_image_type attr_accessor :desired_image_type
# The desired list of Google Compute Engine # 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 # should be located. Changing the locations a cluster is in will result
# in nodes being either created or removed from the cluster, depending on # in nodes being either created or removed from the cluster, depending on
# whether locations are being added or removed. # whether locations are being added or removed.
@ -1184,8 +1191,8 @@ module Google
attr_accessor :password attr_accessor :password
# The username to use for HTTP basic authentication to the master endpoint. # 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 # For clusters v1.6.0 and later, basic authentication can be disabled by
# providing an empty username. # leaving username unspecified (or setting it to the empty string).
# Corresponds to the JSON property `username` # Corresponds to the JSON property `username`
# @return [String] # @return [String]
attr_accessor :username attr_accessor :username
@ -1447,6 +1454,13 @@ module Google
# @return [Array<String>] # @return [Array<String>]
attr_accessor :tags 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<Google::Apis::ContainerV1::NodeTaint>]
attr_accessor :taints
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -1466,6 +1480,7 @@ module Google
@preemptible = args[:preemptible] if args.key?(:preemptible) @preemptible = args[:preemptible] if args.key?(:preemptible)
@service_account = args[:service_account] if args.key?(:service_account) @service_account = args[:service_account] if args.key?(:service_account)
@tags = args[:tags] if args.key?(:tags) @tags = args[:tags] if args.key?(:tags)
@taints = args[:taints] if args.key?(:taints)
end end
end end
@ -1524,6 +1539,11 @@ module Google
# @return [Google::Apis::ContainerV1::NodePoolAutoscaling] # @return [Google::Apis::ContainerV1::NodePoolAutoscaling]
attr_accessor :autoscaling attr_accessor :autoscaling
# Which conditions caused the current node pool state.
# Corresponds to the JSON property `conditions`
# @return [Array<Google::Apis::ContainerV1::StatusCondition>]
attr_accessor :conditions
# Parameters that describe the nodes in a cluster. # Parameters that describe the nodes in a cluster.
# Corresponds to the JSON property `config` # Corresponds to the JSON property `config`
# @return [Google::Apis::ContainerV1::NodeConfig] # @return [Google::Apis::ContainerV1::NodeConfig]
@ -1583,6 +1603,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@autoscaling = args[:autoscaling] if args.key?(:autoscaling) @autoscaling = args[:autoscaling] if args.key?(:autoscaling)
@conditions = args[:conditions] if args.key?(:conditions)
@config = args[:config] if args.key?(:config) @config = args[:config] if args.key?(:config)
@initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count) @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) @instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls)
@ -1630,11 +1651,50 @@ module Google
end end
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 # This operation resource represents operations that may have happened or are
# happening on the cluster. All fields are output only. # happening on the cluster. All fields are output only.
class Operation class Operation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Which conditions caused the current cluster state.
# Corresponds to the JSON property `clusterConditions`
# @return [Array<Google::Apis::ContainerV1::StatusCondition>]
attr_accessor :cluster_conditions
# Detailed operation progress, if available. # Detailed operation progress, if available.
# Corresponds to the JSON property `detail` # Corresponds to the JSON property `detail`
# @return [String] # @return [String]
@ -1659,6 +1719,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Which conditions caused the current node pool state.
# Corresponds to the JSON property `nodepoolConditions`
# @return [Array<Google::Apis::ContainerV1::StatusCondition>]
attr_accessor :nodepool_conditions
# The operation type. # The operation type.
# Corresponds to the JSON property `operationType` # Corresponds to the JSON property `operationType`
# @return [String] # @return [String]
@ -1704,10 +1769,12 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@cluster_conditions = args[:cluster_conditions] if args.key?(:cluster_conditions)
@detail = args[:detail] if args.key?(:detail) @detail = args[:detail] if args.key?(:detail)
@end_time = args[:end_time] if args.key?(:end_time) @end_time = args[:end_time] if args.key?(:end_time)
@location = args[:location] if args.key?(:location) @location = args[:location] if args.key?(:location)
@name = args[:name] if args.key?(:name) @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) @operation_type = args[:operation_type] if args.key?(:operation_type)
@self_link = args[:self_link] if args.key?(:self_link) @self_link = args[:self_link] if args.key?(:self_link)
@start_time = args[:start_time] if args.key?(:start_time) @start_time = args[:start_time] if args.key?(:start_time)
@ -2042,7 +2109,7 @@ module Google
attr_accessor :cluster_id attr_accessor :cluster_id
# The desired list of Google Compute Engine # 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 # should be located. Changing the locations a cluster is in will result
# in nodes being either created or removed from the cluster, depending on # in nodes being either created or removed from the cluster, depending on
# whether locations are being added or removed. # whether locations are being added or removed.
@ -2579,6 +2646,32 @@ module Google
end end
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. # UpdateClusterRequest updates the settings of a cluster.
class UpdateClusterRequest class UpdateClusterRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -214,6 +214,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class NodeTaint
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -316,6 +322,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class StatusCondition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateClusterRequest class UpdateClusterRequest
class Representation < Google::Apis::Core::JsonRepresentation; end 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 :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr' 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 :create_time, as: 'createTime'
property :current_master_version, as: 'currentMasterVersion' property :current_master_version, as: 'currentMasterVersion'
property :current_node_count, as: 'currentNodeCount' property :current_node_count, as: 'currentNodeCount'
@ -658,6 +672,8 @@ module Google
property :preemptible, as: 'preemptible' property :preemptible, as: 'preemptible'
property :service_account, as: 'serviceAccount' property :service_account, as: 'serviceAccount'
collection :tags, as: 'tags' collection :tags, as: 'tags'
collection :taints, as: 'taints', class: Google::Apis::ContainerV1::NodeTaint, decorator: Google::Apis::ContainerV1::NodeTaint::Representation
end end
end end
@ -676,6 +692,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation 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 :config, as: 'config', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
property :initial_node_count, as: 'initialNodeCount' property :initial_node_count, as: 'initialNodeCount'
@ -699,13 +717,26 @@ module Google
end end
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 class Operation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation 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 :detail, as: 'detail'
property :end_time, as: 'endTime' property :end_time, as: 'endTime'
property :location, as: 'location' property :location, as: 'location'
property :name, as: 'name' 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 :operation_type, as: 'operationType'
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
property :start_time, as: 'startTime' property :start_time, as: 'startTime'
@ -903,6 +934,14 @@ module Google
end end
end end
class StatusCondition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
property :message, as: 'message'
end
end
class UpdateClusterRequest class UpdateClusterRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -22,8 +22,8 @@ module Google
module ContainerV1 module ContainerV1
# Kubernetes Engine API # Kubernetes Engine API
# #
# The Google Kubernetes Engine API is used for building and managing container # Builds and manages container-based applications, powered by the open source
# based applications, powered by the open source Kubernetes technology. # Kubernetes technology.
# #
# @example # @example
# require 'google/apis/container_v1' # require 'google/apis/container_v1'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataproc/ # @see https://cloud.google.com/dataproc/
module DataprocV1 module DataprocV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20181105' REVISION = '20181126'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2417,11 +2417,16 @@ module Google
class WorkflowMetadata class WorkflowMetadata
include Google::Apis::Core::Hashable 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` # Corresponds to the JSON property `clusterName`
# @return [String] # @return [String]
attr_accessor :cluster_name 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. # The cluster operation triggered by a workflow.
# Corresponds to the JSON property `createCluster` # Corresponds to the JSON property `createCluster`
# @return [Google::Apis::DataprocV1::ClusterOperation] # @return [Google::Apis::DataprocV1::ClusterOperation]
@ -2474,6 +2479,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@cluster_name = args[:cluster_name] if args.key?(:cluster_name) @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) @create_cluster = args[:create_cluster] if args.key?(:create_cluster)
@delete_cluster = args[:delete_cluster] if args.key?(:delete_cluster) @delete_cluster = args[:delete_cluster] if args.key?(:delete_cluster)
@end_time = args[:end_time] if args.key?(:end_time) @end_time = args[:end_time] if args.key?(:end_time)

View File

@ -967,6 +967,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :cluster_name, as: 'clusterName' 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 :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 property :delete_cluster, as: 'deleteCluster', class: Google::Apis::DataprocV1::ClusterOperation, decorator: Google::Apis::DataprocV1::ClusterOperation::Representation

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataproc/ # @see https://cloud.google.com/dataproc/
module DataprocV1beta2 module DataprocV1beta2
VERSION = 'V1beta2' VERSION = 'V1beta2'
REVISION = '20181114' REVISION = '20181126'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2588,11 +2588,16 @@ module Google
class WorkflowMetadata class WorkflowMetadata
include Google::Apis::Core::Hashable 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` # Corresponds to the JSON property `clusterName`
# @return [String] # @return [String]
attr_accessor :cluster_name 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. # The cluster operation triggered by a workflow.
# Corresponds to the JSON property `createCluster` # Corresponds to the JSON property `createCluster`
# @return [Google::Apis::DataprocV1beta2::ClusterOperation] # @return [Google::Apis::DataprocV1beta2::ClusterOperation]
@ -2645,6 +2650,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@cluster_name = args[:cluster_name] if args.key?(:cluster_name) @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) @create_cluster = args[:create_cluster] if args.key?(:create_cluster)
@delete_cluster = args[:delete_cluster] if args.key?(:delete_cluster) @delete_cluster = args[:delete_cluster] if args.key?(:delete_cluster)
@end_time = args[:end_time] if args.key?(:end_time) @end_time = args[:end_time] if args.key?(:end_time)

View File

@ -1026,6 +1026,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :cluster_name, as: 'clusterName' 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 :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 property :delete_cluster, as: 'deleteCluster', class: Google::Apis::DataprocV1beta2::ClusterOperation, decorator: Google::Apis::DataprocV1beta2::ClusterOperation::Representation

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow-enterprise/ # @see https://cloud.google.com/dialogflow-enterprise/
module DialogflowV2beta1 module DialogflowV2beta1
VERSION = 'V2beta1' VERSION = 'V2beta1'
REVISION = '20181110' REVISION = '20181121'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -354,7 +354,9 @@ module Google
attr_accessor :parent_followup_intent_name attr_accessor :parent_followup_intent_name
# Optional. The priority of this intent. Higher numbers represent higher # 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` # Corresponds to the JSON property `priority`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :priority attr_accessor :priority
@ -2612,7 +2614,9 @@ module Google
attr_accessor :parent_followup_intent_name attr_accessor :parent_followup_intent_name
# Optional. The priority of this intent. Higher numbers represent higher # 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` # Corresponds to the JSON property `priority`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :priority attr_accessor :priority
@ -4185,6 +4189,19 @@ module Google
end end
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. # The request message for Agents.RestoreAgent.
class GoogleCloudDialogflowV2beta1RestoreAgentRequest class GoogleCloudDialogflowV2beta1RestoreAgentRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -634,6 +634,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2beta1ReloadDocumentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2beta1RestoreAgentRequest class GoogleCloudDialogflowV2beta1RestoreAgentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1810,6 +1816,12 @@ module Google
end end
end end
class GoogleCloudDialogflowV2beta1ReloadDocumentRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleCloudDialogflowV2beta1RestoreAgentRequest class GoogleCloudDialogflowV2beta1RestoreAgentRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -1544,6 +1544,46 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end 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/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
# @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. # Creates a new document.
# Operation <response: Document, # Operation <response: Document,
# metadata: KnowledgeOperationMetadata> # metadata: KnowledgeOperationMetadata>
@ -1684,6 +1724,89 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates the specified document.
# Operation <response: Document,
# metadata: KnowledgeOperationMetadata>
# @param [String] name
# The document resource name.
# The name must be empty when creating a document.
# Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
# ID>/documents/<Document ID>`.
# @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 <response: Document,
# metadata: KnowledgeOperationMetadata>
# @param [String] name
# The name of the document to reload.
# Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
# ID>/documents/<Document ID>`
# @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. # Deletes all active contexts in the specified session.
# @param [String] parent # @param [String] parent
# Required. The name of the session to delete all contexts from. Format: # Required. The name of the session to delete all contexts from. Format:
@ -2518,6 +2641,46 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end 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/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
# @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. # Creates a new document.
# Operation <response: Document, # Operation <response: Document,
# metadata: KnowledgeOperationMetadata> # metadata: KnowledgeOperationMetadata>
@ -2658,6 +2821,89 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Updates the specified document.
# Operation <response: Document,
# metadata: KnowledgeOperationMetadata>
# @param [String] name
# The document resource name.
# The name must be empty when creating a document.
# Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
# ID>/documents/<Document ID>`.
# @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 <response: Document,
# metadata: KnowledgeOperationMetadata>
# @param [String] name
# The name of the document to reload.
# Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base
# ID>/documents/<Document ID>`
# @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 # 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 # method to poll the operation result at intervals as recommended by the API
# service. # service.

View File

@ -20,12 +20,13 @@ module Google
module Apis module Apis
# Firebase Hosting API # 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/ # @see https://firebase.google.com/docs/hosting/
module FirebasehostingV1beta1 module FirebasehostingV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20181116' REVISION = '20181129'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -262,14 +262,14 @@ module Google
end end
end end
# A `Header` defines custom headers to add to a response should the request # A [`header`](/docs/hosting/full-config#headers) defines custom headers to
# URL path match the pattern. # add to a response should the request URL path match the pattern.
class Header class Header
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Required. The user-supplied # Required. The user-supplied
# [glob pattern](/docs/hosting/full-config#section-glob) to match against # [glob pattern](/docs/hosting/full-config#glob_pattern_matching) to match
# the request URL path. # against the request URL path.
# Corresponds to the JSON property `glob` # Corresponds to the JSON property `glob`
# @return [String] # @return [String]
attr_accessor :glob attr_accessor :glob
@ -420,21 +420,22 @@ module Google
end end
end end
# A `Redirect` represents the configuration for returning an HTTP redirect # A [`redirect`](/docs/hosting/full-config#redirects) represents the
# response given a matching request URL path. # configuration for returning an HTTP redirect response given a matching
# request URL path.
class Redirect class Redirect
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Required. The user-supplied # Required. The user-supplied
# [glob pattern](/docs/hosting/full-config#section-glob) to match against # [glob pattern](/docs/hosting/full-config#glob_pattern_matching) to match
# the request URL path. # against the request URL path.
# Corresponds to the JSON property `glob` # Corresponds to the JSON property `glob`
# @return [String] # @return [String]
attr_accessor :glob attr_accessor :glob
# Required. The value to put in the HTTP location header of the response. # Required. The value to put in the HTTP location header of the response.
# <br>The location can contain capture group values from the pattern using a # <br>The location can contain capture group values from the pattern using
# `":"` prefix to identify the segment and an optional `"*"` to capture the # a `:` prefix to identify the segment and an optional `*` to capture the
# rest of the URL. # rest of the URL.
# For example: # For example:
# <code>"glob": "/:capture*", # <code>"glob": "/:capture*",
@ -521,9 +522,10 @@ module Google
end end
end end
# A `Rewrite` represents an internal content rewrite on the version. If the # A [`rewrite`](/docs/hosting/full-config#rewrites) represents an internal
# pattern matches, the request will be handled as if it were to the # content rewrite on the version. If the pattern matches, the request will be
# destination path specified in the configuration. # handled as if it were to the destination path specified in the
# configuration.
class Rewrite class Rewrite
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -540,8 +542,8 @@ module Google
attr_accessor :function attr_accessor :function
# Required. The user-supplied # Required. The user-supplied
# [glob pattern](/docs/hosting/full-config#section-glob) to match against # [glob pattern](/docs/hosting/full-config#glob_pattern_matching) to match
# the request URL path. # against the request URL path.
# Corresponds to the JSON property `glob` # Corresponds to the JSON property `glob`
# @return [String] # @return [String]
attr_accessor :glob attr_accessor :glob
@ -567,7 +569,7 @@ module Google
# The configuration for how incoming requests to a site should be routed and # The configuration for how incoming requests to a site should be routed and
# processed before serving content. The patterns are matched and applied # processed before serving content. The patterns are matched and applied
# according to a specific # according to a specific
# [priority order](/docs/hosting/url-redirects-rewrites#section-priorities). # [priority order](/docs/hosting/full-config#hosting_priority_order).
class ServingConfig class ServingConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -652,7 +654,7 @@ module Google
# The configuration for how incoming requests to a site should be routed and # The configuration for how incoming requests to a site should be routed and
# processed before serving content. The patterns are matched and applied # processed before serving content. The patterns are matched and applied
# according to a specific # 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` # Corresponds to the JSON property `config`
# @return [Google::Apis::FirebasehostingV1beta1::ServingConfig] # @return [Google::Apis::FirebasehostingV1beta1::ServingConfig]
attr_accessor :config attr_accessor :config

View File

@ -22,7 +22,8 @@ module Google
module FirebasehostingV1beta1 module FirebasehostingV1beta1
# Firebase Hosting API # Firebase Hosting API
# #
# # The Firebase Hosting REST API enables programmatic custom deployment for
# releasing versions of your Firebase hosted content and configuration files.
# #
# @example # @example
# require 'google/apis/firebasehosting_v1beta1' # require 'google/apis/firebasehosting_v1beta1'

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/monitoring/api/ # @see https://cloud.google.com/monitoring/api/
module MonitoringV3 module MonitoringV3
VERSION = 'V3' VERSION = 'V3'
REVISION = '20181107' REVISION = '20181126'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -646,7 +646,8 @@ module Google
# to each of several time series. The new data point must be more recent than # 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 # 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 # 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` # Corresponds to the JSON property `timeSeries`
# @return [Array<Google::Apis::MonitoringV3::TimeSeries>] # @return [Array<Google::Apis::MonitoringV3::TimeSeries>]
attr_accessor :time_series attr_accessor :time_series
@ -2321,9 +2322,12 @@ module Google
class Point class Point
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# A time interval extending just after a start time through an end time. If the # A time interval extending just after a start time through an end time. The
# start time is the same as the end time, then the interval represents a single # start time must not be later than the end time. The default start time is the
# point in time. # 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` # Corresponds to the JSON property `interval`
# @return [Google::Apis::MonitoringV3::TimeInterval] # @return [Google::Apis::MonitoringV3::TimeInterval]
attr_accessor :interval attr_accessor :interval
@ -2543,9 +2547,12 @@ module Google
end end
end end
# A time interval extending just after a start time through an end time. If the # A time interval extending just after a start time through an end time. The
# start time is the same as the end time, then the interval represents a single # start time must not be later than the end time. The default start time is the
# point in time. # 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 class TimeInterval
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-control/ # @see https://cloud.google.com/service-control/
module ServicecontrolV1 module ServicecontrolV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20181029' REVISION = '20181121'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -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<Google::Apis::SpeechV1beta1::Operation>]
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<String,Object>]
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<String,Object>]
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<String>]
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<Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative>]
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<Hash<String,Object>>]
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<Google::Apis::SpeechV1beta1::SpeechRecognitionResult>]
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

View File

@ -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

View File

@ -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

View File

@ -12,9 +12,9 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
require 'google/apis/speech_v1beta1/service.rb' require 'google/apis/speech_v1p1beta1/service.rb'
require 'google/apis/speech_v1beta1/classes.rb' require 'google/apis/speech_v1p1beta1/classes.rb'
require 'google/apis/speech_v1beta1/representations.rb' require 'google/apis/speech_v1p1beta1/representations.rb'
module Google module Google
module Apis module Apis
@ -23,9 +23,9 @@ module Google
# Converts audio to text by applying powerful neural network models. # Converts audio to text by applying powerful neural network models.
# #
# @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol
module SpeechV1beta1 module SpeechV1p1beta1
VERSION = 'V1beta1' VERSION = 'V1p1beta1'
REVISION = '20180911' REVISION = '20181107'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,423 @@
# 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
class DataErrors
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DataStats
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Dataset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeployModelRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EvaluateModelRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EvaluateModelResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDatasetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLogDataStatsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListModelsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogBucketStats
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LongRunningRecognizeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Model
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 RecognitionMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RecognizeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RecognizeResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RefreshDataRequest
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 WordInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DataErrors
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, as: 'count'
property :error_type, as: 'errorType'
end
end
class DataStats
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :data_errors, as: 'dataErrors', class: Google::Apis::SpeechV1p1beta1::DataErrors, decorator: Google::Apis::SpeechV1p1beta1::DataErrors::Representation
property :test_example_count, as: 'testExampleCount'
property :training_example_count, as: 'trainingExampleCount'
end
end
class Dataset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :blocking_operation_ids, as: 'blockingOperationIds'
property :bucket_name, as: 'bucketName'
property :create_time, as: 'createTime'
property :data_processing_region, as: 'dataProcessingRegion'
property :data_stats, as: 'dataStats', class: Google::Apis::SpeechV1p1beta1::DataStats, decorator: Google::Apis::SpeechV1p1beta1::DataStats::Representation
property :display_name, as: 'displayName'
property :has_sufficient_data, as: 'hasSufficientData'
property :language_code, as: 'languageCode'
collection :models, as: 'models', class: Google::Apis::SpeechV1p1beta1::Model, decorator: Google::Apis::SpeechV1p1beta1::Model::Representation
property :name, as: 'name'
property :update_time, as: 'updateTime'
property :uri, as: 'uri'
property :use_logged_data, as: 'useLoggedData'
end
end
class DeployModelRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class EvaluateModelRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class EvaluateModelResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :is_enhanced_model, as: 'isEnhancedModel'
property :model_type, as: 'modelType'
property :word_count, as: 'wordCount'
property :word_error_rate, as: 'wordErrorRate'
end
end
class ListDatasetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :datasets, as: 'datasets', class: Google::Apis::SpeechV1p1beta1::Dataset, decorator: Google::Apis::SpeechV1p1beta1::Dataset::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListLogDataStatsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :log_data_enabled, as: 'logDataEnabled'
collection :log_data_stats, as: 'logDataStats', class: Google::Apis::SpeechV1p1beta1::LogBucketStats, decorator: Google::Apis::SpeechV1p1beta1::LogBucketStats::Representation
property :total_count, as: 'totalCount'
end
end
class ListModelsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :models, as: 'models', class: Google::Apis::SpeechV1p1beta1::Model, decorator: Google::Apis::SpeechV1p1beta1::Model::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class LogBucketStats
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bucket_name, as: 'bucketName'
property :count, as: 'count'
end
end
class LongRunningRecognizeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :audio, as: 'audio', class: Google::Apis::SpeechV1p1beta1::RecognitionAudio, decorator: Google::Apis::SpeechV1p1beta1::RecognitionAudio::Representation
property :config, as: 'config', class: Google::Apis::SpeechV1p1beta1::RecognitionConfig, decorator: Google::Apis::SpeechV1p1beta1::RecognitionConfig::Representation
end
end
class Model
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :display_name, as: 'displayName'
collection :evaluate_model_responses, as: 'evaluateModelResponses', class: Google::Apis::SpeechV1p1beta1::EvaluateModelResponse, decorator: Google::Apis::SpeechV1p1beta1::EvaluateModelResponse::Representation
property :name, as: 'name'
property :training_type, as: 'trainingType'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::SpeechV1p1beta1::Status, decorator: Google::Apis::SpeechV1p1beta1::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
collection :alternative_language_codes, as: 'alternativeLanguageCodes'
property :audio_channel_count, as: 'audioChannelCount'
property :diarization_speaker_count, as: 'diarizationSpeakerCount'
property :enable_automatic_punctuation, as: 'enableAutomaticPunctuation'
property :enable_separate_recognition_per_channel, as: 'enableSeparateRecognitionPerChannel'
property :enable_speaker_diarization, as: 'enableSpeakerDiarization'
property :enable_word_confidence, as: 'enableWordConfidence'
property :enable_word_time_offsets, as: 'enableWordTimeOffsets'
property :encoding, as: 'encoding'
property :language_code, as: 'languageCode'
property :max_alternatives, as: 'maxAlternatives'
property :metadata, as: 'metadata', class: Google::Apis::SpeechV1p1beta1::RecognitionMetadata, decorator: Google::Apis::SpeechV1p1beta1::RecognitionMetadata::Representation
property :model, as: 'model'
property :profanity_filter, as: 'profanityFilter'
property :sample_rate_hertz, as: 'sampleRateHertz'
collection :speech_contexts, as: 'speechContexts', class: Google::Apis::SpeechV1p1beta1::SpeechContext, decorator: Google::Apis::SpeechV1p1beta1::SpeechContext::Representation
property :use_enhanced, as: 'useEnhanced'
end
end
class RecognitionMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :audio_topic, as: 'audioTopic'
property :industry_naics_code_of_audio, as: 'industryNaicsCodeOfAudio'
property :interaction_type, as: 'interactionType'
property :microphone_distance, as: 'microphoneDistance'
property :obfuscated_id, :numeric_string => true, as: 'obfuscatedId'
property :original_media_type, as: 'originalMediaType'
property :original_mime_type, as: 'originalMimeType'
property :recording_device_name, as: 'recordingDeviceName'
property :recording_device_type, as: 'recordingDeviceType'
collection :tags, as: 'tags'
end
end
class RecognizeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :audio, as: 'audio', class: Google::Apis::SpeechV1p1beta1::RecognitionAudio, decorator: Google::Apis::SpeechV1p1beta1::RecognitionAudio::Representation
property :config, as: 'config', class: Google::Apis::SpeechV1p1beta1::RecognitionConfig, decorator: Google::Apis::SpeechV1p1beta1::RecognitionConfig::Representation
end
end
class RecognizeResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :results, as: 'results', class: Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult::Representation
end
end
class RefreshDataRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :uri, as: 'uri'
end
end
class SpeechContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :phrases, as: 'phrases'
property :strength, as: 'strength'
end
end
class SpeechRecognitionAlternative
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :confidence, as: 'confidence'
property :transcript, as: 'transcript'
collection :words, as: 'words', class: Google::Apis::SpeechV1p1beta1::WordInfo, decorator: Google::Apis::SpeechV1p1beta1::WordInfo::Representation
end
end
class SpeechRecognitionResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :alternatives, as: 'alternatives', class: Google::Apis::SpeechV1p1beta1::SpeechRecognitionAlternative, decorator: Google::Apis::SpeechV1p1beta1::SpeechRecognitionAlternative::Representation
property :channel_tag, as: 'channelTag'
property :language_code, as: 'languageCode'
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 WordInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :confidence, as: 'confidence'
property :end_time, as: 'endTime'
property :speaker_tag, as: 'speakerTag'
property :start_time, as: 'startTime'
property :word, as: 'word'
end
end
end
end
end

View File

@ -0,0 +1,492 @@
# 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 SpeechV1p1beta1
# Cloud Speech API
#
# Converts audio to text by applying powerful neural network models.
#
# @example
# require 'google/apis/speech_v1p1beta1'
#
# Speech = Google::Apis::SpeechV1p1beta1 # 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::SpeechV1p1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::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, 'v1p1beta1/operations/{+name}', options)
command.response_representation = Google::Apis::SpeechV1p1beta1::Operation::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::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
# Performs asynchronous data upload for AutoML: receive results via the
# google.longrunning.Operations interface. Returns either an
# `Operation.error` or an `Operation.response` which contains
# a `Dataset` message.
# @param [String] parent
# Required. Resource name of the parent. Has the format :-
# "projects/`project_id`/locations/`location_id`"
# @param [Google::Apis::SpeechV1p1beta1::Dataset] dataset_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::SpeechV1p1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::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 create_project_location_dataset(parent, dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1p1beta1/{+parent}/datasets', options)
command.request_representation = Google::Apis::SpeechV1p1beta1::Dataset::Representation
command.request_object = dataset_object
command.response_representation = Google::Apis::SpeechV1p1beta1::Operation::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::Operation
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Get the dataset associated with the dataset resource.
# @param [String] name
# The resource name of the dataset to retrieve. Form :-
# '/projects/`project_number`/locations/`location_id`/datasets/`dataset_id`'
# @param [Boolean] include_model_info
# If true then also include information about the models built using this
# dataset.
# @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::SpeechV1p1beta1::Dataset] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::Dataset]
#
# @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_project_location_dataset(name, include_model_info: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1p1beta1/{+name}', options)
command.response_representation = Google::Apis::SpeechV1p1beta1::Dataset::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::Dataset
command.params['name'] = name unless name.nil?
command.query['includeModelInfo'] = include_model_info unless include_model_info.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Fetch the list of dataset associated with this project.
# @param [String] parent
# Required. Resource name of the parent. Has the format :-
# "projects/`project_id`/locations/`location_id`"
# @param [String] filter
# Filter the response based on display_name of the dataset. For e.g
# display_name=Foo The filter string is case sensitive
# @param [Boolean] include_model_info
# If true then also include information about the models built using the
# datasets.
# @param [Fixnum] page_size
# The maximum number of items to return.
# @param [String] page_token
# The next_page_token value returned from a previous List request, if any.
# @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::SpeechV1p1beta1::ListDatasetsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::ListDatasetsResponse]
#
# @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_project_location_datasets(parent, filter: nil, include_model_info: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1p1beta1/{+parent}/datasets', options)
command.response_representation = Google::Apis::SpeechV1p1beta1::ListDatasetsResponse::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::ListDatasetsResponse
command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.nil?
command.query['includeModelInfo'] = include_model_info unless include_model_info.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
# Refresh data for a dataset.
# @param [String] name
# The resource name of the destination dataset.
# @param [Google::Apis::SpeechV1p1beta1::RefreshDataRequest] refresh_data_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::SpeechV1p1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::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 refresh_dataset_data(name, refresh_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1p1beta1/{+name}:refreshData', options)
command.request_representation = Google::Apis::SpeechV1p1beta1::RefreshDataRequest::Representation
command.request_object = refresh_data_request_object
command.response_representation = Google::Apis::SpeechV1p1beta1::Operation::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::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
# List all log data stats associated with this project.
# @param [String] parent
# Required. Resource name of the parent. Has the format :-
# "projects/`project_id`/locations/`location_id`"
# @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::SpeechV1p1beta1::ListLogDataStatsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::ListLogDataStatsResponse]
#
# @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_project_location_log_data_stats(parent, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1p1beta1/{+parent}/log_data_stats', options)
command.response_representation = Google::Apis::SpeechV1p1beta1::ListLogDataStatsResponse::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::ListLogDataStatsResponse
command.params['parent'] = parent unless parent.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 model training for AutoML: receive results via the
# google.longrunning.Operations interface. Returns either an
# `Operation.error` or an `Operation.response` which contains a `Model`
# message.
# @param [String] parent
# Required. Resource name of the parent. Has the format :-
# "projects/`project_id`/locations/`location_id`"
# @param [Google::Apis::SpeechV1p1beta1::Model] model_object
# @param [String] name
# Required. Resource name of the dataset being used to create the model.
# '/projects/`project_id`/locations/`location_id`/datasets/`dataset_id`'
# @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::SpeechV1p1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::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 create_project_location_model(parent, model_object = nil, name: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1p1beta1/{+parent}/models', options)
command.request_representation = Google::Apis::SpeechV1p1beta1::Model::Representation
command.request_object = model_object
command.response_representation = Google::Apis::SpeechV1p1beta1::Operation::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::Operation
command.params['parent'] = parent unless parent.nil?
command.query['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
# Performs asynchronous model deployment of the model: receive results
# via the google.longrunning.Operations interface. After the operation is
# completed this returns either an `Operation.error` in case of error or
# a `google.protobuf.Empty` if the deployment was successful.
# @param [String] name
# Resource name of the model.
# Format: "projects/`project_id`/locations/`location_id`/models/`model_id`"
# @param [Google::Apis::SpeechV1p1beta1::DeployModelRequest] deploy_model_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::SpeechV1p1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::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 deploy_model(name, deploy_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1p1beta1/{+name}:deploy', options)
command.request_representation = Google::Apis::SpeechV1p1beta1::DeployModelRequest::Representation
command.request_object = deploy_model_request_object
command.response_representation = Google::Apis::SpeechV1p1beta1::Operation::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::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
# Performs asynchronous evaluation of the model: receive results
# via the google.longrunning.Operations interface. After the operation is
# completed this returns either an `Operation.error` in case of error or
# a `EvaluateModelResponse` with the evaluation results.
# @param [String] name
# Resource name of the model.
# Format: "projects/`project_id`/locations/`location_id`/models/`model_id`"
# @param [Google::Apis::SpeechV1p1beta1::EvaluateModelRequest] evaluate_model_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::SpeechV1p1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::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 evaluate_model(name, evaluate_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1p1beta1/{+name}:evaluate', options)
command.request_representation = Google::Apis::SpeechV1p1beta1::EvaluateModelRequest::Representation
command.request_object = evaluate_model_request_object
command.response_representation = Google::Apis::SpeechV1p1beta1::Operation::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::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
# Fetch the list of models associated with this project.
# @param [String] parent
# Required. Resource name of the parent. Has the format :-
# "projects/`project_id`/locations/`location_id`"
# @param [String] filter
# Filter the response based on display_name of the model. For e.g
# display_name=Foo The filter string is case sensitive
# @param [Fixnum] page_size
# The maximum number of items to return.
# @param [String] page_token
# The next_page_token value returned from a previous List request, if any.
# @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::SpeechV1p1beta1::ListModelsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::ListModelsResponse]
#
# @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_project_location_models(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1p1beta1/{+parent}/models', options)
command.response_representation = Google::Apis::SpeechV1p1beta1::ListModelsResponse::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::ListModelsResponse
command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.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 interface. Returns either an
# `Operation.error` or an `Operation.response` which contains
# a `LongRunningRecognizeResponse` message.
# @param [Google::Apis::SpeechV1p1beta1::LongRunningRecognizeRequest] long_running_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::SpeechV1p1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::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 longrunningrecognize_speech(long_running_recognize_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1p1beta1/speech:longrunningrecognize', options)
command.request_representation = Google::Apis::SpeechV1p1beta1::LongRunningRecognizeRequest::Representation
command.request_object = long_running_recognize_request_object
command.response_representation = Google::Apis::SpeechV1p1beta1::Operation::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::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::SpeechV1p1beta1::RecognizeRequest] 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::SpeechV1p1beta1::RecognizeResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SpeechV1p1beta1::RecognizeResponse]
#
# @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 recognize_speech(recognize_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1p1beta1/speech:recognize', options)
command.request_representation = Google::Apis::SpeechV1p1beta1::RecognizeRequest::Representation
command.request_object = recognize_request_object
command.response_representation = Google::Apis::SpeechV1p1beta1::RecognizeResponse::Representation
command.response_class = Google::Apis::SpeechV1p1beta1::RecognizeResponse
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

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/cloud-test-lab/ # @see https://developers.google.com/cloud-test-lab/
module TestingV1 module TestingV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20181107' REVISION = '20181127'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -161,6 +161,14 @@ module Google
# @return [Google::Apis::TestingV1::FileReference] # @return [Google::Apis::TestingV1::FileReference]
attr_accessor :app_apk attr_accessor :app_apk
# An Android App Bundle file format, containing a BundleConfig.pb file,
# a base module directory, zero or more dynamic feature module directories.
# <p>See https://developer.android.com/guide/app-bundle/build for guidance on
# building App Bundles.
# Corresponds to the JSON property `appBundle`
# @return [Google::Apis::TestingV1::AppBundle]
attr_accessor :app_bundle
# The java package for the application under test. # The java package for the application under test.
# Optional, default is determined by examining the application's manifest. # Optional, default is determined by examining the application's manifest.
# Corresponds to the JSON property `appPackageId` # Corresponds to the JSON property `appPackageId`
@ -218,6 +226,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@app_apk = args[:app_apk] if args.key?(:app_apk) @app_apk = args[:app_apk] if args.key?(:app_apk)
@app_bundle = args[:app_bundle] if args.key?(:app_bundle)
@app_package_id = args[:app_package_id] if args.key?(:app_package_id) @app_package_id = args[:app_package_id] if args.key?(:app_package_id)
@orchestrator_option = args[:orchestrator_option] if args.key?(:orchestrator_option) @orchestrator_option = args[:orchestrator_option] if args.key?(:orchestrator_option)
@test_apk = args[:test_apk] if args.key?(:test_apk) @test_apk = args[:test_apk] if args.key?(:test_apk)
@ -410,6 +419,14 @@ module Google
# @return [Google::Apis::TestingV1::FileReference] # @return [Google::Apis::TestingV1::FileReference]
attr_accessor :app_apk attr_accessor :app_apk
# An Android App Bundle file format, containing a BundleConfig.pb file,
# a base module directory, zero or more dynamic feature module directories.
# <p>See https://developer.android.com/guide/app-bundle/build for guidance on
# building App Bundles.
# Corresponds to the JSON property `appBundle`
# @return [Google::Apis::TestingV1::AppBundle]
attr_accessor :app_bundle
# The initial activity that should be used to start the app. # The initial activity that should be used to start the app.
# Optional # Optional
# Corresponds to the JSON property `appInitialActivity` # Corresponds to the JSON property `appInitialActivity`
@ -465,6 +482,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@app_apk = args[:app_apk] if args.key?(:app_apk) @app_apk = args[:app_apk] if args.key?(:app_apk)
@app_bundle = args[:app_bundle] if args.key?(:app_bundle)
@app_initial_activity = args[:app_initial_activity] if args.key?(:app_initial_activity) @app_initial_activity = args[:app_initial_activity] if args.key?(:app_initial_activity)
@app_package_id = args[:app_package_id] if args.key?(:app_package_id) @app_package_id = args[:app_package_id] if args.key?(:app_package_id)
@max_depth = args[:max_depth] if args.key?(:max_depth) @max_depth = args[:max_depth] if args.key?(:max_depth)
@ -513,6 +531,14 @@ module Google
# @return [Google::Apis::TestingV1::FileReference] # @return [Google::Apis::TestingV1::FileReference]
attr_accessor :app_apk attr_accessor :app_apk
# An Android App Bundle file format, containing a BundleConfig.pb file,
# a base module directory, zero or more dynamic feature module directories.
# <p>See https://developer.android.com/guide/app-bundle/build for guidance on
# building App Bundles.
# Corresponds to the JSON property `appBundle`
# @return [Google::Apis::TestingV1::AppBundle]
attr_accessor :app_bundle
# The java package for the application under test. # The java package for the application under test.
# Optional, default is determined by examining the application's manifest. # Optional, default is determined by examining the application's manifest.
# Corresponds to the JSON property `appPackageId` # Corresponds to the JSON property `appPackageId`
@ -544,6 +570,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@app_apk = args[:app_apk] if args.key?(:app_apk) @app_apk = args[:app_apk] if args.key?(:app_apk)
@app_bundle = args[:app_bundle] if args.key?(:app_bundle)
@app_package_id = args[:app_package_id] if args.key?(:app_package_id) @app_package_id = args[:app_package_id] if args.key?(:app_package_id)
@scenario_labels = args[:scenario_labels] if args.key?(:scenario_labels) @scenario_labels = args[:scenario_labels] if args.key?(:scenario_labels)
@scenarios = args[:scenarios] if args.key?(:scenarios) @scenarios = args[:scenarios] if args.key?(:scenarios)
@ -714,6 +741,28 @@ module Google
end end
end end
# An Android App Bundle file format, containing a BundleConfig.pb file,
# a base module directory, zero or more dynamic feature module directories.
# <p>See https://developer.android.com/guide/app-bundle/build for guidance on
# building App Bundles.
class AppBundle
include Google::Apis::Core::Hashable
# A reference to a file, used for user inputs.
# Corresponds to the JSON property `bundleLocation`
# @return [Google::Apis::TestingV1::FileReference]
attr_accessor :bundle_location
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bundle_location = args[:bundle_location] if args.key?(:bundle_location)
end
end
# Response containing the current state of the specified test matrix. # Response containing the current state of the specified test matrix.
class CancelTestMatrixResponse class CancelTestMatrixResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -106,6 +106,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class AppBundle
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelTestMatrixResponse class CancelTestMatrixResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -419,6 +425,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :app_apk, as: 'appApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation property :app_apk, as: 'appApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation
property :app_bundle, as: 'appBundle', class: Google::Apis::TestingV1::AppBundle, decorator: Google::Apis::TestingV1::AppBundle::Representation
property :app_package_id, as: 'appPackageId' property :app_package_id, as: 'appPackageId'
property :orchestrator_option, as: 'orchestratorOption' property :orchestrator_option, as: 'orchestratorOption'
property :test_apk, as: 'testApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation property :test_apk, as: 'testApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation
@ -464,6 +472,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :app_apk, as: 'appApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation property :app_apk, as: 'appApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation
property :app_bundle, as: 'appBundle', class: Google::Apis::TestingV1::AppBundle, decorator: Google::Apis::TestingV1::AppBundle::Representation
property :app_initial_activity, as: 'appInitialActivity' property :app_initial_activity, as: 'appInitialActivity'
property :app_package_id, as: 'appPackageId' property :app_package_id, as: 'appPackageId'
property :max_depth, as: 'maxDepth' property :max_depth, as: 'maxDepth'
@ -492,6 +502,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :app_apk, as: 'appApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation property :app_apk, as: 'appApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation
property :app_bundle, as: 'appBundle', class: Google::Apis::TestingV1::AppBundle, decorator: Google::Apis::TestingV1::AppBundle::Representation
property :app_package_id, as: 'appPackageId' property :app_package_id, as: 'appPackageId'
collection :scenario_labels, as: 'scenarioLabels' collection :scenario_labels, as: 'scenarioLabels'
collection :scenarios, as: 'scenarios' collection :scenarios, as: 'scenarios'
@ -542,6 +554,14 @@ module Google
end end
end end
class AppBundle
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bundle_location, as: 'bundleLocation', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation
end
end
class CancelTestMatrixResponse class CancelTestMatrixResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/youtube/partner/ # @see https://developers.google.com/youtube/partner/
module YoutubePartnerV1 module YoutubePartnerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20181112' REVISION = '20181126'
# View and manage your assets and associated content on YouTube # View and manage your assets and associated content on YouTube
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner' AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'