github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+incompatible/api/cloudcontroller/ccv3/api_links.go (about)

     1  package ccv3
     2  
     3  // APILink represents a generic link from a response object.
     4  type APILink struct {
     5  	// HREF is the fully qualified URL for the link.
     6  	HREF   string `json:"href"`
     7  	Method string `json:"method"`
     8  
     9  	// Meta contains additional metadata about the API.
    10  	Meta struct {
    11  		// Version of the API
    12  		Version string `json:"version"`
    13  
    14  		// Fingerprint to authenticate api with
    15  		HostKeyFingerprint string `json:"host_key_fingerprint"`
    16  
    17  		// Identifier for UAA queries
    18  		OAuthClient string `json:"oath_client"`
    19  	} `json:"meta"`
    20  }
    21  
    22  // APILinks is a directory of follow-up urls for the resource.
    23  type APILinks map[string]APILink