@azure/arm-hybridconnectivity 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +108 -0
- package/dist/index.js +1809 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.js +63 -0
- package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/endpointsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/endpointsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointsDeleteSample.js +37 -0
- package/dist-esm/samples-dev/endpointsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/endpointsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/endpointsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointsGetSample.js +54 -0
- package/dist-esm/samples-dev/endpointsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/endpointsListCredentialsSample.d.ts +2 -0
- package/dist-esm/samples-dev/endpointsListCredentialsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointsListCredentialsSample.js +43 -0
- package/dist-esm/samples-dev/endpointsListCredentialsSample.js.map +1 -0
- package/dist-esm/samples-dev/endpointsListIngressGatewayCredentialsSample.d.ts +2 -0
- package/dist-esm/samples-dev/endpointsListIngressGatewayCredentialsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointsListIngressGatewayCredentialsSample.js +41 -0
- package/dist-esm/samples-dev/endpointsListIngressGatewayCredentialsSample.js.map +1 -0
- package/dist-esm/samples-dev/endpointsListManagedProxyDetailsSample.d.ts +2 -0
- package/dist-esm/samples-dev/endpointsListManagedProxyDetailsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointsListManagedProxyDetailsSample.js +42 -0
- package/dist-esm/samples-dev/endpointsListManagedProxyDetailsSample.js.map +1 -0
- package/dist-esm/samples-dev/endpointsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/endpointsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointsListSample.js +57 -0
- package/dist-esm/samples-dev/endpointsListSample.js.map +1 -0
- package/dist-esm/samples-dev/endpointsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/endpointsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointsUpdateSample.js +40 -0
- package/dist-esm/samples-dev/endpointsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +56 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/serviceConfigurationsCreateOrupdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/serviceConfigurationsCreateOrupdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceConfigurationsCreateOrupdateSample.js +64 -0
- package/dist-esm/samples-dev/serviceConfigurationsCreateOrupdateSample.js.map +1 -0
- package/dist-esm/samples-dev/serviceConfigurationsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/serviceConfigurationsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceConfigurationsDeleteSample.js +38 -0
- package/dist-esm/samples-dev/serviceConfigurationsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/serviceConfigurationsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/serviceConfigurationsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceConfigurationsGetSample.js +56 -0
- package/dist-esm/samples-dev/serviceConfigurationsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/serviceConfigurationsListByEndpointResourceSample.d.ts +2 -0
- package/dist-esm/samples-dev/serviceConfigurationsListByEndpointResourceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceConfigurationsListByEndpointResourceSample.js +58 -0
- package/dist-esm/samples-dev/serviceConfigurationsListByEndpointResourceSample.js.map +1 -0
- package/dist-esm/samples-dev/serviceConfigurationsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/serviceConfigurationsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceConfigurationsUpdateSample.js +41 -0
- package/dist-esm/samples-dev/serviceConfigurationsUpdateSample.js.map +1 -0
- package/dist-esm/src/hybridConnectivityManagementAPI.d.ts +20 -0
- package/dist-esm/src/hybridConnectivityManagementAPI.d.ts.map +1 -0
- package/dist-esm/src/hybridConnectivityManagementAPI.js +96 -0
- package/dist-esm/src/hybridConnectivityManagementAPI.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +477 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +66 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +23 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +631 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +17 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +135 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/endpoints.d.ts +97 -0
- package/dist-esm/src/operations/endpoints.d.ts.map +1 -0
- package/dist-esm/src/operations/endpoints.js +370 -0
- package/dist-esm/src/operations/endpoints.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +4 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +11 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +138 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/serviceConfigurations.d.ts +79 -0
- package/dist-esm/src/operations/serviceConfigurations.d.ts.map +1 -0
- package/dist-esm/src/operations/serviceConfigurations.js +304 -0
- package/dist-esm/src/operations/serviceConfigurations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/endpoints.d.ts +72 -0
- package/dist-esm/src/operationsInterfaces/endpoints.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/endpoints.js +9 -0
- package/dist-esm/src/operationsInterfaces/endpoints.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +11 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/serviceConfigurations.d.ts +52 -0
- package/dist-esm/src/operationsInterfaces/serviceConfigurations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/serviceConfigurations.js +9 -0
- package/dist-esm/src/operationsInterfaces/serviceConfigurations.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/hybridconnectivity_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/hybridconnectivity_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/hybridconnectivity_operations_test.spec.js +122 -0
- package/dist-esm/test/hybridconnectivity_operations_test.spec.js.map +1 -0
- package/package.json +122 -0
- package/review/arm-hybridconnectivity.api.md +388 -0
- package/rollup.config.js +122 -0
- package/src/hybridConnectivityManagementAPI.ts +144 -0
- package/src/index.ts +13 -0
- package/src/models/index.ts +552 -0
- package/src/models/mappers.ts +664 -0
- package/src/models/parameters.ts +162 -0
- package/src/operations/endpoints.ts +469 -0
- package/src/operations/index.ts +11 -0
- package/src/operations/operations.ts +149 -0
- package/src/operations/serviceConfigurations.ts +401 -0
- package/src/operationsInterfaces/endpoints.ts +132 -0
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/serviceConfigurations.ts +98 -0
- package/src/pagingHelper.ts +39 -0
- package/tsconfig.json +33 -0
- package/types/arm-hybridconnectivity.d.ts +700 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
OperationParameter,
|
|
11
|
+
OperationURLParameter,
|
|
12
|
+
OperationQueryParameter
|
|
13
|
+
} from "@azure/core-client";
|
|
14
|
+
import {
|
|
15
|
+
EndpointResource as EndpointResourceMapper,
|
|
16
|
+
ListCredentialsRequest as ListCredentialsRequestMapper,
|
|
17
|
+
ListIngressGatewayCredentialsRequest as ListIngressGatewayCredentialsRequestMapper,
|
|
18
|
+
ManagedProxyRequest as ManagedProxyRequestMapper,
|
|
19
|
+
ServiceConfigurationResource as ServiceConfigurationResourceMapper,
|
|
20
|
+
ServiceConfigurationResourcePatch as ServiceConfigurationResourcePatchMapper
|
|
21
|
+
} from "../models/mappers";
|
|
22
|
+
|
|
23
|
+
export const accept: OperationParameter = {
|
|
24
|
+
parameterPath: "accept",
|
|
25
|
+
mapper: {
|
|
26
|
+
defaultValue: "application/json",
|
|
27
|
+
isConstant: true,
|
|
28
|
+
serializedName: "Accept",
|
|
29
|
+
type: {
|
|
30
|
+
name: "String"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const $host: OperationURLParameter = {
|
|
36
|
+
parameterPath: "$host",
|
|
37
|
+
mapper: {
|
|
38
|
+
serializedName: "$host",
|
|
39
|
+
required: true,
|
|
40
|
+
type: {
|
|
41
|
+
name: "String"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
skipEncoding: true
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const apiVersion: OperationQueryParameter = {
|
|
48
|
+
parameterPath: "apiVersion",
|
|
49
|
+
mapper: {
|
|
50
|
+
defaultValue: "2023-03-15",
|
|
51
|
+
isConstant: true,
|
|
52
|
+
serializedName: "api-version",
|
|
53
|
+
type: {
|
|
54
|
+
name: "String"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export const nextLink: OperationURLParameter = {
|
|
60
|
+
parameterPath: "nextLink",
|
|
61
|
+
mapper: {
|
|
62
|
+
serializedName: "nextLink",
|
|
63
|
+
required: true,
|
|
64
|
+
type: {
|
|
65
|
+
name: "String"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
skipEncoding: true
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export const resourceUri: OperationURLParameter = {
|
|
72
|
+
parameterPath: "resourceUri",
|
|
73
|
+
mapper: {
|
|
74
|
+
serializedName: "resourceUri",
|
|
75
|
+
required: true,
|
|
76
|
+
type: {
|
|
77
|
+
name: "String"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
skipEncoding: true
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export const endpointName: OperationURLParameter = {
|
|
84
|
+
parameterPath: "endpointName",
|
|
85
|
+
mapper: {
|
|
86
|
+
serializedName: "endpointName",
|
|
87
|
+
required: true,
|
|
88
|
+
type: {
|
|
89
|
+
name: "String"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
skipEncoding: true
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export const contentType: OperationParameter = {
|
|
96
|
+
parameterPath: ["options", "contentType"],
|
|
97
|
+
mapper: {
|
|
98
|
+
defaultValue: "application/json",
|
|
99
|
+
isConstant: true,
|
|
100
|
+
serializedName: "Content-Type",
|
|
101
|
+
type: {
|
|
102
|
+
name: "String"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export const endpointResource: OperationParameter = {
|
|
108
|
+
parameterPath: "endpointResource",
|
|
109
|
+
mapper: EndpointResourceMapper
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export const listCredentialsRequest: OperationParameter = {
|
|
113
|
+
parameterPath: ["options", "listCredentialsRequest"],
|
|
114
|
+
mapper: ListCredentialsRequestMapper
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export const expiresin: OperationQueryParameter = {
|
|
118
|
+
parameterPath: ["options", "expiresin"],
|
|
119
|
+
mapper: {
|
|
120
|
+
defaultValue: 10800,
|
|
121
|
+
constraints: {
|
|
122
|
+
InclusiveMaximum: 10800,
|
|
123
|
+
InclusiveMinimum: 600
|
|
124
|
+
},
|
|
125
|
+
serializedName: "expiresin",
|
|
126
|
+
type: {
|
|
127
|
+
name: "Number"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
export const listIngressGatewayCredentialsRequest: OperationParameter = {
|
|
133
|
+
parameterPath: ["options", "listIngressGatewayCredentialsRequest"],
|
|
134
|
+
mapper: ListIngressGatewayCredentialsRequestMapper
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
export const managedProxyRequest: OperationParameter = {
|
|
138
|
+
parameterPath: "managedProxyRequest",
|
|
139
|
+
mapper: ManagedProxyRequestMapper
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export const serviceConfigurationName: OperationURLParameter = {
|
|
143
|
+
parameterPath: "serviceConfigurationName",
|
|
144
|
+
mapper: {
|
|
145
|
+
serializedName: "serviceConfigurationName",
|
|
146
|
+
required: true,
|
|
147
|
+
type: {
|
|
148
|
+
name: "String"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
skipEncoding: true
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
export const serviceConfigurationResource: OperationParameter = {
|
|
155
|
+
parameterPath: "serviceConfigurationResource",
|
|
156
|
+
mapper: ServiceConfigurationResourceMapper
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
export const serviceConfigurationResource1: OperationParameter = {
|
|
160
|
+
parameterPath: "serviceConfigurationResource",
|
|
161
|
+
mapper: ServiceConfigurationResourcePatchMapper
|
|
162
|
+
};
|
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
+
import { Endpoints } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { HybridConnectivityManagementAPI } from "../hybridConnectivityManagementAPI";
|
|
16
|
+
import {
|
|
17
|
+
EndpointResource,
|
|
18
|
+
EndpointsListNextOptionalParams,
|
|
19
|
+
EndpointsListOptionalParams,
|
|
20
|
+
EndpointsListResponse,
|
|
21
|
+
EndpointsGetOptionalParams,
|
|
22
|
+
EndpointsGetResponse,
|
|
23
|
+
EndpointsCreateOrUpdateOptionalParams,
|
|
24
|
+
EndpointsCreateOrUpdateResponse,
|
|
25
|
+
EndpointsUpdateOptionalParams,
|
|
26
|
+
EndpointsUpdateResponse,
|
|
27
|
+
EndpointsDeleteOptionalParams,
|
|
28
|
+
EndpointsListCredentialsOptionalParams,
|
|
29
|
+
EndpointsListCredentialsResponse,
|
|
30
|
+
EndpointsListIngressGatewayCredentialsOptionalParams,
|
|
31
|
+
EndpointsListIngressGatewayCredentialsResponse,
|
|
32
|
+
ManagedProxyRequest,
|
|
33
|
+
EndpointsListManagedProxyDetailsOptionalParams,
|
|
34
|
+
EndpointsListManagedProxyDetailsResponse,
|
|
35
|
+
EndpointsListNextResponse
|
|
36
|
+
} from "../models";
|
|
37
|
+
|
|
38
|
+
/// <reference lib="esnext.asynciterable" />
|
|
39
|
+
/** Class containing Endpoints operations. */
|
|
40
|
+
export class EndpointsImpl implements Endpoints {
|
|
41
|
+
private readonly client: HybridConnectivityManagementAPI;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Initialize a new instance of the class Endpoints class.
|
|
45
|
+
* @param client Reference to the service client
|
|
46
|
+
*/
|
|
47
|
+
constructor(client: HybridConnectivityManagementAPI) {
|
|
48
|
+
this.client = client;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* List of endpoints to the target resource.
|
|
53
|
+
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
|
|
54
|
+
* connected.
|
|
55
|
+
* @param options The options parameters.
|
|
56
|
+
*/
|
|
57
|
+
public list(
|
|
58
|
+
resourceUri: string,
|
|
59
|
+
options?: EndpointsListOptionalParams
|
|
60
|
+
): PagedAsyncIterableIterator<EndpointResource> {
|
|
61
|
+
const iter = this.listPagingAll(resourceUri, options);
|
|
62
|
+
return {
|
|
63
|
+
next() {
|
|
64
|
+
return iter.next();
|
|
65
|
+
},
|
|
66
|
+
[Symbol.asyncIterator]() {
|
|
67
|
+
return this;
|
|
68
|
+
},
|
|
69
|
+
byPage: (settings?: PageSettings) => {
|
|
70
|
+
if (settings?.maxPageSize) {
|
|
71
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
72
|
+
}
|
|
73
|
+
return this.listPagingPage(resourceUri, options, settings);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
private async *listPagingPage(
|
|
79
|
+
resourceUri: string,
|
|
80
|
+
options?: EndpointsListOptionalParams,
|
|
81
|
+
settings?: PageSettings
|
|
82
|
+
): AsyncIterableIterator<EndpointResource[]> {
|
|
83
|
+
let result: EndpointsListResponse;
|
|
84
|
+
let continuationToken = settings?.continuationToken;
|
|
85
|
+
if (!continuationToken) {
|
|
86
|
+
result = await this._list(resourceUri, options);
|
|
87
|
+
let page = result.value || [];
|
|
88
|
+
continuationToken = result.nextLink;
|
|
89
|
+
setContinuationToken(page, continuationToken);
|
|
90
|
+
yield page;
|
|
91
|
+
}
|
|
92
|
+
while (continuationToken) {
|
|
93
|
+
result = await this._listNext(resourceUri, continuationToken, options);
|
|
94
|
+
continuationToken = result.nextLink;
|
|
95
|
+
let page = result.value || [];
|
|
96
|
+
setContinuationToken(page, continuationToken);
|
|
97
|
+
yield page;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
private async *listPagingAll(
|
|
102
|
+
resourceUri: string,
|
|
103
|
+
options?: EndpointsListOptionalParams
|
|
104
|
+
): AsyncIterableIterator<EndpointResource> {
|
|
105
|
+
for await (const page of this.listPagingPage(resourceUri, options)) {
|
|
106
|
+
yield* page;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* List of endpoints to the target resource.
|
|
112
|
+
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
|
|
113
|
+
* connected.
|
|
114
|
+
* @param options The options parameters.
|
|
115
|
+
*/
|
|
116
|
+
private _list(
|
|
117
|
+
resourceUri: string,
|
|
118
|
+
options?: EndpointsListOptionalParams
|
|
119
|
+
): Promise<EndpointsListResponse> {
|
|
120
|
+
return this.client.sendOperationRequest(
|
|
121
|
+
{ resourceUri, options },
|
|
122
|
+
listOperationSpec
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Gets the endpoint to the resource.
|
|
128
|
+
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
|
|
129
|
+
* connected.
|
|
130
|
+
* @param endpointName The endpoint name.
|
|
131
|
+
* @param options The options parameters.
|
|
132
|
+
*/
|
|
133
|
+
get(
|
|
134
|
+
resourceUri: string,
|
|
135
|
+
endpointName: string,
|
|
136
|
+
options?: EndpointsGetOptionalParams
|
|
137
|
+
): Promise<EndpointsGetResponse> {
|
|
138
|
+
return this.client.sendOperationRequest(
|
|
139
|
+
{ resourceUri, endpointName, options },
|
|
140
|
+
getOperationSpec
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Create or update the endpoint to the target resource.
|
|
146
|
+
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
|
|
147
|
+
* connected.
|
|
148
|
+
* @param endpointName The endpoint name.
|
|
149
|
+
* @param endpointResource Endpoint details
|
|
150
|
+
* @param options The options parameters.
|
|
151
|
+
*/
|
|
152
|
+
createOrUpdate(
|
|
153
|
+
resourceUri: string,
|
|
154
|
+
endpointName: string,
|
|
155
|
+
endpointResource: EndpointResource,
|
|
156
|
+
options?: EndpointsCreateOrUpdateOptionalParams
|
|
157
|
+
): Promise<EndpointsCreateOrUpdateResponse> {
|
|
158
|
+
return this.client.sendOperationRequest(
|
|
159
|
+
{ resourceUri, endpointName, endpointResource, options },
|
|
160
|
+
createOrUpdateOperationSpec
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Update the endpoint to the target resource.
|
|
166
|
+
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
|
|
167
|
+
* connected.
|
|
168
|
+
* @param endpointName The endpoint name.
|
|
169
|
+
* @param endpointResource Endpoint details
|
|
170
|
+
* @param options The options parameters.
|
|
171
|
+
*/
|
|
172
|
+
update(
|
|
173
|
+
resourceUri: string,
|
|
174
|
+
endpointName: string,
|
|
175
|
+
endpointResource: EndpointResource,
|
|
176
|
+
options?: EndpointsUpdateOptionalParams
|
|
177
|
+
): Promise<EndpointsUpdateResponse> {
|
|
178
|
+
return this.client.sendOperationRequest(
|
|
179
|
+
{ resourceUri, endpointName, endpointResource, options },
|
|
180
|
+
updateOperationSpec
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Deletes the endpoint access to the target resource.
|
|
186
|
+
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
|
|
187
|
+
* connected.
|
|
188
|
+
* @param endpointName The endpoint name.
|
|
189
|
+
* @param options The options parameters.
|
|
190
|
+
*/
|
|
191
|
+
delete(
|
|
192
|
+
resourceUri: string,
|
|
193
|
+
endpointName: string,
|
|
194
|
+
options?: EndpointsDeleteOptionalParams
|
|
195
|
+
): Promise<void> {
|
|
196
|
+
return this.client.sendOperationRequest(
|
|
197
|
+
{ resourceUri, endpointName, options },
|
|
198
|
+
deleteOperationSpec
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Gets the endpoint access credentials to the resource.
|
|
204
|
+
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
|
|
205
|
+
* connected.
|
|
206
|
+
* @param endpointName The endpoint name.
|
|
207
|
+
* @param options The options parameters.
|
|
208
|
+
*/
|
|
209
|
+
listCredentials(
|
|
210
|
+
resourceUri: string,
|
|
211
|
+
endpointName: string,
|
|
212
|
+
options?: EndpointsListCredentialsOptionalParams
|
|
213
|
+
): Promise<EndpointsListCredentialsResponse> {
|
|
214
|
+
return this.client.sendOperationRequest(
|
|
215
|
+
{ resourceUri, endpointName, options },
|
|
216
|
+
listCredentialsOperationSpec
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Gets the ingress gateway endpoint credentials
|
|
222
|
+
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
|
|
223
|
+
* connected.
|
|
224
|
+
* @param endpointName The endpoint name.
|
|
225
|
+
* @param options The options parameters.
|
|
226
|
+
*/
|
|
227
|
+
listIngressGatewayCredentials(
|
|
228
|
+
resourceUri: string,
|
|
229
|
+
endpointName: string,
|
|
230
|
+
options?: EndpointsListIngressGatewayCredentialsOptionalParams
|
|
231
|
+
): Promise<EndpointsListIngressGatewayCredentialsResponse> {
|
|
232
|
+
return this.client.sendOperationRequest(
|
|
233
|
+
{ resourceUri, endpointName, options },
|
|
234
|
+
listIngressGatewayCredentialsOperationSpec
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Fetches the managed proxy details
|
|
240
|
+
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
|
|
241
|
+
* connected.
|
|
242
|
+
* @param endpointName The endpoint name.
|
|
243
|
+
* @param managedProxyRequest Object of type ManagedProxyRequest
|
|
244
|
+
* @param options The options parameters.
|
|
245
|
+
*/
|
|
246
|
+
listManagedProxyDetails(
|
|
247
|
+
resourceUri: string,
|
|
248
|
+
endpointName: string,
|
|
249
|
+
managedProxyRequest: ManagedProxyRequest,
|
|
250
|
+
options?: EndpointsListManagedProxyDetailsOptionalParams
|
|
251
|
+
): Promise<EndpointsListManagedProxyDetailsResponse> {
|
|
252
|
+
return this.client.sendOperationRequest(
|
|
253
|
+
{ resourceUri, endpointName, managedProxyRequest, options },
|
|
254
|
+
listManagedProxyDetailsOperationSpec
|
|
255
|
+
);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* ListNext
|
|
260
|
+
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
|
|
261
|
+
* connected.
|
|
262
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
263
|
+
* @param options The options parameters.
|
|
264
|
+
*/
|
|
265
|
+
private _listNext(
|
|
266
|
+
resourceUri: string,
|
|
267
|
+
nextLink: string,
|
|
268
|
+
options?: EndpointsListNextOptionalParams
|
|
269
|
+
): Promise<EndpointsListNextResponse> {
|
|
270
|
+
return this.client.sendOperationRequest(
|
|
271
|
+
{ resourceUri, nextLink, options },
|
|
272
|
+
listNextOperationSpec
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
// Operation Specifications
|
|
277
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
278
|
+
|
|
279
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
280
|
+
path: "/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints",
|
|
281
|
+
httpMethod: "GET",
|
|
282
|
+
responses: {
|
|
283
|
+
200: {
|
|
284
|
+
bodyMapper: Mappers.EndpointsList
|
|
285
|
+
},
|
|
286
|
+
default: {
|
|
287
|
+
bodyMapper: Mappers.ErrorResponse
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
queryParameters: [Parameters.apiVersion],
|
|
291
|
+
urlParameters: [Parameters.$host, Parameters.resourceUri],
|
|
292
|
+
headerParameters: [Parameters.accept],
|
|
293
|
+
serializer
|
|
294
|
+
};
|
|
295
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
296
|
+
path:
|
|
297
|
+
"/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}",
|
|
298
|
+
httpMethod: "GET",
|
|
299
|
+
responses: {
|
|
300
|
+
200: {
|
|
301
|
+
bodyMapper: Mappers.EndpointResource
|
|
302
|
+
},
|
|
303
|
+
default: {
|
|
304
|
+
bodyMapper: Mappers.ErrorResponse
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
queryParameters: [Parameters.apiVersion],
|
|
308
|
+
urlParameters: [
|
|
309
|
+
Parameters.$host,
|
|
310
|
+
Parameters.resourceUri,
|
|
311
|
+
Parameters.endpointName
|
|
312
|
+
],
|
|
313
|
+
headerParameters: [Parameters.accept],
|
|
314
|
+
serializer
|
|
315
|
+
};
|
|
316
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
317
|
+
path:
|
|
318
|
+
"/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}",
|
|
319
|
+
httpMethod: "PUT",
|
|
320
|
+
responses: {
|
|
321
|
+
200: {
|
|
322
|
+
bodyMapper: Mappers.EndpointResource
|
|
323
|
+
},
|
|
324
|
+
default: {
|
|
325
|
+
bodyMapper: Mappers.ErrorResponse
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
requestBody: Parameters.endpointResource,
|
|
329
|
+
queryParameters: [Parameters.apiVersion],
|
|
330
|
+
urlParameters: [
|
|
331
|
+
Parameters.$host,
|
|
332
|
+
Parameters.resourceUri,
|
|
333
|
+
Parameters.endpointName
|
|
334
|
+
],
|
|
335
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
336
|
+
mediaType: "json",
|
|
337
|
+
serializer
|
|
338
|
+
};
|
|
339
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
340
|
+
path:
|
|
341
|
+
"/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}",
|
|
342
|
+
httpMethod: "PATCH",
|
|
343
|
+
responses: {
|
|
344
|
+
200: {
|
|
345
|
+
bodyMapper: Mappers.EndpointResource
|
|
346
|
+
},
|
|
347
|
+
default: {
|
|
348
|
+
bodyMapper: Mappers.ErrorResponse
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
requestBody: Parameters.endpointResource,
|
|
352
|
+
queryParameters: [Parameters.apiVersion],
|
|
353
|
+
urlParameters: [
|
|
354
|
+
Parameters.$host,
|
|
355
|
+
Parameters.resourceUri,
|
|
356
|
+
Parameters.endpointName
|
|
357
|
+
],
|
|
358
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
359
|
+
mediaType: "json",
|
|
360
|
+
serializer
|
|
361
|
+
};
|
|
362
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
363
|
+
path:
|
|
364
|
+
"/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}",
|
|
365
|
+
httpMethod: "DELETE",
|
|
366
|
+
responses: {
|
|
367
|
+
200: {},
|
|
368
|
+
204: {},
|
|
369
|
+
default: {
|
|
370
|
+
bodyMapper: Mappers.ErrorResponse
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
queryParameters: [Parameters.apiVersion],
|
|
374
|
+
urlParameters: [
|
|
375
|
+
Parameters.$host,
|
|
376
|
+
Parameters.resourceUri,
|
|
377
|
+
Parameters.endpointName
|
|
378
|
+
],
|
|
379
|
+
headerParameters: [Parameters.accept],
|
|
380
|
+
serializer
|
|
381
|
+
};
|
|
382
|
+
const listCredentialsOperationSpec: coreClient.OperationSpec = {
|
|
383
|
+
path:
|
|
384
|
+
"/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}/listCredentials",
|
|
385
|
+
httpMethod: "POST",
|
|
386
|
+
responses: {
|
|
387
|
+
200: {
|
|
388
|
+
bodyMapper: Mappers.EndpointAccessResource
|
|
389
|
+
},
|
|
390
|
+
default: {
|
|
391
|
+
bodyMapper: Mappers.ErrorResponse
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
requestBody: Parameters.listCredentialsRequest,
|
|
395
|
+
queryParameters: [Parameters.apiVersion, Parameters.expiresin],
|
|
396
|
+
urlParameters: [
|
|
397
|
+
Parameters.$host,
|
|
398
|
+
Parameters.resourceUri,
|
|
399
|
+
Parameters.endpointName
|
|
400
|
+
],
|
|
401
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
402
|
+
mediaType: "json",
|
|
403
|
+
serializer
|
|
404
|
+
};
|
|
405
|
+
const listIngressGatewayCredentialsOperationSpec: coreClient.OperationSpec = {
|
|
406
|
+
path:
|
|
407
|
+
"/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}/listIngressGatewayCredentials",
|
|
408
|
+
httpMethod: "POST",
|
|
409
|
+
responses: {
|
|
410
|
+
200: {
|
|
411
|
+
bodyMapper: Mappers.IngressGatewayResource
|
|
412
|
+
},
|
|
413
|
+
default: {
|
|
414
|
+
bodyMapper: Mappers.ErrorResponse
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
requestBody: Parameters.listIngressGatewayCredentialsRequest,
|
|
418
|
+
queryParameters: [Parameters.apiVersion, Parameters.expiresin],
|
|
419
|
+
urlParameters: [
|
|
420
|
+
Parameters.$host,
|
|
421
|
+
Parameters.resourceUri,
|
|
422
|
+
Parameters.endpointName
|
|
423
|
+
],
|
|
424
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
425
|
+
mediaType: "json",
|
|
426
|
+
serializer
|
|
427
|
+
};
|
|
428
|
+
const listManagedProxyDetailsOperationSpec: coreClient.OperationSpec = {
|
|
429
|
+
path:
|
|
430
|
+
"/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}/listManagedProxyDetails",
|
|
431
|
+
httpMethod: "POST",
|
|
432
|
+
responses: {
|
|
433
|
+
200: {
|
|
434
|
+
bodyMapper: Mappers.ManagedProxyResource
|
|
435
|
+
},
|
|
436
|
+
default: {
|
|
437
|
+
bodyMapper: Mappers.ErrorResponse
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
requestBody: Parameters.managedProxyRequest,
|
|
441
|
+
queryParameters: [Parameters.apiVersion],
|
|
442
|
+
urlParameters: [
|
|
443
|
+
Parameters.$host,
|
|
444
|
+
Parameters.resourceUri,
|
|
445
|
+
Parameters.endpointName
|
|
446
|
+
],
|
|
447
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
448
|
+
mediaType: "json",
|
|
449
|
+
serializer
|
|
450
|
+
};
|
|
451
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
452
|
+
path: "{nextLink}",
|
|
453
|
+
httpMethod: "GET",
|
|
454
|
+
responses: {
|
|
455
|
+
200: {
|
|
456
|
+
bodyMapper: Mappers.EndpointsList
|
|
457
|
+
},
|
|
458
|
+
default: {
|
|
459
|
+
bodyMapper: Mappers.ErrorResponse
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
urlParameters: [
|
|
463
|
+
Parameters.$host,
|
|
464
|
+
Parameters.nextLink,
|
|
465
|
+
Parameters.resourceUri
|
|
466
|
+
],
|
|
467
|
+
headerParameters: [Parameters.accept],
|
|
468
|
+
serializer
|
|
469
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export * from "./operations";
|
|
10
|
+
export * from "./endpoints";
|
|
11
|
+
export * from "./serviceConfigurations";
|