File: classes.rb

package info (click to toggle)
ruby-google-api-client 0.53.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 75,020 kB
  • sloc: ruby: 626,567; makefile: 4
file content (395 lines) | stat: -rw-r--r-- 13,408 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
# Copyright 2015 Google Inc.
#
# 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.

require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'

module Google
  module Apis
    module AppsmarketV2
      
      # 
      class CustomerLicense
        include Google::Apis::Core::Hashable
      
        # The ID of the application corresponding to this license query.
        # Corresponds to the JSON property `applicationId`
        # @return [String]
        attr_accessor :application_id
      
        # The domain name of the customer.
        # Corresponds to the JSON property `customerId`
        # @return [String]
        attr_accessor :customer_id
      
        # (Deprecated)
        # Corresponds to the JSON property `editions`
        # @return [Array<Google::Apis::AppsmarketV2::Editions>]
        attr_accessor :editions
      
        # The ID of the customer license.
        # Corresponds to the JSON property `id`
        # @return [String]
        attr_accessor :id
      
        # The type of API resource. This is always appsmarket#customerLicense.
        # Corresponds to the JSON property `kind`
        # @return [String]
        attr_accessor :kind
      
        # The customer's license status. One of: - `ACTIVE`: The customer has a valid
        # license. - `UNLICENSED`: There is no license: either this customer has never
        # installed your application, or else has deleted it.
        # Corresponds to the JSON property `state`
        # @return [String]
        attr_accessor :state
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @application_id = args[:application_id] if args.key?(:application_id)
          @customer_id = args[:customer_id] if args.key?(:customer_id)
          @editions = args[:editions] if args.key?(:editions)
          @id = args[:id] if args.key?(:id)
          @kind = args[:kind] if args.key?(:kind)
          @state = args[:state] if args.key?(:state)
        end
      end
      
      # 
      class Deletes
        include Google::Apis::Core::Hashable
      
        # (Deprecated)
        # Corresponds to the JSON property `editionId`
        # @return [String]
        attr_accessor :edition_id
      
        # 
        # Corresponds to the JSON property `kind`
        # @return [String]
        attr_accessor :kind
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @edition_id = args[:edition_id] if args.key?(:edition_id)
          @kind = args[:kind] if args.key?(:kind)
        end
      end
      
      # 
      class Editions
        include Google::Apis::Core::Hashable
      
        # (Deprecated)
        # Corresponds to the JSON property `assignedSeats`
        # @return [Fixnum]
        attr_accessor :assigned_seats
      
        # (Deprecated)
        # Corresponds to the JSON property `editionId`
        # @return [String]
        attr_accessor :edition_id
      
        # (Deprecated)
        # Corresponds to the JSON property `seatCount`
        # @return [Fixnum]
        attr_accessor :seat_count
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @assigned_seats = args[:assigned_seats] if args.key?(:assigned_seats)
          @edition_id = args[:edition_id] if args.key?(:edition_id)
          @seat_count = args[:seat_count] if args.key?(:seat_count)
        end
      end
      
      # 
      class Expiries
        include Google::Apis::Core::Hashable
      
        # (Deprecated)
        # Corresponds to the JSON property `editionId`
        # @return [String]
        attr_accessor :edition_id
      
        # 
        # Corresponds to the JSON property `kind`
        # @return [String]
        attr_accessor :kind
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @edition_id = args[:edition_id] if args.key?(:edition_id)
          @kind = args[:kind] if args.key?(:kind)
        end
      end
      
      # 
      class LicenseNotification
        include Google::Apis::Core::Hashable
      
        # The ID of the application according to this notification.
        # Corresponds to the JSON property `applicationId`
        # @return [String]
        attr_accessor :application_id
      
        # The domain name of the customer corresponding to this notification.
        # Corresponds to the JSON property `customerId`
        # @return [String]
        attr_accessor :customer_id
      
        # The list of deletion notifications.
        # Corresponds to the JSON property `deletes`
        # @return [Array<Google::Apis::AppsmarketV2::Deletes>]
        attr_accessor :deletes
      
        # The list of expiry notifications.
        # Corresponds to the JSON property `expiries`
        # @return [Array<Google::Apis::AppsmarketV2::Expiries>]
        attr_accessor :expiries
      
        # The ID of the license notification.
        # Corresponds to the JSON property `id`
        # @return [String]
        attr_accessor :id
      
        # The type of API resource. This is always appsmarket#licenseNotification.
        # Corresponds to the JSON property `kind`
        # @return [String]
        attr_accessor :kind
      
        # The list of provisioning notifications.
        # Corresponds to the JSON property `provisions`
        # @return [Array<Google::Apis::AppsmarketV2::Provisions>]
        attr_accessor :provisions
      
        # The list of reassignment notifications.
        # Corresponds to the JSON property `reassignments`
        # @return [Array<Google::Apis::AppsmarketV2::Reassignments>]
        attr_accessor :reassignments
      
        # The time the event occurred, measuring in milliseconds since the UNIX epoch.
        # Corresponds to the JSON property `timestamp`
        # @return [Fixnum]
        attr_accessor :timestamp
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @application_id = args[:application_id] if args.key?(:application_id)
          @customer_id = args[:customer_id] if args.key?(:customer_id)
          @deletes = args[:deletes] if args.key?(:deletes)
          @expiries = args[:expiries] if args.key?(:expiries)
          @id = args[:id] if args.key?(:id)
          @kind = args[:kind] if args.key?(:kind)
          @provisions = args[:provisions] if args.key?(:provisions)
          @reassignments = args[:reassignments] if args.key?(:reassignments)
          @timestamp = args[:timestamp] if args.key?(:timestamp)
        end
      end
      
      # 
      class LicenseNotificationList
        include Google::Apis::Core::Hashable
      
        # 
        # Corresponds to the JSON property `kind`
        # @return [String]
        attr_accessor :kind
      
        # The token used to continue querying for notifications after the final
        # notification in the current result set.
        # Corresponds to the JSON property `nextPageToken`
        # @return [String]
        attr_accessor :next_page_token
      
        # The list of notifications. One or more of: - `provisions`: A new license of
        # the application has been provisioned. - `expiries`: A license of the
        # application has expired. - `deletions`: An application has been deleted from a
        # domain. - `reassignments`: An administrator has assigned or revoked a seat
        # license for the application on the provided domain.
        # Corresponds to the JSON property `notifications`
        # @return [Array<Google::Apis::AppsmarketV2::LicenseNotification>]
        attr_accessor :notifications
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @kind = args[:kind] if args.key?(:kind)
          @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
          @notifications = args[:notifications] if args.key?(:notifications)
        end
      end
      
      # 
      class Provisions
        include Google::Apis::Core::Hashable
      
        # (Deprecated)
        # Corresponds to the JSON property `editionId`
        # @return [String]
        attr_accessor :edition_id
      
        # 
        # Corresponds to the JSON property `kind`
        # @return [String]
        attr_accessor :kind
      
        # The number of seats that were provisioned.
        # Corresponds to the JSON property `seatCount`
        # @return [Fixnum]
        attr_accessor :seat_count
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @edition_id = args[:edition_id] if args.key?(:edition_id)
          @kind = args[:kind] if args.key?(:kind)
          @seat_count = args[:seat_count] if args.key?(:seat_count)
        end
      end
      
      # 
      class Reassignments
        include Google::Apis::Core::Hashable
      
        # (Deprecated)
        # Corresponds to the JSON property `editionId`
        # @return [String]
        attr_accessor :edition_id
      
        # 
        # Corresponds to the JSON property `kind`
        # @return [String]
        attr_accessor :kind
      
        # 
        # Corresponds to the JSON property `type`
        # @return [String]
        attr_accessor :type
      
        # The email address of the reassigned user.
        # Corresponds to the JSON property `userId`
        # @return [String]
        attr_accessor :user_id
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @edition_id = args[:edition_id] if args.key?(:edition_id)
          @kind = args[:kind] if args.key?(:kind)
          @type = args[:type] if args.key?(:type)
          @user_id = args[:user_id] if args.key?(:user_id)
        end
      end
      
      # 
      class UserLicense
        include Google::Apis::Core::Hashable
      
        # The ID of the application corresponding to the license query.
        # Corresponds to the JSON property `applicationId`
        # @return [String]
        attr_accessor :application_id
      
        # The domain name of the user.
        # Corresponds to the JSON property `customerId`
        # @return [String]
        attr_accessor :customer_id
      
        # (Deprecated)
        # Corresponds to the JSON property `editionId`
        # @return [String]
        attr_accessor :edition_id
      
        # The domain administrator has activated the application for this domain.
        # Corresponds to the JSON property `enabled`
        # @return [Boolean]
        attr_accessor :enabled
        alias_method :enabled?, :enabled
      
        # The ID of user license.
        # Corresponds to the JSON property `id`
        # @return [String]
        attr_accessor :id
      
        # The type of API resource. This is always appsmarket#userLicense.
        # Corresponds to the JSON property `kind`
        # @return [String]
        attr_accessor :kind
      
        # The user's licensing status. One of: - `ACTIVE`: The user has a valid license
        # and should be permitted to use the application. - `UNLICENSED`: The
        # administrator of this user's domain never assigned a seat for the application
        # to this user. - `EXPIRED`: The administrator assigned a seat to this user, but
        # the license is expired.
        # Corresponds to the JSON property `state`
        # @return [String]
        attr_accessor :state
      
        # The email address of the user.
        # Corresponds to the JSON property `userId`
        # @return [String]
        attr_accessor :user_id
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @application_id = args[:application_id] if args.key?(:application_id)
          @customer_id = args[:customer_id] if args.key?(:customer_id)
          @edition_id = args[:edition_id] if args.key?(:edition_id)
          @enabled = args[:enabled] if args.key?(:enabled)
          @id = args[:id] if args.key?(:id)
          @kind = args[:kind] if args.key?(:kind)
          @state = args[:state] if args.key?(:state)
          @user_id = args[:user_id] if args.key?(:user_id)
        end
      end
    end
  end
end