google-apis-gkehub_v2alpha 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,308 @@
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 GkehubV2alpha
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 FeatureConfig
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class FeatureConfigRef
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class FeatureConfigState
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class FeatureSpec
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class FeatureState
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GoogleRpcStatus
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ListFeatureConfigsResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ListLocationsResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ListMembershipFeaturesResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ListOperationsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class Location
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class MembershipFeature
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class Operation
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class OperationMetadata
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ResourceState
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class State
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class CancelOperationRequest
134
+ # @private
135
+ class Representation < Google::Apis::Core::JsonRepresentation
136
+ end
137
+ end
138
+
139
+ class Empty
140
+ # @private
141
+ class Representation < Google::Apis::Core::JsonRepresentation
142
+ end
143
+ end
144
+
145
+ class FeatureConfig
146
+ # @private
147
+ class Representation < Google::Apis::Core::JsonRepresentation
148
+ property :create_time, as: 'createTime'
149
+ property :delete_time, as: 'deleteTime'
150
+ hash :labels, as: 'labels'
151
+ property :name, as: 'name'
152
+ property :spec, as: 'spec', class: Google::Apis::GkehubV2alpha::FeatureSpec, decorator: Google::Apis::GkehubV2alpha::FeatureSpec::Representation
153
+
154
+ property :state, as: 'state', class: Google::Apis::GkehubV2alpha::FeatureConfigState, decorator: Google::Apis::GkehubV2alpha::FeatureConfigState::Representation
155
+
156
+ property :unique_id, as: 'uniqueId'
157
+ property :update_time, as: 'updateTime'
158
+ end
159
+ end
160
+
161
+ class FeatureConfigRef
162
+ # @private
163
+ class Representation < Google::Apis::Core::JsonRepresentation
164
+ property :config, as: 'config'
165
+ property :config_update_time, as: 'configUpdateTime'
166
+ property :uuid, as: 'uuid'
167
+ end
168
+ end
169
+
170
+ class FeatureConfigState
171
+ # @private
172
+ class Representation < Google::Apis::Core::JsonRepresentation
173
+ property :state, as: 'state'
174
+ end
175
+ end
176
+
177
+ class FeatureSpec
178
+ # @private
179
+ class Representation < Google::Apis::Core::JsonRepresentation
180
+ end
181
+ end
182
+
183
+ class FeatureState
184
+ # @private
185
+ class Representation < Google::Apis::Core::JsonRepresentation
186
+ property :state, as: 'state', class: Google::Apis::GkehubV2alpha::State, decorator: Google::Apis::GkehubV2alpha::State::Representation
187
+
188
+ end
189
+ end
190
+
191
+ class GoogleRpcStatus
192
+ # @private
193
+ class Representation < Google::Apis::Core::JsonRepresentation
194
+ property :code, as: 'code'
195
+ collection :details, as: 'details'
196
+ property :message, as: 'message'
197
+ end
198
+ end
199
+
200
+ class ListFeatureConfigsResponse
201
+ # @private
202
+ class Representation < Google::Apis::Core::JsonRepresentation
203
+ collection :feature_configs, as: 'featureConfigs', class: Google::Apis::GkehubV2alpha::FeatureConfig, decorator: Google::Apis::GkehubV2alpha::FeatureConfig::Representation
204
+
205
+ property :next_page_token, as: 'nextPageToken'
206
+ end
207
+ end
208
+
209
+ class ListLocationsResponse
210
+ # @private
211
+ class Representation < Google::Apis::Core::JsonRepresentation
212
+ collection :locations, as: 'locations', class: Google::Apis::GkehubV2alpha::Location, decorator: Google::Apis::GkehubV2alpha::Location::Representation
213
+
214
+ property :next_page_token, as: 'nextPageToken'
215
+ end
216
+ end
217
+
218
+ class ListMembershipFeaturesResponse
219
+ # @private
220
+ class Representation < Google::Apis::Core::JsonRepresentation
221
+ collection :membership_features, as: 'membershipFeatures', class: Google::Apis::GkehubV2alpha::MembershipFeature, decorator: Google::Apis::GkehubV2alpha::MembershipFeature::Representation
222
+
223
+ property :next_page_token, as: 'nextPageToken'
224
+ end
225
+ end
226
+
227
+ class ListOperationsResponse
228
+ # @private
229
+ class Representation < Google::Apis::Core::JsonRepresentation
230
+ property :next_page_token, as: 'nextPageToken'
231
+ collection :operations, as: 'operations', class: Google::Apis::GkehubV2alpha::Operation, decorator: Google::Apis::GkehubV2alpha::Operation::Representation
232
+
233
+ end
234
+ end
235
+
236
+ class Location
237
+ # @private
238
+ class Representation < Google::Apis::Core::JsonRepresentation
239
+ property :display_name, as: 'displayName'
240
+ hash :labels, as: 'labels'
241
+ property :location_id, as: 'locationId'
242
+ hash :metadata, as: 'metadata'
243
+ property :name, as: 'name'
244
+ end
245
+ end
246
+
247
+ class MembershipFeature
248
+ # @private
249
+ class Representation < Google::Apis::Core::JsonRepresentation
250
+ property :create_time, as: 'createTime'
251
+ property :delete_time, as: 'deleteTime'
252
+ property :feature_config_ref, as: 'featureConfigRef', class: Google::Apis::GkehubV2alpha::FeatureConfigRef, decorator: Google::Apis::GkehubV2alpha::FeatureConfigRef::Representation
253
+
254
+ hash :labels, as: 'labels'
255
+ property :name, as: 'name'
256
+ property :resource_state, as: 'resourceState', class: Google::Apis::GkehubV2alpha::ResourceState, decorator: Google::Apis::GkehubV2alpha::ResourceState::Representation
257
+
258
+ property :spec, as: 'spec', class: Google::Apis::GkehubV2alpha::FeatureSpec, decorator: Google::Apis::GkehubV2alpha::FeatureSpec::Representation
259
+
260
+ property :state, as: 'state', class: Google::Apis::GkehubV2alpha::FeatureState, decorator: Google::Apis::GkehubV2alpha::FeatureState::Representation
261
+
262
+ property :update_time, as: 'updateTime'
263
+ end
264
+ end
265
+
266
+ class Operation
267
+ # @private
268
+ class Representation < Google::Apis::Core::JsonRepresentation
269
+ property :done, as: 'done'
270
+ property :error, as: 'error', class: Google::Apis::GkehubV2alpha::GoogleRpcStatus, decorator: Google::Apis::GkehubV2alpha::GoogleRpcStatus::Representation
271
+
272
+ hash :metadata, as: 'metadata'
273
+ property :name, as: 'name'
274
+ hash :response, as: 'response'
275
+ end
276
+ end
277
+
278
+ class OperationMetadata
279
+ # @private
280
+ class Representation < Google::Apis::Core::JsonRepresentation
281
+ property :api_version, as: 'apiVersion'
282
+ property :cancel_requested, as: 'cancelRequested'
283
+ property :create_time, as: 'createTime'
284
+ property :end_time, as: 'endTime'
285
+ property :status_detail, as: 'statusDetail'
286
+ property :target, as: 'target'
287
+ property :verb, as: 'verb'
288
+ end
289
+ end
290
+
291
+ class ResourceState
292
+ # @private
293
+ class Representation < Google::Apis::Core::JsonRepresentation
294
+ property :state, as: 'state'
295
+ end
296
+ end
297
+
298
+ class State
299
+ # @private
300
+ class Representation < Google::Apis::Core::JsonRepresentation
301
+ property :code, as: 'code'
302
+ property :description, as: 'description'
303
+ property :update_time, as: 'updateTime'
304
+ end
305
+ end
306
+ end
307
+ end
308
+ end