github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/manager/ns_group_simple_expression.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 NsGroupSimpleExpression struct { 13 ResourceType string `json:"resource_type"` 14 15 // Operator of the expression 16 Op string `json:"op"` 17 18 // Field of the resource on which this expression is evaluated 19 TargetProperty string `json:"target_property"` 20 21 // Reference of the target. Will be populated when the property is a resource id, the op (operator) is EQUALS and populate_references is set to be true. 22 TargetResource *common.ResourceReference `json:"target_resource,omitempty"` 23 24 // Type of the resource on which this expression is evaluated 25 TargetType string `json:"target_type"` 26 27 // Value that satisfies this expression 28 Value string `json:"value"` 29 } 30 31 // List of NSGroupSimpleExpressions 32 type NsGroupSimpleExpressionList struct { 33 34 // List of NSGroupSimpleExpressions to be passed to add and remove APIs 35 Members []NsGroupSimpleExpression `json:"members"` 36 }