/
container_network_policy.go
50 lines (47 loc) · 1.96 KB
/
container_network_policy.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
/*
* NSX-T Manager API
*
* VMware NSX-T Manager REST API
*
* API version: 3.0.0.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package containerinventory
import (
"github.com/vmware/go-vmware-nsxt/common"
)
// Network policy applied to container.
type ContainerNetworkPolicy struct {
// The server will populate this field when returing the resource. Ignored on PUT and POST.
Links []common.ResourceLink `json:"_links,omitempty"`
// Schema for this resource
Schema string `json:"_schema,omitempty"`
// Link to this resource
Self *common.SelfResourceLink `json:"_self,omitempty"`
// Timestamp of last modification
LastSyncTime int64 `json:"_last_sync_time,omitempty"`
// Description of this resource
Description string `json:"description,omitempty"`
// Defaults to ID if not set
DisplayName string `json:"display_name,omitempty"`
// The type of this resource.
ResourceType string `json:"resource_type"`
// Opaque identifiers meaningful to the API user
Tags []common.Tag `json:"tags,omitempty"`
// Identifier of the container cluster this network policy belongs to.
ContainerClusterId string `json:"container_cluster_id,omitempty"`
// Identifier of the project which this network policy belongs to.
ContainerProjectId string `json:"container_project_id,omitempty"`
// Identifier of the container network policy.
ExternalId string `json:"external_id"`
// List of network errors related to container network policy.
NetworkErrors []common.NetworkError `json:"network_errors,omitempty"`
// Network status of container network policy.
NetworkStatus string `json:"network_status,omitempty"`
// Array of additional specific properties of container network policy in key-value format.
OriginProperties []common.KeyValuePair `json:"origin_properties,omitempty"`
// Type e.g. Network Policy, ASG.
PolicyType string `json:"policy_type,omitempty"`
// Container network policy specification.
Spec string `json:"spec,omitempty"`
}