-
Notifications
You must be signed in to change notification settings - Fork 18
/
model_oci_write_role_request.go
39 lines (28 loc) · 1.85 KB
/
model_oci_write_role_request.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
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
//
// Code generated with OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package schema
// OciWriteRoleRequest struct for OciWriteRoleRequest
type OciWriteRoleRequest struct {
// A comma separated list of Group or Dynamic Group OCIDs that are allowed to take this role.
OcidList []string `json:"ocid_list,omitempty"`
// Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token.
TokenBoundCidrs []string `json:"token_bound_cidrs,omitempty"`
// If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed.
TokenExplicitMaxTtl string `json:"token_explicit_max_ttl,omitempty"`
// The maximum lifetime of the generated token
TokenMaxTtl string `json:"token_max_ttl,omitempty"`
// If true, the 'default' policy will not automatically be added to generated tokens
TokenNoDefaultPolicy bool `json:"token_no_default_policy,omitempty"`
// The maximum number of times a token may be used, a value of zero means unlimited
TokenNumUses int32 `json:"token_num_uses,omitempty"`
// If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. \"24h\").
TokenPeriod string `json:"token_period,omitempty"`
// Comma-separated list of policies
TokenPolicies []string `json:"token_policies,omitempty"`
// The initial ttl of the token to generate
TokenTtl string `json:"token_ttl,omitempty"`
// The type of token to generate, service or batch
TokenType string `json:"token_type,omitempty"`
}