You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmdNfsAttach:=CmdBuilder(cmd, nfsAttach, "attach [flags]", "Attach an NFS share to a VPC", "Attaches an NFS share to a VPC with the given ID and region.", Writer)
78
79
AddStringFlag(cmdNfsAttach, "id", "", "", "the ID of the NFS share", requiredOpt())
79
80
AddStringFlag(cmdNfsAttach, "region", "r", "", "the region where the NFS share resides", requiredOpt())
80
-
AddStringFlag(cmdNfsAttach, "vpc_id", "", "", "the id of the VPC we want to attach NFS share to", requiredOpt())
81
+
AddStringFlag(cmdNfsAttach, "vpc-id", "", "", "the id of the VPC we want to attach NFS share to", requiredOpt())
81
82
AddBoolFlag(cmdNfsAttach, doctl.ArgCommandWait, "", false, "Wait for action to complete")
cmdNfsDetach:=CmdBuilder(cmd, nfsDetach, "detach [flags]", "Detach an NFS share from a VPC", "Detaches an NFS share from a VPC with the given ID and region.", Writer)
86
87
AddStringFlag(cmdNfsDetach, "id", "", "", "the ID of the NFS share", requiredOpt())
87
88
AddStringFlag(cmdNfsDetach, "region", "r", "", "the region where the NFS share resides", requiredOpt())
88
-
AddStringFlag(cmdNfsDetach, "vpc_id", "", "", "the id of the VPC we want to detach NFS share from", requiredOpt())
89
+
AddStringFlag(cmdNfsDetach, "vpc-id", "", "", "the id of the VPC we want to detach NFS share from", requiredOpt())
89
90
AddBoolFlag(cmdNfsDetach, doctl.ArgCommandWait, "", false, "Wait for action to complete")
cmdNfsReassign:=CmdBuilder(cmd, nfsReassign, "reassign [flags]", "Reassign an NFS share between VPCs", "Reassigns an NFS share from one VPC to another with the given ID.", Writer)
94
95
AddStringFlag(cmdNfsReassign, "id", "", "", "the ID of the NFS share", requiredOpt())
Long: "The commands under `doctl nfs access-point` are for managing NFS share access points.",
121
+
},
122
+
}
123
+
124
+
create:=CmdBuilder(cmd, nfsAccessPointCreate, "create [flags]", "Create an NFS access point", "Create an NFS access point for a share.", Writer, displayerType(&displayers.NfsAction{}), overrideCmdNS("nfs-access-point"))
125
+
AddStringFlag(create, "share-id", "", "", "the ID of the NFS share", requiredOpt())
126
+
AddStringFlag(create, "name", "n", "", "the access point name", requiredOpt())
127
+
AddStringFlag(create, "path", "", "", "the export path for the access point, must start with /", requiredOpt())
AddStringFlag(create, "anonuid", "", "65534", "anon uid for squashed users")
131
+
AddStringFlag(create, "anongid", "", "65534", "anon gid for squashed users")
132
+
AddBoolFlag(create, "identity-enforcement-enabled", "", false, "enable identity enforcement for the export")
133
+
AddStringFlag(create, "vpc-id", "", "", "the VPC ID for this access point", requiredOpt())
134
+
135
+
get:=CmdBuilder(cmd, nfsAccessPointGet, "get [flags]", "Get an NFS access point", "Get an NFS access point by ID.", Writer, displayerType(&displayers.NfsAccessPoint{}), overrideCmdNS("nfs-access-point"))
136
+
AddStringFlag(get, "id", "", "", "the ID of the NFS access point", requiredOpt())
137
+
138
+
list:=CmdBuilder(cmd, nfsAccessPointList, "list [flags]", "List NFS access points for a share", "List NFS access points for a share.", Writer, aliasOpt("ls"), displayerType(&displayers.NfsAccessPoint{}), overrideCmdNS("nfs-access-point"))
139
+
AddStringFlag(list, "share-id", "", "", "the ID of the NFS share", requiredOpt())
deleteCmd:=CmdBuilder(cmd, nfsAccessPointDelete, "delete [flags]", "Delete an NFS access point", "Delete an NFS access point by ID.", Writer, aliasOpt("rm"), displayerType(&displayers.NfsAction{}), overrideCmdNS("nfs-access-point"))
143
+
AddStringFlag(deleteCmd, "id", "", "", "the ID of the NFS access point", requiredOpt())
0 commit comments