-
Notifications
You must be signed in to change notification settings - Fork 18
/
model_github_configure_request.go
53 lines (38 loc) · 2.53 KB
/
model_github_configure_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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
//
// Code generated with OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package schema
// GithubConfigureRequest struct for GithubConfigureRequest
type GithubConfigureRequest struct {
// The API endpoint to use. Useful if you are running GitHub Enterprise or an API-compatible authentication server.
BaseUrl string `json:"base_url,omitempty"`
// Use \"token_max_ttl\" instead. If this and \"token_max_ttl\" are both specified, only \"token_max_ttl\" will be used.
// Deprecated
MaxTtl string `json:"max_ttl,omitempty"`
// The organization users must be part of
Organization string `json:"organization"`
// The ID of the organization users must be part of
OrganizationId int64 `json:"organization_id,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. This will apply to all tokens generated by this auth method, in addition to any policies configured for specific users/groups.
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"`
// Use \"token_ttl\" instead. If this and \"token_ttl\" are both specified, only \"token_ttl\" will be used.
// Deprecated
Ttl string `json:"ttl,omitempty"`
}