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
2 changes: 1 addition & 1 deletion sdk/recoveryservices/arm-recoveryservices/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Microsoft
Copyright (c) 2020 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions sdk/recoveryservices/arm-recoveryservices/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ npm install @azure/arm-recoveryservices

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

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

##### Sample code
Expand Down Expand Up @@ -99,5 +100,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Frecoveryservices%2Farm-recoveryservices%2FREADME.png)
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/recoveryservices/arm-recoveryservices/README.png)
20 changes: 10 additions & 10 deletions sdk/recoveryservices/arm-recoveryservices/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "RecoveryServicesClient Library with typescript type definitions for node.js and browser.",
"version": "3.0.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^1.3.2",
"@azure/ms-rest-js": "^1.8.1",
"tslib": "^1.9.3"
"@azure/ms-rest-azure-js": "^2.0.1",
"@azure/ms-rest-js": "^2.0.4",
"tslib": "^1.10.0"
},
"keywords": [
"node",
Expand All @@ -20,19 +20,19 @@
"module": "./esm/recoveryServicesClient.js",
"types": "./esm/recoveryServicesClient.d.ts",
"devDependencies": {
"typescript": "^3.1.1",
"rollup": "^0.66.2",
"rollup-plugin-node-resolve": "^3.4.0",
"typescript": "^3.5.3",
"rollup": "^1.18.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9"
"uglify-js": "^3.6.0"
},
"homepage": "https://github.com/azure/azure-sdk-for-js",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/recoveryservices/arm-recoveryservices",
"repository": {
"type": "git",
"url": "https://github.com/azure/azure-sdk-for-js.git"
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-js/issues"
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
Expand Down
2 changes: 1 addition & 1 deletion sdk/recoveryservices/arm-recoveryservices/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const config = {
*/`
},
plugins: [
nodeResolve({ module: true }),
nodeResolve({ mainFields: ['module', 'main'] }),
sourcemaps()
]
};
Expand Down
246 changes: 208 additions & 38 deletions sdk/recoveryservices/arm-recoveryservices/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,42 +321,6 @@ export interface CheckNameAvailabilityResult {
message?: string;
}

/**
* ARM Resource.
*/
export interface Resource extends BaseResource {
/**
* Resource Id represents the complete path to the resource.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
/**
* Resource name associated with the resource.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly name?: string;
/**
* Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly type?: string;
/**
* Optional ETag.
*/
eTag?: string;
}

/**
* Response for check name availability API. Resource provider will set availability as true |
* false.
*/
export interface CheckNameAvailabilityResultResource extends Resource {
/**
* CheckNameAvailabilityResultResource properties
*/
properties?: CheckNameAvailabilityResult;
}

/**
* Localized display information of an operation.
*/
Expand Down Expand Up @@ -440,6 +404,31 @@ export interface ClientDiscoveryValueForSingleApi {
properties?: ClientDiscoveryForProperties;
}

/**
* ARM Resource.
*/
export interface Resource extends BaseResource {
/**
* Resource Id represents the complete path to the resource.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
/**
* Resource name associated with the resource.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly name?: string;
/**
* Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly type?: string;
/**
* Optional ETag.
*/
eTag?: string;
}

/**
* Identifies the unique system identifier for each Azure resource.
*/
Expand Down Expand Up @@ -531,6 +520,63 @@ export interface UpgradeDetails {
readonly previousResourceId?: string;
}

/**
* Managed Identity Data, as received from ARM headers.
*/
export interface IdentityData {
/**
* The tenant Id header.
*/
tenantId?: string;
/**
* The principal Id header.
*/
principalId?: string;
/**
* The Identity type, can be SystemAssigned/UserAssigned/None.
*/
type: string;
}

/**
* An interface representing PrivateEndpoint.
*/
export interface PrivateEndpoint {
id?: string;
}

/**
* An interface representing PrivateLinkServiceConnectionState.
*/
export interface PrivateLinkServiceConnectionState {
/**
* Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected'
*/
status?: PrivateEndpointConnectionStatus;
description?: string;
actionsRequired?: string;
}

/**
* An interface representing PrivateEndpointConnection.
*/
export interface PrivateEndpointConnection {
/**
* Possible values include: 'Succeeded', 'Deleting', 'Failed', 'Pending'
*/
provisioningState?: ProvisioningState;
privateEndpoint?: PrivateEndpoint;
privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;
}

/**
* An interface representing PrivateEndpointConnectionVaultProperties.
*/
export interface PrivateEndpointConnectionVaultProperties {
id?: string;
properties?: PrivateEndpointConnection;
}

/**
* Properties of the vault.
*/
Expand All @@ -541,12 +587,28 @@ export interface VaultProperties {
*/
readonly provisioningState?: string;
upgradeDetails?: UpgradeDetails;
/**
* List of private endpoint connection.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly privateEndpointConnections?: PrivateEndpointConnectionVaultProperties[];
/**
* Private endpoint state for backup. Possible values include: 'None', 'Enabled'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly privateEndpointStateForBackup?: VaultPrivateEndpointState;
/**
* Private endpoint state for site recovery. Possible values include: 'None', 'Enabled'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly privateEndpointStateForSiteRecovery?: VaultPrivateEndpointState;
}

/**
* Resource information, as returned by the resource provider.
*/
export interface Vault extends TrackedResource {
identity?: IdentityData;
properties?: VaultProperties;
sku?: Sku;
}
Expand Down Expand Up @@ -581,6 +643,18 @@ export interface VaultExtendedInfoResource extends Resource {
algorithm?: string;
}

/**
* An interface representing PrivateLinkResource.
*/
export interface PrivateLinkResource {
id?: string;
name?: string;
type?: string;
groupId?: string;
requiredMembers?: string[];
requiredZoneNames?: string[];
}

/**
* The name of usage.
*/
Expand Down Expand Up @@ -641,6 +715,18 @@ export interface RecoveryServicesClientOptions extends AzureServiceClientOptions
export interface ReplicationUsageList extends Array<ReplicationUsage> {
}

/**
* @interface
* An interface representing the PrivateLinkResources.
* @extends Array<PrivateLinkResource>
*/
export interface PrivateLinkResources extends Array<PrivateLinkResource> {
/**
* Link to the next chunk of the response
*/
nextLink?: string;
}

/**
* @interface
* The response model for a list of Vaults.
Expand Down Expand Up @@ -705,6 +791,30 @@ export type VaultUpgradeState = 'Unknown' | 'InProgress' | 'Upgraded' | 'Failed'
*/
export type TriggerType = 'UserTriggered' | 'ForcedUpgrade';

/**
* Defines values for ProvisioningState.
* Possible values include: 'Succeeded', 'Deleting', 'Failed', 'Pending'
* @readonly
* @enum {string}
*/
export type ProvisioningState = 'Succeeded' | 'Deleting' | 'Failed' | 'Pending';

/**
* Defines values for PrivateEndpointConnectionStatus.
* Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected'
* @readonly
* @enum {string}
*/
export type PrivateEndpointConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected';

/**
* Defines values for VaultPrivateEndpointState.
* Possible values include: 'None', 'Enabled'
* @readonly
* @enum {string}
*/
export type VaultPrivateEndpointState = 'None' | 'Enabled';

/**
* Defines values for UsagesUnit.
* Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond',
Expand Down Expand Up @@ -754,10 +864,70 @@ export type ReplicationUsagesListResponse = ReplicationUsageList & {
};
};

/**
* Contains response data for the list operation.
*/
export type PrivateLinkResourcesListResponse = PrivateLinkResources & {
/**
* 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: PrivateLinkResources;
};
};

/**
* Contains response data for the listNext operation.
*/
export type PrivateLinkResourcesListNextResponse = PrivateLinkResources & {
/**
* 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: PrivateLinkResources;
};
};

/**
* Contains response data for the get operation.
*/
export type PrivateLinkResourceGetResponse = PrivateLinkResource & {
/**
* 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: PrivateLinkResource;
};
};

/**
* Contains response data for the checkNameAvailability operation.
*/
export type RecoveryServicesCheckNameAvailabilityResponse = CheckNameAvailabilityResultResource & {
export type RecoveryServicesCheckNameAvailabilityResponse = CheckNameAvailabilityResult & {
/**
* The underlying HTTP response.
*/
Expand All @@ -770,7 +940,7 @@ export type RecoveryServicesCheckNameAvailabilityResponse = CheckNameAvailabilit
/**
* The response body as parsed JSON or XML
*/
parsedBody: CheckNameAvailabilityResultResource;
parsedBody: CheckNameAvailabilityResult;
};
};

Expand Down
Loading