@azure/arm-deviceupdate 1.0.0-alpha.20220601.1 → 1.0.0-beta.2
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 +2 -8
- package/README.md +7 -7
- package/dist/index.js +42 -1
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/deviceUpdate.js +1 -1
- package/dist-esm/src/deviceUpdate.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +61 -18
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +41 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/package.json +4 -5
- package/review/arm-deviceupdate.api.md +29 -68
- package/src/deviceUpdate.ts +1 -1
- package/src/models/index.ts +68 -24
- package/types/arm-deviceupdate.d.ts +61 -18
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Azure
|
|
1
|
+
# Azure DeviceUpdate client library for JavaScript
|
|
2
2
|
|
|
3
|
-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure
|
|
3
|
+
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure DeviceUpdate client.
|
|
4
4
|
|
|
5
5
|
Microsoft Device Update resource provider.
|
|
6
6
|
|
|
@@ -24,7 +24,7 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
|
|
|
24
24
|
|
|
25
25
|
### Install the `@azure/arm-deviceupdate` package
|
|
26
26
|
|
|
27
|
-
Install the Azure
|
|
27
|
+
Install the Azure DeviceUpdate client library for JavaScript with `npm`:
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
30
|
npm install @azure/arm-deviceupdate
|
|
@@ -32,8 +32,8 @@ npm install @azure/arm-deviceupdate
|
|
|
32
32
|
|
|
33
33
|
### Create and authenticate a `DeviceUpdate`
|
|
34
34
|
|
|
35
|
-
To create a client object to access the Azure
|
|
36
|
-
You can find the endpoint for your Azure
|
|
35
|
+
To create a client object to access the Azure DeviceUpdate API, you will need the `endpoint` of your Azure DeviceUpdate resource and a `credential`. The Azure DeviceUpdate client can use Azure Active Directory credentials to authenticate.
|
|
36
|
+
You can find the endpoint for your Azure DeviceUpdate resource in the [Azure Portal][azure_portal].
|
|
37
37
|
|
|
38
38
|
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
|
|
39
39
|
|
|
@@ -43,7 +43,7 @@ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below
|
|
|
43
43
|
npm install @azure/identity
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
You will also need to **register a new AAD application and grant access to Azure
|
|
46
|
+
You will also need to **register a new AAD application and grant access to Azure DeviceUpdate** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
|
|
47
47
|
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
|
|
48
48
|
|
|
49
49
|
For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
|
|
@@ -72,7 +72,7 @@ To use this client library in the browser, first you need to use a bundler. For
|
|
|
72
72
|
|
|
73
73
|
### DeviceUpdate
|
|
74
74
|
|
|
75
|
-
`DeviceUpdate` is the primary interface for developers using the Azure
|
|
75
|
+
`DeviceUpdate` is the primary interface for developers using the Azure DeviceUpdate client library. Explore the methods on this client object to understand the different features of the Azure DeviceUpdate service that you can access.
|
|
76
76
|
|
|
77
77
|
## Troubleshooting
|
|
78
78
|
|
package/dist/index.js
CHANGED
|
@@ -38,98 +38,139 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
|
|
|
38
38
|
/** Known values of {@link CheckNameAvailabilityReason} that the service accepts. */
|
|
39
39
|
exports.KnownCheckNameAvailabilityReason = void 0;
|
|
40
40
|
(function (KnownCheckNameAvailabilityReason) {
|
|
41
|
+
/** Invalid */
|
|
41
42
|
KnownCheckNameAvailabilityReason["Invalid"] = "Invalid";
|
|
43
|
+
/** AlreadyExists */
|
|
42
44
|
KnownCheckNameAvailabilityReason["AlreadyExists"] = "AlreadyExists";
|
|
43
45
|
})(exports.KnownCheckNameAvailabilityReason || (exports.KnownCheckNameAvailabilityReason = {}));
|
|
44
46
|
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
45
47
|
exports.KnownProvisioningState = void 0;
|
|
46
48
|
(function (KnownProvisioningState) {
|
|
49
|
+
/** Succeeded */
|
|
47
50
|
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
51
|
+
/** Deleted */
|
|
48
52
|
KnownProvisioningState["Deleted"] = "Deleted";
|
|
53
|
+
/** Failed */
|
|
49
54
|
KnownProvisioningState["Failed"] = "Failed";
|
|
55
|
+
/** Canceled */
|
|
50
56
|
KnownProvisioningState["Canceled"] = "Canceled";
|
|
57
|
+
/** Accepted */
|
|
51
58
|
KnownProvisioningState["Accepted"] = "Accepted";
|
|
59
|
+
/** Creating */
|
|
52
60
|
KnownProvisioningState["Creating"] = "Creating";
|
|
53
61
|
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
54
62
|
/** Known values of {@link PublicNetworkAccess} that the service accepts. */
|
|
55
63
|
exports.KnownPublicNetworkAccess = void 0;
|
|
56
64
|
(function (KnownPublicNetworkAccess) {
|
|
65
|
+
/** Enabled */
|
|
57
66
|
KnownPublicNetworkAccess["Enabled"] = "Enabled";
|
|
67
|
+
/** Disabled */
|
|
58
68
|
KnownPublicNetworkAccess["Disabled"] = "Disabled";
|
|
59
69
|
})(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
|
|
60
70
|
/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
|
|
61
71
|
exports.KnownPrivateEndpointServiceConnectionStatus = void 0;
|
|
62
72
|
(function (KnownPrivateEndpointServiceConnectionStatus) {
|
|
73
|
+
/** Pending */
|
|
63
74
|
KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
|
|
75
|
+
/** Approved */
|
|
64
76
|
KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
|
|
77
|
+
/** Rejected */
|
|
65
78
|
KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
|
|
66
79
|
})(exports.KnownPrivateEndpointServiceConnectionStatus || (exports.KnownPrivateEndpointServiceConnectionStatus = {}));
|
|
67
80
|
/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
|
|
68
81
|
exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
|
|
69
82
|
(function (KnownPrivateEndpointConnectionProvisioningState) {
|
|
83
|
+
/** Succeeded */
|
|
70
84
|
KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
|
|
85
|
+
/** Creating */
|
|
71
86
|
KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
|
|
87
|
+
/** Deleting */
|
|
72
88
|
KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
|
|
89
|
+
/** Failed */
|
|
73
90
|
KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
|
|
74
91
|
})(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
|
|
75
92
|
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
76
93
|
exports.KnownCreatedByType = void 0;
|
|
77
94
|
(function (KnownCreatedByType) {
|
|
95
|
+
/** User */
|
|
78
96
|
KnownCreatedByType["User"] = "User";
|
|
97
|
+
/** Application */
|
|
79
98
|
KnownCreatedByType["Application"] = "Application";
|
|
99
|
+
/** ManagedIdentity */
|
|
80
100
|
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
101
|
+
/** Key */
|
|
81
102
|
KnownCreatedByType["Key"] = "Key";
|
|
82
103
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
83
104
|
/** Known values of {@link Sku} that the service accepts. */
|
|
84
105
|
exports.KnownSku = void 0;
|
|
85
106
|
(function (KnownSku) {
|
|
107
|
+
/** Free */
|
|
86
108
|
KnownSku["Free"] = "Free";
|
|
109
|
+
/** Standard */
|
|
87
110
|
KnownSku["Standard"] = "Standard";
|
|
88
111
|
})(exports.KnownSku || (exports.KnownSku = {}));
|
|
89
112
|
/** Known values of {@link Role} that the service accepts. */
|
|
90
113
|
exports.KnownRole = void 0;
|
|
91
114
|
(function (KnownRole) {
|
|
115
|
+
/** Primary */
|
|
92
116
|
KnownRole["Primary"] = "Primary";
|
|
117
|
+
/** Failover */
|
|
93
118
|
KnownRole["Failover"] = "Failover";
|
|
94
119
|
})(exports.KnownRole || (exports.KnownRole = {}));
|
|
95
120
|
/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
|
|
96
121
|
exports.KnownManagedServiceIdentityType = void 0;
|
|
97
122
|
(function (KnownManagedServiceIdentityType) {
|
|
123
|
+
/** None */
|
|
98
124
|
KnownManagedServiceIdentityType["None"] = "None";
|
|
125
|
+
/** SystemAssigned */
|
|
99
126
|
KnownManagedServiceIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
127
|
+
/** UserAssigned */
|
|
100
128
|
KnownManagedServiceIdentityType["UserAssigned"] = "UserAssigned";
|
|
129
|
+
/** SystemAssignedUserAssigned */
|
|
101
130
|
KnownManagedServiceIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned,UserAssigned";
|
|
102
131
|
})(exports.KnownManagedServiceIdentityType || (exports.KnownManagedServiceIdentityType = {}));
|
|
103
132
|
/** Known values of {@link AuthenticationType} that the service accepts. */
|
|
104
133
|
exports.KnownAuthenticationType = void 0;
|
|
105
134
|
(function (KnownAuthenticationType) {
|
|
135
|
+
/** KeyBased */
|
|
106
136
|
KnownAuthenticationType["KeyBased"] = "KeyBased";
|
|
107
137
|
})(exports.KnownAuthenticationType || (exports.KnownAuthenticationType = {}));
|
|
108
138
|
/** Known values of {@link GroupIdProvisioningState} that the service accepts. */
|
|
109
139
|
exports.KnownGroupIdProvisioningState = void 0;
|
|
110
140
|
(function (KnownGroupIdProvisioningState) {
|
|
141
|
+
/** Succeeded */
|
|
111
142
|
KnownGroupIdProvisioningState["Succeeded"] = "Succeeded";
|
|
143
|
+
/** Failed */
|
|
112
144
|
KnownGroupIdProvisioningState["Failed"] = "Failed";
|
|
145
|
+
/** Canceled */
|
|
113
146
|
KnownGroupIdProvisioningState["Canceled"] = "Canceled";
|
|
114
147
|
})(exports.KnownGroupIdProvisioningState || (exports.KnownGroupIdProvisioningState = {}));
|
|
115
148
|
/** Known values of {@link PrivateEndpointConnectionProxyProvisioningState} that the service accepts. */
|
|
116
149
|
exports.KnownPrivateEndpointConnectionProxyProvisioningState = void 0;
|
|
117
150
|
(function (KnownPrivateEndpointConnectionProxyProvisioningState) {
|
|
151
|
+
/** Succeeded */
|
|
118
152
|
KnownPrivateEndpointConnectionProxyProvisioningState["Succeeded"] = "Succeeded";
|
|
153
|
+
/** Creating */
|
|
119
154
|
KnownPrivateEndpointConnectionProxyProvisioningState["Creating"] = "Creating";
|
|
155
|
+
/** Deleting */
|
|
120
156
|
KnownPrivateEndpointConnectionProxyProvisioningState["Deleting"] = "Deleting";
|
|
157
|
+
/** Failed */
|
|
121
158
|
KnownPrivateEndpointConnectionProxyProvisioningState["Failed"] = "Failed";
|
|
122
159
|
})(exports.KnownPrivateEndpointConnectionProxyProvisioningState || (exports.KnownPrivateEndpointConnectionProxyProvisioningState = {}));
|
|
123
160
|
/** Known values of {@link Origin} that the service accepts. */
|
|
124
161
|
exports.KnownOrigin = void 0;
|
|
125
162
|
(function (KnownOrigin) {
|
|
163
|
+
/** User */
|
|
126
164
|
KnownOrigin["User"] = "user";
|
|
165
|
+
/** System */
|
|
127
166
|
KnownOrigin["System"] = "system";
|
|
167
|
+
/** UserSystem */
|
|
128
168
|
KnownOrigin["UserSystem"] = "user,system";
|
|
129
169
|
})(exports.KnownOrigin || (exports.KnownOrigin = {}));
|
|
130
170
|
/** Known values of {@link ActionType} that the service accepts. */
|
|
131
171
|
exports.KnownActionType = void 0;
|
|
132
172
|
(function (KnownActionType) {
|
|
173
|
+
/** Internal */
|
|
133
174
|
KnownActionType["Internal"] = "Internal";
|
|
134
175
|
})(exports.KnownActionType || (exports.KnownActionType = {}));
|
|
135
176
|
|
|
@@ -3617,7 +3658,7 @@ class DeviceUpdate extends coreClient__namespace.ServiceClient {
|
|
|
3617
3658
|
if (param.length > 1) {
|
|
3618
3659
|
const newParams = param[1].split("&").map((item) => {
|
|
3619
3660
|
if (item.indexOf("api-version") > -1) {
|
|
3620
|
-
return
|
|
3661
|
+
return "api-version=" + apiVersion;
|
|
3621
3662
|
}
|
|
3622
3663
|
else {
|
|
3623
3664
|
return item;
|