google-apis-testing_v1 0.37.0 → 0.38.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bb7e00fb4cb9841da5dca143057e55ab9956511ab6dfbf9546d1031a844c052
|
4
|
+
data.tar.gz: bc952c0595d3504b1c0e7f717d6f3830f7f204636eed0e40634d374ff53f3476
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75eb0283b935614032ac9f61b5050ccd6ce6ad811f88d60d033b7dfb43d8f7c8a92bd5ad27c2e7d375239b9715880faba024025536b5d684563b1a8ebec70246
|
7
|
+
data.tar.gz: 57d8fbecf45ba1c34e70cf6ef12f07477766a045593aedb9dd2802edacb60a01ad918ff58b1cc12f55389456aea3eb1e62cbdbe37204b1a8b9a5f8f000324da8
|
data/CHANGELOG.md
CHANGED
@@ -767,6 +767,19 @@ module Google
|
|
767
767
|
end
|
768
768
|
end
|
769
769
|
|
770
|
+
# The request object for cancelling a Device Session.
|
771
|
+
class CancelDeviceSessionRequest
|
772
|
+
include Google::Apis::Core::Hashable
|
773
|
+
|
774
|
+
def initialize(**args)
|
775
|
+
update!(**args)
|
776
|
+
end
|
777
|
+
|
778
|
+
# Update properties of this object
|
779
|
+
def update!(**args)
|
780
|
+
end
|
781
|
+
end
|
782
|
+
|
770
783
|
# Response containing the current state of the specified test matrix.
|
771
784
|
class CancelTestMatrixResponse
|
772
785
|
include Google::Apis::Core::Hashable
|
@@ -961,6 +974,124 @@ module Google
|
|
961
974
|
end
|
962
975
|
end
|
963
976
|
|
977
|
+
# Protobuf message describing the device message, used from several RPCs.
|
978
|
+
class DeviceSession
|
979
|
+
include Google::Apis::Core::Hashable
|
980
|
+
|
981
|
+
# Output only. The timestamp that the session first became ACTIVE.
|
982
|
+
# Corresponds to the JSON property `activeStartTime`
|
983
|
+
# @return [String]
|
984
|
+
attr_accessor :active_start_time
|
985
|
+
|
986
|
+
# A single Android device.
|
987
|
+
# Corresponds to the JSON property `androidDevice`
|
988
|
+
# @return [Google::Apis::TestingV1::AndroidDevice]
|
989
|
+
attr_accessor :android_device
|
990
|
+
|
991
|
+
# A list of Android device configurations in which the test is to be executed.
|
992
|
+
# Corresponds to the JSON property `androidDeviceList`
|
993
|
+
# @return [Google::Apis::TestingV1::AndroidDeviceList]
|
994
|
+
attr_accessor :android_device_list
|
995
|
+
|
996
|
+
# Output only. The time that the Session was created.
|
997
|
+
# Corresponds to the JSON property `createTime`
|
998
|
+
# @return [String]
|
999
|
+
attr_accessor :create_time
|
1000
|
+
|
1001
|
+
# Output only. The title of the DeviceSession to be presented in the UI.
|
1002
|
+
# Corresponds to the JSON property `displayName`
|
1003
|
+
# @return [String]
|
1004
|
+
attr_accessor :display_name
|
1005
|
+
|
1006
|
+
# Optional. If the device is still in use at this time, any connections will be
|
1007
|
+
# ended and the SessionState will transition from ACTIVE to FINISHED.
|
1008
|
+
# Corresponds to the JSON property `expireTime`
|
1009
|
+
# @return [String]
|
1010
|
+
attr_accessor :expire_time
|
1011
|
+
|
1012
|
+
# Output only. The interval of time that this device must be interacted with
|
1013
|
+
# before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
|
1014
|
+
# Corresponds to the JSON property `inactivityTimeout`
|
1015
|
+
# @return [String]
|
1016
|
+
attr_accessor :inactivity_timeout
|
1017
|
+
|
1018
|
+
# Optional. Name of the DeviceSession, e.g. "projects/`project_id`/
|
1019
|
+
# deviceSessions/`session_id`"
|
1020
|
+
# Corresponds to the JSON property `name`
|
1021
|
+
# @return [String]
|
1022
|
+
attr_accessor :name
|
1023
|
+
|
1024
|
+
# Output only. Current state of the DeviceSession.
|
1025
|
+
# Corresponds to the JSON property `state`
|
1026
|
+
# @return [String]
|
1027
|
+
attr_accessor :state
|
1028
|
+
|
1029
|
+
# Output only. The historical state transitions of the session_state message
|
1030
|
+
# including the current session state.
|
1031
|
+
# Corresponds to the JSON property `stateHistories`
|
1032
|
+
# @return [Array<Google::Apis::TestingV1::SessionStateEvent>]
|
1033
|
+
attr_accessor :state_histories
|
1034
|
+
|
1035
|
+
# Optional. The amount of time that a device will be initially allocated for.
|
1036
|
+
# This can eventually be extended with the ExtendDeviceSession RPC. Default: 3
|
1037
|
+
# hours.
|
1038
|
+
# Corresponds to the JSON property `ttl`
|
1039
|
+
# @return [String]
|
1040
|
+
attr_accessor :ttl
|
1041
|
+
|
1042
|
+
def initialize(**args)
|
1043
|
+
update!(**args)
|
1044
|
+
end
|
1045
|
+
|
1046
|
+
# Update properties of this object
|
1047
|
+
def update!(**args)
|
1048
|
+
@active_start_time = args[:active_start_time] if args.key?(:active_start_time)
|
1049
|
+
@android_device = args[:android_device] if args.key?(:android_device)
|
1050
|
+
@android_device_list = args[:android_device_list] if args.key?(:android_device_list)
|
1051
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1052
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1053
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
1054
|
+
@inactivity_timeout = args[:inactivity_timeout] if args.key?(:inactivity_timeout)
|
1055
|
+
@name = args[:name] if args.key?(:name)
|
1056
|
+
@state = args[:state] if args.key?(:state)
|
1057
|
+
@state_histories = args[:state_histories] if args.key?(:state_histories)
|
1058
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
1059
|
+
end
|
1060
|
+
end
|
1061
|
+
|
1062
|
+
# Denotes whether Direct Access is supported, and by which client versions.
|
1063
|
+
# DirectAccessService is currently available as a preview to select developers.
|
1064
|
+
# You can register today on behalf of you and your team at https://developer.
|
1065
|
+
# android.com/studio/preview/android-device-streaming
|
1066
|
+
class DirectAccessVersionInfo
|
1067
|
+
include Google::Apis::Core::Hashable
|
1068
|
+
|
1069
|
+
# Whether direct access is supported at all. Clients are expected to filter down
|
1070
|
+
# the device list to only android models and versions which support Direct
|
1071
|
+
# Access when that is the user intent.
|
1072
|
+
# Corresponds to the JSON property `directAccessSupported`
|
1073
|
+
# @return [Boolean]
|
1074
|
+
attr_accessor :direct_access_supported
|
1075
|
+
alias_method :direct_access_supported?, :direct_access_supported
|
1076
|
+
|
1077
|
+
# Output only. Indicates client-device compatibility, where a device is known to
|
1078
|
+
# work only with certain workarounds implemented in the Android Studio client.
|
1079
|
+
# Expected format "major.minor.micro.patch", e.g. "5921.22.2211.8881706".
|
1080
|
+
# Corresponds to the JSON property `minimumAndroidStudioVersion`
|
1081
|
+
# @return [String]
|
1082
|
+
attr_accessor :minimum_android_studio_version
|
1083
|
+
|
1084
|
+
def initialize(**args)
|
1085
|
+
update!(**args)
|
1086
|
+
end
|
1087
|
+
|
1088
|
+
# Update properties of this object
|
1089
|
+
def update!(**args)
|
1090
|
+
@direct_access_supported = args[:direct_access_supported] if args.key?(:direct_access_supported)
|
1091
|
+
@minimum_android_studio_version = args[:minimum_android_studio_version] if args.key?(:minimum_android_studio_version)
|
1092
|
+
end
|
1093
|
+
end
|
1094
|
+
|
964
1095
|
# Data about the relative number of devices running a given configuration of the
|
965
1096
|
# Android platform.
|
966
1097
|
class Distribution
|
@@ -988,6 +1119,22 @@ module Google
|
|
988
1119
|
end
|
989
1120
|
end
|
990
1121
|
|
1122
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
1123
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
1124
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
1125
|
+
# protobuf.Empty) returns (google.protobuf.Empty); `
|
1126
|
+
class Empty
|
1127
|
+
include Google::Apis::Core::Hashable
|
1128
|
+
|
1129
|
+
def initialize(**args)
|
1130
|
+
update!(**args)
|
1131
|
+
end
|
1132
|
+
|
1133
|
+
# Update properties of this object
|
1134
|
+
def update!(**args)
|
1135
|
+
end
|
1136
|
+
end
|
1137
|
+
|
991
1138
|
# The environment in which the test is run.
|
992
1139
|
class Environment
|
993
1140
|
include Google::Apis::Core::Hashable
|
@@ -1634,6 +1781,32 @@ module Google
|
|
1634
1781
|
end
|
1635
1782
|
end
|
1636
1783
|
|
1784
|
+
# A list of device sessions.
|
1785
|
+
class ListDeviceSessionsResponse
|
1786
|
+
include Google::Apis::Core::Hashable
|
1787
|
+
|
1788
|
+
# The sessions matching the specified filter in the given cloud project.
|
1789
|
+
# Corresponds to the JSON property `deviceSessions`
|
1790
|
+
# @return [Array<Google::Apis::TestingV1::DeviceSession>]
|
1791
|
+
attr_accessor :device_sessions
|
1792
|
+
|
1793
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
1794
|
+
# field is omitted, there are no subsequent pages.
|
1795
|
+
# Corresponds to the JSON property `nextPageToken`
|
1796
|
+
# @return [String]
|
1797
|
+
attr_accessor :next_page_token
|
1798
|
+
|
1799
|
+
def initialize(**args)
|
1800
|
+
update!(**args)
|
1801
|
+
end
|
1802
|
+
|
1803
|
+
# Update properties of this object
|
1804
|
+
def update!(**args)
|
1805
|
+
@device_sessions = args[:device_sessions] if args.key?(:device_sessions)
|
1806
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1807
|
+
end
|
1808
|
+
end
|
1809
|
+
|
1637
1810
|
# A location/region designation for language.
|
1638
1811
|
class Locale
|
1639
1812
|
include Google::Apis::Core::Hashable
|
@@ -1854,6 +2027,14 @@ module Google
|
|
1854
2027
|
# @return [String]
|
1855
2028
|
attr_accessor :device_capacity
|
1856
2029
|
|
2030
|
+
# Denotes whether Direct Access is supported, and by which client versions.
|
2031
|
+
# DirectAccessService is currently available as a preview to select developers.
|
2032
|
+
# You can register today on behalf of you and your team at https://developer.
|
2033
|
+
# android.com/studio/preview/android-device-streaming
|
2034
|
+
# Corresponds to the JSON property `directAccessVersionInfo`
|
2035
|
+
# @return [Google::Apis::TestingV1::DirectAccessVersionInfo]
|
2036
|
+
attr_accessor :direct_access_version_info
|
2037
|
+
|
1857
2038
|
# An Android version.
|
1858
2039
|
# Corresponds to the JSON property `versionId`
|
1859
2040
|
# @return [String]
|
@@ -1866,6 +2047,7 @@ module Google
|
|
1866
2047
|
# Update properties of this object
|
1867
2048
|
def update!(**args)
|
1868
2049
|
@device_capacity = args[:device_capacity] if args.key?(:device_capacity)
|
2050
|
+
@direct_access_version_info = args[:direct_access_version_info] if args.key?(:direct_access_version_info)
|
1869
2051
|
@version_id = args[:version_id] if args.key?(:version_id)
|
1870
2052
|
end
|
1871
2053
|
end
|
@@ -2097,6 +2279,38 @@ module Google
|
|
2097
2279
|
end
|
2098
2280
|
end
|
2099
2281
|
|
2282
|
+
# A message encapsulating a series of Session states and the time that the
|
2283
|
+
# DeviceSession first entered those states.
|
2284
|
+
class SessionStateEvent
|
2285
|
+
include Google::Apis::Core::Hashable
|
2286
|
+
|
2287
|
+
# Output only. The time that the session_state first encountered that state.
|
2288
|
+
# Corresponds to the JSON property `eventTime`
|
2289
|
+
# @return [String]
|
2290
|
+
attr_accessor :event_time
|
2291
|
+
|
2292
|
+
# Output only. The session_state tracked by this event
|
2293
|
+
# Corresponds to the JSON property `sessionState`
|
2294
|
+
# @return [String]
|
2295
|
+
attr_accessor :session_state
|
2296
|
+
|
2297
|
+
# Output only. A human-readable message to explain the state.
|
2298
|
+
# Corresponds to the JSON property `stateMessage`
|
2299
|
+
# @return [String]
|
2300
|
+
attr_accessor :state_message
|
2301
|
+
|
2302
|
+
def initialize(**args)
|
2303
|
+
update!(**args)
|
2304
|
+
end
|
2305
|
+
|
2306
|
+
# Update properties of this object
|
2307
|
+
def update!(**args)
|
2308
|
+
@event_time = args[:event_time] if args.key?(:event_time)
|
2309
|
+
@session_state = args[:session_state] if args.key?(:session_state)
|
2310
|
+
@state_message = args[:state_message] if args.key?(:state_message)
|
2311
|
+
end
|
2312
|
+
end
|
2313
|
+
|
2100
2314
|
# Output only. Details about the shard.
|
2101
2315
|
class Shard
|
2102
2316
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module TestingV1
|
18
18
|
# Version of the google-apis-testing_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.38.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230901"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -112,6 +112,12 @@ module Google
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
113
113
|
end
|
114
114
|
|
115
|
+
class CancelDeviceSessionRequest
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
115
121
|
class CancelTestMatrixResponse
|
116
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
123
|
|
@@ -154,12 +160,30 @@ module Google
|
|
154
160
|
include Google::Apis::Core::JsonObjectSupport
|
155
161
|
end
|
156
162
|
|
163
|
+
class DeviceSession
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
169
|
+
class DirectAccessVersionInfo
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
157
175
|
class Distribution
|
158
176
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
177
|
|
160
178
|
include Google::Apis::Core::JsonObjectSupport
|
161
179
|
end
|
162
180
|
|
181
|
+
class Empty
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
163
187
|
class Environment
|
164
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
189
|
|
@@ -280,6 +304,12 @@ module Google
|
|
280
304
|
include Google::Apis::Core::JsonObjectSupport
|
281
305
|
end
|
282
306
|
|
307
|
+
class ListDeviceSessionsResponse
|
308
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
309
|
+
|
310
|
+
include Google::Apis::Core::JsonObjectSupport
|
311
|
+
end
|
312
|
+
|
283
313
|
class Locale
|
284
314
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
315
|
|
@@ -376,6 +406,12 @@ module Google
|
|
376
406
|
include Google::Apis::Core::JsonObjectSupport
|
377
407
|
end
|
378
408
|
|
409
|
+
class SessionStateEvent
|
410
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
411
|
+
|
412
|
+
include Google::Apis::Core::JsonObjectSupport
|
413
|
+
end
|
414
|
+
|
379
415
|
class Shard
|
380
416
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
381
417
|
|
@@ -686,6 +722,12 @@ module Google
|
|
686
722
|
end
|
687
723
|
end
|
688
724
|
|
725
|
+
class CancelDeviceSessionRequest
|
726
|
+
# @private
|
727
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
728
|
+
end
|
729
|
+
end
|
730
|
+
|
689
731
|
class CancelTestMatrixResponse
|
690
732
|
# @private
|
691
733
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -747,6 +789,34 @@ module Google
|
|
747
789
|
end
|
748
790
|
end
|
749
791
|
|
792
|
+
class DeviceSession
|
793
|
+
# @private
|
794
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
795
|
+
property :active_start_time, as: 'activeStartTime'
|
796
|
+
property :android_device, as: 'androidDevice', class: Google::Apis::TestingV1::AndroidDevice, decorator: Google::Apis::TestingV1::AndroidDevice::Representation
|
797
|
+
|
798
|
+
property :android_device_list, as: 'androidDeviceList', class: Google::Apis::TestingV1::AndroidDeviceList, decorator: Google::Apis::TestingV1::AndroidDeviceList::Representation
|
799
|
+
|
800
|
+
property :create_time, as: 'createTime'
|
801
|
+
property :display_name, as: 'displayName'
|
802
|
+
property :expire_time, as: 'expireTime'
|
803
|
+
property :inactivity_timeout, as: 'inactivityTimeout'
|
804
|
+
property :name, as: 'name'
|
805
|
+
property :state, as: 'state'
|
806
|
+
collection :state_histories, as: 'stateHistories', class: Google::Apis::TestingV1::SessionStateEvent, decorator: Google::Apis::TestingV1::SessionStateEvent::Representation
|
807
|
+
|
808
|
+
property :ttl, as: 'ttl'
|
809
|
+
end
|
810
|
+
end
|
811
|
+
|
812
|
+
class DirectAccessVersionInfo
|
813
|
+
# @private
|
814
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
815
|
+
property :direct_access_supported, as: 'directAccessSupported'
|
816
|
+
property :minimum_android_studio_version, as: 'minimumAndroidStudioVersion'
|
817
|
+
end
|
818
|
+
end
|
819
|
+
|
750
820
|
class Distribution
|
751
821
|
# @private
|
752
822
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -755,6 +825,12 @@ module Google
|
|
755
825
|
end
|
756
826
|
end
|
757
827
|
|
828
|
+
class Empty
|
829
|
+
# @private
|
830
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
831
|
+
end
|
832
|
+
end
|
833
|
+
|
758
834
|
class Environment
|
759
835
|
# @private
|
760
836
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -955,6 +1031,15 @@ module Google
|
|
955
1031
|
end
|
956
1032
|
end
|
957
1033
|
|
1034
|
+
class ListDeviceSessionsResponse
|
1035
|
+
# @private
|
1036
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1037
|
+
collection :device_sessions, as: 'deviceSessions', class: Google::Apis::TestingV1::DeviceSession, decorator: Google::Apis::TestingV1::DeviceSession::Representation
|
1038
|
+
|
1039
|
+
property :next_page_token, as: 'nextPageToken'
|
1040
|
+
end
|
1041
|
+
end
|
1042
|
+
|
958
1043
|
class Locale
|
959
1044
|
# @private
|
960
1045
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1028,6 +1113,8 @@ module Google
|
|
1028
1113
|
# @private
|
1029
1114
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1030
1115
|
property :device_capacity, as: 'deviceCapacity'
|
1116
|
+
property :direct_access_version_info, as: 'directAccessVersionInfo', class: Google::Apis::TestingV1::DirectAccessVersionInfo, decorator: Google::Apis::TestingV1::DirectAccessVersionInfo::Representation
|
1117
|
+
|
1031
1118
|
property :version_id, as: 'versionId'
|
1032
1119
|
end
|
1033
1120
|
end
|
@@ -1101,6 +1188,15 @@ module Google
|
|
1101
1188
|
end
|
1102
1189
|
end
|
1103
1190
|
|
1191
|
+
class SessionStateEvent
|
1192
|
+
# @private
|
1193
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1194
|
+
property :event_time, as: 'eventTime'
|
1195
|
+
property :session_state, as: 'sessionState'
|
1196
|
+
property :state_message, as: 'stateMessage'
|
1197
|
+
end
|
1198
|
+
end
|
1199
|
+
|
1104
1200
|
class Shard
|
1105
1201
|
# @private
|
1106
1202
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -80,6 +80,190 @@ module Google
|
|
80
80
|
execute_or_queue_command(command, &block)
|
81
81
|
end
|
82
82
|
|
83
|
+
# POST /v1/projects/`project_id`/deviceSessions/`device_session_id`:cancel
|
84
|
+
# Changes the DeviceSession to state FINISHED and terminates all connections.
|
85
|
+
# Canceled sessions are not deleted and can be retrieved or listed by the user
|
86
|
+
# until they expire based on the 28 day deletion policy.
|
87
|
+
# @param [String] name
|
88
|
+
# Required. Name of the DeviceSession, e.g. "projects/`project_id`/
|
89
|
+
# deviceSessions/`session_id`"
|
90
|
+
# @param [Google::Apis::TestingV1::CancelDeviceSessionRequest] cancel_device_session_request_object
|
91
|
+
# @param [String] fields
|
92
|
+
# Selector specifying which fields to include in a partial response.
|
93
|
+
# @param [String] quota_user
|
94
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
95
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
96
|
+
# @param [Google::Apis::RequestOptions] options
|
97
|
+
# Request-specific options
|
98
|
+
#
|
99
|
+
# @yield [result, err] Result & error if block supplied
|
100
|
+
# @yieldparam result [Google::Apis::TestingV1::Empty] parsed result object
|
101
|
+
# @yieldparam err [StandardError] error object if request failed
|
102
|
+
#
|
103
|
+
# @return [Google::Apis::TestingV1::Empty]
|
104
|
+
#
|
105
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
106
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
107
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
108
|
+
def cancel_device_session(name, cancel_device_session_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
109
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
110
|
+
command.request_representation = Google::Apis::TestingV1::CancelDeviceSessionRequest::Representation
|
111
|
+
command.request_object = cancel_device_session_request_object
|
112
|
+
command.response_representation = Google::Apis::TestingV1::Empty::Representation
|
113
|
+
command.response_class = Google::Apis::TestingV1::Empty
|
114
|
+
command.params['name'] = name unless name.nil?
|
115
|
+
command.query['fields'] = fields unless fields.nil?
|
116
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
117
|
+
execute_or_queue_command(command, &block)
|
118
|
+
end
|
119
|
+
|
120
|
+
# POST /v1/projects/`project_id`/deviceSessions
|
121
|
+
# @param [String] parent
|
122
|
+
# Required. The Compute Engine project under which this device will be allocated.
|
123
|
+
# "projects/`project_id`"
|
124
|
+
# @param [Google::Apis::TestingV1::DeviceSession] device_session_object
|
125
|
+
# @param [String] fields
|
126
|
+
# Selector specifying which fields to include in a partial response.
|
127
|
+
# @param [String] quota_user
|
128
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
129
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
130
|
+
# @param [Google::Apis::RequestOptions] options
|
131
|
+
# Request-specific options
|
132
|
+
#
|
133
|
+
# @yield [result, err] Result & error if block supplied
|
134
|
+
# @yieldparam result [Google::Apis::TestingV1::DeviceSession] parsed result object
|
135
|
+
# @yieldparam err [StandardError] error object if request failed
|
136
|
+
#
|
137
|
+
# @return [Google::Apis::TestingV1::DeviceSession]
|
138
|
+
#
|
139
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
140
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
141
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
142
|
+
def create_project_device_session(parent, device_session_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
143
|
+
command = make_simple_command(:post, 'v1/{+parent}/deviceSessions', options)
|
144
|
+
command.request_representation = Google::Apis::TestingV1::DeviceSession::Representation
|
145
|
+
command.request_object = device_session_object
|
146
|
+
command.response_representation = Google::Apis::TestingV1::DeviceSession::Representation
|
147
|
+
command.response_class = Google::Apis::TestingV1::DeviceSession
|
148
|
+
command.params['parent'] = parent unless parent.nil?
|
149
|
+
command.query['fields'] = fields unless fields.nil?
|
150
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
151
|
+
execute_or_queue_command(command, &block)
|
152
|
+
end
|
153
|
+
|
154
|
+
# GET /v1/projects/`project_id`/deviceSessions/`device_session_id` Return a
|
155
|
+
# DeviceSession, which documents the allocation status and whether the device is
|
156
|
+
# allocated. Clients making requests from this API must poll GetDeviceSession.
|
157
|
+
# @param [String] name
|
158
|
+
# Required. Name of the DeviceSession, e.g. "projects/`project_id`/
|
159
|
+
# deviceSessions/`session_id`"
|
160
|
+
# @param [String] fields
|
161
|
+
# Selector specifying which fields to include in a partial response.
|
162
|
+
# @param [String] quota_user
|
163
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
164
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
165
|
+
# @param [Google::Apis::RequestOptions] options
|
166
|
+
# Request-specific options
|
167
|
+
#
|
168
|
+
# @yield [result, err] Result & error if block supplied
|
169
|
+
# @yieldparam result [Google::Apis::TestingV1::DeviceSession] parsed result object
|
170
|
+
# @yieldparam err [StandardError] error object if request failed
|
171
|
+
#
|
172
|
+
# @return [Google::Apis::TestingV1::DeviceSession]
|
173
|
+
#
|
174
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
175
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
176
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
177
|
+
def get_project_device_session(name, fields: nil, quota_user: nil, options: nil, &block)
|
178
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
179
|
+
command.response_representation = Google::Apis::TestingV1::DeviceSession::Representation
|
180
|
+
command.response_class = Google::Apis::TestingV1::DeviceSession
|
181
|
+
command.params['name'] = name unless name.nil?
|
182
|
+
command.query['fields'] = fields unless fields.nil?
|
183
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
184
|
+
execute_or_queue_command(command, &block)
|
185
|
+
end
|
186
|
+
|
187
|
+
# GET /v1/projects/`project_id`/deviceSessions Lists device Sessions owned by
|
188
|
+
# the project user.
|
189
|
+
# @param [String] parent
|
190
|
+
# Required. The name of the parent to request, e.g. "projects/`project_id`"
|
191
|
+
# @param [String] filter
|
192
|
+
# Optional. If specified, responses will be filtered by the given filter.
|
193
|
+
# Allowed fields are: session_state.
|
194
|
+
# @param [Fixnum] page_size
|
195
|
+
# Optional. The maximum number of DeviceSessions to return.
|
196
|
+
# @param [String] page_token
|
197
|
+
# Optional. A continuation token for paging.
|
198
|
+
# @param [String] fields
|
199
|
+
# Selector specifying which fields to include in a partial response.
|
200
|
+
# @param [String] quota_user
|
201
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
202
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
203
|
+
# @param [Google::Apis::RequestOptions] options
|
204
|
+
# Request-specific options
|
205
|
+
#
|
206
|
+
# @yield [result, err] Result & error if block supplied
|
207
|
+
# @yieldparam result [Google::Apis::TestingV1::ListDeviceSessionsResponse] parsed result object
|
208
|
+
# @yieldparam err [StandardError] error object if request failed
|
209
|
+
#
|
210
|
+
# @return [Google::Apis::TestingV1::ListDeviceSessionsResponse]
|
211
|
+
#
|
212
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
213
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
214
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
215
|
+
def list_project_device_sessions(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
216
|
+
command = make_simple_command(:get, 'v1/{+parent}/deviceSessions', options)
|
217
|
+
command.response_representation = Google::Apis::TestingV1::ListDeviceSessionsResponse::Representation
|
218
|
+
command.response_class = Google::Apis::TestingV1::ListDeviceSessionsResponse
|
219
|
+
command.params['parent'] = parent unless parent.nil?
|
220
|
+
command.query['filter'] = filter unless filter.nil?
|
221
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
222
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
223
|
+
command.query['fields'] = fields unless fields.nil?
|
224
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
225
|
+
execute_or_queue_command(command, &block)
|
226
|
+
end
|
227
|
+
|
228
|
+
# PATCH /v1/projects/`projectId`/deviceSessions/deviceSessionId`:
|
229
|
+
# updateDeviceSession Updates the current device session to the fields described
|
230
|
+
# by the update_mask.
|
231
|
+
# @param [String] name
|
232
|
+
# Optional. Name of the DeviceSession, e.g. "projects/`project_id`/
|
233
|
+
# deviceSessions/`session_id`"
|
234
|
+
# @param [Google::Apis::TestingV1::DeviceSession] device_session_object
|
235
|
+
# @param [String] update_mask
|
236
|
+
# Required. The list of fields to update.
|
237
|
+
# @param [String] fields
|
238
|
+
# Selector specifying which fields to include in a partial response.
|
239
|
+
# @param [String] quota_user
|
240
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
241
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
242
|
+
# @param [Google::Apis::RequestOptions] options
|
243
|
+
# Request-specific options
|
244
|
+
#
|
245
|
+
# @yield [result, err] Result & error if block supplied
|
246
|
+
# @yieldparam result [Google::Apis::TestingV1::DeviceSession] parsed result object
|
247
|
+
# @yieldparam err [StandardError] error object if request failed
|
248
|
+
#
|
249
|
+
# @return [Google::Apis::TestingV1::DeviceSession]
|
250
|
+
#
|
251
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
252
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
253
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
254
|
+
def patch_project_device_session(name, device_session_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
255
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
256
|
+
command.request_representation = Google::Apis::TestingV1::DeviceSession::Representation
|
257
|
+
command.request_object = device_session_object
|
258
|
+
command.response_representation = Google::Apis::TestingV1::DeviceSession::Representation
|
259
|
+
command.response_class = Google::Apis::TestingV1::DeviceSession
|
260
|
+
command.params['name'] = name unless name.nil?
|
261
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
262
|
+
command.query['fields'] = fields unless fields.nil?
|
263
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
264
|
+
execute_or_queue_command(command, &block)
|
265
|
+
end
|
266
|
+
|
83
267
|
# Cancels unfinished test executions in a test matrix. This call returns
|
84
268
|
# immediately and cancellation proceeds asynchronously. If the matrix is already
|
85
269
|
# final, this operation will have no effect. May return any of the following
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-testing_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.38.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-testing_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-testing_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-testing_v1/v0.38.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-testing_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|