Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-netapp] Add NetApp API version 2019-10-01 #61

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
3 changes: 1 addition & 2 deletions sdk/netapp/arm-netapp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ npm install @azure/arm-netapp

##### Install @azure/ms-rest-nodeauth

- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
```bash
npm install @azure/ms-rest-nodeauth@"^3.0.0"
npm install @azure/ms-rest-nodeauth
```

##### Sample code
Expand Down
14 changes: 7 additions & 7 deletions sdk/netapp/arm-netapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "AzureNetAppFilesManagementClient Library with typescript type definitions for node.js and browser.",
"version": "6.0.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^2.0.1",
"@azure/ms-rest-js": "^2.0.4",
"tslib": "^1.10.0"
"@azure/ms-rest-azure-js": "^1.3.2",
"@azure/ms-rest-js": "^1.8.1",
"tslib": "^1.9.3"
},
"keywords": [
"node",
Expand All @@ -20,11 +20,11 @@
"module": "./esm/azureNetAppFilesManagementClient.js",
"types": "./esm/azureNetAppFilesManagementClient.d.ts",
"devDependencies": {
"typescript": "^3.5.3",
"rollup": "^1.18.0",
"rollup-plugin-node-resolve": "^5.2.0",
"typescript": "^3.1.1",
"rollup": "^0.66.2",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.6.0"
"uglify-js": "^3.4.9"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/netapp/arm-netapp",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion sdk/netapp/arm-netapp/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const config = {
*/`
},
plugins: [
nodeResolve({ mainFields: ['module', 'main'] }),
nodeResolve({ module: true }),
sourcemaps()
]
};
Expand Down
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
2 changes: 1 addition & 1 deletion sdk/netapp/arm-netapp/src/models/accountsMappers.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,7 +17,6 @@ export {
NetAppAccount,
NetAppAccountList,
NetAppAccountPatch,
ReplicationObject,
Snapshot,
SnapshotPatch,
Volume,
Expand Down
125 changes: 101 additions & 24 deletions sdk/netapp/arm-netapp/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,29 +415,6 @@ export interface VolumePropertiesExportPolicy {
rules?: ExportPolicyRule[];
}

/**
* Replication properties
*/
export interface ReplicationObject {
/**
* replicationId. Id
*/
replicationId?: string;
/**
* endpointType. Indicates whether the local volume is the source or destination for the Volume
* Replication
*/
endpointType: string;
/**
* replicationSchedule. Schedule
*/
replicationSchedule: string;
/**
* remoteVolumeResourceId. The resource ID of the remote volume.
*/
remoteVolumeResourceId: string;
}

/**
* DataProtection volume, can have a replication object
* @summary DataProtection
Expand All @@ -446,7 +423,7 @@ export interface VolumePropertiesDataProtection {
/**
* Replication. Replication properties
*/
replication?: ReplicationObject;
replication?: any;
}

/**
Expand Down Expand Up @@ -536,6 +513,66 @@ export interface Volume extends BaseResource {
* DataProtection. DataProtection volume, can have a replication object
*/
dataProtection?: VolumePropertiesDataProtection;
/**
* Restoring
*/
isRestoring?: boolean;
}

/**
* Replication properties
*/
export interface ReplicationObject {
/**
* Id
*/
replicationId?: string;
/**
* Indicates whether the local volume is the source or destination for the Volume Replication
*/
endpointType?: string;
/**
* Schedule
*/
replicationSchedule: string;
/**
* Id used to identify the owner of the resource
*/
ownerId?: string;
/**
* The resource ID of the remote volume.
*/
remoteVolumeResourceId: string;
/**
* The remote region for the other end of the Volume Replication.
*/
remoteVolumeRegion?: string;
}

/**
* Replication status
*/
export interface ReplicationStatus {
/**
* Replication health check
*/
healthy?: boolean;
/**
* Status of the mirror relationship
*/
relationshipStatus?: string;
/**
* The status of the replication
*/
mirrorState?: string;
/**
* 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 +760,26 @@ export interface SnapshotPatch extends BaseResource {
tags?: { [propertyName: string]: string };
}

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

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

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -1156,6 +1213,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
Loading