ArmApiManagementModelFactory.ApiRevisionContract Method

Definition

Initializes a new instance of ApiRevisionContract.

public static Azure.ResourceManager.ApiManagement.Models.ApiRevisionContract ApiRevisionContract (string apiId = default, string apiRevision = default, DateTimeOffset? createdOn = default, DateTimeOffset? updatedOn = default, string description = default, string privateUriString = default, bool? isOnline = default, bool? isCurrent = default);
static member ApiRevisionContract : string * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * string * Nullable<bool> * Nullable<bool> -> Azure.ResourceManager.ApiManagement.Models.ApiRevisionContract
Public Shared Function ApiRevisionContract (Optional apiId As String = Nothing, Optional apiRevision As String = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional updatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional description As String = Nothing, Optional privateUriString As String = Nothing, Optional isOnline As Nullable(Of Boolean) = Nothing, Optional isCurrent As Nullable(Of Boolean) = Nothing) As ApiRevisionContract

Parameters

apiId
String

Identifier of the API Revision.

apiRevision
String

Revision number of API.

createdOn
Nullable<DateTimeOffset>

The time the API Revision was created. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.

updatedOn
Nullable<DateTimeOffset>

The time the API Revision were updated. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.

description
String

Description of the API Revision.

privateUriString
String

Gateway URL for accessing the non-current API Revision.

isOnline
Nullable<Boolean>

Indicates if API revision is the current api revision.

isCurrent
Nullable<Boolean>

Indicates if API revision is accessible via the gateway.

Returns

A new ApiRevisionContract instance for mocking.

Applies to