StacLink Class

Definition

public class StacLink : System.ClientModel.Primitives.IJsonModel<Azure.Analytics.PlanetaryComputer.StacLink>, System.ClientModel.Primitives.IPersistableModel<Azure.Analytics.PlanetaryComputer.StacLink>
type StacLink = class
    interface IJsonModel<StacLink>
    interface IPersistableModel<StacLink>
Public Class StacLink
Implements IJsonModel(Of StacLink), IPersistableModel(Of StacLink)
Inheritance
StacLink
Implements

Constructors

Name Description
StacLink(String)

Initializes a new instance of StacLink.

Properties

Name Description
Body

For POST requests, the resource can specify the HTTP body as a JSON object.

To assign an object to the value of this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"). : Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""). : Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }). : Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"). : Creates a payload of { "key": "value" }.

Headers

Object key-value pairs that map to headers. Example: { "Accept": "application/json" }.

Href

The URL of the link.

Hreflang

The language of the linked resource.

Kind

The MIME type of the linked resource.

Length

The length of the linked resource.

Merge

Indicates whether the client is expected to merge the body value into the current request body before following the link. This is only valid when the server is responding to a POST request. Default: false.

Method

Specifies the HTTP method that the resource expects. Default: GET.

Rel

The relationship type of the link.

Title

The title of the link.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<StacLink>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<StacLink>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<StacLink>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<StacLink>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<StacLink>.Write(ModelReaderWriterOptions)

Applies to