From f23048c628fc43f4b801dcf190c073a99d1349b2 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Tue, 12 Sep 2017 00:36:05 +0000 Subject: [PATCH] Autogenerated update (2017-09-12) Add: - testing_v1 Update: - adsensehost_v4_1 - androidmanagement_v1 - deploymentmanager_alpha - deploymentmanager_v2 - deploymentmanager_v2beta - language_v1 - language_v1beta1 - language_v1beta2 - ml_v1 - people_v1 - toolresults_v1beta3 - toolresults_v1beta3firstparty --- api_names_out.yaml | 245 +++ generated/google/apis/adsensehost_v4_1.rb | 2 +- generated/google/apis/androidmanagement_v1.rb | 2 +- .../apis/androidmanagement_v1/classes.rb | 8 + .../androidmanagement_v1/representations.rb | 1 + .../google/apis/appsmarket_v2/service.rb | 2 +- .../google/apis/deploymentmanager_alpha.rb | 2 +- .../apis/deploymentmanager_alpha/classes.rb | 74 +- .../representations.rb | 32 + .../apis/deploymentmanager_alpha/service.rb | 2 +- generated/google/apis/deploymentmanager_v2.rb | 2 +- .../apis/deploymentmanager_v2/service.rb | 2 +- .../google/apis/deploymentmanager_v2beta.rb | 2 +- .../apis/deploymentmanager_v2beta/classes.rb | 42 +- .../representations.rb | 16 + .../apis/deploymentmanager_v2beta/service.rb | 2 +- .../apis/doubleclicksearch_v2/service.rb | 2 +- generated/google/apis/language_v1.rb | 2 +- generated/google/apis/language_v1/classes.rb | 74 + .../apis/language_v1/representations.rb | 35 + generated/google/apis/language_v1/service.rb | 31 + generated/google/apis/language_v1beta1.rb | 2 +- generated/google/apis/language_v1beta2.rb | 2 +- generated/google/apis/ml_v1.rb | 2 +- generated/google/apis/ml_v1/classes.rb | 3 + generated/google/apis/people_v1.rb | 2 +- generated/google/apis/people_v1/classes.rb | 8 + .../google/apis/people_v1/representations.rb | 1 + generated/google/apis/testing_v1.rb | 38 + generated/google/apis/testing_v1/classes.rb | 1616 +++++++++++++++++ .../google/apis/testing_v1/representations.rb | 688 +++++++ generated/google/apis/testing_v1/service.rb | 221 +++ generated/google/apis/toolresults_v1beta3.rb | 2 +- .../apis/toolresults_v1beta3/service.rb | 2 +- .../apis/toolresults_v1beta3firstparty.rb | 2 +- .../toolresults_v1beta3firstparty/service.rb | 2 +- .../google/apis/youtube_partner_v1/service.rb | 2 +- 37 files changed, 3147 insertions(+), 26 deletions(-) create mode 100644 generated/google/apis/testing_v1.rb create mode 100644 generated/google/apis/testing_v1/classes.rb create mode 100644 generated/google/apis/testing_v1/representations.rb create mode 100644 generated/google/apis/testing_v1/service.rb diff --git a/api_names_out.yaml b/api_names_out.yaml index 6d66f527c..d1097197a 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -5770,6 +5770,7 @@ "/androidmanagement:v1/Policy/adjustVolumeDisabled": adjust_volume_disabled "/androidmanagement:v1/Policy/applications": applications "/androidmanagement:v1/Policy/applications/application": application +"/androidmanagement:v1/Policy/autoTimeRequired": auto_time_required "/androidmanagement:v1/Policy/blockApplicationsEnabled": block_applications_enabled "/androidmanagement:v1/Policy/cameraDisabled": camera_disabled "/androidmanagement:v1/Policy/complianceRules": compliance_rules @@ -30319,6 +30320,8 @@ "/deploymentmanager:alpha/ConfigurableService/options": options "/deploymentmanager:alpha/Credential": credential "/deploymentmanager:alpha/Credential/basicAuth": basic_auth +"/deploymentmanager:alpha/Credential/serviceAccount": service_account +"/deploymentmanager:alpha/Credential/useProjectDefault": use_project_default "/deploymentmanager:alpha/Deployment": deployment "/deploymentmanager:alpha/Deployment/description": description "/deploymentmanager:alpha/Deployment/fingerprint": fingerprint @@ -30329,12 +30332,17 @@ "/deploymentmanager:alpha/Deployment/manifest": manifest "/deploymentmanager:alpha/Deployment/name": name "/deploymentmanager:alpha/Deployment/operation": operation +"/deploymentmanager:alpha/Deployment/outputs": outputs +"/deploymentmanager:alpha/Deployment/outputs/output": output "/deploymentmanager:alpha/Deployment/selfLink": self_link "/deploymentmanager:alpha/Deployment/target": target "/deploymentmanager:alpha/Deployment/update": update "/deploymentmanager:alpha/DeploymentLabelEntry": deployment_label_entry "/deploymentmanager:alpha/DeploymentLabelEntry/key": key "/deploymentmanager:alpha/DeploymentLabelEntry/value": value +"/deploymentmanager:alpha/DeploymentOutputsEntry": deployment_outputs_entry +"/deploymentmanager:alpha/DeploymentOutputsEntry/key": key +"/deploymentmanager:alpha/DeploymentOutputsEntry/value": value "/deploymentmanager:alpha/DeploymentUpdate": deployment_update "/deploymentmanager:alpha/DeploymentUpdate/description": description "/deploymentmanager:alpha/DeploymentUpdate/labels": labels @@ -30505,6 +30513,8 @@ "/deploymentmanager:alpha/Rule/notIns/not_in": not_in "/deploymentmanager:alpha/Rule/permissions": permissions "/deploymentmanager:alpha/Rule/permissions/permission": permission +"/deploymentmanager:alpha/ServiceAccount": service_account +"/deploymentmanager:alpha/ServiceAccount/email": email "/deploymentmanager:alpha/TargetConfiguration": target_configuration "/deploymentmanager:alpha/TargetConfiguration/config": config "/deploymentmanager:alpha/TargetConfiguration/imports": imports @@ -31092,6 +31102,8 @@ "/deploymentmanager:v2beta/ConfigFile/content": content "/deploymentmanager:v2beta/Credential": credential "/deploymentmanager:v2beta/Credential/basicAuth": basic_auth +"/deploymentmanager:v2beta/Credential/serviceAccount": service_account +"/deploymentmanager:v2beta/Credential/useProjectDefault": use_project_default "/deploymentmanager:v2beta/Deployment": deployment "/deploymentmanager:v2beta/Deployment/description": description "/deploymentmanager:v2beta/Deployment/fingerprint": fingerprint @@ -31278,6 +31290,8 @@ "/deploymentmanager:v2beta/Rule/notIns/not_in": not_in "/deploymentmanager:v2beta/Rule/permissions": permissions "/deploymentmanager:v2beta/Rule/permissions/permission": permission +"/deploymentmanager:v2beta/ServiceAccount": service_account +"/deploymentmanager:v2beta/ServiceAccount/email": email "/deploymentmanager:v2beta/TargetConfiguration": target_configuration "/deploymentmanager:v2beta/TargetConfiguration/config": config "/deploymentmanager:v2beta/TargetConfiguration/imports": imports @@ -42715,6 +42729,13 @@ "/language:v1/AnalyzeEntitiesResponse/entities": entities "/language:v1/AnalyzeEntitiesResponse/entities/entity": entity "/language:v1/AnalyzeEntitiesResponse/language": language +"/language:v1/AnalyzeEntitySentimentRequest": analyze_entity_sentiment_request +"/language:v1/AnalyzeEntitySentimentRequest/document": document +"/language:v1/AnalyzeEntitySentimentRequest/encodingType": encoding_type +"/language:v1/AnalyzeEntitySentimentResponse": analyze_entity_sentiment_response +"/language:v1/AnalyzeEntitySentimentResponse/entities": entities +"/language:v1/AnalyzeEntitySentimentResponse/entities/entity": entity +"/language:v1/AnalyzeEntitySentimentResponse/language": language "/language:v1/AnalyzeSentimentRequest": analyze_sentiment_request "/language:v1/AnalyzeSentimentRequest/document": document "/language:v1/AnalyzeSentimentRequest/encodingType": encoding_type @@ -42760,13 +42781,16 @@ "/language:v1/Entity/metadata/metadatum": metadatum "/language:v1/Entity/name": name "/language:v1/Entity/salience": salience +"/language:v1/Entity/sentiment": sentiment "/language:v1/Entity/type": type "/language:v1/EntityMention": entity_mention +"/language:v1/EntityMention/sentiment": sentiment "/language:v1/EntityMention/text": text "/language:v1/EntityMention/type": type "/language:v1/Features": features "/language:v1/Features/extractDocumentSentiment": extract_document_sentiment "/language:v1/Features/extractEntities": extract_entities +"/language:v1/Features/extractEntitySentiment": extract_entity_sentiment "/language:v1/Features/extractSyntax": extract_syntax "/language:v1/PartOfSpeech": part_of_speech "/language:v1/PartOfSpeech/aspect": aspect @@ -42804,6 +42828,7 @@ "/language:v1/fields": fields "/language:v1/key": key "/language:v1/language.documents.analyzeEntities": analyze_document_entities +"/language:v1/language.documents.analyzeEntitySentiment": analyze_document_entity_sentiment "/language:v1/language.documents.analyzeSentiment": analyze_document_sentiment "/language:v1/language.documents.analyzeSyntax": analyze_document_syntax "/language:v1/language.documents.annotateText": annotate_document_text @@ -46181,6 +46206,7 @@ "/people:v1/PhoneNumber/type": type "/people:v1/PhoneNumber/value": value "/people:v1/Photo": photo +"/people:v1/Photo/default": default "/people:v1/Photo/metadata": metadata "/people:v1/Photo/url": url "/people:v1/ProfileMetadata": profile_metadata @@ -55869,6 +55895,225 @@ "/tasks:v1/tasks.tasks.update/task": task "/tasks:v1/tasks.tasks.update/tasklist": tasklist "/tasks:v1/userIp": user_ip +"/testing:v1/Account": account +"/testing:v1/Account/googleAuto": google_auto +"/testing:v1/AndroidDevice": android_device +"/testing:v1/AndroidDevice/androidModelId": android_model_id +"/testing:v1/AndroidDevice/androidVersionId": android_version_id +"/testing:v1/AndroidDevice/locale": locale +"/testing:v1/AndroidDevice/orientation": orientation +"/testing:v1/AndroidDeviceCatalog": android_device_catalog +"/testing:v1/AndroidDeviceCatalog/models": models +"/testing:v1/AndroidDeviceCatalog/models/model": model +"/testing:v1/AndroidDeviceCatalog/runtimeConfiguration": runtime_configuration +"/testing:v1/AndroidDeviceCatalog/versions": versions +"/testing:v1/AndroidDeviceCatalog/versions/version": version +"/testing:v1/AndroidDeviceList": android_device_list +"/testing:v1/AndroidDeviceList/androidDevices": android_devices +"/testing:v1/AndroidDeviceList/androidDevices/android_device": android_device +"/testing:v1/AndroidInstrumentationTest": android_instrumentation_test +"/testing:v1/AndroidInstrumentationTest/appApk": app_apk +"/testing:v1/AndroidInstrumentationTest/appPackageId": app_package_id +"/testing:v1/AndroidInstrumentationTest/orchestratorOption": orchestrator_option +"/testing:v1/AndroidInstrumentationTest/testApk": test_apk +"/testing:v1/AndroidInstrumentationTest/testPackageId": test_package_id +"/testing:v1/AndroidInstrumentationTest/testRunnerClass": test_runner_class +"/testing:v1/AndroidInstrumentationTest/testTargets": test_targets +"/testing:v1/AndroidInstrumentationTest/testTargets/test_target": test_target +"/testing:v1/AndroidMatrix": android_matrix +"/testing:v1/AndroidMatrix/androidModelIds": android_model_ids +"/testing:v1/AndroidMatrix/androidModelIds/android_model_id": android_model_id +"/testing:v1/AndroidMatrix/androidVersionIds": android_version_ids +"/testing:v1/AndroidMatrix/androidVersionIds/android_version_id": android_version_id +"/testing:v1/AndroidMatrix/locales": locales +"/testing:v1/AndroidMatrix/locales/locale": locale +"/testing:v1/AndroidMatrix/orientations": orientations +"/testing:v1/AndroidMatrix/orientations/orientation": orientation +"/testing:v1/AndroidModel": android_model +"/testing:v1/AndroidModel/brand": brand +"/testing:v1/AndroidModel/codename": codename +"/testing:v1/AndroidModel/form": form +"/testing:v1/AndroidModel/id": id +"/testing:v1/AndroidModel/manufacturer": manufacturer +"/testing:v1/AndroidModel/name": name +"/testing:v1/AndroidModel/screenDensity": screen_density +"/testing:v1/AndroidModel/screenX": screen_x +"/testing:v1/AndroidModel/screenY": screen_y +"/testing:v1/AndroidModel/supportedAbis": supported_abis +"/testing:v1/AndroidModel/supportedAbis/supported_abi": supported_abi +"/testing:v1/AndroidModel/supportedVersionIds": supported_version_ids +"/testing:v1/AndroidModel/supportedVersionIds/supported_version_id": supported_version_id +"/testing:v1/AndroidModel/tags": tags +"/testing:v1/AndroidModel/tags/tag": tag +"/testing:v1/AndroidRoboTest": android_robo_test +"/testing:v1/AndroidRoboTest/appApk": app_apk +"/testing:v1/AndroidRoboTest/appInitialActivity": app_initial_activity +"/testing:v1/AndroidRoboTest/appPackageId": app_package_id +"/testing:v1/AndroidRoboTest/maxDepth": max_depth +"/testing:v1/AndroidRoboTest/maxSteps": max_steps +"/testing:v1/AndroidRoboTest/roboDirectives": robo_directives +"/testing:v1/AndroidRoboTest/roboDirectives/robo_directive": robo_directive +"/testing:v1/AndroidRuntimeConfiguration": android_runtime_configuration +"/testing:v1/AndroidRuntimeConfiguration/locales": locales +"/testing:v1/AndroidRuntimeConfiguration/locales/locale": locale +"/testing:v1/AndroidRuntimeConfiguration/orientations": orientations +"/testing:v1/AndroidRuntimeConfiguration/orientations/orientation": orientation +"/testing:v1/AndroidTestLoop": android_test_loop +"/testing:v1/AndroidTestLoop/appApk": app_apk +"/testing:v1/AndroidTestLoop/appPackageId": app_package_id +"/testing:v1/AndroidTestLoop/scenarioLabels": scenario_labels +"/testing:v1/AndroidTestLoop/scenarioLabels/scenario_label": scenario_label +"/testing:v1/AndroidTestLoop/scenarios": scenarios +"/testing:v1/AndroidTestLoop/scenarios/scenario": scenario +"/testing:v1/AndroidVersion": android_version +"/testing:v1/AndroidVersion/apiLevel": api_level +"/testing:v1/AndroidVersion/codeName": code_name +"/testing:v1/AndroidVersion/distribution": distribution +"/testing:v1/AndroidVersion/id": id +"/testing:v1/AndroidVersion/releaseDate": release_date +"/testing:v1/AndroidVersion/tags": tags +"/testing:v1/AndroidVersion/tags/tag": tag +"/testing:v1/AndroidVersion/versionString": version_string +"/testing:v1/CancelTestMatrixResponse": cancel_test_matrix_response +"/testing:v1/CancelTestMatrixResponse/testState": test_state +"/testing:v1/ClientInfo": client_info +"/testing:v1/ClientInfo/clientInfoDetails": client_info_details +"/testing:v1/ClientInfo/clientInfoDetails/client_info_detail": client_info_detail +"/testing:v1/ClientInfo/name": name +"/testing:v1/ClientInfoDetail": client_info_detail +"/testing:v1/ClientInfoDetail/key": key +"/testing:v1/ClientInfoDetail/value": value +"/testing:v1/Date": date +"/testing:v1/Date/day": day +"/testing:v1/Date/month": month +"/testing:v1/Date/year": year +"/testing:v1/DeviceFile": device_file +"/testing:v1/DeviceFile/obbFile": obb_file +"/testing:v1/Distribution": distribution +"/testing:v1/Distribution/marketShare": market_share +"/testing:v1/Distribution/measurementTime": measurement_time +"/testing:v1/Environment": environment +"/testing:v1/Environment/androidDevice": android_device +"/testing:v1/EnvironmentMatrix": environment_matrix +"/testing:v1/EnvironmentMatrix/androidDeviceList": android_device_list +"/testing:v1/EnvironmentMatrix/androidMatrix": android_matrix +"/testing:v1/EnvironmentVariable": environment_variable +"/testing:v1/EnvironmentVariable/key": key +"/testing:v1/EnvironmentVariable/value": value +"/testing:v1/FileReference": file_reference +"/testing:v1/FileReference/gcsPath": gcs_path +"/testing:v1/GoogleAuto": google_auto +"/testing:v1/GoogleCloudStorage": google_cloud_storage +"/testing:v1/GoogleCloudStorage/gcsPath": gcs_path +"/testing:v1/Locale": locale +"/testing:v1/Locale/id": id +"/testing:v1/Locale/name": name +"/testing:v1/Locale/region": region +"/testing:v1/Locale/tags": tags +"/testing:v1/Locale/tags/tag": tag +"/testing:v1/NetworkConfiguration": network_configuration +"/testing:v1/NetworkConfiguration/downRule": down_rule +"/testing:v1/NetworkConfiguration/id": id +"/testing:v1/NetworkConfiguration/upRule": up_rule +"/testing:v1/NetworkConfigurationCatalog": network_configuration_catalog +"/testing:v1/NetworkConfigurationCatalog/configurations": configurations +"/testing:v1/NetworkConfigurationCatalog/configurations/configuration": configuration +"/testing:v1/ObbFile": obb_file +"/testing:v1/ObbFile/obb": obb +"/testing:v1/ObbFile/obbFileName": obb_file_name +"/testing:v1/Orientation": orientation +"/testing:v1/Orientation/id": id +"/testing:v1/Orientation/name": name +"/testing:v1/Orientation/tags": tags +"/testing:v1/Orientation/tags/tag": tag +"/testing:v1/ResultStorage": result_storage +"/testing:v1/ResultStorage/googleCloudStorage": google_cloud_storage +"/testing:v1/ResultStorage/toolResultsExecution": tool_results_execution +"/testing:v1/ResultStorage/toolResultsHistory": tool_results_history +"/testing:v1/RoboDirective": robo_directive +"/testing:v1/RoboDirective/actionType": action_type +"/testing:v1/RoboDirective/inputText": input_text +"/testing:v1/RoboDirective/resourceName": resource_name +"/testing:v1/TestDetails": test_details +"/testing:v1/TestDetails/errorMessage": error_message +"/testing:v1/TestDetails/progressMessages": progress_messages +"/testing:v1/TestDetails/progressMessages/progress_message": progress_message +"/testing:v1/TestEnvironmentCatalog": test_environment_catalog +"/testing:v1/TestEnvironmentCatalog/androidDeviceCatalog": android_device_catalog +"/testing:v1/TestEnvironmentCatalog/networkConfigurationCatalog": network_configuration_catalog +"/testing:v1/TestExecution": test_execution +"/testing:v1/TestExecution/environment": environment +"/testing:v1/TestExecution/id": id +"/testing:v1/TestExecution/matrixId": matrix_id +"/testing:v1/TestExecution/projectId": project_id +"/testing:v1/TestExecution/state": state +"/testing:v1/TestExecution/testDetails": test_details +"/testing:v1/TestExecution/testSpecification": test_specification +"/testing:v1/TestExecution/timestamp": timestamp +"/testing:v1/TestExecution/toolResultsStep": tool_results_step +"/testing:v1/TestMatrix": test_matrix +"/testing:v1/TestMatrix/clientInfo": client_info +"/testing:v1/TestMatrix/environmentMatrix": environment_matrix +"/testing:v1/TestMatrix/invalidMatrixDetails": invalid_matrix_details +"/testing:v1/TestMatrix/projectId": project_id +"/testing:v1/TestMatrix/resultStorage": result_storage +"/testing:v1/TestMatrix/state": state +"/testing:v1/TestMatrix/testExecutions": test_executions +"/testing:v1/TestMatrix/testExecutions/test_execution": test_execution +"/testing:v1/TestMatrix/testMatrixId": test_matrix_id +"/testing:v1/TestMatrix/testSpecification": test_specification +"/testing:v1/TestMatrix/timestamp": timestamp +"/testing:v1/TestSetup": test_setup +"/testing:v1/TestSetup/account": account +"/testing:v1/TestSetup/directoriesToPull": directories_to_pull +"/testing:v1/TestSetup/directoriesToPull/directories_to_pull": directories_to_pull +"/testing:v1/TestSetup/environmentVariables": environment_variables +"/testing:v1/TestSetup/environmentVariables/environment_variable": environment_variable +"/testing:v1/TestSetup/filesToPush": files_to_push +"/testing:v1/TestSetup/filesToPush/files_to_push": files_to_push +"/testing:v1/TestSetup/networkProfile": network_profile +"/testing:v1/TestSpecification": test_specification +"/testing:v1/TestSpecification/androidInstrumentationTest": android_instrumentation_test +"/testing:v1/TestSpecification/androidRoboTest": android_robo_test +"/testing:v1/TestSpecification/androidTestLoop": android_test_loop +"/testing:v1/TestSpecification/autoGoogleLogin": auto_google_login +"/testing:v1/TestSpecification/disablePerformanceMetrics": disable_performance_metrics +"/testing:v1/TestSpecification/disableVideoRecording": disable_video_recording +"/testing:v1/TestSpecification/testSetup": test_setup +"/testing:v1/TestSpecification/testTimeout": test_timeout +"/testing:v1/ToolResultsExecution": tool_results_execution +"/testing:v1/ToolResultsExecution/executionId": execution_id +"/testing:v1/ToolResultsExecution/historyId": history_id +"/testing:v1/ToolResultsExecution/projectId": project_id +"/testing:v1/ToolResultsHistory": tool_results_history +"/testing:v1/ToolResultsHistory/historyId": history_id +"/testing:v1/ToolResultsHistory/projectId": project_id +"/testing:v1/ToolResultsStep": tool_results_step +"/testing:v1/ToolResultsStep/executionId": execution_id +"/testing:v1/ToolResultsStep/historyId": history_id +"/testing:v1/ToolResultsStep/projectId": project_id +"/testing:v1/ToolResultsStep/stepId": step_id +"/testing:v1/TrafficRule": traffic_rule +"/testing:v1/TrafficRule/bandwidth": bandwidth +"/testing:v1/TrafficRule/burst": burst +"/testing:v1/TrafficRule/delay": delay +"/testing:v1/TrafficRule/packetDuplicationRatio": packet_duplication_ratio +"/testing:v1/TrafficRule/packetLossRatio": packet_loss_ratio +"/testing:v1/fields": fields +"/testing:v1/key": key +"/testing:v1/quotaUser": quota_user +"/testing:v1/testing.projects.testMatrices.cancel": cancel_project_test_matrix +"/testing:v1/testing.projects.testMatrices.cancel/projectId": project_id +"/testing:v1/testing.projects.testMatrices.cancel/testMatrixId": test_matrix_id +"/testing:v1/testing.projects.testMatrices.create": create_project_test_matrix +"/testing:v1/testing.projects.testMatrices.create/projectId": project_id +"/testing:v1/testing.projects.testMatrices.create/requestId": request_id +"/testing:v1/testing.projects.testMatrices.get": get_project_test_matrix +"/testing:v1/testing.projects.testMatrices.get/projectId": project_id +"/testing:v1/testing.projects.testMatrices.get/testMatrixId": test_matrix_id +"/testing:v1/testing.testEnvironmentCatalog.get": get_test_environment_catalog +"/testing:v1/testing.testEnvironmentCatalog.get/environmentType": environment_type +"/testing:v1/testing.testEnvironmentCatalog.get/projectId": project_id "/toolresults:v1beta3/AndroidAppInfo": android_app_info "/toolresults:v1beta3/AndroidAppInfo/name": name "/toolresults:v1beta3/AndroidAppInfo/packageName": package_name diff --git a/generated/google/apis/adsensehost_v4_1.rb b/generated/google/apis/adsensehost_v4_1.rb index c41075507..65ca26764 100644 --- a/generated/google/apis/adsensehost_v4_1.rb +++ b/generated/google/apis/adsensehost_v4_1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/adsense/host/ module AdsensehostV4_1 VERSION = 'V4_1' - REVISION = '20170906' + REVISION = '20170910' # View and manage your AdSense host data and associated accounts AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost' diff --git a/generated/google/apis/androidmanagement_v1.rb b/generated/google/apis/androidmanagement_v1.rb index db07dff5f..5cec5a539 100644 --- a/generated/google/apis/androidmanagement_v1.rb +++ b/generated/google/apis/androidmanagement_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/android/management module AndroidmanagementV1 VERSION = 'V1' - REVISION = '20170828' + REVISION = '20170905' # Manage Android devices and apps for your customers AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement' diff --git a/generated/google/apis/androidmanagement_v1/classes.rb b/generated/google/apis/androidmanagement_v1/classes.rb index 4ed257cc3..66e10983b 100644 --- a/generated/google/apis/androidmanagement_v1/classes.rb +++ b/generated/google/apis/androidmanagement_v1/classes.rb @@ -1484,6 +1484,13 @@ module Google # @return [Array] attr_accessor :applications + # Whether auto time is required, which prevents the user from manually setting + # the date and time. + # Corresponds to the JSON property `autoTimeRequired` + # @return [Boolean] + attr_accessor :auto_time_required + alias_method :auto_time_required?, :auto_time_required + # Whether applications other than the ones configured in applications are # blocked from being installed. When set, applications that were installed under # a previous policy but no longer appear in the policy are automatically @@ -1673,6 +1680,7 @@ module Google @add_user_disabled = args[:add_user_disabled] if args.key?(:add_user_disabled) @adjust_volume_disabled = args[:adjust_volume_disabled] if args.key?(:adjust_volume_disabled) @applications = args[:applications] if args.key?(:applications) + @auto_time_required = args[:auto_time_required] if args.key?(:auto_time_required) @block_applications_enabled = args[:block_applications_enabled] if args.key?(:block_applications_enabled) @camera_disabled = args[:camera_disabled] if args.key?(:camera_disabled) @compliance_rules = args[:compliance_rules] if args.key?(:compliance_rules) diff --git a/generated/google/apis/androidmanagement_v1/representations.rb b/generated/google/apis/androidmanagement_v1/representations.rb index ee3fe0f73..0bba76b09 100644 --- a/generated/google/apis/androidmanagement_v1/representations.rb +++ b/generated/google/apis/androidmanagement_v1/representations.rb @@ -586,6 +586,7 @@ module Google property :adjust_volume_disabled, as: 'adjustVolumeDisabled' collection :applications, as: 'applications', class: Google::Apis::AndroidmanagementV1::ApplicationPolicy, decorator: Google::Apis::AndroidmanagementV1::ApplicationPolicy::Representation + property :auto_time_required, as: 'autoTimeRequired' property :block_applications_enabled, as: 'blockApplicationsEnabled' property :camera_disabled, as: 'cameraDisabled' collection :compliance_rules, as: 'complianceRules', class: Google::Apis::AndroidmanagementV1::ComplianceRule, decorator: Google::Apis::AndroidmanagementV1::ComplianceRule::Representation diff --git a/generated/google/apis/appsmarket_v2/service.rb b/generated/google/apis/appsmarket_v2/service.rb index 0e94318cd..af9f43496 100644 --- a/generated/google/apis/appsmarket_v2/service.rb +++ b/generated/google/apis/appsmarket_v2/service.rb @@ -51,7 +51,7 @@ module Google def initialize super('https://www.googleapis.com/', 'appsmarket/v2/') - @batch_path = 'batch/appsmarket/v2' + @batch_path = 'batch' end # diff --git a/generated/google/apis/deploymentmanager_alpha.rb b/generated/google/apis/deploymentmanager_alpha.rb index c2f833f99..514e1ff1a 100644 --- a/generated/google/apis/deploymentmanager_alpha.rb +++ b/generated/google/apis/deploymentmanager_alpha.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/deployment-manager/ module DeploymentmanagerAlpha VERSION = 'Alpha' - REVISION = '20170810' + REVISION = '20170907' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/deploymentmanager_alpha/classes.rb b/generated/google/apis/deploymentmanager_alpha/classes.rb index bb85b5cf5..b8fbc92d5 100644 --- a/generated/google/apis/deploymentmanager_alpha/classes.rb +++ b/generated/google/apis/deploymentmanager_alpha/classes.rb @@ -420,7 +420,8 @@ module Google # @return [Array] attr_accessor :collection_overrides - # Credential used by ConfigurableResourceTypes. + # The credential used by Deployment Manager and TypeProvider. Only one of the + # options is permitted. # Corresponds to the JSON property `credential` # @return [Google::Apis::DeploymentmanagerAlpha::Credential] attr_accessor :credential @@ -448,7 +449,8 @@ module Google end end - # Credential used by ConfigurableResourceTypes. + # The credential used by Deployment Manager and TypeProvider. Only one of the + # options is permitted. class Credential include Google::Apis::Core::Hashable @@ -457,6 +459,17 @@ module Google # @return [Google::Apis::DeploymentmanagerAlpha::BasicAuth] attr_accessor :basic_auth + # Service Account used as a credential. + # Corresponds to the JSON property `serviceAccount` + # @return [Google::Apis::DeploymentmanagerAlpha::ServiceAccount] + attr_accessor :service_account + + # Specify to use the project default credential, only supported by Deployment. + # Corresponds to the JSON property `useProjectDefault` + # @return [Boolean] + attr_accessor :use_project_default + alias_method :use_project_default?, :use_project_default + def initialize(**args) update!(**args) end @@ -464,6 +477,8 @@ module Google # Update properties of this object def update!(**args) @basic_auth = args[:basic_auth] if args.key?(:basic_auth) + @service_account = args[:service_account] if args.key?(:service_account) + @use_project_default = args[:use_project_default] if args.key?(:use_project_default) end end @@ -530,6 +545,12 @@ module Google # @return [Google::Apis::DeploymentmanagerAlpha::Operation] attr_accessor :operation + # api-linter: output-only-format=disabled [Output Only] Map of outputs from the + # last manifest that deployed successfully. + # Corresponds to the JSON property `outputs` + # @return [Array] + attr_accessor :outputs + # [Output Only] Self link for the deployment. # Corresponds to the JSON property `selfLink` # @return [String] @@ -559,6 +580,7 @@ module Google @manifest = args[:manifest] if args.key?(:manifest) @name = args[:name] if args.key?(:name) @operation = args[:operation] if args.key?(:operation) + @outputs = args[:outputs] if args.key?(:outputs) @self_link = args[:self_link] if args.key?(:self_link) @target = args[:target] if args.key?(:target) @update = args[:update] if args.key?(:update) @@ -590,6 +612,31 @@ module Google end end + # + class DeploymentOutputsEntry + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # + # 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) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + # class DeploymentUpdate include Google::Apis::Core::Hashable @@ -1926,6 +1973,26 @@ module Google end end + # Service Account used as a credential. + class ServiceAccount + include Google::Apis::Core::Hashable + + # The IAM service account email address like test@myproject.iam.gserviceaccount. + # com + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @email = args[:email] if args.key?(:email) + end + end + # class TargetConfiguration include Google::Apis::Core::Hashable @@ -2215,7 +2282,8 @@ module Google # @return [Array] attr_accessor :collection_overrides - # Credential used by ConfigurableResourceTypes. + # The credential used by Deployment Manager and TypeProvider. Only one of the + # options is permitted. # Corresponds to the JSON property `credential` # @return [Google::Apis::DeploymentmanagerAlpha::Credential] attr_accessor :credential diff --git a/generated/google/apis/deploymentmanager_alpha/representations.rb b/generated/google/apis/deploymentmanager_alpha/representations.rb index 577fadc1d..8940356e8 100644 --- a/generated/google/apis/deploymentmanager_alpha/representations.rb +++ b/generated/google/apis/deploymentmanager_alpha/representations.rb @@ -112,6 +112,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DeploymentOutputsEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DeploymentUpdate class Representation < Google::Apis::Core::JsonRepresentation; end @@ -310,6 +316,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ServiceAccount + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class TargetConfiguration class Representation < Google::Apis::Core::JsonRepresentation; end @@ -518,6 +530,9 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :basic_auth, as: 'basicAuth', class: Google::Apis::DeploymentmanagerAlpha::BasicAuth, decorator: Google::Apis::DeploymentmanagerAlpha::BasicAuth::Representation + property :service_account, as: 'serviceAccount', class: Google::Apis::DeploymentmanagerAlpha::ServiceAccount, decorator: Google::Apis::DeploymentmanagerAlpha::ServiceAccount::Representation + + property :use_project_default, as: 'useProjectDefault' end end @@ -534,6 +549,8 @@ module Google property :name, as: 'name' property :operation, as: 'operation', class: Google::Apis::DeploymentmanagerAlpha::Operation, decorator: Google::Apis::DeploymentmanagerAlpha::Operation::Representation + collection :outputs, as: 'outputs', class: Google::Apis::DeploymentmanagerAlpha::DeploymentOutputsEntry, decorator: Google::Apis::DeploymentmanagerAlpha::DeploymentOutputsEntry::Representation + property :self_link, as: 'selfLink' property :target, as: 'target', class: Google::Apis::DeploymentmanagerAlpha::TargetConfiguration, decorator: Google::Apis::DeploymentmanagerAlpha::TargetConfiguration::Representation @@ -550,6 +567,14 @@ module Google end end + class DeploymentOutputsEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + class DeploymentUpdate # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -903,6 +928,13 @@ module Google end end + class ServiceAccount + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :email, as: 'email' + end + end + class TargetConfiguration # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/deploymentmanager_alpha/service.rb b/generated/google/apis/deploymentmanager_alpha/service.rb index 28b4607e8..ee262dee5 100644 --- a/generated/google/apis/deploymentmanager_alpha/service.rb +++ b/generated/google/apis/deploymentmanager_alpha/service.rb @@ -51,7 +51,7 @@ module Google def initialize super('https://www.googleapis.com/', 'deploymentmanager/alpha/projects/') - @batch_path = 'batch/deploymentmanager/alpha' + @batch_path = 'batch' end # Deletes a composite type. diff --git a/generated/google/apis/deploymentmanager_v2.rb b/generated/google/apis/deploymentmanager_v2.rb index af03ec91e..7b3b799aa 100644 --- a/generated/google/apis/deploymentmanager_v2.rb +++ b/generated/google/apis/deploymentmanager_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/deployment-manager/ module DeploymentmanagerV2 VERSION = 'V2' - REVISION = '20170810' + REVISION = '20170907' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/deploymentmanager_v2/service.rb b/generated/google/apis/deploymentmanager_v2/service.rb index 4396cac15..8e01b96a1 100644 --- a/generated/google/apis/deploymentmanager_v2/service.rb +++ b/generated/google/apis/deploymentmanager_v2/service.rb @@ -50,7 +50,7 @@ module Google def initialize super('https://www.googleapis.com/', 'deploymentmanager/v2/projects/') - @batch_path = 'batch/deploymentmanager/v2' + @batch_path = 'batch' end # Cancels and removes the preview currently associated with the deployment. diff --git a/generated/google/apis/deploymentmanager_v2beta.rb b/generated/google/apis/deploymentmanager_v2beta.rb index afacb7d12..18f75ed62 100644 --- a/generated/google/apis/deploymentmanager_v2beta.rb +++ b/generated/google/apis/deploymentmanager_v2beta.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/deployment-manager/ module DeploymentmanagerV2beta VERSION = 'V2beta' - REVISION = '20170810' + REVISION = '20170907' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/deploymentmanager_v2beta/classes.rb b/generated/google/apis/deploymentmanager_v2beta/classes.rb index 3b4a6df3c..441e2a349 100644 --- a/generated/google/apis/deploymentmanager_v2beta/classes.rb +++ b/generated/google/apis/deploymentmanager_v2beta/classes.rb @@ -129,7 +129,8 @@ module Google # @return [Array] attr_accessor :collection_overrides - # Credential used by ConfigurableResourceTypes. + # The credential used by Deployment Manager and TypeProvider. Only one of the + # options is permitted. # Corresponds to the JSON property `credential` # @return [Google::Apis::DeploymentmanagerV2beta::Credential] attr_accessor :credential @@ -448,7 +449,8 @@ module Google end end - # Credential used by ConfigurableResourceTypes. + # The credential used by Deployment Manager and TypeProvider. Only one of the + # options is permitted. class Credential include Google::Apis::Core::Hashable @@ -457,6 +459,17 @@ module Google # @return [Google::Apis::DeploymentmanagerV2beta::BasicAuth] attr_accessor :basic_auth + # Service Account used as a credential. + # Corresponds to the JSON property `serviceAccount` + # @return [Google::Apis::DeploymentmanagerV2beta::ServiceAccount] + attr_accessor :service_account + + # Specify to use the project default credential, only supported by Deployment. + # Corresponds to the JSON property `useProjectDefault` + # @return [Boolean] + attr_accessor :use_project_default + alias_method :use_project_default?, :use_project_default + def initialize(**args) update!(**args) end @@ -464,6 +477,8 @@ module Google # Update properties of this object def update!(**args) @basic_auth = args[:basic_auth] if args.key?(:basic_auth) + @service_account = args[:service_account] if args.key?(:service_account) + @use_project_default = args[:use_project_default] if args.key?(:use_project_default) end end @@ -1930,6 +1945,26 @@ module Google end end + # Service Account used as a credential. + class ServiceAccount + include Google::Apis::Core::Hashable + + # The IAM service account email address like test@myproject.iam.gserviceaccount. + # com + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @email = args[:email] if args.key?(:email) + end + end + # class TargetConfiguration include Google::Apis::Core::Hashable @@ -2219,7 +2254,8 @@ module Google # @return [Array] attr_accessor :collection_overrides - # Credential used by ConfigurableResourceTypes. + # The credential used by Deployment Manager and TypeProvider. Only one of the + # options is permitted. # Corresponds to the JSON property `credential` # @return [Google::Apis::DeploymentmanagerV2beta::Credential] attr_accessor :credential diff --git a/generated/google/apis/deploymentmanager_v2beta/representations.rb b/generated/google/apis/deploymentmanager_v2beta/representations.rb index 262bd0b5f..8e97af97c 100644 --- a/generated/google/apis/deploymentmanager_v2beta/representations.rb +++ b/generated/google/apis/deploymentmanager_v2beta/representations.rb @@ -310,6 +310,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ServiceAccount + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class TargetConfiguration class Representation < Google::Apis::Core::JsonRepresentation; end @@ -518,6 +524,9 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :basic_auth, as: 'basicAuth', class: Google::Apis::DeploymentmanagerV2beta::BasicAuth, decorator: Google::Apis::DeploymentmanagerV2beta::BasicAuth::Representation + property :service_account, as: 'serviceAccount', class: Google::Apis::DeploymentmanagerV2beta::ServiceAccount, decorator: Google::Apis::DeploymentmanagerV2beta::ServiceAccount::Representation + + property :use_project_default, as: 'useProjectDefault' end end @@ -903,6 +912,13 @@ module Google end end + class ServiceAccount + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :email, as: 'email' + end + end + class TargetConfiguration # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/deploymentmanager_v2beta/service.rb b/generated/google/apis/deploymentmanager_v2beta/service.rb index e19b757c6..988e507a8 100644 --- a/generated/google/apis/deploymentmanager_v2beta/service.rb +++ b/generated/google/apis/deploymentmanager_v2beta/service.rb @@ -51,7 +51,7 @@ module Google def initialize super('https://www.googleapis.com/', 'deploymentmanager/v2beta/projects/') - @batch_path = 'batch/deploymentmanager/v2beta' + @batch_path = 'batch' end # Deletes a composite type. diff --git a/generated/google/apis/doubleclicksearch_v2/service.rb b/generated/google/apis/doubleclicksearch_v2/service.rb index a240c0b80..f4470448b 100644 --- a/generated/google/apis/doubleclicksearch_v2/service.rb +++ b/generated/google/apis/doubleclicksearch_v2/service.rb @@ -51,7 +51,7 @@ module Google def initialize super('https://www.googleapis.com/', 'doubleclicksearch/v2/') - @batch_path = 'batch/doubleclicksearch/v2' + @batch_path = 'batch' end # Retrieves a list of conversions from a DoubleClick Search engine account. diff --git a/generated/google/apis/language_v1.rb b/generated/google/apis/language_v1.rb index 703baca3e..b29fabe26 100644 --- a/generated/google/apis/language_v1.rb +++ b/generated/google/apis/language_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/natural-language/ module LanguageV1 VERSION = 'V1' - REVISION = '20170809' + REVISION = '20170911' # Apply machine learning models to reveal the structure and meaning of text AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language' diff --git a/generated/google/apis/language_v1/classes.rb b/generated/google/apis/language_v1/classes.rb index eebd854a9..3972a5964 100644 --- a/generated/google/apis/language_v1/classes.rb +++ b/generated/google/apis/language_v1/classes.rb @@ -75,6 +75,59 @@ module Google end end + # The entity-level sentiment analysis request message. + class AnalyzeEntitySentimentRequest + include Google::Apis::Core::Hashable + + # ################################################################ # + # Represents the input to API methods. + # Corresponds to the JSON property `document` + # @return [Google::Apis::LanguageV1::Document] + attr_accessor :document + + # The encoding type used by the API to calculate offsets. + # Corresponds to the JSON property `encodingType` + # @return [String] + attr_accessor :encoding_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @document = args[:document] if args.key?(:document) + @encoding_type = args[:encoding_type] if args.key?(:encoding_type) + end + end + + # The entity-level sentiment analysis response message. + class AnalyzeEntitySentimentResponse + include Google::Apis::Core::Hashable + + # The recognized entities in the input document with associated sentiments. + # Corresponds to the JSON property `entities` + # @return [Array] + attr_accessor :entities + + # The language of the text, which will be the same as the language specified + # in the request or, if not specified, the automatically-detected language. + # See Document.language field for more details. + # Corresponds to the JSON property `language` + # @return [String] + attr_accessor :language + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entities = args[:entities] if args.key?(:entities) + @language = args[:language] if args.key?(:language) + end + end + # The sentiment analysis request message. class AnalyzeSentimentRequest include Google::Apis::Core::Hashable @@ -392,6 +445,12 @@ module Google # @return [Float] attr_accessor :salience + # Represents the feeling associated with the entire text or entities in + # the text. + # Corresponds to the JSON property `sentiment` + # @return [Google::Apis::LanguageV1::Sentiment] + attr_accessor :sentiment + # The entity type. # Corresponds to the JSON property `type` # @return [String] @@ -407,6 +466,7 @@ module Google @metadata = args[:metadata] if args.key?(:metadata) @name = args[:name] if args.key?(:name) @salience = args[:salience] if args.key?(:salience) + @sentiment = args[:sentiment] if args.key?(:sentiment) @type = args[:type] if args.key?(:type) end end @@ -416,6 +476,12 @@ module Google class EntityMention include Google::Apis::Core::Hashable + # Represents the feeling associated with the entire text or entities in + # the text. + # Corresponds to the JSON property `sentiment` + # @return [Google::Apis::LanguageV1::Sentiment] + attr_accessor :sentiment + # Represents an output piece of text. # Corresponds to the JSON property `text` # @return [Google::Apis::LanguageV1::TextSpan] @@ -432,6 +498,7 @@ module Google # Update properties of this object def update!(**args) + @sentiment = args[:sentiment] if args.key?(:sentiment) @text = args[:text] if args.key?(:text) @type = args[:type] if args.key?(:type) end @@ -454,6 +521,12 @@ module Google attr_accessor :extract_entities alias_method :extract_entities?, :extract_entities + # Extract entities and their associated sentiment. + # Corresponds to the JSON property `extractEntitySentiment` + # @return [Boolean] + attr_accessor :extract_entity_sentiment + alias_method :extract_entity_sentiment?, :extract_entity_sentiment + # Extract syntax information. # Corresponds to the JSON property `extractSyntax` # @return [Boolean] @@ -468,6 +541,7 @@ module Google def update!(**args) @extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment) @extract_entities = args[:extract_entities] if args.key?(:extract_entities) + @extract_entity_sentiment = args[:extract_entity_sentiment] if args.key?(:extract_entity_sentiment) @extract_syntax = args[:extract_syntax] if args.key?(:extract_syntax) end end diff --git a/generated/google/apis/language_v1/representations.rb b/generated/google/apis/language_v1/representations.rb index 0001bef2c..6be38542f 100644 --- a/generated/google/apis/language_v1/representations.rb +++ b/generated/google/apis/language_v1/representations.rb @@ -34,6 +34,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AnalyzeEntitySentimentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnalyzeEntitySentimentResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AnalyzeSentimentRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -154,6 +166,24 @@ module Google end end + class AnalyzeEntitySentimentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation + + property :encoding_type, as: 'encodingType' + end + end + + class AnalyzeEntitySentimentResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entities, as: 'entities', class: Google::Apis::LanguageV1::Entity, decorator: Google::Apis::LanguageV1::Entity::Representation + + property :language, as: 'language' + end + end + class AnalyzeSentimentRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -246,6 +276,8 @@ module Google hash :metadata, as: 'metadata' property :name, as: 'name' property :salience, as: 'salience' + property :sentiment, as: 'sentiment', class: Google::Apis::LanguageV1::Sentiment, decorator: Google::Apis::LanguageV1::Sentiment::Representation + property :type, as: 'type' end end @@ -253,6 +285,8 @@ module Google class EntityMention # @private class Representation < Google::Apis::Core::JsonRepresentation + property :sentiment, as: 'sentiment', class: Google::Apis::LanguageV1::Sentiment, decorator: Google::Apis::LanguageV1::Sentiment::Representation + property :text, as: 'text', class: Google::Apis::LanguageV1::TextSpan, decorator: Google::Apis::LanguageV1::TextSpan::Representation property :type, as: 'type' @@ -264,6 +298,7 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :extract_document_sentiment, as: 'extractDocumentSentiment' property :extract_entities, as: 'extractEntities' + property :extract_entity_sentiment, as: 'extractEntitySentiment' property :extract_syntax, as: 'extractSyntax' end end diff --git a/generated/google/apis/language_v1/service.rb b/generated/google/apis/language_v1/service.rb index dd7ebac7c..b5370d707 100644 --- a/generated/google/apis/language_v1/service.rb +++ b/generated/google/apis/language_v1/service.rb @@ -81,6 +81,37 @@ module Google execute_or_queue_command(command, &block) end + # Finds entities, similar to AnalyzeEntities in the text and analyzes + # sentiment associated with each entity and its mentions. + # @param [Google::Apis::LanguageV1::AnalyzeEntitySentimentRequest] analyze_entity_sentiment_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::LanguageV1::AnalyzeEntitySentimentResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LanguageV1::AnalyzeEntitySentimentResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def analyze_document_entity_sentiment(analyze_entity_sentiment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/documents:analyzeEntitySentiment', options) + command.request_representation = Google::Apis::LanguageV1::AnalyzeEntitySentimentRequest::Representation + command.request_object = analyze_entity_sentiment_request_object + command.response_representation = Google::Apis::LanguageV1::AnalyzeEntitySentimentResponse::Representation + command.response_class = Google::Apis::LanguageV1::AnalyzeEntitySentimentResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Analyzes the sentiment of the provided text. # @param [Google::Apis::LanguageV1::AnalyzeSentimentRequest] analyze_sentiment_request_object # @param [String] fields diff --git a/generated/google/apis/language_v1beta1.rb b/generated/google/apis/language_v1beta1.rb index 28ebecc69..c27e8c02b 100644 --- a/generated/google/apis/language_v1beta1.rb +++ b/generated/google/apis/language_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/natural-language/ module LanguageV1beta1 VERSION = 'V1beta1' - REVISION = '20170809' + REVISION = '20170911' # Apply machine learning models to reveal the structure and meaning of text AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language' diff --git a/generated/google/apis/language_v1beta2.rb b/generated/google/apis/language_v1beta2.rb index cf5976b96..8e86f5b6c 100644 --- a/generated/google/apis/language_v1beta2.rb +++ b/generated/google/apis/language_v1beta2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/natural-language/ module LanguageV1beta2 VERSION = 'V1beta2' - REVISION = '20170905' + REVISION = '20170911' # Apply machine learning models to reveal the structure and meaning of text AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language' diff --git a/generated/google/apis/ml_v1.rb b/generated/google/apis/ml_v1.rb index e42c84fe3..56ea14586 100644 --- a/generated/google/apis/ml_v1.rb +++ b/generated/google/apis/ml_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/ml/ module MlV1 VERSION = 'V1' - REVISION = '20170825' + REVISION = '20170909' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/ml_v1/classes.rb b/generated/google/apis/ml_v1/classes.rb index 515ac2afb..1f83d8c9b 100644 --- a/generated/google/apis/ml_v1/classes.rb +++ b/generated/google/apis/ml_v1/classes.rb @@ -466,6 +466,7 @@ module Google # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models. # versions/list). # Next ID: 18 + # LINT.IfChange # Corresponds to the JSON property `defaultVersion` # @return [Google::Apis::MlV1::GoogleCloudMlV1Version] attr_accessor :default_version @@ -558,6 +559,7 @@ module Google # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models. # versions/list). # Next ID: 18 + # LINT.IfChange # Corresponds to the JSON property `version` # @return [Google::Apis::MlV1::GoogleCloudMlV1Version] attr_accessor :version @@ -1214,6 +1216,7 @@ module Google # [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models. # versions/list). # Next ID: 18 + # LINT.IfChange class GoogleCloudMlV1Version include Google::Apis::Core::Hashable diff --git a/generated/google/apis/people_v1.rb b/generated/google/apis/people_v1.rb index a1416264e..913f0cdc0 100644 --- a/generated/google/apis/people_v1.rb +++ b/generated/google/apis/people_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/people/ module PeopleV1 VERSION = 'V1' - REVISION = '20170829' + REVISION = '20170909' # Manage your contacts AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts' diff --git a/generated/google/apis/people_v1/classes.rb b/generated/google/apis/people_v1/classes.rb index 947b5d738..2a02d2789 100644 --- a/generated/google/apis/people_v1/classes.rb +++ b/generated/google/apis/people_v1/classes.rb @@ -1726,6 +1726,13 @@ module Google class Photo include Google::Apis::Core::Hashable + # True if the photo is a default photo; + # false if the photo is a user-provided photo. + # Corresponds to the JSON property `default` + # @return [Boolean] + attr_accessor :default + alias_method :default?, :default + # Metadata about a field. # Corresponds to the JSON property `metadata` # @return [Google::Apis::PeopleV1::FieldMetadata] @@ -1745,6 +1752,7 @@ module Google # Update properties of this object def update!(**args) + @default = args[:default] if args.key?(:default) @metadata = args[:metadata] if args.key?(:metadata) @url = args[:url] if args.key?(:url) end diff --git a/generated/google/apis/people_v1/representations.rb b/generated/google/apis/people_v1/representations.rb index ed3be4c8b..29342c845 100644 --- a/generated/google/apis/people_v1/representations.rb +++ b/generated/google/apis/people_v1/representations.rb @@ -763,6 +763,7 @@ module Google class Photo # @private class Representation < Google::Apis::Core::JsonRepresentation + property :default, as: 'default' property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation property :url, as: 'url' diff --git a/generated/google/apis/testing_v1.rb b/generated/google/apis/testing_v1.rb new file mode 100644 index 000000000..a87e40243 --- /dev/null +++ b/generated/google/apis/testing_v1.rb @@ -0,0 +1,38 @@ +# 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/testing_v1/service.rb' +require 'google/apis/testing_v1/classes.rb' +require 'google/apis/testing_v1/representations.rb' + +module Google + module Apis + # Google Cloud Testing API + # + # Allows developers to run automated tests for their mobile applications on + # Google infrastructure. + # + # @see https://developers.google.com/cloud-test-lab/ + module TestingV1 + VERSION = 'V1' + REVISION = '20170905' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # View your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' + end + end +end diff --git a/generated/google/apis/testing_v1/classes.rb b/generated/google/apis/testing_v1/classes.rb new file mode 100644 index 000000000..b4d81148e --- /dev/null +++ b/generated/google/apis/testing_v1/classes.rb @@ -0,0 +1,1616 @@ +# 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 TestingV1 + + # Identifies an account and how to log into it + class Account + include Google::Apis::Core::Hashable + + # Enables automatic Google account login. + # If set, the service will automatically generate a Google test account and add + # it to the device, before executing the test. Note that test accounts might be + # reused. + # Many applications show their full set of functionalities when an account is + # present on the device. Logging into the device with these generated accounts + # allows testing more functionalities. + # Corresponds to the JSON property `googleAuto` + # @return [Google::Apis::TestingV1::GoogleAuto] + attr_accessor :google_auto + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @google_auto = args[:google_auto] if args.key?(:google_auto) + end + end + + # A single Android device. + class AndroidDevice + include Google::Apis::Core::Hashable + + # The id of the Android device to be used. + # Use the EnvironmentDiscoveryService to get supported options. + # Required + # Corresponds to the JSON property `androidModelId` + # @return [String] + attr_accessor :android_model_id + + # The id of the Android OS version to be used. + # Use the EnvironmentDiscoveryService to get supported options. + # Required + # Corresponds to the JSON property `androidVersionId` + # @return [String] + attr_accessor :android_version_id + + # The locale the test device used for testing. + # Use the EnvironmentDiscoveryService to get supported options. + # Required + # Corresponds to the JSON property `locale` + # @return [String] + attr_accessor :locale + + # How the device is oriented during the test. + # Use the EnvironmentDiscoveryService to get supported options. + # Required + # Corresponds to the JSON property `orientation` + # @return [String] + attr_accessor :orientation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @android_model_id = args[:android_model_id] if args.key?(:android_model_id) + @android_version_id = args[:android_version_id] if args.key?(:android_version_id) + @locale = args[:locale] if args.key?(:locale) + @orientation = args[:orientation] if args.key?(:orientation) + end + end + + # The currently supported Android devices. + class AndroidDeviceCatalog + include Google::Apis::Core::Hashable + + # The set of supported Android device models. + # @OutputOnly + # Corresponds to the JSON property `models` + # @return [Array] + attr_accessor :models + + # Configuration that can be selected at the time a test is run. + # Corresponds to the JSON property `runtimeConfiguration` + # @return [Google::Apis::TestingV1::AndroidRuntimeConfiguration] + attr_accessor :runtime_configuration + + # The set of supported Android OS versions. + # @OutputOnly + # Corresponds to the JSON property `versions` + # @return [Array] + attr_accessor :versions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @models = args[:models] if args.key?(:models) + @runtime_configuration = args[:runtime_configuration] if args.key?(:runtime_configuration) + @versions = args[:versions] if args.key?(:versions) + end + end + + # A list of Android device configurations in which the test is to be executed. + class AndroidDeviceList + include Google::Apis::Core::Hashable + + # A list of Android devices + # Required + # Corresponds to the JSON property `androidDevices` + # @return [Array] + attr_accessor :android_devices + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @android_devices = args[:android_devices] if args.key?(:android_devices) + end + end + + # A test of an Android application that can control an Android component + # independently of its normal lifecycle. + # Android instrumentation tests run an application APK and test APK inside the + # same process on a virtual or physical AndroidDevice. They also specify + # a test runner class, such as com.google.GoogleTestRunner, which can vary + # on the specific instrumentation framework chosen. + # See for + # more information on types of Android tests. + class AndroidInstrumentationTest + include Google::Apis::Core::Hashable + + # A reference to a file, used for user inputs. + # Corresponds to the JSON property `appApk` + # @return [Google::Apis::TestingV1::FileReference] + attr_accessor :app_apk + + # The java package for the application under test. + # Optional, default is determined by examining the application's manifest. + # Corresponds to the JSON property `appPackageId` + # @return [String] + attr_accessor :app_package_id + + # The option of whether running each test within its own invocation of + # instrumentation with Android Test Orchestrator or not. + # ** Orchestrator is only compatible with AndroidJUnitRunner version 1.0 or + # higher! ** + # Orchestrator offers the following benefits: + # - No shared state + # - Crashes are isolated + # - Logs are scoped per test + # See + # + # for more information about Android Test Orchestrator. + # Optional, if empty, test will be run without orchestrator. + # Corresponds to the JSON property `orchestratorOption` + # @return [String] + attr_accessor :orchestrator_option + + # A reference to a file, used for user inputs. + # Corresponds to the JSON property `testApk` + # @return [Google::Apis::TestingV1::FileReference] + attr_accessor :test_apk + + # The java package for the test to be executed. + # Optional, default is determined by examining the application's manifest. + # Corresponds to the JSON property `testPackageId` + # @return [String] + attr_accessor :test_package_id + + # The InstrumentationTestRunner class. + # Optional, default is determined by examining the application's manifest. + # Corresponds to the JSON property `testRunnerClass` + # @return [String] + attr_accessor :test_runner_class + + # Each target must be fully qualified with the package name or class name, + # in one of these formats: + # - "package package_name" + # - "class package_name.class_name" + # - "class package_name.class_name#method_name" + # Optional, if empty, all targets in the module will be run. + # Corresponds to the JSON property `testTargets` + # @return [Array] + attr_accessor :test_targets + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @app_apk = args[:app_apk] if args.key?(:app_apk) + @app_package_id = args[:app_package_id] if args.key?(:app_package_id) + @orchestrator_option = args[:orchestrator_option] if args.key?(:orchestrator_option) + @test_apk = args[:test_apk] if args.key?(:test_apk) + @test_package_id = args[:test_package_id] if args.key?(:test_package_id) + @test_runner_class = args[:test_runner_class] if args.key?(:test_runner_class) + @test_targets = args[:test_targets] if args.key?(:test_targets) + end + end + + # A set of Android device configuration permutations is defined by the + # the cross-product of the given axes. Internally, the given AndroidMatrix + # will be expanded into a set of AndroidDevices. + # Only supported permutations will be instantiated. Invalid permutations + # (e.g., incompatible models/versions) are ignored. + class AndroidMatrix + include Google::Apis::Core::Hashable + + # The ids of the set of Android device to be used. + # Use the EnvironmentDiscoveryService to get supported options. + # Required + # Corresponds to the JSON property `androidModelIds` + # @return [Array] + attr_accessor :android_model_ids + + # The ids of the set of Android OS version to be used. + # Use the EnvironmentDiscoveryService to get supported options. + # Required + # Corresponds to the JSON property `androidVersionIds` + # @return [Array] + attr_accessor :android_version_ids + + # The set of locales the test device will enable for testing. + # Use the EnvironmentDiscoveryService to get supported options. + # Required + # Corresponds to the JSON property `locales` + # @return [Array] + attr_accessor :locales + + # The set of orientations to test with. + # Use the EnvironmentDiscoveryService to get supported options. + # Required + # Corresponds to the JSON property `orientations` + # @return [Array] + attr_accessor :orientations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @android_model_ids = args[:android_model_ids] if args.key?(:android_model_ids) + @android_version_ids = args[:android_version_ids] if args.key?(:android_version_ids) + @locales = args[:locales] if args.key?(:locales) + @orientations = args[:orientations] if args.key?(:orientations) + end + end + + # A description of an Android device tests may be run on. + class AndroidModel + include Google::Apis::Core::Hashable + + # The company that this device is branded with. + # Example: "Google", "Samsung" + # @OutputOnly + # Corresponds to the JSON property `brand` + # @return [String] + attr_accessor :brand + + # The name of the industrial design. + # This corresponds to android.os.Build.DEVICE + # @OutputOnly + # Corresponds to the JSON property `codename` + # @return [String] + attr_accessor :codename + + # Whether this device is virtual or physical. + # @OutputOnly + # Corresponds to the JSON property `form` + # @return [String] + attr_accessor :form + + # The unique opaque id for this model. + # Use this for invoking the TestExecutionService. + # @OutputOnly + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The manufacturer of this device. + # @OutputOnly + # Corresponds to the JSON property `manufacturer` + # @return [String] + attr_accessor :manufacturer + + # The human-readable marketing name for this device model. + # Examples: "Nexus 5", "Galaxy S5" + # @OutputOnly + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Screen density in DPI. + # This corresponds to ro.sf.lcd_density + # @OutputOnly + # Corresponds to the JSON property `screenDensity` + # @return [Fixnum] + attr_accessor :screen_density + + # Screen size in the horizontal (X) dimension measured in pixels. + # @OutputOnly + # Corresponds to the JSON property `screenX` + # @return [Fixnum] + attr_accessor :screen_x + + # Screen size in the vertical (Y) dimension measured in pixels. + # @OutputOnly + # Corresponds to the JSON property `screenY` + # @return [Fixnum] + attr_accessor :screen_y + + # The list of supported ABIs for this device. + # This corresponds to either android.os.Build.SUPPORTED_ABIS (for API level + # 21 and above) or android.os.Build.CPU_ABI/CPU_ABI2. + # The most preferred ABI is the first element in the list. + # Elements are optionally prefixed by "version_id:" (where version_id is + # the id of an AndroidVersion), denoting an ABI that is supported only on + # a particular version. + # @OutputOnly + # Corresponds to the JSON property `supportedAbis` + # @return [Array] + attr_accessor :supported_abis + + # The set of Android versions this device supports. + # @OutputOnly + # Corresponds to the JSON property `supportedVersionIds` + # @return [Array] + attr_accessor :supported_version_ids + + # Tags for this dimension. + # Examples: "default", "preview", "deprecated" + # Corresponds to the JSON property `tags` + # @return [Array] + attr_accessor :tags + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @brand = args[:brand] if args.key?(:brand) + @codename = args[:codename] if args.key?(:codename) + @form = args[:form] if args.key?(:form) + @id = args[:id] if args.key?(:id) + @manufacturer = args[:manufacturer] if args.key?(:manufacturer) + @name = args[:name] if args.key?(:name) + @screen_density = args[:screen_density] if args.key?(:screen_density) + @screen_x = args[:screen_x] if args.key?(:screen_x) + @screen_y = args[:screen_y] if args.key?(:screen_y) + @supported_abis = args[:supported_abis] if args.key?(:supported_abis) + @supported_version_ids = args[:supported_version_ids] if args.key?(:supported_version_ids) + @tags = args[:tags] if args.key?(:tags) + end + end + + # A test of an android application that explores the application on a virtual + # or physical Android Device, finding culprits and crashes as it goes. + class AndroidRoboTest + include Google::Apis::Core::Hashable + + # A reference to a file, used for user inputs. + # Corresponds to the JSON property `appApk` + # @return [Google::Apis::TestingV1::FileReference] + attr_accessor :app_apk + + # The initial activity that should be used to start the app. + # Optional + # Corresponds to the JSON property `appInitialActivity` + # @return [String] + attr_accessor :app_initial_activity + + # The java package for the application under test. + # Optional, default is determined by examining the application's manifest. + # Corresponds to the JSON property `appPackageId` + # @return [String] + attr_accessor :app_package_id + + # The max depth of the traversal stack Robo can explore. Needs to be at least + # 2 to make Robo explore the app beyond the first activity. + # Default is 50. + # Optional + # Corresponds to the JSON property `maxDepth` + # @return [Fixnum] + attr_accessor :max_depth + + # The max number of steps Robo can execute. + # Default is no limit. + # Optional + # Corresponds to the JSON property `maxSteps` + # @return [Fixnum] + attr_accessor :max_steps + + # A set of directives Robo should apply during the crawl. + # This allows users to customize the crawl. For example, the username and + # password for a test account can be provided. + # Optional + # Corresponds to the JSON property `roboDirectives` + # @return [Array] + attr_accessor :robo_directives + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @app_apk = args[:app_apk] if args.key?(:app_apk) + @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) + @max_depth = args[:max_depth] if args.key?(:max_depth) + @max_steps = args[:max_steps] if args.key?(:max_steps) + @robo_directives = args[:robo_directives] if args.key?(:robo_directives) + end + end + + # Configuration that can be selected at the time a test is run. + class AndroidRuntimeConfiguration + include Google::Apis::Core::Hashable + + # The set of available locales. + # @OutputOnly + # Corresponds to the JSON property `locales` + # @return [Array] + attr_accessor :locales + + # The set of available orientations. + # @OutputOnly + # Corresponds to the JSON property `orientations` + # @return [Array] + attr_accessor :orientations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @locales = args[:locales] if args.key?(:locales) + @orientations = args[:orientations] if args.key?(:orientations) + end + end + + # A test of an Android Application with a Test Loop. + # The intent will be implicitly added, since Games is the only + # user of this api, for the time being. + class AndroidTestLoop + include Google::Apis::Core::Hashable + + # A reference to a file, used for user inputs. + # Corresponds to the JSON property `appApk` + # @return [Google::Apis::TestingV1::FileReference] + attr_accessor :app_apk + + # The java package for the application under test. + # Optional, default is determined by examining the application's manifest. + # Corresponds to the JSON property `appPackageId` + # @return [String] + attr_accessor :app_package_id + + # The list of scenario labels that should be run during the test. + # The scenario labels should map to labels defined in the application's + # manifest. For example, player_experience and + # com.google.test.loops.player_experience add all of the loops labeled in the + # manifest with the com.google.test.loops.player_experience name to the + # execution. + # Optional. Scenarios can also be specified in the scenarios field. + # Corresponds to the JSON property `scenarioLabels` + # @return [Array] + attr_accessor :scenario_labels + + # The list of scenarios that should be run during the test. + # Optional, default is all test loops, derived from the application's + # manifest. + # Corresponds to the JSON property `scenarios` + # @return [Array] + attr_accessor :scenarios + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @app_apk = args[:app_apk] if args.key?(:app_apk) + @app_package_id = args[:app_package_id] if args.key?(:app_package_id) + @scenario_labels = args[:scenario_labels] if args.key?(:scenario_labels) + @scenarios = args[:scenarios] if args.key?(:scenarios) + end + end + + # A version of the Android OS + class AndroidVersion + include Google::Apis::Core::Hashable + + # The API level for this Android version. + # Examples: 18, 19 + # @OutputOnly + # Corresponds to the JSON property `apiLevel` + # @return [Fixnum] + attr_accessor :api_level + + # The code name for this Android version. + # Examples: "JellyBean", "KitKat" + # @OutputOnly + # Corresponds to the JSON property `codeName` + # @return [String] + attr_accessor :code_name + + # Data about the relative number of devices running a + # given configuration of the Android platform. + # Corresponds to the JSON property `distribution` + # @return [Google::Apis::TestingV1::Distribution] + attr_accessor :distribution + + # An opaque id for this Android version. + # Use this id to invoke the TestExecutionService. + # @OutputOnly + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Represents a whole calendar date, e.g. date of birth. The time of day and + # time zone are either specified elsewhere or are not significant. The date + # is relative to the Proleptic Gregorian Calendar. The day may be 0 to + # represent a year and month where the day is not significant, e.g. credit card + # expiration date. The year may be 0 to represent a month and day independent + # of year, e.g. anniversary date. Related types are google.type.TimeOfDay + # and `google.protobuf.Timestamp`. + # Corresponds to the JSON property `releaseDate` + # @return [Google::Apis::TestingV1::Date] + attr_accessor :release_date + + # Tags for this dimension. + # Examples: "default", "preview", "deprecated" + # Corresponds to the JSON property `tags` + # @return [Array] + attr_accessor :tags + + # A string representing this version of the Android OS. + # Examples: "4.3", "4.4" + # @OutputOnly + # Corresponds to the JSON property `versionString` + # @return [String] + attr_accessor :version_string + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_level = args[:api_level] if args.key?(:api_level) + @code_name = args[:code_name] if args.key?(:code_name) + @distribution = args[:distribution] if args.key?(:distribution) + @id = args[:id] if args.key?(:id) + @release_date = args[:release_date] if args.key?(:release_date) + @tags = args[:tags] if args.key?(:tags) + @version_string = args[:version_string] if args.key?(:version_string) + end + end + + # Response containing the current state of the specified test matrix. + class CancelTestMatrixResponse + include Google::Apis::Core::Hashable + + # The current rolled-up state of the test matrix. + # If this state is already final, then the cancelation request will + # have no effect. + # Corresponds to the JSON property `testState` + # @return [String] + attr_accessor :test_state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @test_state = args[:test_state] if args.key?(:test_state) + end + end + + # Information about the client which invoked the test. + class ClientInfo + include Google::Apis::Core::Hashable + + # The list of detailed information about client. + # Corresponds to the JSON property `clientInfoDetails` + # @return [Array] + attr_accessor :client_info_details + + # Client name, such as gcloud. + # Required + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @client_info_details = args[:client_info_details] if args.key?(:client_info_details) + @name = args[:name] if args.key?(:name) + end + end + + # Key-value pair of detailed information about the client which invoked the + # test. For example `'Version', '1.0'`, `'Release Track', 'BETA'` + class ClientInfoDetail + include Google::Apis::Core::Hashable + + # The key of detailed client information. + # Required + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # The value of detailed client information. + # Required + # 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) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + + # Represents a whole calendar date, e.g. date of birth. The time of day and + # time zone are either specified elsewhere or are not significant. The date + # is relative to the Proleptic Gregorian Calendar. The day may be 0 to + # represent a year and month where the day is not significant, e.g. credit card + # expiration date. The year may be 0 to represent a month and day independent + # of year, e.g. anniversary date. Related types are google.type.TimeOfDay + # and `google.protobuf.Timestamp`. + class Date + include Google::Apis::Core::Hashable + + # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 + # if specifying a year/month where the day is not significant. + # Corresponds to the JSON property `day` + # @return [Fixnum] + attr_accessor :day + + # Month of year. Must be from 1 to 12. + # Corresponds to the JSON property `month` + # @return [Fixnum] + attr_accessor :month + + # Year of date. Must be from 1 to 9999, or 0 if specifying a date without + # a year. + # Corresponds to the JSON property `year` + # @return [Fixnum] + attr_accessor :year + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @month = args[:month] if args.key?(:month) + @year = args[:year] if args.key?(:year) + end + end + + # A single device file description. + class DeviceFile + include Google::Apis::Core::Hashable + + # An opaque binary blob file to install on the device before the test starts + # Corresponds to the JSON property `obbFile` + # @return [Google::Apis::TestingV1::ObbFile] + attr_accessor :obb_file + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @obb_file = args[:obb_file] if args.key?(:obb_file) + end + end + + # Data about the relative number of devices running a + # given configuration of the Android platform. + class Distribution + include Google::Apis::Core::Hashable + + # The estimated fraction (0-1) of the total market with this configuration. + # @OutputOnly + # Corresponds to the JSON property `marketShare` + # @return [Float] + attr_accessor :market_share + + # The time this distribution was measured. + # @OutputOnly + # Corresponds to the JSON property `measurementTime` + # @return [String] + attr_accessor :measurement_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @market_share = args[:market_share] if args.key?(:market_share) + @measurement_time = args[:measurement_time] if args.key?(:measurement_time) + end + end + + # The environment in which the test is run. + class Environment + include Google::Apis::Core::Hashable + + # A single Android device. + # Corresponds to the JSON property `androidDevice` + # @return [Google::Apis::TestingV1::AndroidDevice] + attr_accessor :android_device + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @android_device = args[:android_device] if args.key?(:android_device) + end + end + + # The matrix of environments in which the test is to be executed. + class EnvironmentMatrix + include Google::Apis::Core::Hashable + + # A list of Android device configurations in which the test is to be executed. + # Corresponds to the JSON property `androidDeviceList` + # @return [Google::Apis::TestingV1::AndroidDeviceList] + attr_accessor :android_device_list + + # A set of Android device configuration permutations is defined by the + # the cross-product of the given axes. Internally, the given AndroidMatrix + # will be expanded into a set of AndroidDevices. + # Only supported permutations will be instantiated. Invalid permutations + # (e.g., incompatible models/versions) are ignored. + # Corresponds to the JSON property `androidMatrix` + # @return [Google::Apis::TestingV1::AndroidMatrix] + attr_accessor :android_matrix + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @android_device_list = args[:android_device_list] if args.key?(:android_device_list) + @android_matrix = args[:android_matrix] if args.key?(:android_matrix) + end + end + + # A key-value pair passed as an environment variable to the test + class EnvironmentVariable + include Google::Apis::Core::Hashable + + # Key for the environment variable + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # Value for the environment variable + # 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) + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end + + # A reference to a file, used for user inputs. + class FileReference + include Google::Apis::Core::Hashable + + # A path to a file in Google Cloud Storage. + # Example: gs://build-app-1414623860166/app-debug-unaligned.apk + # Corresponds to the JSON property `gcsPath` + # @return [String] + attr_accessor :gcs_path + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_path = args[:gcs_path] if args.key?(:gcs_path) + end + end + + # Enables automatic Google account login. + # If set, the service will automatically generate a Google test account and add + # it to the device, before executing the test. Note that test accounts might be + # reused. + # Many applications show their full set of functionalities when an account is + # present on the device. Logging into the device with these generated accounts + # allows testing more functionalities. + class GoogleAuto + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # A storage location within Google cloud storage (GCS). + class GoogleCloudStorage + include Google::Apis::Core::Hashable + + # The path to a directory in GCS that will + # eventually contain the results for this test. + # The requesting user must have write access on the bucket in the supplied + # path. + # Required + # Corresponds to the JSON property `gcsPath` + # @return [String] + attr_accessor :gcs_path + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @gcs_path = args[:gcs_path] if args.key?(:gcs_path) + end + end + + # A location/region designation for language. + class Locale + include Google::Apis::Core::Hashable + + # The id for this locale. + # Example: "en_US" + # @OutputOnly + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A human-friendly name for this language/locale. + # Example: "English" + # @OutputOnly + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # A human-friendy string representing the region for this locale. + # Example: "United States" + # Not present for every locale. + # @OutputOnly + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # Tags for this dimension. + # Examples: "default" + # Corresponds to the JSON property `tags` + # @return [Array] + attr_accessor :tags + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @region = args[:region] if args.key?(:region) + @tags = args[:tags] if args.key?(:tags) + end + end + + # + class NetworkConfiguration + include Google::Apis::Core::Hashable + + # Network emulation parameters + # Corresponds to the JSON property `downRule` + # @return [Google::Apis::TestingV1::TrafficRule] + attr_accessor :down_rule + + # The unique opaque id for this network traffic configuration + # @OutputOnly + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Network emulation parameters + # Corresponds to the JSON property `upRule` + # @return [Google::Apis::TestingV1::TrafficRule] + attr_accessor :up_rule + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @down_rule = args[:down_rule] if args.key?(:down_rule) + @id = args[:id] if args.key?(:id) + @up_rule = args[:up_rule] if args.key?(:up_rule) + end + end + + # + class NetworkConfigurationCatalog + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `configurations` + # @return [Array] + attr_accessor :configurations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @configurations = args[:configurations] if args.key?(:configurations) + end + end + + # An opaque binary blob file to install on the device before the test starts + class ObbFile + include Google::Apis::Core::Hashable + + # A reference to a file, used for user inputs. + # Corresponds to the JSON property `obb` + # @return [Google::Apis::TestingV1::FileReference] + attr_accessor :obb + + # OBB file name which must conform to the format as specified by + # Android + # e.g. [main|patch].0300110.com.example.android.obb + # which will be installed into + # /Android/obb// + # on the device + # Required + # Corresponds to the JSON property `obbFileName` + # @return [String] + attr_accessor :obb_file_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @obb = args[:obb] if args.key?(:obb) + @obb_file_name = args[:obb_file_name] if args.key?(:obb_file_name) + end + end + + # Screen orientation of the device. + class Orientation + include Google::Apis::Core::Hashable + + # The id for this orientation. + # Example: "portrait" + # @OutputOnly + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # A human-friendly name for this orientation. + # Example: "portrait" + # @OutputOnly + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Tags for this dimension. + # Examples: "default" + # Corresponds to the JSON property `tags` + # @return [Array] + attr_accessor :tags + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @tags = args[:tags] if args.key?(:tags) + end + end + + # Locations where the results of running the test are stored. + class ResultStorage + include Google::Apis::Core::Hashable + + # A storage location within Google cloud storage (GCS). + # Corresponds to the JSON property `googleCloudStorage` + # @return [Google::Apis::TestingV1::GoogleCloudStorage] + attr_accessor :google_cloud_storage + + # Represents a tool results execution resource. + # This has the results of a TestMatrix. + # Corresponds to the JSON property `toolResultsExecution` + # @return [Google::Apis::TestingV1::ToolResultsExecution] + attr_accessor :tool_results_execution + + # Represents a tool results history resource. + # Corresponds to the JSON property `toolResultsHistory` + # @return [Google::Apis::TestingV1::ToolResultsHistory] + attr_accessor :tool_results_history + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @google_cloud_storage = args[:google_cloud_storage] if args.key?(:google_cloud_storage) + @tool_results_execution = args[:tool_results_execution] if args.key?(:tool_results_execution) + @tool_results_history = args[:tool_results_history] if args.key?(:tool_results_history) + end + end + + # Directs Robo to interact with a specific UI element if it is encountered + # during the crawl. Currently, Robo can perform text entry or element click. + class RoboDirective + include Google::Apis::Core::Hashable + + # The type of action that Robo should perform on the specified element. + # Required. + # Corresponds to the JSON property `actionType` + # @return [String] + attr_accessor :action_type + + # The text that Robo is directed to set. If left empty, the directive will be + # treated as a CLICK on the element matching the resource_name. + # Optional + # Corresponds to the JSON property `inputText` + # @return [String] + attr_accessor :input_text + + # The android resource name of the target UI element + # For example, + # in Java: R.string.foo + # in xml: @string/foo + # Only the “foo” part is needed. + # Reference doc: + # https://developer.android.com/guide/topics/resources/accessing-resources.html + # Required + # Corresponds to the JSON property `resourceName` + # @return [String] + attr_accessor :resource_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action_type = args[:action_type] if args.key?(:action_type) + @input_text = args[:input_text] if args.key?(:input_text) + @resource_name = args[:resource_name] if args.key?(:resource_name) + end + end + + # Additional details about the progress of the running test. + class TestDetails + include Google::Apis::Core::Hashable + + # If the TestState is ERROR, then this string will contain human-readable + # details about the error. + # @OutputOnly + # Corresponds to the JSON property `errorMessage` + # @return [String] + attr_accessor :error_message + + # Human-readable, detailed descriptions of the test's progress. + # For example: "Provisioning a device", "Starting Test". + # During the course of execution new data may be appended + # to the end of progress_messages. + # @OutputOnly + # Corresponds to the JSON property `progressMessages` + # @return [Array] + attr_accessor :progress_messages + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error_message = args[:error_message] if args.key?(:error_message) + @progress_messages = args[:progress_messages] if args.key?(:progress_messages) + end + end + + # A description of a test environment. + class TestEnvironmentCatalog + include Google::Apis::Core::Hashable + + # The currently supported Android devices. + # Corresponds to the JSON property `androidDeviceCatalog` + # @return [Google::Apis::TestingV1::AndroidDeviceCatalog] + attr_accessor :android_device_catalog + + # Supported network configurations + # Corresponds to the JSON property `networkConfigurationCatalog` + # @return [Google::Apis::TestingV1::NetworkConfigurationCatalog] + attr_accessor :network_configuration_catalog + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @android_device_catalog = args[:android_device_catalog] if args.key?(:android_device_catalog) + @network_configuration_catalog = args[:network_configuration_catalog] if args.key?(:network_configuration_catalog) + end + end + + # Specifies a single test to be executed in a single environment. + class TestExecution + include Google::Apis::Core::Hashable + + # The environment in which the test is run. + # Corresponds to the JSON property `environment` + # @return [Google::Apis::TestingV1::Environment] + attr_accessor :environment + + # Unique id set by the backend. + # @OutputOnly + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Id of the containing TestMatrix. + # @OutputOnly + # Corresponds to the JSON property `matrixId` + # @return [String] + attr_accessor :matrix_id + + # The cloud project that owns the test execution. + # @OutputOnly + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Indicates the current progress of the test execution (e.g., FINISHED). + # @OutputOnly + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Additional details about the progress of the running test. + # Corresponds to the JSON property `testDetails` + # @return [Google::Apis::TestingV1::TestDetails] + attr_accessor :test_details + + # A description of how to run the test. + # Corresponds to the JSON property `testSpecification` + # @return [Google::Apis::TestingV1::TestSpecification] + attr_accessor :test_specification + + # The time this test execution was initially created. + # @OutputOnly + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + # Represents a tool results step resource. + # This has the results of a TestExecution. + # Corresponds to the JSON property `toolResultsStep` + # @return [Google::Apis::TestingV1::ToolResultsStep] + attr_accessor :tool_results_step + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @environment = args[:environment] if args.key?(:environment) + @id = args[:id] if args.key?(:id) + @matrix_id = args[:matrix_id] if args.key?(:matrix_id) + @project_id = args[:project_id] if args.key?(:project_id) + @state = args[:state] if args.key?(:state) + @test_details = args[:test_details] if args.key?(:test_details) + @test_specification = args[:test_specification] if args.key?(:test_specification) + @timestamp = args[:timestamp] if args.key?(:timestamp) + @tool_results_step = args[:tool_results_step] if args.key?(:tool_results_step) + end + end + + # A group of one or more TestExecutions, built by taking a + # product of values over a pre-defined set of axes. + class TestMatrix + include Google::Apis::Core::Hashable + + # Information about the client which invoked the test. + # Corresponds to the JSON property `clientInfo` + # @return [Google::Apis::TestingV1::ClientInfo] + attr_accessor :client_info + + # The matrix of environments in which the test is to be executed. + # Corresponds to the JSON property `environmentMatrix` + # @return [Google::Apis::TestingV1::EnvironmentMatrix] + attr_accessor :environment_matrix + + # Describes why the matrix is considered invalid. + # Only useful for matrices in the INVALID state. + # @OutputOnly + # Corresponds to the JSON property `invalidMatrixDetails` + # @return [String] + attr_accessor :invalid_matrix_details + + # The cloud project that owns the test matrix. + # @OutputOnly + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # Locations where the results of running the test are stored. + # Corresponds to the JSON property `resultStorage` + # @return [Google::Apis::TestingV1::ResultStorage] + attr_accessor :result_storage + + # Indicates the current progress of the test matrix (e.g., FINISHED) + # @OutputOnly + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The list of test executions that the service creates for this matrix. + # @OutputOnly + # Corresponds to the JSON property `testExecutions` + # @return [Array] + attr_accessor :test_executions + + # Unique id set by the service. + # @OutputOnly + # Corresponds to the JSON property `testMatrixId` + # @return [String] + attr_accessor :test_matrix_id + + # A description of how to run the test. + # Corresponds to the JSON property `testSpecification` + # @return [Google::Apis::TestingV1::TestSpecification] + attr_accessor :test_specification + + # The time this test matrix was initially created. + # @OutputOnly + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @client_info = args[:client_info] if args.key?(:client_info) + @environment_matrix = args[:environment_matrix] if args.key?(:environment_matrix) + @invalid_matrix_details = args[:invalid_matrix_details] if args.key?(:invalid_matrix_details) + @project_id = args[:project_id] if args.key?(:project_id) + @result_storage = args[:result_storage] if args.key?(:result_storage) + @state = args[:state] if args.key?(:state) + @test_executions = args[:test_executions] if args.key?(:test_executions) + @test_matrix_id = args[:test_matrix_id] if args.key?(:test_matrix_id) + @test_specification = args[:test_specification] if args.key?(:test_specification) + @timestamp = args[:timestamp] if args.key?(:timestamp) + end + end + + # A description of how to set up the device prior to running the test + class TestSetup + include Google::Apis::Core::Hashable + + # Identifies an account and how to log into it + # Corresponds to the JSON property `account` + # @return [Google::Apis::TestingV1::Account] + attr_accessor :account + + # The directories on the device to upload to GCS at the end of the test; + # they must be absolute, whitelisted paths. + # Refer to RegularFile for whitelisted paths. + # Optional + # Corresponds to the JSON property `directoriesToPull` + # @return [Array] + attr_accessor :directories_to_pull + + # Environment variables to set for the test (only applicable for + # instrumentation tests). + # Corresponds to the JSON property `environmentVariables` + # @return [Array] + attr_accessor :environment_variables + + # Optional + # Corresponds to the JSON property `filesToPush` + # @return [Array] + attr_accessor :files_to_push + + # The network traffic profile used for running the test. + # Optional + # Corresponds to the JSON property `networkProfile` + # @return [String] + attr_accessor :network_profile + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account = args[:account] if args.key?(:account) + @directories_to_pull = args[:directories_to_pull] if args.key?(:directories_to_pull) + @environment_variables = args[:environment_variables] if args.key?(:environment_variables) + @files_to_push = args[:files_to_push] if args.key?(:files_to_push) + @network_profile = args[:network_profile] if args.key?(:network_profile) + end + end + + # A description of how to run the test. + class TestSpecification + include Google::Apis::Core::Hashable + + # A test of an Android application that can control an Android component + # independently of its normal lifecycle. + # Android instrumentation tests run an application APK and test APK inside the + # same process on a virtual or physical AndroidDevice. They also specify + # a test runner class, such as com.google.GoogleTestRunner, which can vary + # on the specific instrumentation framework chosen. + # See for + # more information on types of Android tests. + # Corresponds to the JSON property `androidInstrumentationTest` + # @return [Google::Apis::TestingV1::AndroidInstrumentationTest] + attr_accessor :android_instrumentation_test + + # A test of an android application that explores the application on a virtual + # or physical Android Device, finding culprits and crashes as it goes. + # Corresponds to the JSON property `androidRoboTest` + # @return [Google::Apis::TestingV1::AndroidRoboTest] + attr_accessor :android_robo_test + + # A test of an Android Application with a Test Loop. + # The intent will be implicitly added, since Games is the only + # user of this api, for the time being. + # Corresponds to the JSON property `androidTestLoop` + # @return [Google::Apis::TestingV1::AndroidTestLoop] + attr_accessor :android_test_loop + + # Enables automatic Google account login. + # If set, the service will automatically generate a Google test account and + # add it to the device, before executing the test. Note that test accounts + # might be reused. + # Many applications show their full set of functionalities when an account is + # present on the device. Logging into the device with these generated + # accounts allows testing more functionalities. + # Default is false. + # Optional + # Corresponds to the JSON property `autoGoogleLogin` + # @return [Boolean] + attr_accessor :auto_google_login + alias_method :auto_google_login?, :auto_google_login + + # Disables performance metrics recording; may reduce test latency. + # Corresponds to the JSON property `disablePerformanceMetrics` + # @return [Boolean] + attr_accessor :disable_performance_metrics + alias_method :disable_performance_metrics?, :disable_performance_metrics + + # Disables video recording; may reduce test latency. + # Corresponds to the JSON property `disableVideoRecording` + # @return [Boolean] + attr_accessor :disable_video_recording + alias_method :disable_video_recording?, :disable_video_recording + + # A description of how to set up the device prior to running the test + # Corresponds to the JSON property `testSetup` + # @return [Google::Apis::TestingV1::TestSetup] + attr_accessor :test_setup + + # Max time a test execution is allowed to run before it is + # automatically cancelled. + # Optional, default is 5 min. + # Corresponds to the JSON property `testTimeout` + # @return [String] + attr_accessor :test_timeout + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @android_instrumentation_test = args[:android_instrumentation_test] if args.key?(:android_instrumentation_test) + @android_robo_test = args[:android_robo_test] if args.key?(:android_robo_test) + @android_test_loop = args[:android_test_loop] if args.key?(:android_test_loop) + @auto_google_login = args[:auto_google_login] if args.key?(:auto_google_login) + @disable_performance_metrics = args[:disable_performance_metrics] if args.key?(:disable_performance_metrics) + @disable_video_recording = args[:disable_video_recording] if args.key?(:disable_video_recording) + @test_setup = args[:test_setup] if args.key?(:test_setup) + @test_timeout = args[:test_timeout] if args.key?(:test_timeout) + end + end + + # Represents a tool results execution resource. + # This has the results of a TestMatrix. + class ToolResultsExecution + include Google::Apis::Core::Hashable + + # A tool results execution ID. + # @OutputOnly + # Corresponds to the JSON property `executionId` + # @return [String] + attr_accessor :execution_id + + # A tool results history ID. + # @OutputOnly + # Corresponds to the JSON property `historyId` + # @return [String] + attr_accessor :history_id + + # The cloud project that owns the tool results execution. + # @OutputOnly + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_id = args[:execution_id] if args.key?(:execution_id) + @history_id = args[:history_id] if args.key?(:history_id) + @project_id = args[:project_id] if args.key?(:project_id) + end + end + + # Represents a tool results history resource. + class ToolResultsHistory + include Google::Apis::Core::Hashable + + # A tool results history ID. + # Required + # Corresponds to the JSON property `historyId` + # @return [String] + attr_accessor :history_id + + # The cloud project that owns the tool results history. + # Required + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @history_id = args[:history_id] if args.key?(:history_id) + @project_id = args[:project_id] if args.key?(:project_id) + end + end + + # Represents a tool results step resource. + # This has the results of a TestExecution. + class ToolResultsStep + include Google::Apis::Core::Hashable + + # A tool results execution ID. + # @OutputOnly + # Corresponds to the JSON property `executionId` + # @return [String] + attr_accessor :execution_id + + # A tool results history ID. + # @OutputOnly + # Corresponds to the JSON property `historyId` + # @return [String] + attr_accessor :history_id + + # The cloud project that owns the tool results step. + # @OutputOnly + # Corresponds to the JSON property `projectId` + # @return [String] + attr_accessor :project_id + + # A tool results step ID. + # @OutputOnly + # Corresponds to the JSON property `stepId` + # @return [String] + attr_accessor :step_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @execution_id = args[:execution_id] if args.key?(:execution_id) + @history_id = args[:history_id] if args.key?(:history_id) + @project_id = args[:project_id] if args.key?(:project_id) + @step_id = args[:step_id] if args.key?(:step_id) + end + end + + # Network emulation parameters + class TrafficRule + include Google::Apis::Core::Hashable + + # Bandwidth in kbits/second + # Corresponds to the JSON property `bandwidth` + # @return [Float] + attr_accessor :bandwidth + + # Burst size in kbits + # Corresponds to the JSON property `burst` + # @return [Float] + attr_accessor :burst + + # Packet delay, must be >= 0 + # Corresponds to the JSON property `delay` + # @return [String] + attr_accessor :delay + + # Packet duplication ratio (0.0 - 1.0) + # Corresponds to the JSON property `packetDuplicationRatio` + # @return [Float] + attr_accessor :packet_duplication_ratio + + # Packet loss ratio (0.0 - 1.0) + # Corresponds to the JSON property `packetLossRatio` + # @return [Float] + attr_accessor :packet_loss_ratio + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bandwidth = args[:bandwidth] if args.key?(:bandwidth) + @burst = args[:burst] if args.key?(:burst) + @delay = args[:delay] if args.key?(:delay) + @packet_duplication_ratio = args[:packet_duplication_ratio] if args.key?(:packet_duplication_ratio) + @packet_loss_ratio = args[:packet_loss_ratio] if args.key?(:packet_loss_ratio) + end + end + end + end +end diff --git a/generated/google/apis/testing_v1/representations.rb b/generated/google/apis/testing_v1/representations.rb new file mode 100644 index 000000000..23c0b56be --- /dev/null +++ b/generated/google/apis/testing_v1/representations.rb @@ -0,0 +1,688 @@ +# 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 TestingV1 + + class Account + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AndroidDevice + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AndroidDeviceCatalog + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AndroidDeviceList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AndroidInstrumentationTest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AndroidMatrix + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AndroidModel + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AndroidRoboTest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AndroidRuntimeConfiguration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AndroidTestLoop + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AndroidVersion + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CancelTestMatrixResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ClientInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ClientInfoDetail + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Date + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeviceFile + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Distribution + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Environment + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EnvironmentMatrix + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class EnvironmentVariable + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FileReference + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleAuto + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudStorage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Locale + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NetworkConfiguration + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NetworkConfigurationCatalog + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ObbFile + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Orientation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResultStorage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RoboDirective + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestEnvironmentCatalog + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestExecution + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestMatrix + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestSetup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TestSpecification + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ToolResultsExecution + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ToolResultsHistory + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ToolResultsStep + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TrafficRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Account + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :google_auto, as: 'googleAuto', class: Google::Apis::TestingV1::GoogleAuto, decorator: Google::Apis::TestingV1::GoogleAuto::Representation + + end + end + + class AndroidDevice + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :android_model_id, as: 'androidModelId' + property :android_version_id, as: 'androidVersionId' + property :locale, as: 'locale' + property :orientation, as: 'orientation' + end + end + + class AndroidDeviceCatalog + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :models, as: 'models', class: Google::Apis::TestingV1::AndroidModel, decorator: Google::Apis::TestingV1::AndroidModel::Representation + + property :runtime_configuration, as: 'runtimeConfiguration', class: Google::Apis::TestingV1::AndroidRuntimeConfiguration, decorator: Google::Apis::TestingV1::AndroidRuntimeConfiguration::Representation + + collection :versions, as: 'versions', class: Google::Apis::TestingV1::AndroidVersion, decorator: Google::Apis::TestingV1::AndroidVersion::Representation + + end + end + + class AndroidDeviceList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :android_devices, as: 'androidDevices', class: Google::Apis::TestingV1::AndroidDevice, decorator: Google::Apis::TestingV1::AndroidDevice::Representation + + end + end + + class AndroidInstrumentationTest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :app_apk, as: 'appApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation + + property :app_package_id, as: 'appPackageId' + property :orchestrator_option, as: 'orchestratorOption' + property :test_apk, as: 'testApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation + + property :test_package_id, as: 'testPackageId' + property :test_runner_class, as: 'testRunnerClass' + collection :test_targets, as: 'testTargets' + end + end + + class AndroidMatrix + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :android_model_ids, as: 'androidModelIds' + collection :android_version_ids, as: 'androidVersionIds' + collection :locales, as: 'locales' + collection :orientations, as: 'orientations' + end + end + + class AndroidModel + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :brand, as: 'brand' + property :codename, as: 'codename' + property :form, as: 'form' + property :id, as: 'id' + property :manufacturer, as: 'manufacturer' + property :name, as: 'name' + property :screen_density, as: 'screenDensity' + property :screen_x, as: 'screenX' + property :screen_y, as: 'screenY' + collection :supported_abis, as: 'supportedAbis' + collection :supported_version_ids, as: 'supportedVersionIds' + collection :tags, as: 'tags' + end + end + + class AndroidRoboTest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :app_apk, as: 'appApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation + + property :app_initial_activity, as: 'appInitialActivity' + property :app_package_id, as: 'appPackageId' + property :max_depth, as: 'maxDepth' + property :max_steps, as: 'maxSteps' + collection :robo_directives, as: 'roboDirectives', class: Google::Apis::TestingV1::RoboDirective, decorator: Google::Apis::TestingV1::RoboDirective::Representation + + end + end + + class AndroidRuntimeConfiguration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :locales, as: 'locales', class: Google::Apis::TestingV1::Locale, decorator: Google::Apis::TestingV1::Locale::Representation + + collection :orientations, as: 'orientations', class: Google::Apis::TestingV1::Orientation, decorator: Google::Apis::TestingV1::Orientation::Representation + + end + end + + class AndroidTestLoop + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :app_apk, as: 'appApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation + + property :app_package_id, as: 'appPackageId' + collection :scenario_labels, as: 'scenarioLabels' + collection :scenarios, as: 'scenarios' + end + end + + class AndroidVersion + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :api_level, as: 'apiLevel' + property :code_name, as: 'codeName' + property :distribution, as: 'distribution', class: Google::Apis::TestingV1::Distribution, decorator: Google::Apis::TestingV1::Distribution::Representation + + property :id, as: 'id' + property :release_date, as: 'releaseDate', class: Google::Apis::TestingV1::Date, decorator: Google::Apis::TestingV1::Date::Representation + + collection :tags, as: 'tags' + property :version_string, as: 'versionString' + end + end + + class CancelTestMatrixResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :test_state, as: 'testState' + end + end + + class ClientInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :client_info_details, as: 'clientInfoDetails', class: Google::Apis::TestingV1::ClientInfoDetail, decorator: Google::Apis::TestingV1::ClientInfoDetail::Representation + + property :name, as: 'name' + end + end + + class ClientInfoDetail + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + + class Date + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day, as: 'day' + property :month, as: 'month' + property :year, as: 'year' + end + end + + class DeviceFile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :obb_file, as: 'obbFile', class: Google::Apis::TestingV1::ObbFile, decorator: Google::Apis::TestingV1::ObbFile::Representation + + end + end + + class Distribution + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :market_share, as: 'marketShare' + property :measurement_time, as: 'measurementTime' + end + end + + class Environment + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :android_device, as: 'androidDevice', class: Google::Apis::TestingV1::AndroidDevice, decorator: Google::Apis::TestingV1::AndroidDevice::Representation + + end + end + + class EnvironmentMatrix + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :android_device_list, as: 'androidDeviceList', class: Google::Apis::TestingV1::AndroidDeviceList, decorator: Google::Apis::TestingV1::AndroidDeviceList::Representation + + property :android_matrix, as: 'androidMatrix', class: Google::Apis::TestingV1::AndroidMatrix, decorator: Google::Apis::TestingV1::AndroidMatrix::Representation + + end + end + + class EnvironmentVariable + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value, as: 'value' + end + end + + class FileReference + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_path, as: 'gcsPath' + end + end + + class GoogleAuto + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudStorage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :gcs_path, as: 'gcsPath' + end + end + + class Locale + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :name, as: 'name' + property :region, as: 'region' + collection :tags, as: 'tags' + end + end + + class NetworkConfiguration + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :down_rule, as: 'downRule', class: Google::Apis::TestingV1::TrafficRule, decorator: Google::Apis::TestingV1::TrafficRule::Representation + + property :id, as: 'id' + property :up_rule, as: 'upRule', class: Google::Apis::TestingV1::TrafficRule, decorator: Google::Apis::TestingV1::TrafficRule::Representation + + end + end + + class NetworkConfigurationCatalog + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :configurations, as: 'configurations', class: Google::Apis::TestingV1::NetworkConfiguration, decorator: Google::Apis::TestingV1::NetworkConfiguration::Representation + + end + end + + class ObbFile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :obb, as: 'obb', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation + + property :obb_file_name, as: 'obbFileName' + end + end + + class Orientation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :name, as: 'name' + collection :tags, as: 'tags' + end + end + + class ResultStorage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :google_cloud_storage, as: 'googleCloudStorage', class: Google::Apis::TestingV1::GoogleCloudStorage, decorator: Google::Apis::TestingV1::GoogleCloudStorage::Representation + + property :tool_results_execution, as: 'toolResultsExecution', class: Google::Apis::TestingV1::ToolResultsExecution, decorator: Google::Apis::TestingV1::ToolResultsExecution::Representation + + property :tool_results_history, as: 'toolResultsHistory', class: Google::Apis::TestingV1::ToolResultsHistory, decorator: Google::Apis::TestingV1::ToolResultsHistory::Representation + + end + end + + class RoboDirective + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action_type, as: 'actionType' + property :input_text, as: 'inputText' + property :resource_name, as: 'resourceName' + end + end + + class TestDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :error_message, as: 'errorMessage' + collection :progress_messages, as: 'progressMessages' + end + end + + class TestEnvironmentCatalog + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :android_device_catalog, as: 'androidDeviceCatalog', class: Google::Apis::TestingV1::AndroidDeviceCatalog, decorator: Google::Apis::TestingV1::AndroidDeviceCatalog::Representation + + property :network_configuration_catalog, as: 'networkConfigurationCatalog', class: Google::Apis::TestingV1::NetworkConfigurationCatalog, decorator: Google::Apis::TestingV1::NetworkConfigurationCatalog::Representation + + end + end + + class TestExecution + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :environment, as: 'environment', class: Google::Apis::TestingV1::Environment, decorator: Google::Apis::TestingV1::Environment::Representation + + property :id, as: 'id' + property :matrix_id, as: 'matrixId' + property :project_id, as: 'projectId' + property :state, as: 'state' + property :test_details, as: 'testDetails', class: Google::Apis::TestingV1::TestDetails, decorator: Google::Apis::TestingV1::TestDetails::Representation + + property :test_specification, as: 'testSpecification', class: Google::Apis::TestingV1::TestSpecification, decorator: Google::Apis::TestingV1::TestSpecification::Representation + + property :timestamp, as: 'timestamp' + property :tool_results_step, as: 'toolResultsStep', class: Google::Apis::TestingV1::ToolResultsStep, decorator: Google::Apis::TestingV1::ToolResultsStep::Representation + + end + end + + class TestMatrix + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :client_info, as: 'clientInfo', class: Google::Apis::TestingV1::ClientInfo, decorator: Google::Apis::TestingV1::ClientInfo::Representation + + property :environment_matrix, as: 'environmentMatrix', class: Google::Apis::TestingV1::EnvironmentMatrix, decorator: Google::Apis::TestingV1::EnvironmentMatrix::Representation + + property :invalid_matrix_details, as: 'invalidMatrixDetails' + property :project_id, as: 'projectId' + property :result_storage, as: 'resultStorage', class: Google::Apis::TestingV1::ResultStorage, decorator: Google::Apis::TestingV1::ResultStorage::Representation + + property :state, as: 'state' + collection :test_executions, as: 'testExecutions', class: Google::Apis::TestingV1::TestExecution, decorator: Google::Apis::TestingV1::TestExecution::Representation + + property :test_matrix_id, as: 'testMatrixId' + property :test_specification, as: 'testSpecification', class: Google::Apis::TestingV1::TestSpecification, decorator: Google::Apis::TestingV1::TestSpecification::Representation + + property :timestamp, as: 'timestamp' + end + end + + class TestSetup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account, as: 'account', class: Google::Apis::TestingV1::Account, decorator: Google::Apis::TestingV1::Account::Representation + + collection :directories_to_pull, as: 'directoriesToPull' + collection :environment_variables, as: 'environmentVariables', class: Google::Apis::TestingV1::EnvironmentVariable, decorator: Google::Apis::TestingV1::EnvironmentVariable::Representation + + collection :files_to_push, as: 'filesToPush', class: Google::Apis::TestingV1::DeviceFile, decorator: Google::Apis::TestingV1::DeviceFile::Representation + + property :network_profile, as: 'networkProfile' + end + end + + class TestSpecification + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :android_instrumentation_test, as: 'androidInstrumentationTest', class: Google::Apis::TestingV1::AndroidInstrumentationTest, decorator: Google::Apis::TestingV1::AndroidInstrumentationTest::Representation + + property :android_robo_test, as: 'androidRoboTest', class: Google::Apis::TestingV1::AndroidRoboTest, decorator: Google::Apis::TestingV1::AndroidRoboTest::Representation + + property :android_test_loop, as: 'androidTestLoop', class: Google::Apis::TestingV1::AndroidTestLoop, decorator: Google::Apis::TestingV1::AndroidTestLoop::Representation + + property :auto_google_login, as: 'autoGoogleLogin' + property :disable_performance_metrics, as: 'disablePerformanceMetrics' + property :disable_video_recording, as: 'disableVideoRecording' + property :test_setup, as: 'testSetup', class: Google::Apis::TestingV1::TestSetup, decorator: Google::Apis::TestingV1::TestSetup::Representation + + property :test_timeout, as: 'testTimeout' + end + end + + class ToolResultsExecution + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_id, as: 'executionId' + property :history_id, as: 'historyId' + property :project_id, as: 'projectId' + end + end + + class ToolResultsHistory + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :history_id, as: 'historyId' + property :project_id, as: 'projectId' + end + end + + class ToolResultsStep + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :execution_id, as: 'executionId' + property :history_id, as: 'historyId' + property :project_id, as: 'projectId' + property :step_id, as: 'stepId' + end + end + + class TrafficRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bandwidth, as: 'bandwidth' + property :burst, as: 'burst' + property :delay, as: 'delay' + property :packet_duplication_ratio, as: 'packetDuplicationRatio' + property :packet_loss_ratio, as: 'packetLossRatio' + end + end + end + end +end diff --git a/generated/google/apis/testing_v1/service.rb b/generated/google/apis/testing_v1/service.rb new file mode 100644 index 000000000..478b829eb --- /dev/null +++ b/generated/google/apis/testing_v1/service.rb @@ -0,0 +1,221 @@ +# 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 TestingV1 + # Google Cloud Testing API + # + # Allows developers to run automated tests for their mobile applications on + # Google infrastructure. + # + # @example + # require 'google/apis/testing_v1' + # + # Testing = Google::Apis::TestingV1 # Alias the module + # service = Testing::TestingService.new + # + # @see https://developers.google.com/cloud-test-lab/ + class TestingService < 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://testing.googleapis.com/', '') + @batch_path = 'batch' + end + + # Cancels unfinished test executions in a test matrix. + # This call returns immediately and cancellation proceeds asychronously. + # If the matrix is already final, this operation will have no effect. + # May return any of the following canonical error codes: + # - PERMISSION_DENIED - if the user is not authorized to read project + # - INVALID_ARGUMENT - if the request is malformed + # - NOT_FOUND - if the Test Matrix does not exist + # @param [String] project_id + # Cloud project that owns the test. + # @param [String] test_matrix_id + # Test matrix that will be canceled. + # @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::TestingV1::CancelTestMatrixResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TestingV1::CancelTestMatrixResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def cancel_project_test_matrix(project_id, test_matrix_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/testMatrices/{testMatrixId}:cancel', options) + command.response_representation = Google::Apis::TestingV1::CancelTestMatrixResponse::Representation + command.response_class = Google::Apis::TestingV1::CancelTestMatrixResponse + command.params['projectId'] = project_id unless project_id.nil? + command.params['testMatrixId'] = test_matrix_id unless test_matrix_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Request to run a matrix of tests according to the given specifications. + # Unsupported environments will be returned in the state UNSUPPORTED. + # Matrices are limited to at most 200 supported executions. + # May return any of the following canonical error codes: + # - PERMISSION_DENIED - if the user is not authorized to write to project + # - INVALID_ARGUMENT - if the request is malformed or if the matrix expands + # to more than 200 supported executions + # @param [String] project_id + # The GCE project under which this job will run. + # @param [Google::Apis::TestingV1::TestMatrix] test_matrix_object + # @param [String] request_id + # A string id used to detect duplicated requests. + # Ids are automatically scoped to a project, so + # users should ensure the ID is unique per-project. + # A UUID is recommended. + # Optional, but strongly recommended. + # @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::TestingV1::TestMatrix] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TestingV1::TestMatrix] + # + # @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_test_matrix(project_id, test_matrix_object = nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/testMatrices', options) + command.request_representation = Google::Apis::TestingV1::TestMatrix::Representation + command.request_object = test_matrix_object + command.response_representation = Google::Apis::TestingV1::TestMatrix::Representation + command.response_class = Google::Apis::TestingV1::TestMatrix + command.params['projectId'] = project_id unless project_id.nil? + command.query['requestId'] = request_id unless request_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Check the status of a test matrix. + # May return any of the following canonical error codes: + # - PERMISSION_DENIED - if the user is not authorized to read project + # - INVALID_ARGUMENT - if the request is malformed + # - NOT_FOUND - if the Test Matrix does not exist + # @param [String] project_id + # Cloud project that owns the test matrix. + # @param [String] test_matrix_id + # Unique test matrix id which was assigned by the service. + # @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::TestingV1::TestMatrix] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TestingV1::TestMatrix] + # + # @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_test_matrix(project_id, test_matrix_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}/testMatrices/{testMatrixId}', options) + command.response_representation = Google::Apis::TestingV1::TestMatrix::Representation + command.response_class = Google::Apis::TestingV1::TestMatrix + command.params['projectId'] = project_id unless project_id.nil? + command.params['testMatrixId'] = test_matrix_id unless test_matrix_id.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 catalog of supported test environments. + # May return any of the following canonical error codes: + # - INVALID_ARGUMENT - if the request is malformed + # - NOT_FOUND - if the environment type does not exist + # - INTERNAL - if an internal error occurred + # @param [String] environment_type + # The type of environment that should be listed. + # Required + # @param [String] project_id + # For authorization, the cloud project requesting the TestEnvironmentCatalog. + # Optional + # @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::TestingV1::TestEnvironmentCatalog] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TestingV1::TestEnvironmentCatalog] + # + # @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_test_environment_catalog(environment_type, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/testEnvironmentCatalog/{environmentType}', options) + command.response_representation = Google::Apis::TestingV1::TestEnvironmentCatalog::Representation + command.response_class = Google::Apis::TestingV1::TestEnvironmentCatalog + command.params['environmentType'] = environment_type unless environment_type.nil? + command.query['projectId'] = project_id unless project_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/toolresults_v1beta3.rb b/generated/google/apis/toolresults_v1beta3.rb index 9b7daa52f..0ac7e437f 100644 --- a/generated/google/apis/toolresults_v1beta3.rb +++ b/generated/google/apis/toolresults_v1beta3.rb @@ -25,7 +25,7 @@ module Google # @see https://firebase.google.com/docs/test-lab/ module ToolresultsV1beta3 VERSION = 'V1beta3' - REVISION = '20170906' + REVISION = '20170911' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/toolresults_v1beta3/service.rb b/generated/google/apis/toolresults_v1beta3/service.rb index 1adb426c5..2cd4221a5 100644 --- a/generated/google/apis/toolresults_v1beta3/service.rb +++ b/generated/google/apis/toolresults_v1beta3/service.rb @@ -50,7 +50,7 @@ module Google def initialize super('https://www.googleapis.com/', 'toolresults/v1beta3/projects/') - @batch_path = 'batch/toolresults/v1beta3' + @batch_path = 'batch' end # Gets the Tool Results settings for a project. diff --git a/generated/google/apis/toolresults_v1beta3firstparty.rb b/generated/google/apis/toolresults_v1beta3firstparty.rb index 0bc8150b7..a03c92fd2 100644 --- a/generated/google/apis/toolresults_v1beta3firstparty.rb +++ b/generated/google/apis/toolresults_v1beta3firstparty.rb @@ -25,7 +25,7 @@ module Google # @see https://firebase.google.com/docs/test-lab/ module ToolresultsV1beta3firstparty VERSION = 'V1beta3firstparty' - REVISION = '20170906' + REVISION = '20170911' end end end diff --git a/generated/google/apis/toolresults_v1beta3firstparty/service.rb b/generated/google/apis/toolresults_v1beta3firstparty/service.rb index ca81ff38b..39ad916d0 100644 --- a/generated/google/apis/toolresults_v1beta3firstparty/service.rb +++ b/generated/google/apis/toolresults_v1beta3firstparty/service.rb @@ -50,7 +50,7 @@ module Google def initialize super('https://www.googleapis.com/', 'toolresults/v1beta3firstparty/projects/') - @batch_path = 'batch/toolresults/v1beta3firstparty' + @batch_path = 'batch' end # Gets the Tool Results settings for a project. diff --git a/generated/google/apis/youtube_partner_v1/service.rb b/generated/google/apis/youtube_partner_v1/service.rb index 173363eb1..82ee418e8 100644 --- a/generated/google/apis/youtube_partner_v1/service.rb +++ b/generated/google/apis/youtube_partner_v1/service.rb @@ -50,7 +50,7 @@ module Google def initialize super('https://www.googleapis.com/', 'youtube/partner/v1/') - @batch_path = 'batch/youtubePartner/v1' + @batch_path = 'batch' end # Insert an asset label for an owner.