Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
2ce903b
Generated from cbd8b32037c8d911d9c4024dd3accb02bfad8e93 (#465)
AutorestCI Nov 12, 2018
5b041dc
Merge remote-tracking branch 'origin' into restapi_auto_apimanagement…
Nov 12, 2018
71e61c8
Regenerated "@azure/arm-apimanagement/lib" SDK.
kpajdzik Nov 12, 2018
83d0a43
Merge branch 'restapi_auto_apimanagement/resource-manager' of https:/…
kpajdzik Nov 12, 2018
ac48e27
Generated from ccc27d4c2f7026867aa2bcf3e67b6359c3ec0f11 (#490)
AutorestCI Nov 14, 2018
993250f
[AutoPR apimanagement/resource-manager] /identity endpoint added (#484)
AutorestCI Nov 14, 2018
f5cf89c
Merge remote-tracking branch 'origin' into restapi_auto_apimanagement…
Nov 14, 2018
38e5ba6
Merge remote-tracking branch 'origin/master' into restapi_auto_apiman…
kpajdzik Nov 14, 2018
1f2e76a
Regenerated "@azure/arm-apimanagement/lib" SDK.
kpajdzik Nov 14, 2018
4dcb78f
Merge branch 'restapi_auto_apimanagement/resource-manager' of https:/…
kpajdzik Nov 14, 2018
d7c82a0
Regenerated "@azure/arm-apimanagement/lib" SDK.
kpajdzik Nov 14, 2018
c2314c4
Regenerated "@azure/arm-apimanagement" SDK.
kpajdzik Nov 14, 2018
5cd9a40
Reset to master
kpajdzik Nov 14, 2018
ff1557c
Regenerated "@azure/arm-apimanagement" SDK.
kpajdzik Nov 14, 2018
3c95b54
Remove files not present on master
kpajdzik Nov 14, 2018
30a0d68
Remove dist folder
kpajdzik Nov 14, 2018
68f1a48
Remove webpack.config.js
kpajdzik Nov 14, 2018
3cc83f0
Remove packages missing on master
kpajdzik Nov 14, 2018
68158f0
Reset servicefabricmesh package
kpajdzik Nov 14, 2018
f5083bc
Reset storage package
kpajdzik Nov 14, 2018
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
Prev Previous commit
Next Next commit
Reset servicefabricmesh package
  • Loading branch information
kpajdzik committed Nov 14, 2018
commit 68158f080ddd57d203136990a3c11584177f6958
21 changes: 21 additions & 0 deletions packages/@azure/arm-servicefabricmesh/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2018 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
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
96 changes: 96 additions & 0 deletions packages/@azure/arm-servicefabricmesh/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
## Azure ServiceFabricMeshManagementClient SDK for JavaScript

This package contains an isomorphic SDK for ServiceFabricMeshManagementClient.

### Currently supported environments

- Node.js version 6.x.x or higher
- Browser JavaScript

### How to Install

```
npm install @azure/arm-servicefabricmesh
```

### How to use

#### nodejs - Authentication, client creation and list operations as an example written in TypeScript.

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

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

##### Sample code

```ts
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";
import { ServiceFabricMeshManagementClient, ServiceFabricMeshManagementModels, ServiceFabricMeshManagementMappers } from "@azure/arm-servicefabricmesh";
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
const client = new ServiceFabricMeshManagementClient(creds, subscriptionId);
client.operations.list().then((result) => {
console.log("The result is:");
console.log(result);
});
}).catch((err) => {
console.error(err);
});
```

#### browser - Authentication, client creation and list operations as an example written in JavaScript.

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

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

##### Sample code

See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.

- index.html
```html
<!DOCTYPE html>
<html lang="en">
<head>
<title>@azure/arm-servicefabricmesh sample</title>
<script src="node_modules/@azure/ms-rest-js/dist/msRest.browser.js"></script>
<script src="node_modules/@azure/ms-rest-azure-js/dist/msRestAzure.js"></script>
<script src="node_modules/@azure/ms-rest-browserauth/dist/msAuth.js"></script>
<script src="node_modules/@azure/arm-servicefabricmesh/dist/arm-servicefabricmesh.js"></script>
<script type="text/javascript">
const subscriptionId = "<Subscription_Id>";
const authManager = new msAuth.AuthManager({
clientId: "<client id for your Azure AD app>",
tenant: "<optional tenant for your organization>"
});
authManager.finalizeLogin().then((res) => {
if (!res.isLoggedIn) {
// may cause redirects
authManager.login();
}
const client = new Azure.ArmServicefabricmesh.ServiceFabricMeshManagementClient(res.creds, subscriptionId);
client.operations.list().then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
console.log("An error occurred:");
console.error(err);
});
});
</script>
</head>
<body></body>
</html>
```

## Related projects

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
/*
* 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 {
discriminators,
ApplicationResourceDescription,
TrackedResource,
Resource,
BaseResource,
ServiceResourceDescription,
ManagedProxyResource,
ContainerCodePackageProperties,
ImageRegistryCredential,
EnvironmentVariable,
Setting,
ContainerLabel,
EndpointProperties,
ResourceRequirements,
ResourceRequests,
ResourceLimits,
VolumeReference,
ApplicationScopedVolume,
ApplicationScopedVolumeCreationParameters,
DiagnosticsRef,
ReliableCollectionsRef,
ContainerInstanceView,
ContainerState,
ContainerEvent,
NetworkRef,
EndpointRef,
AutoScalingPolicy,
AutoScalingTrigger,
AutoScalingMechanism,
DiagnosticsDescription,
DiagnosticsSinkProperties,
ErrorModel,
ErrorErrorModel,
ErrorDetailsModel,
ApplicationResourceDescriptionList,
ProxyResource,
SecretResourceDescription,
SecretResourceProperties,
SecretResourcePropertiesBase,
ProvisionedResourceProperties,
SecretValueResourceDescription,
ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk,
VolumeResourceDescription,
VolumeProviderParametersAzureFile,
NetworkResourcePropertiesBase,
NetworkResourceDescription,
NetworkResourceProperties,
GatewayResourceDescription,
TcpConfig,
GatewayDestination,
HttpConfig,
HttpHostConfig,
HttpRouteConfig,
HttpRouteMatchRule,
HttpRouteMatchPath,
HttpRouteMatchHeader,
AzureInternalMonitoringPipelineSinkDescription,
AddRemoveReplicaScalingMechanism,
AverageLoadScalingTrigger,
AutoScalingMetric,
InlinedValueSecretResourceProperties,
LocalNetworkResourceProperties,
AutoScalingResourceMetric
} from "../models/mappers";

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* 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 {
discriminators,
ContainerLogs,
ErrorModel,
ErrorErrorModel,
ErrorDetailsModel
} from "../models/mappers";

76 changes: 76 additions & 0 deletions packages/@azure/arm-servicefabricmesh/lib/models/gatewayMappers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
/*
* 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 {
discriminators,
GatewayResourceDescription,
TrackedResource,
Resource,
BaseResource,
NetworkRef,
EndpointRef,
TcpConfig,
GatewayDestination,
HttpConfig,
HttpHostConfig,
HttpRouteConfig,
HttpRouteMatchRule,
HttpRouteMatchPath,
HttpRouteMatchHeader,
ErrorModel,
ErrorErrorModel,
ErrorDetailsModel,
GatewayResourceDescriptionList,
ProxyResource,
ManagedProxyResource,
SecretResourceDescription,
SecretResourceProperties,
SecretResourcePropertiesBase,
ProvisionedResourceProperties,
SecretValueResourceDescription,
VolumeResourceDescription,
VolumeProviderParametersAzureFile,
NetworkResourcePropertiesBase,
NetworkResourceDescription,
NetworkResourceProperties,
ServiceResourceDescription,
ContainerCodePackageProperties,
ImageRegistryCredential,
EnvironmentVariable,
Setting,
ContainerLabel,
EndpointProperties,
ResourceRequirements,
ResourceRequests,
ResourceLimits,
VolumeReference,
ApplicationScopedVolume,
ApplicationScopedVolumeCreationParameters,
DiagnosticsRef,
ReliableCollectionsRef,
ContainerInstanceView,
ContainerState,
ContainerEvent,
AutoScalingPolicy,
AutoScalingTrigger,
AutoScalingMechanism,
ApplicationResourceDescription,
DiagnosticsDescription,
DiagnosticsSinkProperties,
AddRemoveReplicaScalingMechanism,
AverageLoadScalingTrigger,
AutoScalingMetric,
InlinedValueSecretResourceProperties,
ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk,
LocalNetworkResourceProperties,
AzureInternalMonitoringPipelineSinkDescription,
AutoScalingResourceMetric
} from "../models/mappers";

Loading