Skip to content
Draft
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
8 changes: 3 additions & 5 deletions sdk/resourcemover/arm-resourcemover/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## Azure ResourceMoverServiceAPI SDK for JavaScript

This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ResourceMoverServiceAPI.
This package contains an isomorphic SDK (runs both in node.js and in browsers) for ResourceMoverServiceAPI.

### Currently supported environments

- [LTS versions of Node.js](https://nodejs.org/about/releases/)
- Latest versions of Safari, Chrome, Edge, and Firefox.
- Latest versions of Safari, Chrome, Edge and Firefox.

### Prerequisites

Expand All @@ -21,7 +21,6 @@ Install both packages using the below command:
```bash
npm install --save @azure/arm-resourcemover @azure/identity
```

> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.

Expand All @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/

In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.

#### nodejs - Authentication, client creation, and get moveCollections as an example written in JavaScript.

##### Sample code
Expand Down Expand Up @@ -87,7 +85,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
const credential = new InteractiveBrowserCredential(
{
clientId: "<client id for your Azure AD app>",
tenantId: "<optional tenant for your organization>"
tenant: "<optional tenant for your organization>"
});
const client = new Azure.ArmResourcemover.ResourceMoverServiceAPI(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
Expand Down
2 changes: 1 addition & 1 deletion sdk/resourcemover/arm-resourcemover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.6.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/resourcemover/arm-resourcemover",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/resourcemover/arm-resourcemover",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down
90 changes: 90 additions & 0 deletions sdk/resourcemover/arm-resourcemover/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,38 @@ export interface MoveResourceProperties {
readonly errors?: MoveResourcePropertiesErrors;
}

/**
* Metadata pertaining to creation and last modification of the resource.
*/
export interface SystemData {
/**
* The identity that created the resource.
*/
createdBy?: string;
/**
* The type of identity that created the resource. Possible values include: 'User',
* 'Application', 'ManagedIdentity', 'Key'
*/
createdByType?: CreatedByType;
/**
* The timestamp of resource creation (UTC).
*/
createdAt?: Date;
/**
* The identity that last modified the resource.
*/
lastModifiedBy?: string;
/**
* The type of identity that last modified the resource. Possible values include: 'User',
* 'Application', 'ManagedIdentity', 'Key'
*/
lastModifiedByType?: CreatedByType;
/**
* The timestamp of resource last modification (UTC)
*/
lastModifiedAt?: Date;
}

/**
* Defines the move resource.
*/
Expand All @@ -268,6 +300,11 @@ export interface MoveResource extends BaseResource {
*/
readonly type?: string;
properties?: MoveResourceProperties;
/**
* Metadata pertaining to creation and last modification of the resource.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly systemData?: SystemData;
}

/**
Expand Down Expand Up @@ -361,6 +398,11 @@ export interface MoveCollection extends BaseResource {
location?: string;
identity?: Identity;
properties?: MoveCollectionProperties;
/**
* Metadata pertaining to creation and last modification of the resource.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly systemData?: SystemData;
}

/**
Expand Down Expand Up @@ -649,6 +691,14 @@ export interface VirtualMachineResourceSettings {
* Gets or sets the target Resource name.
*/
targetResourceName: string;
/**
* Gets or sets the Resource tags.
*/
tags?: { [propertyName: string]: string };
/**
* Gets or sets user-managed identities
*/
userManagedIdentities?: string[];
/**
* Gets or sets the target availability zone. Possible values include: '1', '2', '3', 'NA'
*/
Expand Down Expand Up @@ -676,6 +726,10 @@ export interface AvailabilitySetResourceSettings {
* Gets or sets the target Resource name.
*/
targetResourceName: string;
/**
* Gets or sets the Resource tags.
*/
tags?: { [propertyName: string]: string };
/**
* Gets or sets the target fault domain.
*/
Expand Down Expand Up @@ -729,6 +783,10 @@ export interface VirtualNetworkResourceSettings {
* Gets or sets the target Resource name.
*/
targetResourceName: string;
/**
* Gets or sets the Resource tags.
*/
tags?: { [propertyName: string]: string };
/**
* Gets or sets a value indicating whether gets or sets whether the
* DDOS protection should be switched on.
Expand Down Expand Up @@ -827,6 +885,10 @@ export interface NetworkInterfaceResourceSettings {
* Gets or sets the target Resource name.
*/
targetResourceName: string;
/**
* Gets or sets the Resource tags.
*/
tags?: { [propertyName: string]: string };
/**
* Gets or sets the IP configurations of the NIC.
*/
Expand Down Expand Up @@ -906,6 +968,10 @@ export interface NetworkSecurityGroupResourceSettings {
* Gets or sets the target Resource name.
*/
targetResourceName: string;
/**
* Gets or sets the Resource tags.
*/
tags?: { [propertyName: string]: string };
/**
* Gets or sets Security rules of network security group.
*/
Expand Down Expand Up @@ -958,6 +1024,10 @@ export interface LoadBalancerResourceSettings {
* Gets or sets the target Resource name.
*/
targetResourceName: string;
/**
* Gets or sets the Resource tags.
*/
tags?: { [propertyName: string]: string };
/**
* Gets or sets load balancer sku (Basic/Standard).
*/
Expand Down Expand Up @@ -1004,6 +1074,10 @@ export interface SqlElasticPoolResourceSettings {
* Gets or sets the target Resource name.
*/
targetResourceName: string;
/**
* Gets or sets the Resource tags.
*/
tags?: { [propertyName: string]: string };
/**
* Possible values include: 'Enable', 'Disable'
*/
Expand All @@ -1022,6 +1096,10 @@ export interface SqlDatabaseResourceSettings {
* Gets or sets the target Resource name.
*/
targetResourceName: string;
/**
* Gets or sets the Resource tags.
*/
tags?: { [propertyName: string]: string };
/**
* Possible values include: 'Enable', 'Disable'
*/
Expand Down Expand Up @@ -1054,6 +1132,10 @@ export interface PublicIPAddressResourceSettings {
* Gets or sets the target Resource name.
*/
targetResourceName: string;
/**
* Gets or sets the Resource tags.
*/
tags?: { [propertyName: string]: string };
/**
* Gets or sets the domain name label.
*/
Expand Down Expand Up @@ -1497,6 +1579,14 @@ export type ResolutionType = 'Manual' | 'Automatic';
*/
export type DependencyType = 'RequiredForPrepare' | 'RequiredForMove';

/**
* Defines values for CreatedByType.
* Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'
* @readonly
* @enum {string}
*/
export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key';

/**
* Defines values for TargetAvailabilityZone.
* Possible values include: '1', '2', '3', 'NA'
Expand Down
Loading