github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/common/embedded_resource.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 common 7 8 type EmbeddedResource struct { 9 10 // The server will populate this field when returing the resource. Ignored on PUT and POST. 11 Links []ResourceLink `json:"_links,omitempty"` 12 13 Schema string `json:"_schema,omitempty"` 14 15 Self *SelfResourceLink `json:"_self,omitempty"` 16 17 // 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. 18 Revision int64 `json:"_revision"` 19 20 Owner *OwnerResourceLink `json:"_owner,omitempty"` 21 22 // Description of this resource 23 Description string `json:"description,omitempty"` 24 25 // Defaults to ID if not set 26 DisplayName string `json:"display_name,omitempty"` 27 28 // Identifier of the resource 29 Id string `json:"id,omitempty"` 30 31 // The type of this resource. 32 ResourceType string `json:"resource_type,omitempty"` 33 }