github.com/DaAlbrecht/cf-cli@v0.0.0-20231128151943-1fe19bb400b9/resources/api_links_resource.go (about) 1 package resources 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 indicate the desired action to be performed on the identified 8 // resource. 9 Method string `json:"method"` 10 11 // Meta contains additional metadata about the API. 12 Meta APILinkMeta `json:"meta"` 13 } 14 15 type APILinkMeta struct { 16 // Version of the API 17 Version string `json:"version"` 18 19 // Fingerprint to authenticate api with 20 HostKeyFingerprint string `json:"host_key_fingerprint"` 21 22 // Identifier for UAA queries 23 OAuthClient string `json:"oath_client"` 24 } 25 26 // APILinks is a directory of follow-up urls for the resource. 27 type APILinks map[string]APILink