|
1 | 1 | require 'google/apis/firebaseappdistribution_v1' |
2 | 2 | require 'google/apis/firebaseappdistribution_v1alpha' |
3 | | - |
4 | | -# This is partially copied from google/apis/firebaseappdistribution_v1alpha v0.9.0 (2024-12-08) based discovery document revision 20241204. |
5 | | -# We can't depend on that version directly as long as fastlane locks google-cloud-env < 2.0.0 (to support Ruby 2.6). |
6 | | -# Newer versions of the API clients depend on google-apis-core >= 0.15.0 which depends on googleauth ~> 1.9 which depends on google-cloud-env ~> 2.1. |
7 | | -# See also https://github.com/fastlane/fastlane/pull/21685#pullrequestreview-2490037163 |
8 | | -module Google |
9 | | - module Apis |
10 | | - module FirebaseappdistributionV1alpha |
11 | | - class GoogleFirebaseAppdistroV1alphaReleaseTest |
12 | | - include Google::Apis::Core::Hashable |
13 | | - |
14 | | - attr_accessor :create_time |
15 | | - attr_accessor :device_executions |
16 | | - attr_accessor :display_name |
17 | | - attr_accessor :login_credential |
18 | | - attr_accessor :name |
19 | | - attr_accessor :test_case |
20 | | - attr_accessor :test_state |
21 | | - |
22 | | - def initialize(**args) |
23 | | - update!(**args) |
24 | | - end |
25 | | - |
26 | | - def update!(**args) |
27 | | - @create_time = args[:create_time] if args.key?(:create_time) |
28 | | - @device_executions = args[:device_executions] if args.key?(:device_executions) |
29 | | - @display_name = args[:display_name] if args.key?(:display_name) |
30 | | - @login_credential = args[:login_credential] if args.key?(:login_credential) |
31 | | - @name = args[:name] if args.key?(:name) |
32 | | - @test_case = args[:test_case] if args.key?(:test_case) |
33 | | - @test_state = args[:test_state] if args.key?(:test_state) |
34 | | - end |
35 | | - |
36 | | - class Representation < Google::Apis::Core::JsonRepresentation |
37 | | - property :create_time, as: 'createTime' |
38 | | - collection :device_executions, as: 'deviceExecutions', class: Google::Apis::FirebaseappdistributionV1alpha::GoogleFirebaseAppdistroV1alphaDeviceExecution, decorator: Google::Apis::FirebaseappdistributionV1alpha::GoogleFirebaseAppdistroV1alphaDeviceExecution::Representation |
39 | | - property :display_name, as: 'displayName' |
40 | | - property :login_credential, as: 'loginCredential', class: Google::Apis::FirebaseappdistributionV1alpha::GoogleFirebaseAppdistroV1alphaLoginCredential, decorator: Google::Apis::FirebaseappdistributionV1alpha::GoogleFirebaseAppdistroV1alphaLoginCredential::Representation |
41 | | - property :name, as: 'name' |
42 | | - property :test_case, as: 'testCase' |
43 | | - property :test_state, as: 'testState' |
44 | | - end |
45 | | - end |
46 | | - end |
47 | | - end |
48 | | -end |
0 commit comments