-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automated regeneration of Testing client
- Loading branch information
1 parent
9e554ee
commit e4ee43f
Showing
29 changed files
with
1,031 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
343 changes: 341 additions & 2 deletions
343
clients/testing/lib/google_api/testing/v1/api/projects.ex
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
clients/testing/lib/google_api/testing/v1/model/cancel_device_session_request.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
73 changes: 73 additions & 0 deletions
73
clients/testing/lib/google_api/testing/v1/model/device_session.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
49 changes: 49 additions & 0 deletions
49
clients/testing/lib/google_api/testing/v1/model/direct_access_version_info.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
clients/testing/lib/google_api/testing/v1/model/ios_robo_test.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Oops, something went wrong.