PlanetaryComputerModelFactory.StacLink Method

Definition

public static Azure.Analytics.PlanetaryComputer.StacLink StacLink(string rel = default, string title = default, Azure.Analytics.PlanetaryComputer.StacLinkKind? kind = default, string href = default, string hreflang = default, int? length = default, Azure.Analytics.PlanetaryComputer.StacLinkMethod? method = default, System.Collections.Generic.IDictionary<string,string> headers = default, System.Collections.Generic.IDictionary<string,BinaryData> body = default, bool? merge = default);
static member StacLink : string * string * Nullable<Azure.Analytics.PlanetaryComputer.StacLinkKind> * string * string * Nullable<int> * Nullable<Azure.Analytics.PlanetaryComputer.StacLinkMethod> * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IDictionary<string, BinaryData> * Nullable<bool> -> Azure.Analytics.PlanetaryComputer.StacLink
Public Shared Function StacLink (Optional rel As String = Nothing, Optional title As String = Nothing, Optional kind As Nullable(Of StacLinkKind) = Nothing, Optional href As String = Nothing, Optional hreflang As String = Nothing, Optional length As Nullable(Of Integer) = Nothing, Optional method As Nullable(Of StacLinkMethod) = Nothing, Optional headers As IDictionary(Of String, String) = Nothing, Optional body As IDictionary(Of String, BinaryData) = Nothing, Optional merge As Nullable(Of Boolean) = Nothing) As StacLink

Parameters

rel
String

The relationship type of the link.

title
String

The title of the link.

kind
Nullable<StacLinkKind>

The MIME type of the linked resource.

href
String

The URL of the link.

hreflang
String

The language of the linked resource.

length
Nullable<Int32>

The length of the linked resource.

method
Nullable<StacLinkMethod>

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

headers
IDictionary<String,String>

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

body
IDictionary<String,BinaryData>

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

merge
Nullable<Boolean>

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.

Returns

A new StacLink instance for mocking.

Applies to