-
Notifications
You must be signed in to change notification settings - Fork 631
/
Copy pathaliases.go
421 lines (305 loc) · 13.3 KB
/
aliases.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
package snippets
import (
"github.com/cloudflare/cloudflare-go/v4/internal/apierror"
"github.com/cloudflare/cloudflare-go/v4/shared"
)
type Error = apierror.Error
// This is an alias to an internal type.
type ASN = shared.ASN
// This is an alias to an internal type.
type ASNParam = shared.ASNParam
// This is an alias to an internal type.
type AuditLog = shared.AuditLog
// This is an alias to an internal type.
type AuditLogAction = shared.AuditLogAction
// This is an alias to an internal type.
type AuditLogActor = shared.AuditLogActor
// The type of actor, whether a User, Cloudflare Admin, or an Automated System.
//
// This is an alias to an internal type.
type AuditLogActorType = shared.AuditLogActorType
// This is an alias to an internal value.
const AuditLogActorTypeUser = shared.AuditLogActorTypeUser
// This is an alias to an internal value.
const AuditLogActorTypeAdmin = shared.AuditLogActorTypeAdmin
// This is an alias to an internal value.
const AuditLogActorTypeCloudflare = shared.AuditLogActorTypeCloudflare
// This is an alias to an internal type.
type AuditLogOwner = shared.AuditLogOwner
// This is an alias to an internal type.
type AuditLogResource = shared.AuditLogResource
// The Certificate Authority that will issue the certificate
//
// This is an alias to an internal type.
type CertificateCA = shared.CertificateCA
// This is an alias to an internal value.
const CertificateCADigicert = shared.CertificateCADigicert
// This is an alias to an internal value.
const CertificateCAGoogle = shared.CertificateCAGoogle
// This is an alias to an internal value.
const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt
// This is an alias to an internal value.
const CertificateCASSLCom = shared.CertificateCASSLCom
// Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa),
// or "keyless-certificate" (for Keyless SSL servers).
//
// This is an alias to an internal type.
type CertificateRequestType = shared.CertificateRequestType
// This is an alias to an internal value.
const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA
// This is an alias to an internal value.
const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC
// This is an alias to an internal value.
const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate
// A Cloudflare Tunnel that connects your origin to Cloudflare's edge.
//
// This is an alias to an internal type.
type CloudflareTunnel = shared.CloudflareTunnel
// This is an alias to an internal type.
type CloudflareTunnelConnection = shared.CloudflareTunnelConnection
// The status of the tunnel. Valid values are `inactive` (tunnel has never been
// run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy
// state), `healthy` (tunnel is active and able to serve traffic), or `down`
// (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).
//
// This is an alias to an internal type.
type CloudflareTunnelStatus = shared.CloudflareTunnelStatus
// This is an alias to an internal value.
const CloudflareTunnelStatusInactive = shared.CloudflareTunnelStatusInactive
// This is an alias to an internal value.
const CloudflareTunnelStatusDegraded = shared.CloudflareTunnelStatusDegraded
// This is an alias to an internal value.
const CloudflareTunnelStatusHealthy = shared.CloudflareTunnelStatusHealthy
// This is an alias to an internal value.
const CloudflareTunnelStatusDown = shared.CloudflareTunnelStatusDown
// The type of tunnel.
//
// This is an alias to an internal type.
type CloudflareTunnelTunType = shared.CloudflareTunnelTunType
// This is an alias to an internal value.
const CloudflareTunnelTunTypeCfdTunnel = shared.CloudflareTunnelTunTypeCfdTunnel
// This is an alias to an internal value.
const CloudflareTunnelTunTypeWARPConnector = shared.CloudflareTunnelTunTypeWARPConnector
// This is an alias to an internal value.
const CloudflareTunnelTunTypeWARP = shared.CloudflareTunnelTunTypeWARP
// This is an alias to an internal value.
const CloudflareTunnelTunTypeMagic = shared.CloudflareTunnelTunTypeMagic
// This is an alias to an internal value.
const CloudflareTunnelTunTypeIPSec = shared.CloudflareTunnelTunTypeIPSec
// This is an alias to an internal value.
const CloudflareTunnelTunTypeGRE = shared.CloudflareTunnelTunTypeGRE
// This is an alias to an internal value.
const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI
// This is an alias to an internal type.
type ErrorData = shared.ErrorData
// This is an alias to an internal type.
type ErrorDataSource = shared.ErrorDataSource
// This is an alias to an internal type.
type Member = shared.Member
// This is an alias to an internal type.
type MemberPolicy = shared.MemberPolicy
// Allow or deny operations against the resources.
//
// This is an alias to an internal type.
type MemberPoliciesAccess = shared.MemberPoliciesAccess
// This is an alias to an internal value.
const MemberPoliciesAccessAllow = shared.MemberPoliciesAccessAllow
// This is an alias to an internal value.
const MemberPoliciesAccessDeny = shared.MemberPoliciesAccessDeny
// A named group of permissions that map to a group of operations against
// resources.
//
// This is an alias to an internal type.
type MemberPoliciesPermissionGroup = shared.MemberPoliciesPermissionGroup
// Attributes associated to the permission group.
//
// This is an alias to an internal type.
type MemberPoliciesPermissionGroupsMeta = shared.MemberPoliciesPermissionGroupsMeta
// A group of scoped resources.
//
// This is an alias to an internal type.
type MemberPoliciesResourceGroup = shared.MemberPoliciesResourceGroup
// A scope is a combination of scope objects which provides additional context.
//
// This is an alias to an internal type.
type MemberPoliciesResourceGroupsScope = shared.MemberPoliciesResourceGroupsScope
// A scope object represents any resource that can have actions applied against
// invite.
//
// This is an alias to an internal type.
type MemberPoliciesResourceGroupsScopeObject = shared.MemberPoliciesResourceGroupsScopeObject
// Attributes associated to the resource group.
//
// This is an alias to an internal type.
type MemberPoliciesResourceGroupsMeta = shared.MemberPoliciesResourceGroupsMeta
// A member's status in the account.
//
// This is an alias to an internal type.
type MemberStatus = shared.MemberStatus
// This is an alias to an internal value.
const MemberStatusAccepted = shared.MemberStatusAccepted
// This is an alias to an internal value.
const MemberStatusPending = shared.MemberStatusPending
// Details of the user associated to the membership.
//
// This is an alias to an internal type.
type MemberUser = shared.MemberUser
// This is an alias to an internal type.
type Permission = shared.Permission
// This is an alias to an internal type.
type PermissionGrant = shared.PermissionGrant
// This is an alias to an internal type.
type PermissionGrantParam = shared.PermissionGrantParam
// The rate plan applied to the subscription.
//
// This is an alias to an internal type.
type RatePlan = shared.RatePlan
// The ID of the rate plan.
//
// This is an alias to an internal type.
type RatePlanID = shared.RatePlanID
// This is an alias to an internal value.
const RatePlanIDFree = shared.RatePlanIDFree
// This is an alias to an internal value.
const RatePlanIDLite = shared.RatePlanIDLite
// This is an alias to an internal value.
const RatePlanIDPro = shared.RatePlanIDPro
// This is an alias to an internal value.
const RatePlanIDProPlus = shared.RatePlanIDProPlus
// This is an alias to an internal value.
const RatePlanIDBusiness = shared.RatePlanIDBusiness
// This is an alias to an internal value.
const RatePlanIDEnterprise = shared.RatePlanIDEnterprise
// This is an alias to an internal value.
const RatePlanIDPartnersFree = shared.RatePlanIDPartnersFree
// This is an alias to an internal value.
const RatePlanIDPartnersPro = shared.RatePlanIDPartnersPro
// This is an alias to an internal value.
const RatePlanIDPartnersBusiness = shared.RatePlanIDPartnersBusiness
// This is an alias to an internal value.
const RatePlanIDPartnersEnterprise = shared.RatePlanIDPartnersEnterprise
// The rate plan applied to the subscription.
//
// This is an alias to an internal type.
type RatePlanParam = shared.RatePlanParam
// This is an alias to an internal type.
type ResponseInfo = shared.ResponseInfo
// This is an alias to an internal type.
type Role = shared.Role
// This is an alias to an internal type.
type RolePermissions = shared.RolePermissions
// This is an alias to an internal type.
type RoleParam = shared.RoleParam
// This is an alias to an internal type.
type RolePermissionsParam = shared.RolePermissionsParam
// Direction to order DNS records in.
//
// This is an alias to an internal type.
type SortDirection = shared.SortDirection
// This is an alias to an internal value.
const SortDirectionAsc = shared.SortDirectionAsc
// This is an alias to an internal value.
const SortDirectionDesc = shared.SortDirectionDesc
// This is an alias to an internal type.
type Subscription = shared.Subscription
// How often the subscription is renewed automatically.
//
// This is an alias to an internal type.
type SubscriptionFrequency = shared.SubscriptionFrequency
// This is an alias to an internal value.
const SubscriptionFrequencyWeekly = shared.SubscriptionFrequencyWeekly
// This is an alias to an internal value.
const SubscriptionFrequencyMonthly = shared.SubscriptionFrequencyMonthly
// This is an alias to an internal value.
const SubscriptionFrequencyQuarterly = shared.SubscriptionFrequencyQuarterly
// This is an alias to an internal value.
const SubscriptionFrequencyYearly = shared.SubscriptionFrequencyYearly
// The state that the subscription is in.
//
// This is an alias to an internal type.
type SubscriptionState = shared.SubscriptionState
// This is an alias to an internal value.
const SubscriptionStateTrial = shared.SubscriptionStateTrial
// This is an alias to an internal value.
const SubscriptionStateProvisioned = shared.SubscriptionStateProvisioned
// This is an alias to an internal value.
const SubscriptionStatePaid = shared.SubscriptionStatePaid
// This is an alias to an internal value.
const SubscriptionStateAwaitingPayment = shared.SubscriptionStateAwaitingPayment
// This is an alias to an internal value.
const SubscriptionStateCancelled = shared.SubscriptionStateCancelled
// This is an alias to an internal value.
const SubscriptionStateFailed = shared.SubscriptionStateFailed
// This is an alias to an internal value.
const SubscriptionStateExpired = shared.SubscriptionStateExpired
// This is an alias to an internal type.
type SubscriptionParam = shared.SubscriptionParam
// This is an alias to an internal type.
type Token = shared.Token
// This is an alias to an internal type.
type TokenCondition = shared.TokenCondition
// Client IP restrictions.
//
// This is an alias to an internal type.
type TokenConditionRequestIP = shared.TokenConditionRequestIP
// Status of the token.
//
// This is an alias to an internal type.
type TokenStatus = shared.TokenStatus
// This is an alias to an internal value.
const TokenStatusActive = shared.TokenStatusActive
// This is an alias to an internal value.
const TokenStatusDisabled = shared.TokenStatusDisabled
// This is an alias to an internal value.
const TokenStatusExpired = shared.TokenStatusExpired
// This is an alias to an internal type.
type TokenParam = shared.TokenParam
// This is an alias to an internal type.
type TokenConditionParam = shared.TokenConditionParam
// Client IP restrictions.
//
// This is an alias to an internal type.
type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam
// IPv4/IPv6 CIDR.
//
// This is an alias to an internal type.
type TokenConditionCIDRList = shared.TokenConditionCIDRList
// IPv4/IPv6 CIDR.
//
// This is an alias to an internal type.
type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam
// This is an alias to an internal type.
type TokenPolicy = shared.TokenPolicy
// Allow or deny operations against the resources.
//
// This is an alias to an internal type.
type TokenPolicyEffect = shared.TokenPolicyEffect
// This is an alias to an internal value.
const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow
// This is an alias to an internal value.
const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny
// A named group of permissions that map to a group of operations against
// resources.
//
// This is an alias to an internal type.
type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup
// Attributes associated to the permission group.
//
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta
// This is an alias to an internal type.
type TokenPolicyParam = shared.TokenPolicyParam
// A named group of permissions that map to a group of operations against
// resources.
//
// This is an alias to an internal type.
type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam
// Attributes associated to the permission group.
//
// This is an alias to an internal type.
type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam
// The token value.
//
// This is an alias to an internal type.
type TokenValue = shared.TokenValue