Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class AzureNetAppFilesManagementClientContext extends msRestAzure.AzureSe

super(credentials, options);

this.apiVersion = '2019-08-01';
this.apiVersion = '2019-10-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Expand Down
125 changes: 116 additions & 9 deletions sdk/netapp/arm-netapp/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,26 +420,30 @@ export interface VolumePropertiesExportPolicy {
*/
export interface ReplicationObject {
/**
* replicationId. Id
* Id
*/
replicationId?: string;
/**
* endpointType. Indicates whether the local volume is the source or destination for the Volume
* Replication
* Indicates whether the local volume is the source or destination for the Volume Replication.
* Possible values include: 'src', 'dst'
*/
endpointType: string;
endpointType?: EndpointType;
/**
* replicationSchedule. Schedule
* Schedule. Possible values include: '_10minutely', 'hourly', 'daily', 'weekly', 'monthly'
*/
replicationSchedule: string;
replicationSchedule: ReplicationSchedule;
/**
* remoteVolumeResourceId. The resource ID of the remote volume.
* The resource ID of the remote volume.
*/
remoteVolumeResourceId: string;
/**
* The remote region for the other end of the Volume Replication.
*/
remoteVolumeRegion?: string;
}

/**
* DataProtection volume, can have a replication object
* DataProtection type volumes include an object containing details of the replication
* @summary DataProtection
*/
export interface VolumePropertiesDataProtection {
Expand Down Expand Up @@ -533,9 +537,40 @@ export interface Volume extends BaseResource {
*/
volumeType?: string;
/**
* DataProtection. DataProtection volume, can have a replication object
* DataProtection. DataProtection type volumes include an object containing details of the
* replication
*/
dataProtection?: VolumePropertiesDataProtection;
/**
* Restoring
*/
isRestoring?: boolean;
}

/**
* Replication status
*/
export interface ReplicationStatus {
/**
* Replication health check
*/
healthy?: boolean;
/**
* Status of the mirror relationship. Possible values include: 'Idle', 'Transferring'
*/
relationshipStatus?: RelationshipStatus;
/**
* The status of the replication. Possible values include: 'Uninitialized', 'Mirrored', 'Broken'
*/
mirrorState?: MirrorState;
/**
* The progress of the replication
*/
totalProgress?: string;
/**
* Displays error message if the replication is in an error state
*/
errorMessage?: string;
}

/**
Expand Down Expand Up @@ -723,6 +758,26 @@ export interface SnapshotPatch extends BaseResource {
tags?: { [propertyName: string]: string };
}

/**
* Authorize request
*/
export interface AuthorizeRequest {
/**
* Resource id
*/
remoteVolumeResourceId?: string;
}

/**
* Optional Parameters.
*/
export interface VolumesAuthorizeReplicationOptionalParams extends msRest.RequestOptionsBase {
/**
* Resource id
*/
remoteVolumeResourceId?: string;
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -816,6 +871,38 @@ export type CheckNameResourceTypes = 'Microsoft.NetApp/netAppAccounts' | 'Micros
*/
export type ServiceLevel = 'Standard' | 'Premium' | 'Ultra';

/**
* Defines values for EndpointType.
* Possible values include: 'src', 'dst'
* @readonly
* @enum {string}
*/
export type EndpointType = 'src' | 'dst';

/**
* Defines values for ReplicationSchedule.
* Possible values include: '_10minutely', 'hourly', 'daily', 'weekly', 'monthly'
* @readonly
* @enum {string}
*/
export type ReplicationSchedule = '_10minutely' | 'hourly' | 'daily' | 'weekly' | 'monthly';

/**
* Defines values for RelationshipStatus.
* Possible values include: 'Idle', 'Transferring'
* @readonly
* @enum {string}
*/
export type RelationshipStatus = 'Idle' | 'Transferring';

/**
* Defines values for MirrorState.
* Possible values include: 'Uninitialized', 'Mirrored', 'Broken'
* @readonly
* @enum {string}
*/
export type MirrorState = 'Uninitialized' | 'Mirrored' | 'Broken';

/**
* Contains response data for the list operation.
*/
Expand Down Expand Up @@ -1156,6 +1243,26 @@ export type VolumesUpdateResponse = Volume & {
};
};

/**
* Contains response data for the replicationStatusMethod operation.
*/
export type VolumesReplicationStatusMethodResponse = ReplicationStatus & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ReplicationStatus;
};
};

/**
* Contains response data for the beginCreateOrUpdate operation.
*/
Expand Down
69 changes: 68 additions & 1 deletion sdk/netapp/arm-netapp/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,6 @@ export const ReplicationObject: msRest.CompositeMapper = {
}
},
endpointType: {
required: true,
serializedName: "endpointType",
type: {
name: "String"
Expand All @@ -707,6 +706,12 @@ export const ReplicationObject: msRest.CompositeMapper = {
type: {
name: "String"
}
},
remoteVolumeRegion: {
serializedName: "remoteVolumeRegion",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -885,6 +890,52 @@ export const Volume: msRest.CompositeMapper = {
name: "Composite",
className: "VolumePropertiesDataProtection"
}
},
isRestoring: {
serializedName: "properties.isRestoring",
type: {
name: "Boolean"
}
}
}
}
};

export const ReplicationStatus: msRest.CompositeMapper = {
serializedName: "replicationStatus",
type: {
name: "Composite",
className: "ReplicationStatus",
modelProperties: {
healthy: {
serializedName: "healthy",
type: {
name: "Boolean"
}
},
relationshipStatus: {
serializedName: "relationshipStatus",
type: {
name: "String"
}
},
mirrorState: {
serializedName: "mirrorState",
type: {
name: "String"
}
},
totalProgress: {
serializedName: "totalProgress",
type: {
name: "String"
}
},
errorMessage: {
serializedName: "errorMessage",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -1215,6 +1266,22 @@ export const SnapshotPatch: msRest.CompositeMapper = {
}
};

export const AuthorizeRequest: msRest.CompositeMapper = {
serializedName: "authorizeRequest",
type: {
name: "Composite",
className: "AuthorizeRequest",
modelProperties: {
remoteVolumeResourceId: {
serializedName: "remoteVolumeResourceId",
type: {
name: "String"
}
}
}
}
};

export const OperationListResult: msRest.CompositeMapper = {
serializedName: "OperationListResult",
type: {
Expand Down
2 changes: 1 addition & 1 deletion sdk/netapp/arm-netapp/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const apiVersion: msRest.OperationQueryParameter = {
mapper: {
required: true,
serializedName: "api-version",
defaultValue: '2019-08-01',
defaultValue: '2019-10-01',
type: {
name: "String"
}
Expand Down
2 changes: 2 additions & 0 deletions sdk/netapp/arm-netapp/src/models/volumesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

export {
ActiveDirectory,
AuthorizeRequest,
BaseResource,
CapacityPool,
CapacityPoolPatch,
Expand All @@ -16,6 +17,7 @@ export {
NetAppAccount,
NetAppAccountPatch,
ReplicationObject,
ReplicationStatus,
Snapshot,
SnapshotPatch,
Volume,
Expand Down
Loading