google-apis-appsmarket_v2 0.1.0 → 0.2.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/OVERVIEW.md +10 -10
- data/lib/google/apis/appsmarket_v2/classes.rb +0 -221
- data/lib/google/apis/appsmarket_v2/gem_version.rb +3 -3
- data/lib/google/apis/appsmarket_v2/representations.rb +0 -100
- data/lib/google/apis/appsmarket_v2/service.rb +10 -45
- data/lib/google/apis/appsmarket_v2.rb +4 -4
- metadata +23 -20
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e3b50af33c3c6dd62eda3d537d95590ddfa8fdf58982b220cf1a2a459a80a70
|
|
4
|
+
data.tar.gz: 647724a4a08bb0258f2210e63fcd86eb023dadfaa0013a282e35f9e6b83e4122
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd5ffa90bb441a491082feb4bc44b5b79bb0c03800aad5f8b2ae6e416daa0f4d0c428906fc03d1aff698c2f8734c07820304869be9dde0128e2139f6312ba4f0
|
|
7
|
+
data.tar.gz: c7d81b6cf44d445b381163a78ee1e29455e25408c88d6966d6f594e44dfedd5255ce39b3f205f872e5429b602d86a620cea497421ad4b725e2c268d253233546
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Release history for google-apis-appsmarket_v2
|
|
2
2
|
|
|
3
|
+
### v0.2.0 (2026-01-11)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20251217
|
|
6
|
+
* Regenerated using generator version 0.18.0
|
|
7
|
+
|
|
3
8
|
### v0.1.0 (2021-01-07)
|
|
4
9
|
|
|
5
10
|
* Regenerated from discovery document revision 20210104
|
data/OVERVIEW.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Simple REST client for version V2 of the
|
|
1
|
+
# Simple REST client for version V2 of the Google Workspace Marketplace API
|
|
2
2
|
|
|
3
|
-
This is a simple client library for version V2 of the
|
|
3
|
+
This is a simple client library for version V2 of the Google Workspace Marketplace API. It provides:
|
|
4
4
|
|
|
5
5
|
* A client object that connects to the HTTP/JSON REST endpoint for the service.
|
|
6
6
|
* Ruby objects for data structures related to the service.
|
|
@@ -48,10 +48,10 @@ Once the gem is installed, you can load the client code and instantiate a client
|
|
|
48
48
|
require "google/apis/appsmarket_v2"
|
|
49
49
|
|
|
50
50
|
# Create a client object
|
|
51
|
-
client = Google::Apis::AppsmarketV2::
|
|
51
|
+
client = Google::Apis::AppsmarketV2::GSuiteMarketplaceAPIService.new
|
|
52
52
|
|
|
53
53
|
# Authenticate calls
|
|
54
|
-
client.
|
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
|
@@ -60,12 +60,12 @@ See the class reference docs for information on the methods you can call from a
|
|
|
60
60
|
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
|
62
62
|
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
|
65
65
|
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Appsmarket service in particular.)
|
|
67
67
|
|
|
68
|
-
For reference information on specific calls in the
|
|
68
|
+
For reference information on specific calls in the Google Workspace Marketplace API, see the {Google::Apis::AppsmarketV2::GSuiteMarketplaceAPIService class reference docs}.
|
|
69
69
|
|
|
70
70
|
## Which client should I use?
|
|
71
71
|
|
|
@@ -79,13 +79,13 @@ Gem names for modern clients are often of the form `google-cloud-<service_name>`
|
|
|
79
79
|
|
|
80
80
|
**For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
|
|
81
81
|
|
|
82
|
-
The [product documentation](https://developers.google.com/
|
|
82
|
+
The [product documentation](https://developers.google.com/workspace/marketplace) may provide guidance regarding the preferred client library to use.
|
|
83
83
|
|
|
84
84
|
## Supported Ruby versions
|
|
85
85
|
|
|
86
|
-
This library is supported on Ruby
|
|
86
|
+
This library is supported on Ruby 3.1+.
|
|
87
87
|
|
|
88
|
-
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life.
|
|
88
|
+
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
|
89
89
|
|
|
90
90
|
## License
|
|
91
91
|
|
|
@@ -73,31 +73,6 @@ module Google
|
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
-
#
|
|
77
|
-
class Deletes
|
|
78
|
-
include Google::Apis::Core::Hashable
|
|
79
|
-
|
|
80
|
-
# (Deprecated)
|
|
81
|
-
# Corresponds to the JSON property `editionId`
|
|
82
|
-
# @return [String]
|
|
83
|
-
attr_accessor :edition_id
|
|
84
|
-
|
|
85
|
-
#
|
|
86
|
-
# Corresponds to the JSON property `kind`
|
|
87
|
-
# @return [String]
|
|
88
|
-
attr_accessor :kind
|
|
89
|
-
|
|
90
|
-
def initialize(**args)
|
|
91
|
-
update!(**args)
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
# Update properties of this object
|
|
95
|
-
def update!(**args)
|
|
96
|
-
@edition_id = args[:edition_id] if args.key?(:edition_id)
|
|
97
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
98
|
-
end
|
|
99
|
-
end
|
|
100
|
-
|
|
101
76
|
#
|
|
102
77
|
class Editions
|
|
103
78
|
include Google::Apis::Core::Hashable
|
|
@@ -129,202 +104,6 @@ module Google
|
|
|
129
104
|
end
|
|
130
105
|
end
|
|
131
106
|
|
|
132
|
-
#
|
|
133
|
-
class Expiries
|
|
134
|
-
include Google::Apis::Core::Hashable
|
|
135
|
-
|
|
136
|
-
# (Deprecated)
|
|
137
|
-
# Corresponds to the JSON property `editionId`
|
|
138
|
-
# @return [String]
|
|
139
|
-
attr_accessor :edition_id
|
|
140
|
-
|
|
141
|
-
#
|
|
142
|
-
# Corresponds to the JSON property `kind`
|
|
143
|
-
# @return [String]
|
|
144
|
-
attr_accessor :kind
|
|
145
|
-
|
|
146
|
-
def initialize(**args)
|
|
147
|
-
update!(**args)
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
# Update properties of this object
|
|
151
|
-
def update!(**args)
|
|
152
|
-
@edition_id = args[:edition_id] if args.key?(:edition_id)
|
|
153
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
154
|
-
end
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
#
|
|
158
|
-
class LicenseNotification
|
|
159
|
-
include Google::Apis::Core::Hashable
|
|
160
|
-
|
|
161
|
-
# The ID of the application according to this notification.
|
|
162
|
-
# Corresponds to the JSON property `applicationId`
|
|
163
|
-
# @return [String]
|
|
164
|
-
attr_accessor :application_id
|
|
165
|
-
|
|
166
|
-
# The domain name of the customer corresponding to this notification.
|
|
167
|
-
# Corresponds to the JSON property `customerId`
|
|
168
|
-
# @return [String]
|
|
169
|
-
attr_accessor :customer_id
|
|
170
|
-
|
|
171
|
-
# The list of deletion notifications.
|
|
172
|
-
# Corresponds to the JSON property `deletes`
|
|
173
|
-
# @return [Array<Google::Apis::AppsmarketV2::Deletes>]
|
|
174
|
-
attr_accessor :deletes
|
|
175
|
-
|
|
176
|
-
# The list of expiry notifications.
|
|
177
|
-
# Corresponds to the JSON property `expiries`
|
|
178
|
-
# @return [Array<Google::Apis::AppsmarketV2::Expiries>]
|
|
179
|
-
attr_accessor :expiries
|
|
180
|
-
|
|
181
|
-
# The ID of the license notification.
|
|
182
|
-
# Corresponds to the JSON property `id`
|
|
183
|
-
# @return [String]
|
|
184
|
-
attr_accessor :id
|
|
185
|
-
|
|
186
|
-
# The type of API resource. This is always appsmarket#licenseNotification.
|
|
187
|
-
# Corresponds to the JSON property `kind`
|
|
188
|
-
# @return [String]
|
|
189
|
-
attr_accessor :kind
|
|
190
|
-
|
|
191
|
-
# The list of provisioning notifications.
|
|
192
|
-
# Corresponds to the JSON property `provisions`
|
|
193
|
-
# @return [Array<Google::Apis::AppsmarketV2::Provisions>]
|
|
194
|
-
attr_accessor :provisions
|
|
195
|
-
|
|
196
|
-
# The list of reassignment notifications.
|
|
197
|
-
# Corresponds to the JSON property `reassignments`
|
|
198
|
-
# @return [Array<Google::Apis::AppsmarketV2::Reassignments>]
|
|
199
|
-
attr_accessor :reassignments
|
|
200
|
-
|
|
201
|
-
# The time the event occurred, measuring in milliseconds since the UNIX epoch.
|
|
202
|
-
# Corresponds to the JSON property `timestamp`
|
|
203
|
-
# @return [Fixnum]
|
|
204
|
-
attr_accessor :timestamp
|
|
205
|
-
|
|
206
|
-
def initialize(**args)
|
|
207
|
-
update!(**args)
|
|
208
|
-
end
|
|
209
|
-
|
|
210
|
-
# Update properties of this object
|
|
211
|
-
def update!(**args)
|
|
212
|
-
@application_id = args[:application_id] if args.key?(:application_id)
|
|
213
|
-
@customer_id = args[:customer_id] if args.key?(:customer_id)
|
|
214
|
-
@deletes = args[:deletes] if args.key?(:deletes)
|
|
215
|
-
@expiries = args[:expiries] if args.key?(:expiries)
|
|
216
|
-
@id = args[:id] if args.key?(:id)
|
|
217
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
218
|
-
@provisions = args[:provisions] if args.key?(:provisions)
|
|
219
|
-
@reassignments = args[:reassignments] if args.key?(:reassignments)
|
|
220
|
-
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
|
221
|
-
end
|
|
222
|
-
end
|
|
223
|
-
|
|
224
|
-
#
|
|
225
|
-
class LicenseNotificationList
|
|
226
|
-
include Google::Apis::Core::Hashable
|
|
227
|
-
|
|
228
|
-
#
|
|
229
|
-
# Corresponds to the JSON property `kind`
|
|
230
|
-
# @return [String]
|
|
231
|
-
attr_accessor :kind
|
|
232
|
-
|
|
233
|
-
# The token used to continue querying for notifications after the final
|
|
234
|
-
# notification in the current result set.
|
|
235
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
236
|
-
# @return [String]
|
|
237
|
-
attr_accessor :next_page_token
|
|
238
|
-
|
|
239
|
-
# The list of notifications. One or more of: - `provisions`: A new license of
|
|
240
|
-
# the application has been provisioned. - `expiries`: A license of the
|
|
241
|
-
# application has expired. - `deletions`: An application has been deleted from a
|
|
242
|
-
# domain. - `reassignments`: An administrator has assigned or revoked a seat
|
|
243
|
-
# license for the application on the provided domain.
|
|
244
|
-
# Corresponds to the JSON property `notifications`
|
|
245
|
-
# @return [Array<Google::Apis::AppsmarketV2::LicenseNotification>]
|
|
246
|
-
attr_accessor :notifications
|
|
247
|
-
|
|
248
|
-
def initialize(**args)
|
|
249
|
-
update!(**args)
|
|
250
|
-
end
|
|
251
|
-
|
|
252
|
-
# Update properties of this object
|
|
253
|
-
def update!(**args)
|
|
254
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
255
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
256
|
-
@notifications = args[:notifications] if args.key?(:notifications)
|
|
257
|
-
end
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
#
|
|
261
|
-
class Provisions
|
|
262
|
-
include Google::Apis::Core::Hashable
|
|
263
|
-
|
|
264
|
-
# (Deprecated)
|
|
265
|
-
# Corresponds to the JSON property `editionId`
|
|
266
|
-
# @return [String]
|
|
267
|
-
attr_accessor :edition_id
|
|
268
|
-
|
|
269
|
-
#
|
|
270
|
-
# Corresponds to the JSON property `kind`
|
|
271
|
-
# @return [String]
|
|
272
|
-
attr_accessor :kind
|
|
273
|
-
|
|
274
|
-
# The number of seats that were provisioned.
|
|
275
|
-
# Corresponds to the JSON property `seatCount`
|
|
276
|
-
# @return [Fixnum]
|
|
277
|
-
attr_accessor :seat_count
|
|
278
|
-
|
|
279
|
-
def initialize(**args)
|
|
280
|
-
update!(**args)
|
|
281
|
-
end
|
|
282
|
-
|
|
283
|
-
# Update properties of this object
|
|
284
|
-
def update!(**args)
|
|
285
|
-
@edition_id = args[:edition_id] if args.key?(:edition_id)
|
|
286
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
287
|
-
@seat_count = args[:seat_count] if args.key?(:seat_count)
|
|
288
|
-
end
|
|
289
|
-
end
|
|
290
|
-
|
|
291
|
-
#
|
|
292
|
-
class Reassignments
|
|
293
|
-
include Google::Apis::Core::Hashable
|
|
294
|
-
|
|
295
|
-
# (Deprecated)
|
|
296
|
-
# Corresponds to the JSON property `editionId`
|
|
297
|
-
# @return [String]
|
|
298
|
-
attr_accessor :edition_id
|
|
299
|
-
|
|
300
|
-
#
|
|
301
|
-
# Corresponds to the JSON property `kind`
|
|
302
|
-
# @return [String]
|
|
303
|
-
attr_accessor :kind
|
|
304
|
-
|
|
305
|
-
#
|
|
306
|
-
# Corresponds to the JSON property `type`
|
|
307
|
-
# @return [String]
|
|
308
|
-
attr_accessor :type
|
|
309
|
-
|
|
310
|
-
# The email address of the reassigned user.
|
|
311
|
-
# Corresponds to the JSON property `userId`
|
|
312
|
-
# @return [String]
|
|
313
|
-
attr_accessor :user_id
|
|
314
|
-
|
|
315
|
-
def initialize(**args)
|
|
316
|
-
update!(**args)
|
|
317
|
-
end
|
|
318
|
-
|
|
319
|
-
# Update properties of this object
|
|
320
|
-
def update!(**args)
|
|
321
|
-
@edition_id = args[:edition_id] if args.key?(:edition_id)
|
|
322
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
323
|
-
@type = args[:type] if args.key?(:type)
|
|
324
|
-
@user_id = args[:user_id] if args.key?(:user_id)
|
|
325
|
-
end
|
|
326
|
-
end
|
|
327
|
-
|
|
328
107
|
#
|
|
329
108
|
class UserLicense
|
|
330
109
|
include Google::Apis::Core::Hashable
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module AppsmarketV2
|
|
18
18
|
# Version of the google-apis-appsmarket_v2 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.2.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
|
-
GENERATOR_VERSION = "0.
|
|
22
|
+
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20251217"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -28,48 +28,12 @@ module Google
|
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
class Deletes
|
|
32
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
|
-
|
|
34
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
35
|
-
end
|
|
36
|
-
|
|
37
31
|
class Editions
|
|
38
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
33
|
|
|
40
34
|
include Google::Apis::Core::JsonObjectSupport
|
|
41
35
|
end
|
|
42
36
|
|
|
43
|
-
class Expiries
|
|
44
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
|
-
|
|
46
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
class LicenseNotification
|
|
50
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
|
-
|
|
52
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
class LicenseNotificationList
|
|
56
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
57
|
-
|
|
58
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
class Provisions
|
|
62
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
|
-
|
|
64
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
class Reassignments
|
|
68
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
|
-
|
|
70
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
71
|
-
end
|
|
72
|
-
|
|
73
37
|
class UserLicense
|
|
74
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
39
|
|
|
@@ -89,14 +53,6 @@ module Google
|
|
|
89
53
|
end
|
|
90
54
|
end
|
|
91
55
|
|
|
92
|
-
class Deletes
|
|
93
|
-
# @private
|
|
94
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
95
|
-
property :edition_id, as: 'editionId'
|
|
96
|
-
property :kind, as: 'kind'
|
|
97
|
-
end
|
|
98
|
-
end
|
|
99
|
-
|
|
100
56
|
class Editions
|
|
101
57
|
# @private
|
|
102
58
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -106,62 +62,6 @@ module Google
|
|
|
106
62
|
end
|
|
107
63
|
end
|
|
108
64
|
|
|
109
|
-
class Expiries
|
|
110
|
-
# @private
|
|
111
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
112
|
-
property :edition_id, as: 'editionId'
|
|
113
|
-
property :kind, as: 'kind'
|
|
114
|
-
end
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
class LicenseNotification
|
|
118
|
-
# @private
|
|
119
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
120
|
-
property :application_id, as: 'applicationId'
|
|
121
|
-
property :customer_id, as: 'customerId'
|
|
122
|
-
collection :deletes, as: 'deletes', class: Google::Apis::AppsmarketV2::Deletes, decorator: Google::Apis::AppsmarketV2::Deletes::Representation
|
|
123
|
-
|
|
124
|
-
collection :expiries, as: 'expiries', class: Google::Apis::AppsmarketV2::Expiries, decorator: Google::Apis::AppsmarketV2::Expiries::Representation
|
|
125
|
-
|
|
126
|
-
property :id, as: 'id'
|
|
127
|
-
property :kind, as: 'kind'
|
|
128
|
-
collection :provisions, as: 'provisions', class: Google::Apis::AppsmarketV2::Provisions, decorator: Google::Apis::AppsmarketV2::Provisions::Representation
|
|
129
|
-
|
|
130
|
-
collection :reassignments, as: 'reassignments', class: Google::Apis::AppsmarketV2::Reassignments, decorator: Google::Apis::AppsmarketV2::Reassignments::Representation
|
|
131
|
-
|
|
132
|
-
property :timestamp, :numeric_string => true, as: 'timestamp'
|
|
133
|
-
end
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
class LicenseNotificationList
|
|
137
|
-
# @private
|
|
138
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
139
|
-
property :kind, as: 'kind'
|
|
140
|
-
property :next_page_token, as: 'nextPageToken'
|
|
141
|
-
collection :notifications, as: 'notifications', class: Google::Apis::AppsmarketV2::LicenseNotification, decorator: Google::Apis::AppsmarketV2::LicenseNotification::Representation
|
|
142
|
-
|
|
143
|
-
end
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
class Provisions
|
|
147
|
-
# @private
|
|
148
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
149
|
-
property :edition_id, as: 'editionId'
|
|
150
|
-
property :kind, as: 'kind'
|
|
151
|
-
property :seat_count, :numeric_string => true, as: 'seatCount'
|
|
152
|
-
end
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
class Reassignments
|
|
156
|
-
# @private
|
|
157
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
158
|
-
property :edition_id, as: 'editionId'
|
|
159
|
-
property :kind, as: 'kind'
|
|
160
|
-
property :type, as: 'type'
|
|
161
|
-
property :user_id, as: 'userId'
|
|
162
|
-
end
|
|
163
|
-
end
|
|
164
|
-
|
|
165
65
|
class UserLicense
|
|
166
66
|
# @private
|
|
167
67
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -20,19 +20,21 @@ require 'google/apis/errors'
|
|
|
20
20
|
module Google
|
|
21
21
|
module Apis
|
|
22
22
|
module AppsmarketV2
|
|
23
|
-
#
|
|
23
|
+
# Google Workspace Marketplace API
|
|
24
24
|
#
|
|
25
25
|
# Lets your Google Workspace Marketplace applications integrate with Google's
|
|
26
|
-
#
|
|
26
|
+
# installtion and licensing services.
|
|
27
27
|
#
|
|
28
28
|
# @example
|
|
29
29
|
# require 'google/apis/appsmarket_v2'
|
|
30
30
|
#
|
|
31
31
|
# Appsmarket = Google::Apis::AppsmarketV2 # Alias the module
|
|
32
|
-
# service = Appsmarket::
|
|
32
|
+
# service = Appsmarket::GSuiteMarketplaceAPIService.new
|
|
33
33
|
#
|
|
34
|
-
# @see https://developers.google.com/
|
|
35
|
-
class
|
|
34
|
+
# @see https://developers.google.com/workspace/marketplace
|
|
35
|
+
class GSuiteMarketplaceAPIService < Google::Apis::Core::BaseService
|
|
36
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://appsmarket.$UNIVERSE_DOMAIN$/"
|
|
37
|
+
|
|
36
38
|
# @return [String]
|
|
37
39
|
# API key. Your API key identifies your project and provides you with API access,
|
|
38
40
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
@@ -44,13 +46,13 @@ module Google
|
|
|
44
46
|
attr_accessor :quota_user
|
|
45
47
|
|
|
46
48
|
def initialize
|
|
47
|
-
super(
|
|
49
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
|
48
50
|
client_name: 'google-apis-appsmarket_v2',
|
|
49
51
|
client_version: Google::Apis::AppsmarketV2::GEM_VERSION)
|
|
50
52
|
@batch_path = 'batch'
|
|
51
53
|
end
|
|
52
54
|
|
|
53
|
-
#
|
|
55
|
+
# Gets the status of a license for a customer to determine if they have access
|
|
54
56
|
# for a given app.
|
|
55
57
|
# @param [String] application_id
|
|
56
58
|
# Application Id
|
|
@@ -84,44 +86,7 @@ module Google
|
|
|
84
86
|
execute_or_queue_command(command, &block)
|
|
85
87
|
end
|
|
86
88
|
|
|
87
|
-
#
|
|
88
|
-
# @param [String] application_id
|
|
89
|
-
# Application Id
|
|
90
|
-
# @param [Fixnum] max_results
|
|
91
|
-
# @param [String] start_token
|
|
92
|
-
# @param [Fixnum] timestamp
|
|
93
|
-
# Timestamp in milliseconds since epoch
|
|
94
|
-
# @param [String] fields
|
|
95
|
-
# Selector specifying which fields to include in a partial response.
|
|
96
|
-
# @param [String] quota_user
|
|
97
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
98
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
99
|
-
# @param [Google::Apis::RequestOptions] options
|
|
100
|
-
# Request-specific options
|
|
101
|
-
#
|
|
102
|
-
# @yield [result, err] Result & error if block supplied
|
|
103
|
-
# @yieldparam result [Google::Apis::AppsmarketV2::LicenseNotificationList] parsed result object
|
|
104
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
105
|
-
#
|
|
106
|
-
# @return [Google::Apis::AppsmarketV2::LicenseNotificationList]
|
|
107
|
-
#
|
|
108
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
109
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
110
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
111
|
-
def list_license_notifications(application_id, max_results: nil, start_token: nil, timestamp: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
112
|
-
command = make_simple_command(:get, 'appsmarket/v2/licenseNotification/{applicationId}', options)
|
|
113
|
-
command.response_representation = Google::Apis::AppsmarketV2::LicenseNotificationList::Representation
|
|
114
|
-
command.response_class = Google::Apis::AppsmarketV2::LicenseNotificationList
|
|
115
|
-
command.params['applicationId'] = application_id unless application_id.nil?
|
|
116
|
-
command.query['max-results'] = max_results unless max_results.nil?
|
|
117
|
-
command.query['start-token'] = start_token unless start_token.nil?
|
|
118
|
-
command.query['timestamp'] = timestamp unless timestamp.nil?
|
|
119
|
-
command.query['fields'] = fields unless fields.nil?
|
|
120
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
121
|
-
execute_or_queue_command(command, &block)
|
|
122
|
-
end
|
|
123
|
-
|
|
124
|
-
# Get the user's licensing status for their permission to use a given app.
|
|
89
|
+
# Gets the user's licensing status for their permission to use a given app.
|
|
125
90
|
# @param [String] application_id
|
|
126
91
|
# Application Id
|
|
127
92
|
# @param [String] user_id
|
|
@@ -19,14 +19,14 @@ require 'google/apis/appsmarket_v2/gem_version.rb'
|
|
|
19
19
|
|
|
20
20
|
module Google
|
|
21
21
|
module Apis
|
|
22
|
-
#
|
|
22
|
+
# Google Workspace Marketplace API
|
|
23
23
|
#
|
|
24
24
|
# Lets your Google Workspace Marketplace applications integrate with Google's
|
|
25
|
-
#
|
|
25
|
+
# installtion and licensing services.
|
|
26
26
|
#
|
|
27
|
-
# @see https://developers.google.com/
|
|
27
|
+
# @see https://developers.google.com/workspace/marketplace
|
|
28
28
|
module AppsmarketV2
|
|
29
|
-
# Version of the
|
|
29
|
+
# Version of the Google Workspace Marketplace API this client connects to.
|
|
30
30
|
# This is NOT the gem version.
|
|
31
31
|
VERSION = 'V2'
|
|
32
32
|
|
metadata
CHANGED
|
@@ -1,36 +1,41 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-appsmarket_v2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: google-apis-core
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
|
-
- - "
|
|
16
|
+
- - ">="
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
18
|
+
version: 0.15.0
|
|
19
|
+
- - "<"
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: 2.a
|
|
20
22
|
type: :runtime
|
|
21
23
|
prerelease: false
|
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
25
|
requirements:
|
|
24
|
-
- - "
|
|
26
|
+
- - ">="
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
version: 0.15.0
|
|
29
|
+
- - "<"
|
|
25
30
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
27
|
-
description: This is the simple REST client for
|
|
28
|
-
REST clients are Ruby client libraries that provide access to Google services
|
|
29
|
-
their HTTP REST API endpoints. These libraries are generated and updated automatically
|
|
31
|
+
version: 2.a
|
|
32
|
+
description: This is the simple REST client for Google Workspace Marketplace API V2.
|
|
33
|
+
Simple REST clients are Ruby client libraries that provide access to Google services
|
|
34
|
+
via their HTTP REST API endpoints. These libraries are generated and updated automatically
|
|
30
35
|
based on the discovery documents published by the service, and they handle most
|
|
31
36
|
concerns such as authentication, pagination, retry, timeouts, and logging. You can
|
|
32
|
-
use this client to access the
|
|
33
|
-
may provide a separate modern client that is easier to use.
|
|
37
|
+
use this client to access the Google Workspace Marketplace API, but note that some
|
|
38
|
+
services may provide a separate modern client that is easier to use.
|
|
34
39
|
email: googleapis-packages@google.com
|
|
35
40
|
executables: []
|
|
36
41
|
extensions: []
|
|
@@ -51,10 +56,9 @@ licenses:
|
|
|
51
56
|
- Apache-2.0
|
|
52
57
|
metadata:
|
|
53
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
54
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-appsmarket_v2/v0.
|
|
56
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
|
57
|
-
post_install_message:
|
|
59
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-appsmarket_v2/CHANGELOG.md
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-appsmarket_v2/v0.2.0
|
|
61
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-appsmarket_v2
|
|
58
62
|
rdoc_options: []
|
|
59
63
|
require_paths:
|
|
60
64
|
- lib
|
|
@@ -62,15 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
62
66
|
requirements:
|
|
63
67
|
- - ">="
|
|
64
68
|
- !ruby/object:Gem::Version
|
|
65
|
-
version: '
|
|
69
|
+
version: '3.1'
|
|
66
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
71
|
requirements:
|
|
68
72
|
- - ">="
|
|
69
73
|
- !ruby/object:Gem::Version
|
|
70
74
|
version: '0'
|
|
71
75
|
requirements: []
|
|
72
|
-
rubygems_version: 3.
|
|
73
|
-
signing_key:
|
|
76
|
+
rubygems_version: 3.6.9
|
|
74
77
|
specification_version: 4
|
|
75
|
-
summary: Simple REST client for
|
|
78
|
+
summary: Simple REST client for Google Workspace Marketplace API V2
|
|
76
79
|
test_files: []
|