google-apis-workloadmanager_v1 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 WorkloadmanagerV1
18
+ # Version of the google-apis-workloadmanager_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.11.0"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20221213"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,375 @@
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 WorkloadmanagerV1
24
+
25
+ class CancelOperationRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Empty
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Evaluation
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class GceInstanceFilter
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Insight
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class ListEvaluationsResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ListLocationsResponse
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class ListOperationsResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class Location
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Operation
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class OperationMetadata
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ResourceFilter
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ResourceStatus
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class SapDiscovery
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class SapDiscoveryComponent
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class SapDiscoveryMetadata
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class SapDiscoveryResource
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class SapValidation
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class SapValidationValidationDetail
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Status
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class WriteInsightRequest
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class WriteInsightResponse
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class CancelOperationRequest
158
+ # @private
159
+ class Representation < Google::Apis::Core::JsonRepresentation
160
+ end
161
+ end
162
+
163
+ class Empty
164
+ # @private
165
+ class Representation < Google::Apis::Core::JsonRepresentation
166
+ end
167
+ end
168
+
169
+ class Evaluation
170
+ # @private
171
+ class Representation < Google::Apis::Core::JsonRepresentation
172
+ property :create_time, as: 'createTime'
173
+ property :description, as: 'description'
174
+ hash :labels, as: 'labels'
175
+ property :name, as: 'name'
176
+ property :resource_filter, as: 'resourceFilter', class: Google::Apis::WorkloadmanagerV1::ResourceFilter, decorator: Google::Apis::WorkloadmanagerV1::ResourceFilter::Representation
177
+
178
+ property :resource_status, as: 'resourceStatus', class: Google::Apis::WorkloadmanagerV1::ResourceStatus, decorator: Google::Apis::WorkloadmanagerV1::ResourceStatus::Representation
179
+
180
+ collection :rule_names, as: 'ruleNames'
181
+ collection :rule_versions, as: 'ruleVersions'
182
+ property :update_time, as: 'updateTime'
183
+ end
184
+ end
185
+
186
+ class GceInstanceFilter
187
+ # @private
188
+ class Representation < Google::Apis::Core::JsonRepresentation
189
+ collection :service_accounts, as: 'serviceAccounts'
190
+ end
191
+ end
192
+
193
+ class Insight
194
+ # @private
195
+ class Representation < Google::Apis::Core::JsonRepresentation
196
+ property :sap_discovery, as: 'sapDiscovery', class: Google::Apis::WorkloadmanagerV1::SapDiscovery, decorator: Google::Apis::WorkloadmanagerV1::SapDiscovery::Representation
197
+
198
+ property :sap_validation, as: 'sapValidation', class: Google::Apis::WorkloadmanagerV1::SapValidation, decorator: Google::Apis::WorkloadmanagerV1::SapValidation::Representation
199
+
200
+ property :sent_time, as: 'sentTime'
201
+ end
202
+ end
203
+
204
+ class ListEvaluationsResponse
205
+ # @private
206
+ class Representation < Google::Apis::Core::JsonRepresentation
207
+ collection :evaluations, as: 'evaluations', class: Google::Apis::WorkloadmanagerV1::Evaluation, decorator: Google::Apis::WorkloadmanagerV1::Evaluation::Representation
208
+
209
+ property :next_page_token, as: 'nextPageToken'
210
+ collection :unreachable, as: 'unreachable'
211
+ end
212
+ end
213
+
214
+ class ListLocationsResponse
215
+ # @private
216
+ class Representation < Google::Apis::Core::JsonRepresentation
217
+ collection :locations, as: 'locations', class: Google::Apis::WorkloadmanagerV1::Location, decorator: Google::Apis::WorkloadmanagerV1::Location::Representation
218
+
219
+ property :next_page_token, as: 'nextPageToken'
220
+ end
221
+ end
222
+
223
+ class ListOperationsResponse
224
+ # @private
225
+ class Representation < Google::Apis::Core::JsonRepresentation
226
+ property :next_page_token, as: 'nextPageToken'
227
+ collection :operations, as: 'operations', class: Google::Apis::WorkloadmanagerV1::Operation, decorator: Google::Apis::WorkloadmanagerV1::Operation::Representation
228
+
229
+ end
230
+ end
231
+
232
+ class Location
233
+ # @private
234
+ class Representation < Google::Apis::Core::JsonRepresentation
235
+ property :display_name, as: 'displayName'
236
+ hash :labels, as: 'labels'
237
+ property :location_id, as: 'locationId'
238
+ hash :metadata, as: 'metadata'
239
+ property :name, as: 'name'
240
+ end
241
+ end
242
+
243
+ class Operation
244
+ # @private
245
+ class Representation < Google::Apis::Core::JsonRepresentation
246
+ property :done, as: 'done'
247
+ property :error, as: 'error', class: Google::Apis::WorkloadmanagerV1::Status, decorator: Google::Apis::WorkloadmanagerV1::Status::Representation
248
+
249
+ hash :metadata, as: 'metadata'
250
+ property :name, as: 'name'
251
+ hash :response, as: 'response'
252
+ end
253
+ end
254
+
255
+ class OperationMetadata
256
+ # @private
257
+ class Representation < Google::Apis::Core::JsonRepresentation
258
+ property :api_version, as: 'apiVersion'
259
+ property :create_time, as: 'createTime'
260
+ property :end_time, as: 'endTime'
261
+ property :requested_cancellation, as: 'requestedCancellation'
262
+ property :status_message, as: 'statusMessage'
263
+ property :target, as: 'target'
264
+ property :verb, as: 'verb'
265
+ end
266
+ end
267
+
268
+ class ResourceFilter
269
+ # @private
270
+ class Representation < Google::Apis::Core::JsonRepresentation
271
+ property :gce_instance_filter, as: 'gceInstanceFilter', class: Google::Apis::WorkloadmanagerV1::GceInstanceFilter, decorator: Google::Apis::WorkloadmanagerV1::GceInstanceFilter::Representation
272
+
273
+ hash :inclusion_labels, as: 'inclusionLabels'
274
+ collection :resource_id_patterns, as: 'resourceIdPatterns'
275
+ collection :scopes, as: 'scopes'
276
+ end
277
+ end
278
+
279
+ class ResourceStatus
280
+ # @private
281
+ class Representation < Google::Apis::Core::JsonRepresentation
282
+ collection :rules_newer_versions, as: 'rulesNewerVersions'
283
+ property :state, as: 'state'
284
+ end
285
+ end
286
+
287
+ class SapDiscovery
288
+ # @private
289
+ class Representation < Google::Apis::Core::JsonRepresentation
290
+ property :application_layer, as: 'applicationLayer', class: Google::Apis::WorkloadmanagerV1::SapDiscoveryComponent, decorator: Google::Apis::WorkloadmanagerV1::SapDiscoveryComponent::Representation
291
+
292
+ property :database_layer, as: 'databaseLayer', class: Google::Apis::WorkloadmanagerV1::SapDiscoveryComponent, decorator: Google::Apis::WorkloadmanagerV1::SapDiscoveryComponent::Representation
293
+
294
+ property :metadata, as: 'metadata', class: Google::Apis::WorkloadmanagerV1::SapDiscoveryMetadata, decorator: Google::Apis::WorkloadmanagerV1::SapDiscoveryMetadata::Representation
295
+
296
+ property :system_id, as: 'systemId'
297
+ property :update_time, as: 'updateTime'
298
+ end
299
+ end
300
+
301
+ class SapDiscoveryComponent
302
+ # @private
303
+ class Representation < Google::Apis::Core::JsonRepresentation
304
+ property :application_type, as: 'applicationType'
305
+ property :database_type, as: 'databaseType'
306
+ property :host_project, as: 'hostProject'
307
+ collection :resources, as: 'resources', class: Google::Apis::WorkloadmanagerV1::SapDiscoveryResource, decorator: Google::Apis::WorkloadmanagerV1::SapDiscoveryResource::Representation
308
+
309
+ property :sid, as: 'sid'
310
+ end
311
+ end
312
+
313
+ class SapDiscoveryMetadata
314
+ # @private
315
+ class Representation < Google::Apis::Core::JsonRepresentation
316
+ property :customer_region, as: 'customerRegion'
317
+ property :defined_system, as: 'definedSystem'
318
+ property :environment_type, as: 'environmentType'
319
+ property :sap_product, as: 'sapProduct'
320
+ end
321
+ end
322
+
323
+ class SapDiscoveryResource
324
+ # @private
325
+ class Representation < Google::Apis::Core::JsonRepresentation
326
+ collection :related_resources, as: 'relatedResources'
327
+ property :resource_kind, as: 'resourceKind'
328
+ property :resource_type, as: 'resourceType'
329
+ property :resource_uri, as: 'resourceUri'
330
+ property :update_time, as: 'updateTime'
331
+ end
332
+ end
333
+
334
+ class SapValidation
335
+ # @private
336
+ class Representation < Google::Apis::Core::JsonRepresentation
337
+ collection :validation_details, as: 'validationDetails', class: Google::Apis::WorkloadmanagerV1::SapValidationValidationDetail, decorator: Google::Apis::WorkloadmanagerV1::SapValidationValidationDetail::Representation
338
+
339
+ end
340
+ end
341
+
342
+ class SapValidationValidationDetail
343
+ # @private
344
+ class Representation < Google::Apis::Core::JsonRepresentation
345
+ hash :details, as: 'details'
346
+ property :sap_validation_type, as: 'sapValidationType'
347
+ end
348
+ end
349
+
350
+ class Status
351
+ # @private
352
+ class Representation < Google::Apis::Core::JsonRepresentation
353
+ property :code, as: 'code'
354
+ collection :details, as: 'details'
355
+ property :message, as: 'message'
356
+ end
357
+ end
358
+
359
+ class WriteInsightRequest
360
+ # @private
361
+ class Representation < Google::Apis::Core::JsonRepresentation
362
+ property :insight, as: 'insight', class: Google::Apis::WorkloadmanagerV1::Insight, decorator: Google::Apis::WorkloadmanagerV1::Insight::Representation
363
+
364
+ property :request_id, as: 'requestId'
365
+ end
366
+ end
367
+
368
+ class WriteInsightResponse
369
+ # @private
370
+ class Representation < Google::Apis::Core::JsonRepresentation
371
+ end
372
+ end
373
+ end
374
+ end
375
+ end