github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/common/managed_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 ManagedResource 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  	// Timestamp of resource creation
    21  	CreateTime int64 `json:"_create_time,omitempty"`
    22  
    23  	// ID of the user who created this resource
    24  	CreateUser string `json:"_create_user,omitempty"`
    25  
    26  	// Timestamp of last modification
    27  	LastModifiedTime int64 `json:"_last_modified_time,omitempty"`
    28  
    29  	// ID of the user who last modified this resource
    30  	LastModifiedUser string `json:"_last_modified_user,omitempty"`
    31  
    32  	// Indicates system owned resource
    33  	SystemOwned bool `json:"_system_owned,omitempty"`
    34  
    35  	// Description of this resource
    36  	Description string `json:"description,omitempty"`
    37  
    38  	// Defaults to ID if not set
    39  	DisplayName string `json:"display_name,omitempty"`
    40  
    41  	// Unique identifier of this resource
    42  	Id string `json:"id,omitempty"`
    43  
    44  	// The type of this resource.
    45  	ResourceType string `json:"resource_type,omitempty"`
    46  
    47  	// Opaque identifiers meaningful to the API user
    48  	Tags []Tag `json:"tags,omitempty"`
    49  }