google-apis-apim_v1alpha 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module ApimV1alpha
18
+ # Version of the google-apis-apim_v1alpha gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.15.0"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20240605"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,433 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module ApimV1alpha
24
+
25
+ class ApiObservation
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ApiOperation
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class CancelOperationRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class DisableObservationJobRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Empty
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class EnableObservationJobRequest
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class GclbObservationSource
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GclbObservationSourcePscNetworkConfig
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class HttpOperation
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class HttpOperationHeader
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class HttpOperationHttpRequest
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class HttpOperationHttpResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class HttpOperationPathParam
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class HttpOperationQueryParam
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListApiObservationsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ListApiOperationsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ListLocationsResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class ListObservationJobsResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class ListObservationSourcesResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class ListOperationsResponse
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class Location
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class ObservationJob
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class ObservationSource
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class Operation
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class OperationMetadata
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class Status
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class ApiObservation
182
+ # @private
183
+ class Representation < Google::Apis::Core::JsonRepresentation
184
+ property :api_operation_count, :numeric_string => true, as: 'apiOperationCount'
185
+ property :create_time, as: 'createTime'
186
+ property :hostname, as: 'hostname'
187
+ property :last_event_detected_time, as: 'lastEventDetectedTime'
188
+ property :name, as: 'name'
189
+ collection :server_ips, as: 'serverIps'
190
+ collection :source_locations, as: 'sourceLocations'
191
+ property :style, as: 'style'
192
+ collection :tags, as: 'tags'
193
+ property :update_time, as: 'updateTime'
194
+ end
195
+ end
196
+
197
+ class ApiOperation
198
+ # @private
199
+ class Representation < Google::Apis::Core::JsonRepresentation
200
+ property :count, :numeric_string => true, as: 'count'
201
+ property :first_seen_time, as: 'firstSeenTime'
202
+ property :http_operation, as: 'httpOperation', class: Google::Apis::ApimV1alpha::HttpOperation, decorator: Google::Apis::ApimV1alpha::HttpOperation::Representation
203
+
204
+ property :last_seen_time, as: 'lastSeenTime'
205
+ property :name, as: 'name'
206
+ end
207
+ end
208
+
209
+ class CancelOperationRequest
210
+ # @private
211
+ class Representation < Google::Apis::Core::JsonRepresentation
212
+ end
213
+ end
214
+
215
+ class DisableObservationJobRequest
216
+ # @private
217
+ class Representation < Google::Apis::Core::JsonRepresentation
218
+ end
219
+ end
220
+
221
+ class Empty
222
+ # @private
223
+ class Representation < Google::Apis::Core::JsonRepresentation
224
+ end
225
+ end
226
+
227
+ class EnableObservationJobRequest
228
+ # @private
229
+ class Representation < Google::Apis::Core::JsonRepresentation
230
+ end
231
+ end
232
+
233
+ class GclbObservationSource
234
+ # @private
235
+ class Representation < Google::Apis::Core::JsonRepresentation
236
+ collection :psc_network_configs, as: 'pscNetworkConfigs', class: Google::Apis::ApimV1alpha::GclbObservationSourcePscNetworkConfig, decorator: Google::Apis::ApimV1alpha::GclbObservationSourcePscNetworkConfig::Representation
237
+
238
+ end
239
+ end
240
+
241
+ class GclbObservationSourcePscNetworkConfig
242
+ # @private
243
+ class Representation < Google::Apis::Core::JsonRepresentation
244
+ property :network, as: 'network'
245
+ property :subnetwork, as: 'subnetwork'
246
+ end
247
+ end
248
+
249
+ class HttpOperation
250
+ # @private
251
+ class Representation < Google::Apis::Core::JsonRepresentation
252
+ property :method_prop, as: 'method'
253
+ property :path, as: 'path'
254
+ collection :path_params, as: 'pathParams', class: Google::Apis::ApimV1alpha::HttpOperationPathParam, decorator: Google::Apis::ApimV1alpha::HttpOperationPathParam::Representation
255
+
256
+ hash :query_params, as: 'queryParams', class: Google::Apis::ApimV1alpha::HttpOperationQueryParam, decorator: Google::Apis::ApimV1alpha::HttpOperationQueryParam::Representation
257
+
258
+ property :request, as: 'request', class: Google::Apis::ApimV1alpha::HttpOperationHttpRequest, decorator: Google::Apis::ApimV1alpha::HttpOperationHttpRequest::Representation
259
+
260
+ property :response, as: 'response', class: Google::Apis::ApimV1alpha::HttpOperationHttpResponse, decorator: Google::Apis::ApimV1alpha::HttpOperationHttpResponse::Representation
261
+
262
+ end
263
+ end
264
+
265
+ class HttpOperationHeader
266
+ # @private
267
+ class Representation < Google::Apis::Core::JsonRepresentation
268
+ property :count, :numeric_string => true, as: 'count'
269
+ property :data_type, as: 'dataType'
270
+ property :name, as: 'name'
271
+ end
272
+ end
273
+
274
+ class HttpOperationHttpRequest
275
+ # @private
276
+ class Representation < Google::Apis::Core::JsonRepresentation
277
+ hash :headers, as: 'headers', class: Google::Apis::ApimV1alpha::HttpOperationHeader, decorator: Google::Apis::ApimV1alpha::HttpOperationHeader::Representation
278
+
279
+ end
280
+ end
281
+
282
+ class HttpOperationHttpResponse
283
+ # @private
284
+ class Representation < Google::Apis::Core::JsonRepresentation
285
+ hash :headers, as: 'headers', class: Google::Apis::ApimV1alpha::HttpOperationHeader, decorator: Google::Apis::ApimV1alpha::HttpOperationHeader::Representation
286
+
287
+ hash :response_codes, as: 'responseCodes'
288
+ end
289
+ end
290
+
291
+ class HttpOperationPathParam
292
+ # @private
293
+ class Representation < Google::Apis::Core::JsonRepresentation
294
+ property :data_type, as: 'dataType'
295
+ property :position, as: 'position'
296
+ end
297
+ end
298
+
299
+ class HttpOperationQueryParam
300
+ # @private
301
+ class Representation < Google::Apis::Core::JsonRepresentation
302
+ property :count, :numeric_string => true, as: 'count'
303
+ property :data_type, as: 'dataType'
304
+ property :name, as: 'name'
305
+ end
306
+ end
307
+
308
+ class ListApiObservationsResponse
309
+ # @private
310
+ class Representation < Google::Apis::Core::JsonRepresentation
311
+ collection :api_observations, as: 'apiObservations', class: Google::Apis::ApimV1alpha::ApiObservation, decorator: Google::Apis::ApimV1alpha::ApiObservation::Representation
312
+
313
+ property :next_page_token, as: 'nextPageToken'
314
+ end
315
+ end
316
+
317
+ class ListApiOperationsResponse
318
+ # @private
319
+ class Representation < Google::Apis::Core::JsonRepresentation
320
+ collection :api_operations, as: 'apiOperations', class: Google::Apis::ApimV1alpha::ApiOperation, decorator: Google::Apis::ApimV1alpha::ApiOperation::Representation
321
+
322
+ property :next_page_token, as: 'nextPageToken'
323
+ end
324
+ end
325
+
326
+ class ListLocationsResponse
327
+ # @private
328
+ class Representation < Google::Apis::Core::JsonRepresentation
329
+ collection :locations, as: 'locations', class: Google::Apis::ApimV1alpha::Location, decorator: Google::Apis::ApimV1alpha::Location::Representation
330
+
331
+ property :next_page_token, as: 'nextPageToken'
332
+ end
333
+ end
334
+
335
+ class ListObservationJobsResponse
336
+ # @private
337
+ class Representation < Google::Apis::Core::JsonRepresentation
338
+ property :next_page_token, as: 'nextPageToken'
339
+ collection :observation_jobs, as: 'observationJobs', class: Google::Apis::ApimV1alpha::ObservationJob, decorator: Google::Apis::ApimV1alpha::ObservationJob::Representation
340
+
341
+ collection :unreachable, as: 'unreachable'
342
+ end
343
+ end
344
+
345
+ class ListObservationSourcesResponse
346
+ # @private
347
+ class Representation < Google::Apis::Core::JsonRepresentation
348
+ property :next_page_token, as: 'nextPageToken'
349
+ collection :observation_sources, as: 'observationSources', class: Google::Apis::ApimV1alpha::ObservationSource, decorator: Google::Apis::ApimV1alpha::ObservationSource::Representation
350
+
351
+ collection :unreachable, as: 'unreachable'
352
+ end
353
+ end
354
+
355
+ class ListOperationsResponse
356
+ # @private
357
+ class Representation < Google::Apis::Core::JsonRepresentation
358
+ property :next_page_token, as: 'nextPageToken'
359
+ collection :operations, as: 'operations', class: Google::Apis::ApimV1alpha::Operation, decorator: Google::Apis::ApimV1alpha::Operation::Representation
360
+
361
+ end
362
+ end
363
+
364
+ class Location
365
+ # @private
366
+ class Representation < Google::Apis::Core::JsonRepresentation
367
+ property :display_name, as: 'displayName'
368
+ hash :labels, as: 'labels'
369
+ property :location_id, as: 'locationId'
370
+ hash :metadata, as: 'metadata'
371
+ property :name, as: 'name'
372
+ end
373
+ end
374
+
375
+ class ObservationJob
376
+ # @private
377
+ class Representation < Google::Apis::Core::JsonRepresentation
378
+ property :create_time, as: 'createTime'
379
+ property :name, as: 'name'
380
+ collection :sources, as: 'sources'
381
+ property :state, as: 'state'
382
+ property :update_time, as: 'updateTime'
383
+ end
384
+ end
385
+
386
+ class ObservationSource
387
+ # @private
388
+ class Representation < Google::Apis::Core::JsonRepresentation
389
+ property :create_time, as: 'createTime'
390
+ property :gclb_observation_source, as: 'gclbObservationSource', class: Google::Apis::ApimV1alpha::GclbObservationSource, decorator: Google::Apis::ApimV1alpha::GclbObservationSource::Representation
391
+
392
+ property :name, as: 'name'
393
+ property :state, as: 'state'
394
+ property :update_time, as: 'updateTime'
395
+ end
396
+ end
397
+
398
+ class Operation
399
+ # @private
400
+ class Representation < Google::Apis::Core::JsonRepresentation
401
+ property :done, as: 'done'
402
+ property :error, as: 'error', class: Google::Apis::ApimV1alpha::Status, decorator: Google::Apis::ApimV1alpha::Status::Representation
403
+
404
+ hash :metadata, as: 'metadata'
405
+ property :name, as: 'name'
406
+ hash :response, as: 'response'
407
+ end
408
+ end
409
+
410
+ class OperationMetadata
411
+ # @private
412
+ class Representation < Google::Apis::Core::JsonRepresentation
413
+ property :api_version, as: 'apiVersion'
414
+ property :create_time, as: 'createTime'
415
+ property :end_time, as: 'endTime'
416
+ property :requested_cancellation, as: 'requestedCancellation'
417
+ property :status_message, as: 'statusMessage'
418
+ property :target, as: 'target'
419
+ property :verb, as: 'verb'
420
+ end
421
+ end
422
+
423
+ class Status
424
+ # @private
425
+ class Representation < Google::Apis::Core::JsonRepresentation
426
+ property :code, as: 'code'
427
+ collection :details, as: 'details'
428
+ property :message, as: 'message'
429
+ end
430
+ end
431
+ end
432
+ end
433
+ end