google-apis-testing_v1 0.36.0 → 0.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 828a980d3a1da81e8a308770a31534cc3acfd5ed72e4ed7c15b5e36a685376eb
4
- data.tar.gz: 5ba3071104bb4673b5d1b5331dc79888ba96a29a343de2934d52986910776d18
3
+ metadata.gz: 9bb7e00fb4cb9841da5dca143057e55ab9956511ab6dfbf9546d1031a844c052
4
+ data.tar.gz: bc952c0595d3504b1c0e7f717d6f3830f7f204636eed0e40634d374ff53f3476
5
5
  SHA512:
6
- metadata.gz: fe87b829cd823c7b0e7a26bd42f8623ac3190b40755f208aa197551bdb5f4f488adcc2aba6f8a6883ec6b829b0d22b4eb043dba126c59879870f792356e4b035
7
- data.tar.gz: 2eee4241caa9ecacf1388d78d3dbe132e533a2be4c58e221d94da06b6251cefa13c11eebd90ee94e039f7402670d5a26abe4f3f9a1db39b62805e29a4c59d045
6
+ metadata.gz: 75eb0283b935614032ac9f61b5050ccd6ce6ad811f88d60d033b7dfb43d8f7c8a92bd5ad27c2e7d375239b9715880faba024025536b5d684563b1a8ebec70246
7
+ data.tar.gz: 57d8fbecf45ba1c34e70cf6ef12f07477766a045593aedb9dd2802edacb60a01ad918ff58b1cc12f55389456aea3eb1e62cbdbe37204b1a8b9a5f8f000324da8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-testing_v1
2
2
 
3
+ ### v0.38.0 (2023-09-10)
4
+
5
+ * Regenerated from discovery document revision 20230901
6
+
7
+ ### v0.37.0 (2023-08-27)
8
+
9
+ * Regenerated from discovery document revision 20230822
10
+
3
11
  ### v0.36.0 (2023-06-04)
4
12
 
5
13
  * Regenerated from discovery document revision 20230526
@@ -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
@@ -1391,6 +1538,38 @@ module Google
1391
1538
  end
1392
1539
  end
1393
1540
 
1541
+ # A test that explores an iOS application on an iOS device.
1542
+ class IosRoboTest
1543
+ include Google::Apis::Core::Hashable
1544
+
1545
+ # The bundle ID for the app-under-test. This is determined by examining the
1546
+ # application's "Info.plist" file.
1547
+ # Corresponds to the JSON property `appBundleId`
1548
+ # @return [String]
1549
+ attr_accessor :app_bundle_id
1550
+
1551
+ # A reference to a file, used for user inputs.
1552
+ # Corresponds to the JSON property `appIpa`
1553
+ # @return [Google::Apis::TestingV1::FileReference]
1554
+ attr_accessor :app_ipa
1555
+
1556
+ # A reference to a file, used for user inputs.
1557
+ # Corresponds to the JSON property `roboScript`
1558
+ # @return [Google::Apis::TestingV1::FileReference]
1559
+ attr_accessor :robo_script
1560
+
1561
+ def initialize(**args)
1562
+ update!(**args)
1563
+ end
1564
+
1565
+ # Update properties of this object
1566
+ def update!(**args)
1567
+ @app_bundle_id = args[:app_bundle_id] if args.key?(:app_bundle_id)
1568
+ @app_ipa = args[:app_ipa] if args.key?(:app_ipa)
1569
+ @robo_script = args[:robo_script] if args.key?(:robo_script)
1570
+ end
1571
+ end
1572
+
1394
1573
  # iOS configuration that can be selected at the time a test is run.
1395
1574
  class IosRuntimeConfiguration
1396
1575
  include Google::Apis::Core::Hashable
@@ -1602,6 +1781,32 @@ module Google
1602
1781
  end
1603
1782
  end
1604
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
+
1605
1810
  # A location/region designation for language.
1606
1811
  class Locale
1607
1812
  include Google::Apis::Core::Hashable
@@ -1822,6 +2027,14 @@ module Google
1822
2027
  # @return [String]
1823
2028
  attr_accessor :device_capacity
1824
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
+
1825
2038
  # An Android version.
1826
2039
  # Corresponds to the JSON property `versionId`
1827
2040
  # @return [String]
@@ -1834,6 +2047,7 @@ module Google
1834
2047
  # Update properties of this object
1835
2048
  def update!(**args)
1836
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)
1837
2051
  @version_id = args[:version_id] if args.key?(:version_id)
1838
2052
  end
1839
2053
  end
@@ -2065,6 +2279,38 @@ module Google
2065
2279
  end
2066
2280
  end
2067
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
+
2068
2314
  # Output only. Details about the shard.
2069
2315
  class Shard
2070
2316
  include Google::Apis::Core::Hashable
@@ -2494,8 +2740,8 @@ module Google
2494
2740
  # @return [Google::Apis::TestingV1::Account]
2495
2741
  attr_accessor :account
2496
2742
 
2497
- # APKs to install in addition to those being directly tested. Currently capped
2498
- # at 100.
2743
+ # APKs to install in addition to those being directly tested. These will be
2744
+ # installed after the app under test. Currently capped at 100.
2499
2745
  # Corresponds to the JSON property `additionalApks`
2500
2746
  # @return [Array<Google::Apis::TestingV1::Apk>]
2501
2747
  attr_accessor :additional_apks
@@ -2597,6 +2843,11 @@ module Google
2597
2843
  attr_accessor :disable_video_recording
