google-apis-ids_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 IdsV1
18
+ # Version of the google-apis-ids_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.4.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20220110"
26
+ end
27
+ end
28
+ end
@@ -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 IdsV1
24
+
25
+ class AuditConfig
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AuditLogConfig
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Binding
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class CancelOperationRequest
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 Endpoint
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class Expr
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class ListEndpointsResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ListLocationsResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ListOperationsResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Location
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class Operation
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class OperationMetadata
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class Policy
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class SetIamPolicyRequest
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Status
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class TestIamPermissionsRequest
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class TestIamPermissionsResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class AuditConfig
134
+ # @private
135
+ class Representation < Google::Apis::Core::JsonRepresentation
136
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::IdsV1::AuditLogConfig, decorator: Google::Apis::IdsV1::AuditLogConfig::Representation
137
+
138
+ property :service, as: 'service'
139
+ end
140
+ end
141
+
142
+ class AuditLogConfig
143
+ # @private
144
+ class Representation < Google::Apis::Core::JsonRepresentation
145
+ collection :exempted_members, as: 'exemptedMembers'
146
+ property :log_type, as: 'logType'
147
+ end
148
+ end
149
+
150
+ class Binding
151
+ # @private
152
+ class Representation < Google::Apis::Core::JsonRepresentation
153
+ property :condition, as: 'condition', class: Google::Apis::IdsV1::Expr, decorator: Google::Apis::IdsV1::Expr::Representation
154
+
155
+ collection :members, as: 'members'
156
+ property :role, as: 'role'
157
+ end
158
+ end
159
+
160
+ class CancelOperationRequest
161
+ # @private
162
+ class Representation < Google::Apis::Core::JsonRepresentation
163
+ end
164
+ end
165
+
166
+ class Empty
167
+ # @private
168
+ class Representation < Google::Apis::Core::JsonRepresentation
169
+ end
170
+ end
171
+
172
+ class Endpoint
173
+ # @private
174
+ class Representation < Google::Apis::Core::JsonRepresentation
175
+ property :create_time, as: 'createTime'
176
+ property :description, as: 'description'
177
+ property :endpoint_forwarding_rule, as: 'endpointForwardingRule'
178
+ property :endpoint_ip, as: 'endpointIp'
179
+ hash :labels, as: 'labels'
180
+ property :name, as: 'name'
181
+ property :network, as: 'network'
182
+ property :severity, as: 'severity'
183
+ property :state, as: 'state'
184
+ property :traffic_logs, as: 'trafficLogs'
185
+ property :update_time, as: 'updateTime'
186
+ end
187
+ end
188
+
189
+ class Expr
190
+ # @private
191
+ class Representation < Google::Apis::Core::JsonRepresentation
192
+ property :description, as: 'description'
193
+ property :expression, as: 'expression'
194
+ property :location, as: 'location'
195
+ property :title, as: 'title'
196
+ end
197
+ end
198
+
199
+ class ListEndpointsResponse
200
+ # @private
201
+ class Representation < Google::Apis::Core::JsonRepresentation
202
+ collection :endpoints, as: 'endpoints', class: Google::Apis::IdsV1::Endpoint, decorator: Google::Apis::IdsV1::Endpoint::Representation
203
+
204
+ property :next_page_token, as: 'nextPageToken'
205
+ collection :unreachable, as: 'unreachable'
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::IdsV1::Location, decorator: Google::Apis::IdsV1::Location::Representation
213
+
214
+ property :next_page_token, as: 'nextPageToken'
215
+ end
216
+ end
217
+
218
+ class ListOperationsResponse
219
+ # @private
220
+ class Representation < Google::Apis::Core::JsonRepresentation
221
+ property :next_page_token, as: 'nextPageToken'
222
+ collection :operations, as: 'operations', class: Google::Apis::IdsV1::Operation, decorator: Google::Apis::IdsV1::Operation::Representation
223
+
224
+ end
225
+ end
226
+
227
+ class Location
228
+ # @private
229
+ class Representation < Google::Apis::Core::JsonRepresentation
230
+ property :display_name, as: 'displayName'
231
+ hash :labels, as: 'labels'
232
+ property :location_id, as: 'locationId'
233
+ hash :metadata, as: 'metadata'
234
+ property :name, as: 'name'
235
+ end
236
+ end
237
+
238
+ class Operation
239
+ # @private
240
+ class Representation < Google::Apis::Core::JsonRepresentation
241
+ property :done, as: 'done'
242
+ property :error, as: 'error', class: Google::Apis::IdsV1::Status, decorator: Google::Apis::IdsV1::Status::Representation
243
+
244
+ hash :metadata, as: 'metadata'
245
+ property :name, as: 'name'
246
+ hash :response, as: 'response'
247
+ end
248
+ end
249
+
250
+ class OperationMetadata
251
+ # @private
252
+ class Representation < Google::Apis::Core::JsonRepresentation
253
+ property :api_version, as: 'apiVersion'
254
+ property :create_time, as: 'createTime'
255
+ property :end_time, as: 'endTime'
256
+ property :requested_cancellation, as: 'requestedCancellation'
257
+ property :status_message, as: 'statusMessage'
258
+ property :target, as: 'target'
259
+ property :verb, as: 'verb'
260
+ end
261
+ end
262
+
263
+ class Policy
264
+ # @private
265
+ class Representation < Google::Apis::Core::JsonRepresentation
266
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::IdsV1::AuditConfig, decorator: Google::Apis::IdsV1::AuditConfig::Representation
267
+
268
+ collection :bindings, as: 'bindings', class: Google::Apis::IdsV1::Binding, decorator: Google::Apis::IdsV1::Binding::Representation
269
+
270
+ property :etag, :base64 => true, as: 'etag'
271
+ property :version, as: 'version'
272
+ end
273
+ end
274
+
275
+ class SetIamPolicyRequest
276
+ # @private
277
+ class Representation < Google::Apis::Core::JsonRepresentation
278
+ property :policy, as: 'policy', class: Google::Apis::IdsV1::Policy, decorator: Google::Apis::IdsV1::Policy::Representation
279
+
280
+ property :update_mask, as: 'updateMask'
281
+ end
282
+ end
283
+
284
+ class Status
285
+ # @private
286
+ class Representation < Google::Apis::Core::JsonRepresentation
287
+ property :code, as: 'code'
288
+ collection :details, as: 'details'
289
+ property :message, as: 'message'
290
+ end
291
+ end
292
+
293
+ class TestIamPermissionsRequest
294
+ # @private
295
+ class Representation < Google::Apis::Core::JsonRepresentation
296
+ collection :permissions, as: 'permissions'
297
+ end
298
+ end
299
+
300
+ class TestIamPermissionsResponse
301
+ # @private
302
+ class Representation < Google::Apis::Core::JsonRepresentation
303
+ collection :permissions, as: 'permissions'
304
+ end
305
+ end
306
+ end
307
+ end
308
+ end