-
Notifications
You must be signed in to change notification settings - Fork 19
/
tunnel.go
64 lines (49 loc) · 2.36 KB
/
tunnel.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
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// Generated from ../../../cs/src/Contracts/Tunnel.cs
package tunnels
import (
"time"
)
// Data contract for tunnel objects managed through the tunnel service REST API.
type Tunnel struct {
// Gets or sets the ID of the cluster the tunnel was created in.
ClusterID string `json:"clusterId,omitempty"`
// Gets or sets the generated ID of the tunnel, unique within the cluster.
TunnelID string `json:"tunnelId,omitempty"`
// Gets or sets the optional short name (alias) of the tunnel.
//
// The name must be globally unique within the parent domain, and must be a valid
// subdomain.
Name string `json:"name,omitempty"`
// Gets or sets the description of the tunnel.
Description string `json:"description,omitempty"`
// Gets or sets the tags of the tunnel.
Tags []string `json:"tags,omitempty"`
// Gets or sets the optional parent domain of the tunnel, if it is not using the default
// parent domain.
Domain string `json:"domain,omitempty"`
// Gets or sets a dictionary mapping from scopes to tunnel access tokens.
AccessTokens map[TunnelAccessScope]string `json:"accessTokens,omitempty"`
// Gets or sets access control settings for the tunnel.
//
// See `TunnelAccessControl` documentation for details about the access control model.
AccessControl *TunnelAccessControl `json:"accessControl,omitempty"`
// Gets or sets default options for the tunnel.
Options *TunnelOptions `json:"options,omitempty"`
// Gets or sets current connection status of the tunnel.
Status *TunnelStatus `json:"status,omitempty"`
// Gets or sets an array of endpoints where hosts are currently accepting client
// connections to the tunnel.
Endpoints []TunnelEndpoint `json:"endpoints,omitempty"`
// Gets or sets a list of ports in the tunnel.
//
// This optional property enables getting info about all ports in a tunnel at the same
// time as getting tunnel info, or creating one or more ports at the same time as
// creating a tunnel. It is omitted when listing (multiple) tunnels, or when updating
// tunnel properties. (For the latter, use APIs to create/update/delete individual ports
// instead.)
Ports []TunnelPort `json:"ports,omitempty"`
// Gets or sets the time in UTC of tunnel creation.
Created *time.Time `json:"created,omitempty"`
}