-
Notifications
You must be signed in to change notification settings - Fork 82
/
client_options.go
108 lines (89 loc) · 4.42 KB
/
client_options.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
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
// Code generated. DO NOT EDIT.
// File Storage API
//
// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm).
//
package filestorage
import (
"github.com/oracle/oci-go-sdk/common"
)
// ClientOptions NFS export options applied to a specified set of
// clients. Only governs access through the associated
// export. Access to the same file system through a different
// export (on the same or different mount target) will be governed
// by that export's export options.
type ClientOptions struct {
// Clients these options should apply to. Must be a either
// single IPv4 address or single IPv4 CIDR block.
// **Note:** Access will also be limited by any applicable VCN
// security rules and the ability to route IP packets to the
// mount target. Mount targets do not have Internet-routable IP addresses.
Source *string `mandatory:"true" json:"source"`
// If `true`, clients accessing the file system through this
// export must connect from a privileged source port. If
// unspecified, defaults to `true`.
RequirePrivilegedSourcePort *bool `mandatory:"false" json:"requirePrivilegedSourcePort"`
// Type of access to grant clients using the file system
// through this export. If unspecified defaults to `READ_ONLY`.
Access ClientOptionsAccessEnum `mandatory:"false" json:"access,omitempty"`
// Used when clients accessing the file system through this export
// have their UID and GID remapped to 'anonymousUid' and
// 'anonymousGid'. If `ALL`, all users and groups are remapped;
// if `ROOT`, only the root user and group (UID/GID 0) are
// remapped; if `NONE`, no remapping is done. If unspecified,
// defaults to `ROOT`.
IdentitySquash ClientOptionsIdentitySquashEnum `mandatory:"false" json:"identitySquash,omitempty"`
// UID value to remap to when squashing a client UID (see
// identitySquash for more details.) If unspecified, defaults
// to `65534`.
AnonymousUid *int64 `mandatory:"false" json:"anonymousUid"`
// GID value to remap to when squashing a client GID (see
// identitySquash for more details.) If unspecified defaults
// to `65534`.
AnonymousGid *int64 `mandatory:"false" json:"anonymousGid"`
}
func (m ClientOptions) String() string {
return common.PointerString(m)
}
// ClientOptionsAccessEnum Enum with underlying type: string
type ClientOptionsAccessEnum string
// Set of constants representing the allowable values for ClientOptionsAccessEnum
const (
ClientOptionsAccessWrite ClientOptionsAccessEnum = "READ_WRITE"
ClientOptionsAccessOnly ClientOptionsAccessEnum = "READ_ONLY"
)
var mappingClientOptionsAccess = map[string]ClientOptionsAccessEnum{
"READ_WRITE": ClientOptionsAccessWrite,
"READ_ONLY": ClientOptionsAccessOnly,
}
// GetClientOptionsAccessEnumValues Enumerates the set of values for ClientOptionsAccessEnum
func GetClientOptionsAccessEnumValues() []ClientOptionsAccessEnum {
values := make([]ClientOptionsAccessEnum, 0)
for _, v := range mappingClientOptionsAccess {
values = append(values, v)
}
return values
}
// ClientOptionsIdentitySquashEnum Enum with underlying type: string
type ClientOptionsIdentitySquashEnum string
// Set of constants representing the allowable values for ClientOptionsIdentitySquashEnum
const (
ClientOptionsIdentitySquashNone ClientOptionsIdentitySquashEnum = "NONE"
ClientOptionsIdentitySquashRoot ClientOptionsIdentitySquashEnum = "ROOT"
ClientOptionsIdentitySquashAll ClientOptionsIdentitySquashEnum = "ALL"
)
var mappingClientOptionsIdentitySquash = map[string]ClientOptionsIdentitySquashEnum{
"NONE": ClientOptionsIdentitySquashNone,
"ROOT": ClientOptionsIdentitySquashRoot,
"ALL": ClientOptionsIdentitySquashAll,
}
// GetClientOptionsIdentitySquashEnumValues Enumerates the set of values for ClientOptionsIdentitySquashEnum
func GetClientOptionsIdentitySquashEnumValues() []ClientOptionsIdentitySquashEnum {
values := make([]ClientOptionsIdentitySquashEnum, 0)
for _, v := range mappingClientOptionsIdentitySquash {
values = append(values, v)
}
return values
}