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 batch/resource-manager/batch/data-plane] Batch doc change: Update supported os family #2295

Closed
wants to merge 1 commit into from
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/batch/arm-batch/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft
Copyright (c) 2019 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
11 changes: 4 additions & 7 deletions sdk/batch/arm-batch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for BatchManagementClient.

### How to Install

```
```bash
npm install @azure/arm-batch
```

Expand All @@ -19,13 +19,13 @@ npm install @azure/arm-batch

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

```
```bash
npm install @azure/ms-rest-nodeauth
```

##### Sample code

```ts
```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
Expand All @@ -49,7 +49,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {

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

```
```bash
npm install @azure/ms-rest-browserauth
```

Expand Down Expand Up @@ -98,6 +98,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
## Related projects

- [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/sdk/batch/arm-batch/README.png)
55 changes: 55 additions & 0 deletions sdk/batch/arm-batch/lib/batchManagementClient.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as Models from "./models";
import * as Mappers from "./models/mappers";
import * as operations from "./operations";
import { BatchManagementClientContext } from "./batchManagementClientContext";


class BatchManagementClient extends BatchManagementClientContext {
// Operation groups
batchAccount: operations.BatchAccountOperations;
applicationPackage: operations.ApplicationPackageOperations;
application: operations.ApplicationOperations;
location: operations.Location;
operations: operations.Operations;
certificate: operations.CertificateOperations;
pool: operations.PoolOperations;

/**
* Initializes a new instance of the BatchManagementClient class.
* @param credentials Credentials needed for the client to connect to Azure.
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
* 00000000-0000-0000-0000-000000000000)
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.BatchManagementClientOptions) {
super(credentials, subscriptionId, options);
this.batchAccount = new operations.BatchAccountOperations(this);
this.applicationPackage = new operations.ApplicationPackageOperations(this);
this.application = new operations.ApplicationOperations(this);
this.location = new operations.Location(this);
this.operations = new operations.Operations(this);
this.certificate = new operations.CertificateOperations(this);
this.pool = new operations.PoolOperations(this);
}
}

// Operation Specifications

export {
BatchManagementClient,
BatchManagementClientContext,
Models as BatchManagementModels,
Mappers as BatchManagementMappers
};
export * from "./operations";
63 changes: 63 additions & 0 deletions sdk/batch/arm-batch/lib/batchManagementClientContext.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

import * as Models from "./models";
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";

const packageName = "@azure/arm-batch";
const packageVersion = "4.0.0";

export class BatchManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
subscriptionId: string;
apiVersion?: string;

/**
* Initializes a new instance of the BatchManagementClient class.
* @param credentials Credentials needed for the client to connect to Azure.
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
* 00000000-0000-0000-0000-000000000000)
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.BatchManagementClientOptions) {
if (credentials == undefined) {
throw new Error('\'credentials\' cannot be null.');
}
if (subscriptionId == undefined) {
throw new Error('\'subscriptionId\' cannot be null.');
}

if (!options) {
options = {};
}
if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}

super(credentials, options);

this.apiVersion = '2019-04-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
this.requestContentType = "application/json; charset=utf-8";
this.credentials = credentials;
this.subscriptionId = subscriptionId;

if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
}
}
61 changes: 61 additions & 0 deletions sdk/batch/arm-batch/lib/models/applicationOperationsMappers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

export {
Application,
ProxyResource,
BaseResource,
CloudError,
ListApplicationsResult,
ApplicationPackage,
Resource,
Certificate,
DeleteCertificateError,
CertificateCreateOrUpdateParameters,
Pool,
DeploymentConfiguration,
CloudServiceConfiguration,
VirtualMachineConfiguration,
ImageReference,
WindowsConfiguration,
DataDisk,
ContainerConfiguration,
ContainerRegistry,
ScaleSettings,
FixedScaleSettings,
AutoScaleSettings,
AutoScaleRun,
AutoScaleRunError,
NetworkConfiguration,
PoolEndpointConfiguration,
InboundNatPool,
NetworkSecurityGroupRule,
TaskSchedulingPolicy,
UserAccount,
LinuxUserConfiguration,
WindowsUserConfiguration,
MetadataItem,
StartTask,
ResourceFile,
EnvironmentSetting,
UserIdentity,
AutoUserSpecification,
TaskContainerSettings,
CertificateReference,
ApplicationPackageReference,
ResizeOperationStatus,
ResizeError,
BatchAccount,
KeyVaultReference,
AutoStorageProperties,
AutoStorageBaseProperties,
VirtualMachineFamilyCoreQuota
} from "../models/mappers";

Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

export {
ActivateApplicationPackageParameters,
ApplicationPackage,
ProxyResource,
BaseResource,
CloudError,
ListApplicationPackagesResult,
Application,
Resource,
Certificate,
DeleteCertificateError,
CertificateCreateOrUpdateParameters,
Pool,
DeploymentConfiguration,
CloudServiceConfiguration,
VirtualMachineConfiguration,
ImageReference,
WindowsConfiguration,
DataDisk,
ContainerConfiguration,
ContainerRegistry,
ScaleSettings,
FixedScaleSettings,
AutoScaleSettings,
AutoScaleRun,
AutoScaleRunError,
NetworkConfiguration,
PoolEndpointConfiguration,
InboundNatPool,
NetworkSecurityGroupRule,
TaskSchedulingPolicy,
UserAccount,
LinuxUserConfiguration,
WindowsUserConfiguration,
MetadataItem,
StartTask,
ResourceFile,
EnvironmentSetting,
UserIdentity,
AutoUserSpecification,
TaskContainerSettings,
CertificateReference,
ApplicationPackageReference,
ResizeOperationStatus,
ResizeError,
BatchAccount,
KeyVaultReference,
AutoStorageProperties,
AutoStorageBaseProperties,
VirtualMachineFamilyCoreQuota
} from "../models/mappers";

67 changes: 67 additions & 0 deletions sdk/batch/arm-batch/lib/models/batchAccountOperationsMappers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

export {
BatchAccountCreateParameters,
AutoStorageBaseProperties,
KeyVaultReference,
BatchAccount,
Resource,
BaseResource,
AutoStorageProperties,
VirtualMachineFamilyCoreQuota,
BatchAccountCreateHeaders,
CloudError,
BatchAccountUpdateParameters,
BatchAccountDeleteHeaders,
BatchAccountListResult,
BatchAccountRegenerateKeyParameters,
BatchAccountKeys,
ProxyResource,
Certificate,
DeleteCertificateError,
CertificateCreateOrUpdateParameters,
Pool,
DeploymentConfiguration,
CloudServiceConfiguration,
VirtualMachineConfiguration,
ImageReference,
WindowsConfiguration,
DataDisk,
ContainerConfiguration,
ContainerRegistry,
ScaleSettings,
FixedScaleSettings,
AutoScaleSettings,
AutoScaleRun,
AutoScaleRunError,
NetworkConfiguration,
PoolEndpointConfiguration,
InboundNatPool,
NetworkSecurityGroupRule,
TaskSchedulingPolicy,
UserAccount,
LinuxUserConfiguration,
WindowsUserConfiguration,
MetadataItem,
StartTask,
ResourceFile,
EnvironmentSetting,
UserIdentity,
AutoUserSpecification,
TaskContainerSettings,
CertificateReference,
ApplicationPackageReference,
ResizeOperationStatus,
ResizeError,
Application,
ApplicationPackage
} from "../models/mappers";

Loading