github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/manager/dne_rule.go (about) 1 /* Copyright © 2017 VMware, Inc. All Rights Reserved. 2 SPDX-License-Identifier: BSD-2-Clause 3 4 Generated by: https://github.com/swagger-api/swagger-codegen.git */ 5 6 package manager 7 8 import ( 9 "github.com/vmware/go-vmware-nsxt/common" 10 ) 11 12 type DneRule struct { 13 14 // The server will populate this field when returing the resource. Ignored on PUT and POST. 15 Links []common.ResourceLink `json:"_links,omitempty"` 16 17 Schema string `json:"_schema,omitempty"` 18 19 Self *common.SelfResourceLink `json:"_self,omitempty"` 20 21 // The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. 22 Revision int64 `json:"_revision"` 23 24 Owner *common.OwnerResourceLink `json:"_owner,omitempty"` 25 26 // Description of this resource 27 Description string `json:"description,omitempty"` 28 29 // Defaults to ID if not set 30 DisplayName string `json:"display_name,omitempty"` 31 32 // Identifier of the resource 33 Id string `json:"id,omitempty"` 34 35 // The type of this resource. 36 ResourceType string `json:"resource_type,omitempty"` 37 38 // This is a read-only field that for UI display purpose only. It is to show what type of protection the rule's key policy provides. 39 Action string `json:"action,omitempty"` 40 41 // List of object where rule will be enforced. The section level field overrides this one. Null will be treated as any. 42 AppliedTos []common.ResourceReference `json:"applied_tos,omitempty"` 43 44 // User notes specific to the rule. 45 Comments string `json:"comments,omitempty"` 46 47 // List of the destinations. Null will be treated as any. 48 Destinations []common.ResourceReference `json:"destinations,omitempty"` 49 50 // Flag to disable rule. Disabled rule will only be persisted but never provisioned/realized. 51 Disabled bool `json:"disabled,omitempty"` 52 53 // Type of IP packet that should be matched while enforcing the rule. 54 IpProtocol string `json:"ip_protocol,omitempty"` 55 56 // Identifier of key policy. Section's key policy, if exists, overrides Rule's key policy. 57 KeyPolicyIdentifier string `json:"key_policy_identifier,omitempty"` 58 59 // A display name of rule's key policy. This is a read-only field for UI display purpose only. If not set by user, this name will be key policy's UUID. 60 KeyPolicyName string `json:"key_policy_name,omitempty"` 61 62 // Flag to enable packet logging. Default is disabled. 63 Logged bool `json:"logged,omitempty"` 64 65 // User level field which will be printed in CLI and packet logs. 66 RuleTag string `json:"rule_tag,omitempty"` 67 68 // List of the services. Null will be treated as any. 69 Services []DneService `json:"services,omitempty"` 70 71 // List of sources. Null will be treated as any. 72 Sources []common.ResourceReference `json:"sources,omitempty"` 73 }