2598
2844
  alias_method :disable_video_recording?, :disable_video_recording
2599
2845
 
2846
+ # A test that explores an iOS application on an iOS device.
2847
+ # Corresponds to the JSON property `iosRoboTest`
2848
+ # @return [Google::Apis::TestingV1::IosRoboTest]
2849
+ attr_accessor :ios_robo_test
2850
+
2600
2851
  # A test of an iOS application that implements one or more game loop scenarios.
2601
2852
  # This test type accepts an archived application (.ipa file) and a list of
2602
2853
  # integer scenarios that will be executed on the app sequentially.
@@ -2641,6 +2892,7 @@ module Google
2641
2892
  @android_test_loop = args[:android_test_loop] if args.key?(:android_test_loop)
2642
2893
  @disable_performance_metrics = args[:disable_performance_metrics] if args.key?(:disable_performance_metrics)
2643
2894
  @disable_video_recording = args[:disable_video_recording] if args.key?(:disable_video_recording)
2895
+ @ios_robo_test = args[:ios_robo_test] if args.key?(:ios_robo_test)
2644
2896
  @ios_test_loop = args[:ios_test_loop] if args.key?(:ios_test_loop)
2645
2897
  @ios_test_setup = args[:ios_test_setup] if args.key?(:ios_test_setup)
2646
2898
  @ios_xc_test = args[:ios_xc_test] if args.key?(:ios_xc_test)
@@ -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.36.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 = "20230526"
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
 
@@ -238,6 +262,12 @@ module Google
238
262
  include Google::Apis::Core::JsonObjectSupport
239
263
  end
240
264
 
265
+ class IosRoboTest
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
241
271
  class IosRuntimeConfiguration
242
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
243
273
 
@@ -274,6 +304,12 @@ module Google
274
304
  include Google::Apis::Core::JsonObjectSupport
275
305
  end
276
306
 
307
+ class ListDeviceSessionsResponse
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
277
313
  class Locale
278
314
  class Representation < Google::Apis::Core::JsonRepresentation; end
279
315
 
@@ -370,6 +406,12 @@ module Google
370
406
  include Google::Apis::Core::JsonObjectSupport
371
407
  end
372
408
 
409
+ class SessionStateEvent
410
+ class Representation < Google::Apis::Core::JsonRepresentation; end
411
+
412
+ include Google::Apis::Core::JsonObjectSupport
413
+ end
414
+
373
415
  class Shard
374
416
  class Representation < Google::Apis::Core::JsonRepresentation; end
375
417
 
@@ -680,6 +722,12 @@ module Google
680
722
  end
681
723
  end
682
724
 
725
+ class CancelDeviceSessionRequest
726
+ # @private
727
+ class Representation < Google::Apis::Core::JsonRepresentation
728
+ end
729
+ end
730
+
683
731
  class CancelTestMatrixResponse
684
732
  # @private
685
733
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -741,6 +789,34 @@ module Google
741
789
  end
742
790
  end
743
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
+
744
820
  class Distribution
745
821
  # @private
746
822
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -749,6 +825,12 @@ module Google
749
825
  end
750
826
  end
751
827
 
828
+ class Empty
829
+ # @private
830
+ class Representation < Google::Apis::Core::JsonRepresentation
831
+ end
832
+ end
833
+
752
834
  class Environment
753
835
  # @private
754
836
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -875,6 +957,17 @@ module Google
875
957
  end
876
958
  end
877
959
 
960
+ class IosRoboTest
961
+ # @private
962
+ class Representation < Google::Apis::Core::JsonRepresentation
963
+ property :app_bundle_id, as: 'appBundleId'
964
+ property :app_ipa, as: 'appIpa', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation
965
+
966
+ property :robo_script, as: 'roboScript', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation
967
+
968
+ end
969
+ end
970
+
878
971
  class IosRuntimeConfiguration
879
972
  # @private
880
973
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -938,6 +1031,15 @@ module Google
938
1031
  end
939
1032
  end
940
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
+
941
1043
  class Locale
942
1044
  # @private
943
1045
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1011,6 +1113,8 @@ module Google
1011
1113
  # @private
1012
1114
  class Representation < Google::Apis::Core::JsonRepresentation
1013
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
+
1014
1118
  property :version_id, as: 'versionId'
1015
1119
  end
1016
1120
  end
@@ -1084,6 +1188,15 @@ module Google
1084
1188
  end
1085
1189
  end
1086
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
+
1087
1200
  class Shard
1088
1201
  # @private
1089
1202
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1229,6 +1342,8 @@ module Google
1229
1342
 
1230
1343
  property :disable_performance_metrics, as: 'disablePerformanceMetrics'
1231
1344
  property :disable_video_recording, as: 'disableVideoRecording'
1345
+ property :ios_robo_test, as: 'iosRoboTest', class: Google::Apis::TestingV1::IosRoboTest, decorator: Google::Apis::TestingV1::IosRoboTest::Representation
1346
+
1232
1347
  property :ios_test_loop, as: 'iosTestLoop', class: Google::Apis::TestingV1::IosTestLoop, decorator: Google::Apis::TestingV1::IosTestLoop::Representation
1233
1348
 
1234
1349
  property :ios_test_setup, as: 'iosTestSetup', class: Google::Apis::TestingV1::IosTestSetup, decorator: Google::Apis::TestingV1::IosTestSetup::Representation
@@ -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.36.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-06-04 00:00:00.000000000 Z
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.36.0
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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Testing API V1