/
model_entitlements_partial_update.go
44 lines (42 loc) · 2.83 KB
/
model_entitlements_partial_update.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
/*
* Cloudsmith API
*
* The API to the Cloudsmith Service
*
* API version: v1
* Contact: support@cloudsmith.io
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package cloudsmith_api
type EntitlementsPartialUpdate struct {
// If checked, a EULA acceptance is required for this token.
EulaRequired bool `json:"eula_required,omitempty"`
// If enabled, the token will allow downloads based on configured restrictions (if any).
IsActive bool `json:"is_active,omitempty"`
// The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
LimitBandwidth int32 `json:"limit_bandwidth,omitempty"`
// None
LimitBandwidthUnit string `json:"limit_bandwidth_unit,omitempty"`
// The starting date/time the token is allowed to be used from.
LimitDateRangeFrom string `json:"limit_date_range_from,omitempty"`
// The ending date/time the token is allowed to be used until.
LimitDateRangeTo string `json:"limit_date_range_to,omitempty"`
// The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
LimitNumClients int32 `json:"limit_num_clients,omitempty"`
// The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.
LimitNumDownloads int32 `json:"limit_num_downloads,omitempty"`
// The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata.
LimitPackageQuery string `json:"limit_package_query,omitempty"`
// The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash.
LimitPathQuery string `json:"limit_path_query,omitempty"`
// None
Metadata interface{} `json:"metadata,omitempty"`
// None
Name string `json:"name,omitempty"`
// The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero.
ScheduledResetAt string `json:"scheduled_reset_at,omitempty"`
// None
ScheduledResetPeriod string `json:"scheduled_reset_period,omitempty"`
// None
Token string `json:"token,omitempty"`
}