From e4ee43fa6a80b04413b799be38619d8d5cc03ccd Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 12 Mar 2024 02:50:59 +0000 Subject: [PATCH] feat: Automated regeneration of Testing client --- .../v1/api/application_detail_service.ex | 2 + .../lib/google_api/testing/v1/api/projects.ex | 343 +++++++++++++++++- .../lib/google_api/testing/v1/metadata.ex | 2 +- .../testing/v1/model/android_model.ex | 3 + .../google_api/testing/v1/model/apk_detail.ex | 2 +- .../testing/v1/model/apk_manifest.ex | 3 + .../v1/model/cancel_device_session_request.ex | 41 +++ .../testing/v1/model/device_session.ex | 73 ++++ .../v1/model/direct_access_version_info.ex | 49 +++ .../lib/google_api/testing/v1/model/empty.ex | 41 +++ .../v1/model/get_apk_details_response.ex | 4 +- .../google_api/testing/v1/model/ios_model.ex | 3 + .../testing/v1/model/ios_robo_test.ex | 52 +++ .../v1/model/list_device_sessions_response.ex | 49 +++ .../testing/v1/model/manual_sharding.ex | 2 +- .../testing/v1/model/matrix_error_detail.ex | 49 +++ .../testing/v1/model/no_activity_intent.ex | 41 +++ .../v1/model/per_android_version_info.ex | 56 +++ .../testing/v1/model/per_ios_version_info.ex | 49 +++ .../testing/v1/model/robo_starting_intent.ex | 3 + .../google_api/testing/v1/model/service.ex | 49 +++ .../testing/v1/model/session_state_event.ex | 52 +++ .../lib/google_api/testing/v1/model/shard.ex | 3 + .../testing/v1/model/sharding_option.ex | 3 + .../testing/v1/model/smart_sharding.ex | 46 +++ .../testing/v1/model/test_matrix.ex | 9 + .../google_api/testing/v1/model/test_setup.ex | 7 +- .../testing/v1/model/test_specification.ex | 3 + .../testing/v1/model/uniform_sharding.ex | 2 +- 29 files changed, 1031 insertions(+), 10 deletions(-) create mode 100644 clients/testing/lib/google_api/testing/v1/model/cancel_device_session_request.ex create mode 100644 clients/testing/lib/google_api/testing/v1/model/device_session.ex create mode 100644 clients/testing/lib/google_api/testing/v1/model/direct_access_version_info.ex create mode 100644 clients/testing/lib/google_api/testing/v1/model/empty.ex create mode 100644 clients/testing/lib/google_api/testing/v1/model/ios_robo_test.ex create mode 100644 clients/testing/lib/google_api/testing/v1/model/list_device_sessions_response.ex create mode 100644 clients/testing/lib/google_api/testing/v1/model/matrix_error_detail.ex create mode 100644 clients/testing/lib/google_api/testing/v1/model/no_activity_intent.ex create mode 100644 clients/testing/lib/google_api/testing/v1/model/per_android_version_info.ex create mode 100644 clients/testing/lib/google_api/testing/v1/model/per_ios_version_info.ex create mode 100644 clients/testing/lib/google_api/testing/v1/model/service.ex create mode 100644 clients/testing/lib/google_api/testing/v1/model/session_state_event.ex create mode 100644 clients/testing/lib/google_api/testing/v1/model/smart_sharding.ex diff --git a/clients/testing/lib/google_api/testing/v1/api/application_detail_service.ex b/clients/testing/lib/google_api/testing/v1/api/application_detail_service.ex index 902858ccf3..ad5e07f38a 100644 --- a/clients/testing/lib/google_api/testing/v1/api/application_detail_service.ex +++ b/clients/testing/lib/google_api/testing/v1/api/application_detail_service.ex @@ -43,6 +43,7 @@ defmodule GoogleApi.Testing.V1.Api.ApplicationDetailService do * `:quotaUser` (*type:* `String.t`) - 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. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:"bundleLocation.gcsPath"` (*type:* `String.t`) - A path to a file in Google Cloud Storage. Example: gs://build-app-1414623860166/app%40debug-unaligned.apk These paths are expected to be url encoded (percent encoding) * `:body` (*type:* `GoogleApi.Testing.V1.Model.FileReference.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -77,6 +78,7 @@ defmodule GoogleApi.Testing.V1.Api.ApplicationDetailService do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, + :"bundleLocation.gcsPath" => :query, :body => :body } diff --git a/clients/testing/lib/google_api/testing/v1/api/projects.ex b/clients/testing/lib/google_api/testing/v1/api/projects.ex index addfb7e5f5..e07516b51f 100644 --- a/clients/testing/lib/google_api/testing/v1/api/projects.ex +++ b/clients/testing/lib/google_api/testing/v1/api/projects.ex @@ -25,6 +25,345 @@ defmodule GoogleApi.Testing.V1.Api.Projects do @library_version Mix.Project.config() |> Keyword.get(:version, "") + @doc """ + POST /v1/projects/{project_id}/deviceSessions/{device_session_id}:cancel Changes the DeviceSession to state FINISHED and terminates all connections. Canceled sessions are not deleted and can be retrieved or listed by the user until they expire based on the 28 day deletion policy. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Testing.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}" + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - 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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - 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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Testing.V1.Model.CancelDeviceSessionRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Testing.V1.Model.Empty{}}` on success + * `{:error, info}` on failure + """ + @spec testing_projects_device_sessions_cancel( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Testing.V1.Model.Empty.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def testing_projects_device_sessions_cancel(connection, name, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+name}:cancel", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Testing.V1.Model.Empty{}]) + end + + @doc """ + POST /v1/projects/{project_id}/deviceSessions + + ## Parameters + + * `connection` (*type:* `GoogleApi.Testing.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}" + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - 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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - 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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Testing.V1.Model.DeviceSession.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Testing.V1.Model.DeviceSession{}}` on success + * `{:error, info}` on failure + """ + @spec testing_projects_device_sessions_create( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Testing.V1.Model.DeviceSession.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def testing_projects_device_sessions_create( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/v1/{+parent}/deviceSessions", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Testing.V1.Model.DeviceSession{}]) + end + + @doc """ + GET /v1/projects/{project_id}/deviceSessions/{device_session_id} Return a DeviceSession, which documents the allocation status and whether the device is allocated. Clients making requests from this API must poll GetDeviceSession. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Testing.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}" + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - 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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - 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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Testing.V1.Model.DeviceSession{}}` on success + * `{:error, info}` on failure + """ + @spec testing_projects_device_sessions_get(Tesla.Env.client(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.Testing.V1.Model.DeviceSession.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def testing_projects_device_sessions_get(connection, name, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Testing.V1.Model.DeviceSession{}]) + end + + @doc """ + GET /v1/projects/{project_id}/deviceSessions Lists device Sessions owned by the project user. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Testing.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. The name of the parent to request, e.g. "projects/{project_id}" + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - 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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - 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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Optional. If specified, responses will be filtered by the given filter. Allowed fields are: session_state. + * `:pageSize` (*type:* `integer()`) - Optional. The maximum number of DeviceSessions to return. + * `:pageToken` (*type:* `String.t`) - Optional. A continuation token for paging. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Testing.V1.Model.ListDeviceSessionsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec testing_projects_device_sessions_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Testing.V1.Model.ListDeviceSessionsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def testing_projects_device_sessions_list(connection, parent, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+parent}/deviceSessions", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Testing.V1.Model.ListDeviceSessionsResponse{}]) + end + + @doc """ + PATCH /v1/projects/{projectId}/deviceSessions/deviceSessionId}:updateDeviceSession Updates the current device session to the fields described by the update_mask. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Testing.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}" + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - 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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - 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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:updateMask` (*type:* `String.t`) - Required. The list of fields to update. + * `:body` (*type:* `GoogleApi.Testing.V1.Model.DeviceSession.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Testing.V1.Model.DeviceSession{}}` on success + * `{:error, info}` on failure + """ + @spec testing_projects_device_sessions_patch( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Testing.V1.Model.DeviceSession.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def testing_projects_device_sessions_patch(connection, name, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :updateMask => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:patch) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Testing.V1.Model.DeviceSession{}]) + end + @doc """ Cancels unfinished test executions in a test matrix. This call returns immediately and cancellation proceeds asynchronously. 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 @@ -100,7 +439,7 @@ defmodule GoogleApi.Testing.V1.Api.Projects do end @doc """ - Creates and runs a matrix of tests according to the given specifications. Unsupported environments will be returned in the state UNSUPPORTED. A test matrix is limited to use at most 2000 devices in parallel. 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 tries to use too many simultaneous devices. + Creates and runs a matrix of tests according to the given specifications. Unsupported environments will be returned in the state UNSUPPORTED. A test matrix is limited to use at most 2000 devices in parallel. The returned matrix will not yet contain the executions that will be created for this matrix. Execution creation happens later on and will require a call to GetTestMatrix. 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 tries to use too many simultaneous devices. ## Parameters @@ -174,7 +513,7 @@ defmodule GoogleApi.Testing.V1.Api.Projects do end @doc """ - Checks 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 + Checks the status of a test matrix and the executions once they are created. The test matrix will contain the list of test executions to run if and only if the resultStorage.toolResultsExecution fields have been populated. Note: Flaky test executions may be added to the matrix at a later stage. 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 ## Parameters diff --git a/clients/testing/lib/google_api/testing/v1/metadata.ex b/clients/testing/lib/google_api/testing/v1/metadata.ex index 72cd8f3dfe..0849521e49 100644 --- a/clients/testing/lib/google_api/testing/v1/metadata.ex +++ b/clients/testing/lib/google_api/testing/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Testing.V1 do API client metadata for GoogleApi.Testing.V1. """ - @discovery_revision "20221108" + @discovery_revision "20240305" def discovery_revision(), do: @discovery_revision end diff --git a/clients/testing/lib/google_api/testing/v1/model/android_model.ex b/clients/testing/lib/google_api/testing/v1/model/android_model.ex index 47f302ea5c..d8174aec42 100644 --- a/clients/testing/lib/google_api/testing/v1/model/android_model.ex +++ b/clients/testing/lib/google_api/testing/v1/model/android_model.ex @@ -29,6 +29,7 @@ defmodule GoogleApi.Testing.V1.Model.AndroidModel do * `lowFpsVideoRecording` (*type:* `boolean()`, *default:* `nil`) - True if and only if tests with this model are recorded by stitching together screenshots. See use_low_spec_video_recording in device config. * `manufacturer` (*type:* `String.t`, *default:* `nil`) - The manufacturer of this device. * `name` (*type:* `String.t`, *default:* `nil`) - The human-readable marketing name for this device model. Examples: "Nexus 5", "Galaxy S5". + * `perVersionInfo` (*type:* `list(GoogleApi.Testing.V1.Model.PerAndroidVersionInfo.t)`, *default:* `nil`) - Version-specific information of an Android model. * `screenDensity` (*type:* `integer()`, *default:* `nil`) - Screen density in DPI. This corresponds to ro.sf.lcd_density * `screenX` (*type:* `integer()`, *default:* `nil`) - Screen size in the horizontal (X) dimension measured in pixels. * `screenY` (*type:* `integer()`, *default:* `nil`) - Screen size in the vertical (Y) dimension measured in pixels. @@ -49,6 +50,7 @@ defmodule GoogleApi.Testing.V1.Model.AndroidModel do :lowFpsVideoRecording => boolean() | nil, :manufacturer => String.t() | nil, :name => String.t() | nil, + :perVersionInfo => list(GoogleApi.Testing.V1.Model.PerAndroidVersionInfo.t()) | nil, :screenDensity => integer() | nil, :screenX => integer() | nil, :screenY => integer() | nil, @@ -66,6 +68,7 @@ defmodule GoogleApi.Testing.V1.Model.AndroidModel do field(:lowFpsVideoRecording) field(:manufacturer) field(:name) + field(:perVersionInfo, as: GoogleApi.Testing.V1.Model.PerAndroidVersionInfo, type: :list) field(:screenDensity) field(:screenX) field(:screenY) diff --git a/clients/testing/lib/google_api/testing/v1/model/apk_detail.ex b/clients/testing/lib/google_api/testing/v1/model/apk_detail.ex index b86dc7ea7a..c170fc75a4 100644 --- a/clients/testing/lib/google_api/testing/v1/model/apk_detail.ex +++ b/clients/testing/lib/google_api/testing/v1/model/apk_detail.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Testing.V1.Model.ApkDetail do @moduledoc """ - Android application details based on application manifest and apk archive contents. + Android application details based on application manifest and archive contents. ## Attributes diff --git a/clients/testing/lib/google_api/testing/v1/model/apk_manifest.ex b/clients/testing/lib/google_api/testing/v1/model/apk_manifest.ex index 76b87e3aa2..afad0df1f6 100644 --- a/clients/testing/lib/google_api/testing/v1/model/apk_manifest.ex +++ b/clients/testing/lib/google_api/testing/v1/model/apk_manifest.ex @@ -27,6 +27,7 @@ defmodule GoogleApi.Testing.V1.Model.ApkManifest do * `metadata` (*type:* `list(GoogleApi.Testing.V1.Model.Metadata.t)`, *default:* `nil`) - Meta-data tags defined in the manifest. * `minSdkVersion` (*type:* `integer()`, *default:* `nil`) - Minimum API level required for the application to run. * `packageName` (*type:* `String.t`, *default:* `nil`) - Full Java-style package name for this application, e.g. "com.example.foo". + * `services` (*type:* `list(GoogleApi.Testing.V1.Model.Service.t)`, *default:* `nil`) - Services contained in the tag. * `targetSdkVersion` (*type:* `integer()`, *default:* `nil`) - Specifies the API Level on which the application is designed to run. * `usesFeature` (*type:* `list(GoogleApi.Testing.V1.Model.UsesFeature.t)`, *default:* `nil`) - Feature usage tags defined in the manifest. * `usesPermission` (*type:* `list(String.t)`, *default:* `nil`) - Permissions declared to be used by the application @@ -43,6 +44,7 @@ defmodule GoogleApi.Testing.V1.Model.ApkManifest do :metadata => list(GoogleApi.Testing.V1.Model.Metadata.t()) | nil, :minSdkVersion => integer() | nil, :packageName => String.t() | nil, + :services => list(GoogleApi.Testing.V1.Model.Service.t()) | nil, :targetSdkVersion => integer() | nil, :usesFeature => list(GoogleApi.Testing.V1.Model.UsesFeature.t()) | nil, :usesPermission => list(String.t()) | nil, @@ -56,6 +58,7 @@ defmodule GoogleApi.Testing.V1.Model.ApkManifest do field(:metadata, as: GoogleApi.Testing.V1.Model.Metadata, type: :list) field(:minSdkVersion) field(:packageName) + field(:services, as: GoogleApi.Testing.V1.Model.Service, type: :list) field(:targetSdkVersion) field(:usesFeature, as: GoogleApi.Testing.V1.Model.UsesFeature, type: :list) field(:usesPermission, type: :list) diff --git a/clients/testing/lib/google_api/testing/v1/model/cancel_device_session_request.ex b/clients/testing/lib/google_api/testing/v1/model/cancel_device_session_request.ex new file mode 100644 index 0000000000..1eff7b8ad2 --- /dev/null +++ b/clients/testing/lib/google_api/testing/v1/model/cancel_device_session_request.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Testing.V1.Model.CancelDeviceSessionRequest do + @moduledoc """ + The request object for cancelling a Device Session. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.Testing.V1.Model.CancelDeviceSessionRequest do + def decode(value, options) do + GoogleApi.Testing.V1.Model.CancelDeviceSessionRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Testing.V1.Model.CancelDeviceSessionRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/testing/lib/google_api/testing/v1/model/device_session.ex b/clients/testing/lib/google_api/testing/v1/model/device_session.ex new file mode 100644 index 0000000000..f7781158c8 --- /dev/null +++ b/clients/testing/lib/google_api/testing/v1/model/device_session.ex @@ -0,0 +1,73 @@ +# Copyright 2019 Google LLC +# +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Testing.V1.Model.DeviceSession do + @moduledoc """ + Protobuf message describing the device message, used from several RPCs. + + ## Attributes + + * `activeStartTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp that the session first became ACTIVE. + * `androidDevice` (*type:* `GoogleApi.Testing.V1.Model.AndroidDevice.t`, *default:* `nil`) - Required. The requested device + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time that the Session was created. + * `displayName` (*type:* `String.t`, *default:* `nil`) - Output only. The title of the DeviceSession to be presented in the UI. + * `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED. + * `inactivityTimeout` (*type:* `String.t`, *default:* `nil`) - Output only. The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY. + * `name` (*type:* `String.t`, *default:* `nil`) - Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}" + * `state` (*type:* `String.t`, *default:* `nil`) - Output only. Current state of the DeviceSession. + * `stateHistories` (*type:* `list(GoogleApi.Testing.V1.Model.SessionStateEvent.t)`, *default:* `nil`) - Output only. The historical state transitions of the session_state message including the current session state. + * `ttl` (*type:* `String.t`, *default:* `nil`) - Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 30 minutes. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :activeStartTime => DateTime.t() | nil, + :androidDevice => GoogleApi.Testing.V1.Model.AndroidDevice.t() | nil, + :createTime => DateTime.t() | nil, + :displayName => String.t() | nil, + :expireTime => DateTime.t() | nil, + :inactivityTimeout => String.t() | nil, + :name => String.t() | nil, + :state => String.t() | nil, + :stateHistories => list(GoogleApi.Testing.V1.Model.SessionStateEvent.t()) | nil, + :ttl => String.t() | nil + } + + field(:activeStartTime, as: DateTime) + field(:androidDevice, as: GoogleApi.Testing.V1.Model.AndroidDevice) + field(:createTime, as: DateTime) + field(:displayName) + field(:expireTime, as: DateTime) + field(:inactivityTimeout) + field(:name) + field(:state) + field(:stateHistories, as: GoogleApi.Testing.V1.Model.SessionStateEvent, type: :list) + field(:ttl) +end + +defimpl Poison.Decoder, for: GoogleApi.Testing.V1.Model.DeviceSession do + def decode(value, options) do + GoogleApi.Testing.V1.Model.DeviceSession.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Testing.V1.Model.DeviceSession do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/testing/lib/google_api/testing/v1/model/direct_access_version_info.ex b/clients/testing/lib/google_api/testing/v1/model/direct_access_version_info.ex new file mode 100644 index 0000000000..eb5dcecab3 --- /dev/null +++ b/clients/testing/lib/google_api/testing/v1/model/direct_access_version_info.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Testing.V1.Model.DirectAccessVersionInfo do + @moduledoc """ + Denotes whether Direct Access is supported, and by which client versions. DirectAccessService is currently available as a preview to select developers. You can register today on behalf of you and your team at https://developer.android.com/studio/preview/android-device-streaming + + ## Attributes + + * `directAccessSupported` (*type:* `boolean()`, *default:* `nil`) - Whether direct access is supported at all. Clients are expected to filter down the device list to only android models and versions which support Direct Access when that is the user intent. + * `minimumAndroidStudioVersion` (*type:* `String.t`, *default:* `nil`) - Output only. Indicates client-device compatibility, where a device is known to work only with certain workarounds implemented in the Android Studio client. Expected format "major.minor.micro.patch", e.g. "5921.22.2211.8881706". + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :directAccessSupported => boolean() | nil, + :minimumAndroidStudioVersion => String.t() | nil + } + + field(:directAccessSupported) + field(:minimumAndroidStudioVersion) +end + +defimpl Poison.Decoder, for: GoogleApi.Testing.V1.Model.DirectAccessVersionInfo do + def decode(value, options) do + GoogleApi.Testing.V1.Model.DirectAccessVersionInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Testing.V1.Model.DirectAccessVersionInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/testing/lib/google_api/testing/v1/model/empty.ex b/clients/testing/lib/google_api/testing/v1/model/empty.ex new file mode 100644 index 0000000000..54a722ddf7 --- /dev/null +++ b/clients/testing/lib/google_api/testing/v1/model/empty.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Testing.V1.Model.Empty do + @moduledoc """ + A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.Testing.V1.Model.Empty do + def decode(value, options) do + GoogleApi.Testing.V1.Model.Empty.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Testing.V1.Model.Empty do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/testing/lib/google_api/testing/v1/model/get_apk_details_response.ex b/clients/testing/lib/google_api/testing/v1/model/get_apk_details_response.ex index 8cb81fc092..bdbe00e1d6 100644 --- a/clients/testing/lib/google_api/testing/v1/model/get_apk_details_response.ex +++ b/clients/testing/lib/google_api/testing/v1/model/get_apk_details_response.ex @@ -17,11 +17,11 @@ defmodule GoogleApi.Testing.V1.Model.GetApkDetailsResponse do @moduledoc """ - Response containing the details of the specified Android application APK. + Response containing the details of the specified Android application. ## Attributes - * `apkDetail` (*type:* `GoogleApi.Testing.V1.Model.ApkDetail.t`, *default:* `nil`) - Details of the Android APK. + * `apkDetail` (*type:* `GoogleApi.Testing.V1.Model.ApkDetail.t`, *default:* `nil`) - Details of the Android App. """ use GoogleApi.Gax.ModelBase diff --git a/clients/testing/lib/google_api/testing/v1/model/ios_model.ex b/clients/testing/lib/google_api/testing/v1/model/ios_model.ex index 8643765758..ab71813296 100644 --- a/clients/testing/lib/google_api/testing/v1/model/ios_model.ex +++ b/clients/testing/lib/google_api/testing/v1/model/ios_model.ex @@ -25,6 +25,7 @@ defmodule GoogleApi.Testing.V1.Model.IosModel do * `formFactor` (*type:* `String.t`, *default:* `nil`) - Whether this device is a phone, tablet, wearable, etc. * `id` (*type:* `String.t`, *default:* `nil`) - The unique opaque id for this model. Use this for invoking the TestExecutionService. * `name` (*type:* `String.t`, *default:* `nil`) - The human-readable name for this device model. Examples: "iPhone 4s", "iPad Mini 2". + * `perVersionInfo` (*type:* `list(GoogleApi.Testing.V1.Model.PerIosVersionInfo.t)`, *default:* `nil`) - Version-specific information of an iOS model. * `screenDensity` (*type:* `integer()`, *default:* `nil`) - Screen density in DPI. * `screenX` (*type:* `integer()`, *default:* `nil`) - Screen size in the horizontal (X) dimension measured in pixels. * `screenY` (*type:* `integer()`, *default:* `nil`) - Screen size in the vertical (Y) dimension measured in pixels. @@ -39,6 +40,7 @@ defmodule GoogleApi.Testing.V1.Model.IosModel do :formFactor => String.t() | nil, :id => String.t() | nil, :name => String.t() | nil, + :perVersionInfo => list(GoogleApi.Testing.V1.Model.PerIosVersionInfo.t()) | nil, :screenDensity => integer() | nil, :screenX => integer() | nil, :screenY => integer() | nil, @@ -50,6 +52,7 @@ defmodule GoogleApi.Testing.V1.Model.IosModel do field(:formFactor) field(:id) field(:name) + field(:perVersionInfo, as: GoogleApi.Testing.V1.Model.PerIosVersionInfo, type: :list) field(:screenDensity) field(:screenX) field(:screenY) diff --git a/clients/testing/lib/google_api/testing/v1/model/ios_robo_test.ex b/clients/testing/lib/google_api/testing/v1/model/ios_robo_test.ex new file mode 100644 index 0000000000..fa971b1695 --- /dev/null +++ b/clients/testing/lib/google_api/testing/v1/model/ios_robo_test.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Testing.V1.Model.IosRoboTest do + @moduledoc """ + A test that explores an iOS application on an iOS device. + + ## Attributes + + * `appBundleId` (*type:* `String.t`, *default:* `nil`) - The bundle ID for the app-under-test. This is determined by examining the application's "Info.plist" file. + * `appIpa` (*type:* `GoogleApi.Testing.V1.Model.FileReference.t`, *default:* `nil`) - Required. The ipa stored at this file should be used to run the test. + * `roboScript` (*type:* `GoogleApi.Testing.V1.Model.FileReference.t`, *default:* `nil`) - An optional Roboscript to customize the crawl. See https://firebase.google.com/docs/test-lab/android/robo-scripts-reference for more information about Roboscripts. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :appBundleId => String.t() | nil, + :appIpa => GoogleApi.Testing.V1.Model.FileReference.t() | nil, + :roboScript => GoogleApi.Testing.V1.Model.FileReference.t() | nil + } + + field(:appBundleId) + field(:appIpa, as: GoogleApi.Testing.V1.Model.FileReference) + field(:roboScript, as: GoogleApi.Testing.V1.Model.FileReference) +end + +defimpl Poison.Decoder, for: GoogleApi.Testing.V1.Model.IosRoboTest do + def decode(value, options) do + GoogleApi.Testing.V1.Model.IosRoboTest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Testing.V1.Model.IosRoboTest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/testing/lib/google_api/testing/v1/model/list_device_sessions_response.ex b/clients/testing/lib/google_api/testing/v1/model/list_device_sessions_response.ex new file mode 100644 index 0000000000..6944a017dc --- /dev/null +++ b/clients/testing/lib/google_api/testing/v1/model/list_device_sessions_response.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Testing.V1.Model.ListDeviceSessionsResponse do + @moduledoc """ + A list of device sessions. + + ## Attributes + + * `deviceSessions` (*type:* `list(GoogleApi.Testing.V1.Model.DeviceSession.t)`, *default:* `nil`) - The sessions matching the specified filter in the given cloud project. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceSessions => list(GoogleApi.Testing.V1.Model.DeviceSession.t()) | nil, + :nextPageToken => String.t() | nil + } + + field(:deviceSessions, as: GoogleApi.Testing.V1.Model.DeviceSession, type: :list) + field(:nextPageToken) +end + +defimpl Poison.Decoder, for: GoogleApi.Testing.V1.Model.ListDeviceSessionsResponse do + def decode(value, options) do + GoogleApi.Testing.V1.Model.ListDeviceSessionsResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Testing.V1.Model.ListDeviceSessionsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/testing/lib/google_api/testing/v1/model/manual_sharding.ex b/clients/testing/lib/google_api/testing/v1/model/manual_sharding.ex index 6527540799..790cdf9da9 100644 --- a/clients/testing/lib/google_api/testing/v1/model/manual_sharding.ex +++ b/clients/testing/lib/google_api/testing/v1/model/manual_sharding.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Testing.V1.Model.ManualSharding do ## Attributes - * `testTargetsForShard` (*type:* `list(GoogleApi.Testing.V1.Model.TestTargetsForShard.t)`, *default:* `nil`) - Required. Group of packages, classes, and/or test methods to be run for each manually-created shard. You must specify at least one shard if this field is present. When you select one or more physical devices, the number of repeated test_targets_for_shard must be <= 50. When you select one or more ARM virtual devices, it must be <= 50. When you select only x86 virtual devices, it must be <= 500. + * `testTargetsForShard` (*type:* `list(GoogleApi.Testing.V1.Model.TestTargetsForShard.t)`, *default:* `nil`) - Required. Group of packages, classes, and/or test methods to be run for each manually-created shard. You must specify at least one shard if this field is present. When you select one or more physical devices, the number of repeated test_targets_for_shard must be <= 50. When you select one or more ARM virtual devices, it must be <= 200. When you select only x86 virtual devices, it must be <= 500. """ use GoogleApi.Gax.ModelBase diff --git a/clients/testing/lib/google_api/testing/v1/model/matrix_error_detail.ex b/clients/testing/lib/google_api/testing/v1/model/matrix_error_detail.ex new file mode 100644 index 0000000000..1228488334 --- /dev/null +++ b/clients/testing/lib/google_api/testing/v1/model/matrix_error_detail.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Testing.V1.Model.MatrixErrorDetail do + @moduledoc """ + Describes a single error or issue with a matrix. + + ## Attributes + + * `message` (*type:* `String.t`, *default:* `nil`) - Output only. A human-readable message about how the error in the TestMatrix. Expands on the `reason` field with additional details and possible options to fix the issue. + * `reason` (*type:* `String.t`, *default:* `nil`) - Output only. The reason for the error. This is a constant value in UPPER_SNAKE_CASE that identifies the cause of the error. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :message => String.t() | nil, + :reason => String.t() | nil + } + + field(:message) + field(:reason) +end + +defimpl Poison.Decoder, for: GoogleApi.Testing.V1.Model.MatrixErrorDetail do + def decode(value, options) do + GoogleApi.Testing.V1.Model.MatrixErrorDetail.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Testing.V1.Model.MatrixErrorDetail do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/testing/lib/google_api/testing/v1/model/no_activity_intent.ex b/clients/testing/lib/google_api/testing/v1/model/no_activity_intent.ex new file mode 100644 index 0000000000..b867529f15 --- /dev/null +++ b/clients/testing/lib/google_api/testing/v1/model/no_activity_intent.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Testing.V1.Model.NoActivityIntent do + @moduledoc """ + Skips the starting activity + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.Testing.V1.Model.NoActivityIntent do + def decode(value, options) do + GoogleApi.Testing.V1.Model.NoActivityIntent.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Testing.V1.Model.NoActivityIntent do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/testing/lib/google_api/testing/v1/model/per_android_version_info.ex b/clients/testing/lib/google_api/testing/v1/model/per_android_version_info.ex new file mode 100644 index 0000000000..5e812b447e --- /dev/null +++ b/clients/testing/lib/google_api/testing/v1/model/per_android_version_info.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Testing.V1.Model.PerAndroidVersionInfo do + @moduledoc """ + A version-specific information of an Android model. + + ## Attributes + + * `deviceCapacity` (*type:* `String.t`, *default:* `nil`) - The number of online devices for an Android version. + * `directAccessVersionInfo` (*type:* `GoogleApi.Testing.V1.Model.DirectAccessVersionInfo.t`, *default:* `nil`) - Output only. Identifies supported clients for DirectAccess for this Android version. + * `interactiveDeviceAvailabilityEstimate` (*type:* `String.t`, *default:* `nil`) - Output only. The estimated wait time for a single interactive device session using Direct Access. + * `versionId` (*type:* `String.t`, *default:* `nil`) - An Android version. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceCapacity => String.t() | nil, + :directAccessVersionInfo => + GoogleApi.Testing.V1.Model.DirectAccessVersionInfo.t() | nil, + :interactiveDeviceAvailabilityEstimate => String.t() | nil, + :versionId => String.t() | nil + } + + field(:deviceCapacity) + field(:directAccessVersionInfo, as: GoogleApi.Testing.V1.Model.DirectAccessVersionInfo) + field(:interactiveDeviceAvailabilityEstimate) + field(:versionId) +end + +defimpl Poison.Decoder, for: GoogleApi.Testing.V1.Model.PerAndroidVersionInfo do + def decode(value, options) do + GoogleApi.Testing.V1.Model.PerAndroidVersionInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Testing.V1.Model.PerAndroidVersionInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/testing/lib/google_api/testing/v1/model/per_ios_version_info.ex b/clients/testing/lib/google_api/testing/v1/model/per_ios_version_info.ex new file mode 100644 index 0000000000..5ccff57740 --- /dev/null +++ b/clients/testing/lib/google_api/testing/v1/model/per_ios_version_info.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Testing.V1.Model.PerIosVersionInfo do + @moduledoc """ + A version-specific information of an iOS model. + + ## Attributes + + * `deviceCapacity` (*type:* `String.t`, *default:* `nil`) - The number of online devices for an iOS version. + * `versionId` (*type:* `String.t`, *default:* `nil`) - An iOS version. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :deviceCapacity => String.t() | nil, + :versionId => String.t() | nil + } + + field(:deviceCapacity) + field(:versionId) +end + +defimpl Poison.Decoder, for: GoogleApi.Testing.V1.Model.PerIosVersionInfo do + def decode(value, options) do + GoogleApi.Testing.V1.Model.PerIosVersionInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Testing.V1.Model.PerIosVersionInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/testing/lib/google_api/testing/v1/model/robo_starting_intent.ex b/clients/testing/lib/google_api/testing/v1/model/robo_starting_intent.ex index f7ea86ca3c..684af5ba46 100644 --- a/clients/testing/lib/google_api/testing/v1/model/robo_starting_intent.ex +++ b/clients/testing/lib/google_api/testing/v1/model/robo_starting_intent.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.Testing.V1.Model.RoboStartingIntent do ## Attributes * `launcherActivity` (*type:* `GoogleApi.Testing.V1.Model.LauncherActivityIntent.t`, *default:* `nil`) - An intent that starts the main launcher activity. + * `noActivity` (*type:* `GoogleApi.Testing.V1.Model.NoActivityIntent.t`, *default:* `nil`) - Skips the starting activity * `startActivity` (*type:* `GoogleApi.Testing.V1.Model.StartActivityIntent.t`, *default:* `nil`) - An intent that starts an activity with specific details. * `timeout` (*type:* `String.t`, *default:* `nil`) - Timeout in seconds for each intent. """ @@ -30,11 +31,13 @@ defmodule GoogleApi.Testing.V1.Model.RoboStartingIntent do @type t :: %__MODULE__{ :launcherActivity => GoogleApi.Testing.V1.Model.LauncherActivityIntent.t() | nil, + :noActivity => GoogleApi.Testing.V1.Model.NoActivityIntent.t() | nil, :startActivity => GoogleApi.Testing.V1.Model.StartActivityIntent.t() | nil, :timeout => String.t() | nil } field(:launcherActivity, as: GoogleApi.Testing.V1.Model.LauncherActivityIntent) + field(:noActivity, as: GoogleApi.Testing.V1.Model.NoActivityIntent) field(:startActivity, as: GoogleApi.Testing.V1.Model.StartActivityIntent) field(:timeout) end diff --git a/clients/testing/lib/google_api/testing/v1/model/service.ex b/clients/testing/lib/google_api/testing/v1/model/service.ex new file mode 100644 index 0000000000..0c327563f9 --- /dev/null +++ b/clients/testing/lib/google_api/testing/v1/model/service.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Testing.V1.Model.Service do + @moduledoc """ + The section of an tag. https://developer.android.com/guide/topics/manifest/service-element + + ## Attributes + + * `intentFilter` (*type:* `list(GoogleApi.Testing.V1.Model.IntentFilter.t)`, *default:* `nil`) - Intent filters in the service + * `name` (*type:* `String.t`, *default:* `nil`) - The android:name value + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :intentFilter => list(GoogleApi.Testing.V1.Model.IntentFilter.t()) | nil, + :name => String.t() | nil + } + + field(:intentFilter, as: GoogleApi.Testing.V1.Model.IntentFilter, type: :list) + field(:name) +end + +defimpl Poison.Decoder, for: GoogleApi.Testing.V1.Model.Service do + def decode(value, options) do + GoogleApi.Testing.V1.Model.Service.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Testing.V1.Model.Service do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/testing/lib/google_api/testing/v1/model/session_state_event.ex b/clients/testing/lib/google_api/testing/v1/model/session_state_event.ex new file mode 100644 index 0000000000..b19b0a6abc --- /dev/null +++ b/clients/testing/lib/google_api/testing/v1/model/session_state_event.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Testing.V1.Model.SessionStateEvent do + @moduledoc """ + A message encapsulating a series of Session states and the time that the DeviceSession first entered those states. + + ## Attributes + + * `eventTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time that the session_state first encountered that state. + * `sessionState` (*type:* `String.t`, *default:* `nil`) - Output only. The session_state tracked by this event + * `stateMessage` (*type:* `String.t`, *default:* `nil`) - Output only. A human-readable message to explain the state. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :eventTime => DateTime.t() | nil, + :sessionState => String.t() | nil, + :stateMessage => String.t() | nil + } + + field(:eventTime, as: DateTime) + field(:sessionState) + field(:stateMessage) +end + +defimpl Poison.Decoder, for: GoogleApi.Testing.V1.Model.SessionStateEvent do + def decode(value, options) do + GoogleApi.Testing.V1.Model.SessionStateEvent.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Testing.V1.Model.SessionStateEvent do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/testing/lib/google_api/testing/v1/model/shard.ex b/clients/testing/lib/google_api/testing/v1/model/shard.ex index 02a7b5f7ca..53e66e83e9 100644 --- a/clients/testing/lib/google_api/testing/v1/model/shard.ex +++ b/clients/testing/lib/google_api/testing/v1/model/shard.ex @@ -21,6 +21,7 @@ defmodule GoogleApi.Testing.V1.Model.Shard do ## Attributes + * `estimatedShardDuration` (*type:* `String.t`, *default:* `nil`) - Output only. The estimated shard duration based on previous test case timing records, if available. * `numShards` (*type:* `integer()`, *default:* `nil`) - Output only. The total number of shards. * `shardIndex` (*type:* `integer()`, *default:* `nil`) - Output only. The index of the shard among all the shards. * `testTargetsForShard` (*type:* `GoogleApi.Testing.V1.Model.TestTargetsForShard.t`, *default:* `nil`) - Output only. Test targets for each shard. Only set for manual sharding. @@ -29,11 +30,13 @@ defmodule GoogleApi.Testing.V1.Model.Shard do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :estimatedShardDuration => String.t() | nil, :numShards => integer() | nil, :shardIndex => integer() | nil, :testTargetsForShard => GoogleApi.Testing.V1.Model.TestTargetsForShard.t() | nil } + field(:estimatedShardDuration) field(:numShards) field(:shardIndex) field(:testTargetsForShard, as: GoogleApi.Testing.V1.Model.TestTargetsForShard) diff --git a/clients/testing/lib/google_api/testing/v1/model/sharding_option.ex b/clients/testing/lib/google_api/testing/v1/model/sharding_option.ex index da4d06d9a8..8401ba0d0d 100644 --- a/clients/testing/lib/google_api/testing/v1/model/sharding_option.ex +++ b/clients/testing/lib/google_api/testing/v1/model/sharding_option.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.Testing.V1.Model.ShardingOption do ## Attributes * `manualSharding` (*type:* `GoogleApi.Testing.V1.Model.ManualSharding.t`, *default:* `nil`) - Shards test cases into the specified groups of packages, classes, and/or methods. + * `smartSharding` (*type:* `GoogleApi.Testing.V1.Model.SmartSharding.t`, *default:* `nil`) - Shards test based on previous test case timing records. * `uniformSharding` (*type:* `GoogleApi.Testing.V1.Model.UniformSharding.t`, *default:* `nil`) - Uniformly shards test cases given a total number of shards. """ @@ -29,10 +30,12 @@ defmodule GoogleApi.Testing.V1.Model.ShardingOption do @type t :: %__MODULE__{ :manualSharding => GoogleApi.Testing.V1.Model.ManualSharding.t() | nil, + :smartSharding => GoogleApi.Testing.V1.Model.SmartSharding.t() | nil, :uniformSharding => GoogleApi.Testing.V1.Model.UniformSharding.t() | nil } field(:manualSharding, as: GoogleApi.Testing.V1.Model.ManualSharding) + field(:smartSharding, as: GoogleApi.Testing.V1.Model.SmartSharding) field(:uniformSharding, as: GoogleApi.Testing.V1.Model.UniformSharding) end diff --git a/clients/testing/lib/google_api/testing/v1/model/smart_sharding.ex b/clients/testing/lib/google_api/testing/v1/model/smart_sharding.ex new file mode 100644 index 0000000000..650955882a --- /dev/null +++ b/clients/testing/lib/google_api/testing/v1/model/smart_sharding.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# 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. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Testing.V1.Model.SmartSharding do + @moduledoc """ + Shards test based on previous test case timing records. + + ## Attributes + + * `targetedShardDuration` (*type:* `String.t`, *default:* `nil`) - The amount of time tests within a shard should take. Default: 300 seconds (5 minutes). The minimum allowed: 120 seconds (2 minutes). The shard count is dynamically set based on time, up to the maximum shard limit (described below). To guarantee at least one test case for each shard, the number of shards will not exceed the number of test cases. Shard duration will be exceeded if: - The maximum shard limit is reached and there is more calculated test time remaining to allocate into shards. - Any individual test is estimated to be longer than the targeted shard duration. Shard duration is not guaranteed because smart sharding uses test case history and default durations which may not be accurate. The rules for finding the test case timing records are: - If the service has processed a test case in the last 30 days, the record of the latest successful test case will be used. - For new test cases, the average duration of other known test cases will be used. - If there are no previous test case timing records available, the default test case duration is 15 seconds. Because the actual shard duration can exceed the targeted shard duration, we recommend that you set the targeted value at least 5 minutes less than the maximum allowed test timeout (45 minutes for physical devices and 60 minutes for virtual), or that you use the custom test timeout value that you set. This approach avoids cancelling the shard before all tests can finish. Note that there is a limit for maximum number of shards. When you select one or more physical devices, the number of shards must be <= 50. When you select one or more ARM virtual devices, it must be <= 200. When you select only x86 virtual devices, it must be <= 500. To guarantee at least one test case for per shard, the number of shards will not exceed the number of test cases. Each shard created counts toward daily test quota. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :targetedShardDuration => String.t() | nil + } + + field(:targetedShardDuration) +end + +defimpl Poison.Decoder, for: GoogleApi.Testing.V1.Model.SmartSharding do + def decode(value, options) do + GoogleApi.Testing.V1.Model.SmartSharding.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Testing.V1.Model.SmartSharding do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/testing/lib/google_api/testing/v1/model/test_matrix.ex b/clients/testing/lib/google_api/testing/v1/model/test_matrix.ex index 9f55547fa7..32d032d01f 100644 --- a/clients/testing/lib/google_api/testing/v1/model/test_matrix.ex +++ b/clients/testing/lib/google_api/testing/v1/model/test_matrix.ex @@ -23,6 +23,7 @@ defmodule GoogleApi.Testing.V1.Model.TestMatrix do * `clientInfo` (*type:* `GoogleApi.Testing.V1.Model.ClientInfo.t`, *default:* `nil`) - Information about the client which invoked the test. * `environmentMatrix` (*type:* `GoogleApi.Testing.V1.Model.EnvironmentMatrix.t`, *default:* `nil`) - Required. The devices the tests are being executed on. + * `extendedInvalidMatrixDetails` (*type:* `list(GoogleApi.Testing.V1.Model.MatrixErrorDetail.t)`, *default:* `nil`) - Output only. Details about why a matrix was deemed invalid. If multiple checks can be safely performed, they will be reported but no assumptions should be made about the length of this list. * `failFast` (*type:* `boolean()`, *default:* `nil`) - If true, only a single attempt at most will be made to run each execution/shard in the matrix. Flaky test attempts are not affected. Normally, 2 or more attempts are made if a potential infrastructure issue is detected. This feature is for latency sensitive workloads. The incidence of execution failures may be significantly greater for fail-fast matrices and support is more limited because of that expectation. * `flakyTestAttempts` (*type:* `integer()`, *default:* `nil`) - The number of times a TestExecution should be re-attempted if one or more of its test cases fail for any reason. The maximum number of reruns allowed is 10. Default is 0, which implies no reruns. * `invalidMatrixDetails` (*type:* `String.t`, *default:* `nil`) - Output only. Describes why the matrix is considered invalid. Only useful for matrices in the INVALID state. @@ -41,6 +42,8 @@ defmodule GoogleApi.Testing.V1.Model.TestMatrix do @type t :: %__MODULE__{ :clientInfo => GoogleApi.Testing.V1.Model.ClientInfo.t() | nil, :environmentMatrix => GoogleApi.Testing.V1.Model.EnvironmentMatrix.t() | nil, + :extendedInvalidMatrixDetails => + list(GoogleApi.Testing.V1.Model.MatrixErrorDetail.t()) | nil, :failFast => boolean() | nil, :flakyTestAttempts => integer() | nil, :invalidMatrixDetails => String.t() | nil, @@ -56,6 +59,12 @@ defmodule GoogleApi.Testing.V1.Model.TestMatrix do field(:clientInfo, as: GoogleApi.Testing.V1.Model.ClientInfo) field(:environmentMatrix, as: GoogleApi.Testing.V1.Model.EnvironmentMatrix) + + field(:extendedInvalidMatrixDetails, + as: GoogleApi.Testing.V1.Model.MatrixErrorDetail, + type: :list + ) + field(:failFast) field(:flakyTestAttempts) field(:invalidMatrixDetails) diff --git a/clients/testing/lib/google_api/testing/v1/model/test_setup.ex b/clients/testing/lib/google_api/testing/v1/model/test_setup.ex index 846fda1c26..ca83edd80c 100644 --- a/clients/testing/lib/google_api/testing/v1/model/test_setup.ex +++ b/clients/testing/lib/google_api/testing/v1/model/test_setup.ex @@ -22,13 +22,14 @@ defmodule GoogleApi.Testing.V1.Model.TestSetup do ## Attributes * `account` (*type:* `GoogleApi.Testing.V1.Model.Account.t`, *default:* `nil`) - The device will be logged in on this account for the duration of the test. - * `additionalApks` (*type:* `list(GoogleApi.Testing.V1.Model.Apk.t)`, *default:* `nil`) - APKs to install in addition to those being directly tested. Currently capped at 100. + * `additionalApks` (*type:* `list(GoogleApi.Testing.V1.Model.Apk.t)`, *default:* `nil`) - APKs to install in addition to those being directly tested. These will be installed after the app under test. Currently capped at 100. * `directoriesToPull` (*type:* `list(String.t)`, *default:* `nil`) - List of directories on the device to upload to GCS at the end of the test; they must be absolute paths under /sdcard, /storage or /data/local/tmp. Path names are restricted to characters a-z A-Z 0-9 _ - . + and / Note: The paths /sdcard and /data will be made available and treated as implicit path substitutions. E.g. if /sdcard on a particular device does not map to external storage, the system will replace it with the external storage path prefix for that device. * `dontAutograntPermissions` (*type:* `boolean()`, *default:* `nil`) - Whether to prevent all runtime permissions to be granted at app install * `environmentVariables` (*type:* `list(GoogleApi.Testing.V1.Model.EnvironmentVariable.t)`, *default:* `nil`) - Environment variables to set for the test (only applicable for instrumentation tests). * `filesToPush` (*type:* `list(GoogleApi.Testing.V1.Model.DeviceFile.t)`, *default:* `nil`) - List of files to push to the device before starting the test. + * `initialSetupApks` (*type:* `list(GoogleApi.Testing.V1.Model.Apk.t)`, *default:* `nil`) - Optional. Initial setup APKs to install before the app under test is installed. Currently capped at 100. * `networkProfile` (*type:* `String.t`, *default:* `nil`) - The network traffic profile used for running the test. Available network profiles can be queried by using the NETWORK_CONFIGURATION environment type when calling TestEnvironmentDiscoveryService.GetTestEnvironmentCatalog. - * `systrace` (*type:* `GoogleApi.Testing.V1.Model.SystraceSetup.t`, *default:* `nil`) - Deprecated: Systrace uses Python 2 which has been sunset 2020-01-01. Support of Systrace may stop at any time, at which point no Systrace file will be provided in the results. Systrace configuration for the run. If set a systrace will be taken, starting on test start and lasting for the configured duration. The systrace file thus obtained is put in the results bucket together with the other artifacts from the run. + * `systrace` (*type:* `GoogleApi.Testing.V1.Model.SystraceSetup.t`, *default:* `nil`) - Systrace configuration for the run. Deprecated: Systrace used Python 2 which was sunsetted on 2020-01-01. Systrace is no longer supported in the Cloud Testing API, and no Systrace file will be provided in the results. """ use GoogleApi.Gax.ModelBase @@ -40,6 +41,7 @@ defmodule GoogleApi.Testing.V1.Model.TestSetup do :dontAutograntPermissions => boolean() | nil, :environmentVariables => list(GoogleApi.Testing.V1.Model.EnvironmentVariable.t()) | nil, :filesToPush => list(GoogleApi.Testing.V1.Model.DeviceFile.t()) | nil, + :initialSetupApks => list(GoogleApi.Testing.V1.Model.Apk.t()) | nil, :networkProfile => String.t() | nil, :systrace => GoogleApi.Testing.V1.Model.SystraceSetup.t() | nil } @@ -50,6 +52,7 @@ defmodule GoogleApi.Testing.V1.Model.TestSetup do field(:dontAutograntPermissions) field(:environmentVariables, as: GoogleApi.Testing.V1.Model.EnvironmentVariable, type: :list) field(:filesToPush, as: GoogleApi.Testing.V1.Model.DeviceFile, type: :list) + field(:initialSetupApks, as: GoogleApi.Testing.V1.Model.Apk, type: :list) field(:networkProfile) field(:systrace, as: GoogleApi.Testing.V1.Model.SystraceSetup) end diff --git a/clients/testing/lib/google_api/testing/v1/model/test_specification.ex b/clients/testing/lib/google_api/testing/v1/model/test_specification.ex index 9bb4eaaae8..3483994c88 100644 --- a/clients/testing/lib/google_api/testing/v1/model/test_specification.ex +++ b/clients/testing/lib/google_api/testing/v1/model/test_specification.ex @@ -26,6 +26,7 @@ defmodule GoogleApi.Testing.V1.Model.TestSpecification do * `androidTestLoop` (*type:* `GoogleApi.Testing.V1.Model.AndroidTestLoop.t`, *default:* `nil`) - An Android Application with a Test Loop. * `disablePerformanceMetrics` (*type:* `boolean()`, *default:* `nil`) - Disables performance metrics recording. May reduce test latency. * `disableVideoRecording` (*type:* `boolean()`, *default:* `nil`) - Disables video recording. May reduce test latency. + * `iosRoboTest` (*type:* `GoogleApi.Testing.V1.Model.IosRoboTest.t`, *default:* `nil`) - An iOS Robo test. * `iosTestLoop` (*type:* `GoogleApi.Testing.V1.Model.IosTestLoop.t`, *default:* `nil`) - An iOS application with a test loop. * `iosTestSetup` (*type:* `GoogleApi.Testing.V1.Model.IosTestSetup.t`, *default:* `nil`) - Test setup requirements for iOS. * `iosXcTest` (*type:* `GoogleApi.Testing.V1.Model.IosXcTest.t`, *default:* `nil`) - An iOS XCTest, via an .xctestrun file. @@ -42,6 +43,7 @@ defmodule GoogleApi.Testing.V1.Model.TestSpecification do :androidTestLoop => GoogleApi.Testing.V1.Model.AndroidTestLoop.t() | nil, :disablePerformanceMetrics => boolean() | nil, :disableVideoRecording => boolean() | nil, + :iosRoboTest => GoogleApi.Testing.V1.Model.IosRoboTest.t() | nil, :iosTestLoop => GoogleApi.Testing.V1.Model.IosTestLoop.t() | nil, :iosTestSetup => GoogleApi.Testing.V1.Model.IosTestSetup.t() | nil, :iosXcTest => GoogleApi.Testing.V1.Model.IosXcTest.t() | nil, @@ -54,6 +56,7 @@ defmodule GoogleApi.Testing.V1.Model.TestSpecification do field(:androidTestLoop, as: GoogleApi.Testing.V1.Model.AndroidTestLoop) field(:disablePerformanceMetrics) field(:disableVideoRecording) + field(:iosRoboTest, as: GoogleApi.Testing.V1.Model.IosRoboTest) field(:iosTestLoop, as: GoogleApi.Testing.V1.Model.IosTestLoop) field(:iosTestSetup, as: GoogleApi.Testing.V1.Model.IosTestSetup) field(:iosXcTest, as: GoogleApi.Testing.V1.Model.IosXcTest) diff --git a/clients/testing/lib/google_api/testing/v1/model/uniform_sharding.ex b/clients/testing/lib/google_api/testing/v1/model/uniform_sharding.ex index b5f0ab6d09..3ad6480ef3 100644 --- a/clients/testing/lib/google_api/testing/v1/model/uniform_sharding.ex +++ b/clients/testing/lib/google_api/testing/v1/model/uniform_sharding.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Testing.V1.Model.UniformSharding do ## Attributes - * `numShards` (*type:* `integer()`, *default:* `nil`) - Required. The total number of shards to create. This must always be a positive number that is no greater than the total number of test cases. When you select one or more physical devices, the number of shards must be <= 50. When you select one or more ARM virtual devices, it must be <= 50. When you select only x86 virtual devices, it must be <= 500. + * `numShards` (*type:* `integer()`, *default:* `nil`) - Required. The total number of shards to create. This must always be a positive number that is no greater than the total number of test cases. When you select one or more physical devices, the number of shards must be <= 50. When you select one or more ARM virtual devices, it must be <= 200. When you select only x86 virtual devices, it must be <= 500. """ use GoogleApi.Gax.ModelBase