google-apis-cloudcontrolspartner_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 CloudcontrolspartnerV1
18
+ # Version of the google-apis-cloudcontrolspartner_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.14.0"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20240320"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,432 @@
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 CloudcontrolspartnerV1
24
+
25
+ class AccessApprovalRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AccessReason
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class ConnectionError
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Console
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Customer
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class CustomerOnboardingState
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class CustomerOnboardingStep
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class EkmConnection
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class EkmConnections
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class EkmMetadata
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Gcloud
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class Instructions
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ListAccessApprovalRequestsResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ListCustomersResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListViolationsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ListWorkloadsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class OperationMetadata
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class Partner
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class PartnerPermissions
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Remediation
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class Sku
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class Violation
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class Workload
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class WorkloadOnboardingState
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class WorkloadOnboardingStep
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class AccessApprovalRequest
176
+ # @private
177
+ class Representation < Google::Apis::Core::JsonRepresentation
178
+ property :name, as: 'name'
179
+ property :request_time, as: 'requestTime'
180
+ property :requested_expiration_time, as: 'requestedExpirationTime'
181
+ property :requested_reason, as: 'requestedReason', class: Google::Apis::CloudcontrolspartnerV1::AccessReason, decorator: Google::Apis::CloudcontrolspartnerV1::AccessReason::Representation
182
+
183
+ end
184
+ end
185
+
186
+ class AccessReason
187
+ # @private
188
+ class Representation < Google::Apis::Core::JsonRepresentation
189
+ property :detail, as: 'detail'
190
+ property :type, as: 'type'
191
+ end
192
+ end
193
+
194
+ class ConnectionError
195
+ # @private
196
+ class Representation < Google::Apis::Core::JsonRepresentation
197
+ property :error_domain, as: 'errorDomain'
198
+ property :error_message, as: 'errorMessage'
199
+ end
200
+ end
201
+
202
+ class Console
203
+ # @private
204
+ class Representation < Google::Apis::Core::JsonRepresentation
205
+ collection :additional_links, as: 'additionalLinks'
206
+ collection :console_uris, as: 'consoleUris'
207
+ collection :steps, as: 'steps'
208
+ end
209
+ end
210
+
211
+ class Customer
212
+ # @private
213
+ class Representation < Google::Apis::Core::JsonRepresentation
214
+ property :customer_onboarding_state, as: 'customerOnboardingState', class: Google::Apis::CloudcontrolspartnerV1::CustomerOnboardingState, decorator: Google::Apis::CloudcontrolspartnerV1::CustomerOnboardingState::Representation
215
+
216
+ property :display_name, as: 'displayName'
217
+ property :is_onboarded, as: 'isOnboarded'
218
+ property :name, as: 'name'
219
+ end
220
+ end
221
+
222
+ class CustomerOnboardingState
223
+ # @private
224
+ class Representation < Google::Apis::Core::JsonRepresentation
225
+ collection :onboarding_steps, as: 'onboardingSteps', class: Google::Apis::CloudcontrolspartnerV1::CustomerOnboardingStep, decorator: Google::Apis::CloudcontrolspartnerV1::CustomerOnboardingStep::Representation
226
+
227
+ end
228
+ end
229
+
230
+ class CustomerOnboardingStep
231
+ # @private
232
+ class Representation < Google::Apis::Core::JsonRepresentation
233
+ property :completion_state, as: 'completionState'
234
+ property :completion_time, as: 'completionTime'
235
+ property :start_time, as: 'startTime'
236
+ property :step, as: 'step'
237
+ end
238
+ end
239
+
240
+ class EkmConnection
241
+ # @private
242
+ class Representation < Google::Apis::Core::JsonRepresentation
243
+ property :connection_error, as: 'connectionError', class: Google::Apis::CloudcontrolspartnerV1::ConnectionError, decorator: Google::Apis::CloudcontrolspartnerV1::ConnectionError::Representation
244
+
245
+ property :connection_name, as: 'connectionName'
246
+ property :connection_state, as: 'connectionState'
247
+ end
248
+ end
249
+
250
+ class EkmConnections
251
+ # @private
252
+ class Representation < Google::Apis::Core::JsonRepresentation
253
+ collection :ekm_connections, as: 'ekmConnections', class: Google::Apis::CloudcontrolspartnerV1::EkmConnection, decorator: Google::Apis::CloudcontrolspartnerV1::EkmConnection::Representation
254
+
255
+ property :name, as: 'name'
256
+ end
257
+ end
258
+
259
+ class EkmMetadata
260
+ # @private
261
+ class Representation < Google::Apis::Core::JsonRepresentation
262
+ property :ekm_endpoint_uri, as: 'ekmEndpointUri'
263
+ property :ekm_solution, as: 'ekmSolution'
264
+ end
265
+ end
266
+
267
+ class Gcloud
268
+ # @private
269
+ class Representation < Google::Apis::Core::JsonRepresentation
270
+ collection :additional_links, as: 'additionalLinks'
271
+ collection :gcloud_commands, as: 'gcloudCommands'
272
+ collection :steps, as: 'steps'
273
+ end
274
+ end
275
+
276
+ class Instructions
277
+ # @private
278
+ class Representation < Google::Apis::Core::JsonRepresentation
279
+ property :console_instructions, as: 'consoleInstructions', class: Google::Apis::CloudcontrolspartnerV1::Console, decorator: Google::Apis::CloudcontrolspartnerV1::Console::Representation
280
+
281
+ property :gcloud_instructions, as: 'gcloudInstructions', class: Google::Apis::CloudcontrolspartnerV1::Gcloud, decorator: Google::Apis::CloudcontrolspartnerV1::Gcloud::Representation
282
+
283
+ end
284
+ end
285
+
286
+ class ListAccessApprovalRequestsResponse
287
+ # @private
288
+ class Representation < Google::Apis::Core::JsonRepresentation
289
+ collection :access_approval_requests, as: 'accessApprovalRequests', class: Google::Apis::CloudcontrolspartnerV1::AccessApprovalRequest, decorator: Google::Apis::CloudcontrolspartnerV1::AccessApprovalRequest::Representation
290
+
291
+ property :next_page_token, as: 'nextPageToken'
292
+ collection :unreachable, as: 'unreachable'
293
+ end
294
+ end
295
+
296
+ class ListCustomersResponse
297
+ # @private
298
+ class Representation < Google::Apis::Core::JsonRepresentation
299
+ collection :customers, as: 'customers', class: Google::Apis::CloudcontrolspartnerV1::Customer, decorator: Google::Apis::CloudcontrolspartnerV1::Customer::Representation
300
+
301
+ property :next_page_token, as: 'nextPageToken'
302
+ collection :unreachable, as: 'unreachable'
303
+ end
304
+ end
305
+
306
+ class ListViolationsResponse
307
+ # @private
308
+ class Representation < Google::Apis::Core::JsonRepresentation
309
+ property :next_page_token, as: 'nextPageToken'
310
+ collection :unreachable, as: 'unreachable'
311
+ collection :violations, as: 'violations', class: Google::Apis::CloudcontrolspartnerV1::Violation, decorator: Google::Apis::CloudcontrolspartnerV1::Violation::Representation
312
+
313
+ end
314
+ end
315
+
316
+ class ListWorkloadsResponse
317
+ # @private
318
+ class Representation < Google::Apis::Core::JsonRepresentation
319
+ property :next_page_token, as: 'nextPageToken'
320
+ collection :unreachable, as: 'unreachable'
321
+ collection :workloads, as: 'workloads', class: Google::Apis::CloudcontrolspartnerV1::Workload, decorator: Google::Apis::CloudcontrolspartnerV1::Workload::Representation
322
+
323
+ end
324
+ end
325
+
326
+ class OperationMetadata
327
+ # @private
328
+ class Representation < Google::Apis::Core::JsonRepresentation
329
+ property :api_version, as: 'apiVersion'
330
+ property :create_time, as: 'createTime'
331
+ property :end_time, as: 'endTime'
332
+ property :requested_cancellation, as: 'requestedCancellation'
333
+ property :status_message, as: 'statusMessage'
334
+ property :target, as: 'target'
335
+ property :verb, as: 'verb'
336
+ end
337
+ end
338
+
339
+ class Partner
340
+ # @private
341
+ class Representation < Google::Apis::Core::JsonRepresentation
342
+ property :create_time, as: 'createTime'
343
+ collection :ekm_solutions, as: 'ekmSolutions', class: Google::Apis::CloudcontrolspartnerV1::EkmMetadata, decorator: Google::Apis::CloudcontrolspartnerV1::EkmMetadata::Representation
344
+
345
+ property :name, as: 'name'
346
+ collection :operated_cloud_regions, as: 'operatedCloudRegions'
347
+ property :partner_project_id, as: 'partnerProjectId'
348
+ collection :skus, as: 'skus', class: Google::Apis::CloudcontrolspartnerV1::Sku, decorator: Google::Apis::CloudcontrolspartnerV1::Sku::Representation
349
+
350
+ property :update_time, as: 'updateTime'
351
+ end
352
+ end
353
+
354
+ class PartnerPermissions
355
+ # @private
356
+ class Representation < Google::Apis::Core::JsonRepresentation
357
+ property :name, as: 'name'
358
+ collection :partner_permissions, as: 'partnerPermissions'
359
+ end
360
+ end
361
+
362
+ class Remediation
363
+ # @private
364
+ class Representation < Google::Apis::Core::JsonRepresentation
365
+ collection :compliant_values, as: 'compliantValues'
366
+ property :instructions, as: 'instructions', class: Google::Apis::CloudcontrolspartnerV1::Instructions, decorator: Google::Apis::CloudcontrolspartnerV1::Instructions::Representation
367
+
368
+ property :remediation_type, as: 'remediationType'
369
+ end
370
+ end
371
+
372
+ class Sku
373
+ # @private
374
+ class Representation < Google::Apis::Core::JsonRepresentation
375
+ property :display_name, as: 'displayName'
376
+ property :id, as: 'id'
377
+ end
378
+ end
379
+
380
+ class Violation
381
+ # @private
382
+ class Representation < Google::Apis::Core::JsonRepresentation
383
+ property :begin_time, as: 'beginTime'
384
+ property :category, as: 'category'
385
+ property :description, as: 'description'
386
+ property :folder_id, :numeric_string => true, as: 'folderId'
387
+ property :name, as: 'name'
388
+ property :non_compliant_org_policy, as: 'nonCompliantOrgPolicy'
389
+ property :remediation, as: 'remediation', class: Google::Apis::CloudcontrolspartnerV1::Remediation, decorator: Google::Apis::CloudcontrolspartnerV1::Remediation::Representation
390
+
391
+ property :resolve_time, as: 'resolveTime'
392
+ property :state, as: 'state'
393
+ property :update_time, as: 'updateTime'
394
+ end
395
+ end
396
+
397
+ class Workload
398
+ # @private
399
+ class Representation < Google::Apis::Core::JsonRepresentation
400
+ property :create_time, as: 'createTime'
401
+ property :folder, as: 'folder'
402
+ property :folder_id, :numeric_string => true, as: 'folderId'
403
+ property :is_onboarded, as: 'isOnboarded'
404
+ property :key_management_project_id, as: 'keyManagementProjectId'
405
+ property :location, as: 'location'
406
+ property :name, as: 'name'
407
+ property :partner, as: 'partner'
408
+ property :workload_onboarding_state, as: 'workloadOnboardingState', class: Google::Apis::CloudcontrolspartnerV1::WorkloadOnboardingState, decorator: Google::Apis::CloudcontrolspartnerV1::WorkloadOnboardingState::Representation
409
+
410
+ end
411
+ end
412
+
413
+ class WorkloadOnboardingState
414
+ # @private
415
+ class Representation < Google::Apis::Core::JsonRepresentation
416
+ collection :onboarding_steps, as: 'onboardingSteps', class: Google::Apis::CloudcontrolspartnerV1::WorkloadOnboardingStep, decorator: Google::Apis::CloudcontrolspartnerV1::WorkloadOnboardingStep::Representation
417
+
418
+ end
419
+ end
420
+
421
+ class WorkloadOnboardingStep
422
+ # @private
423
+ class Representation < Google::Apis::Core::JsonRepresentation
424
+ property :completion_state, as: 'completionState'
425
+ property :completion_time, as: 'completionTime'
426
+ property :start_time, as: 'startTime'
427
+ property :step, as: 'step'
428
+ end
429
+ end
430
+ end
431
+ end
432
+ end