github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/containerinventory/container_network_policy.go (about) 1 /* 2 * NSX-T Manager API 3 * 4 * VMware NSX-T Manager REST API 5 * 6 * API version: 3.0.0.0.0 7 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 */ 9 10 package containerinventory 11 12 import ( 13 "github.com/vmware/go-vmware-nsxt/common" 14 ) 15 16 // Network policy applied to container. 17 type ContainerNetworkPolicy struct { 18 // The server will populate this field when returing the resource. Ignored on PUT and POST. 19 Links []common.ResourceLink `json:"_links,omitempty"` 20 // Schema for this resource 21 Schema string `json:"_schema,omitempty"` 22 // Link to this resource 23 Self *common.SelfResourceLink `json:"_self,omitempty"` 24 // Timestamp of last modification 25 LastSyncTime int64 `json:"_last_sync_time,omitempty"` 26 // Description of this resource 27 Description string `json:"description,omitempty"` 28 // Defaults to ID if not set 29 DisplayName string `json:"display_name,omitempty"` 30 // The type of this resource. 31 ResourceType string `json:"resource_type"` 32 // Opaque identifiers meaningful to the API user 33 Tags []common.Tag `json:"tags,omitempty"` 34 // Identifier of the container cluster this network policy belongs to. 35 ContainerClusterId string `json:"container_cluster_id,omitempty"` 36 // Identifier of the project which this network policy belongs to. 37 ContainerProjectId string `json:"container_project_id,omitempty"` 38 // Identifier of the container network policy. 39 ExternalId string `json:"external_id"` 40 // List of network errors related to container network policy. 41 NetworkErrors []common.NetworkError `json:"network_errors,omitempty"` 42 // Network status of container network policy. 43 NetworkStatus string `json:"network_status,omitempty"` 44 // Array of additional specific properties of container network policy in key-value format. 45 OriginProperties []common.KeyValuePair `json:"origin_properties,omitempty"` 46 // Type e.g. Network Policy, ASG. 47 PolicyType string `json:"policy_type,omitempty"` 48 // Container network policy specification. 49 Spec string `json:"spec,omitempty"` 50 }