@azure-tools/typespec-azure-resource-manager 0.71.0-dev.0 → 0.71.0-dev.10
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/README.md +7 -6
- package/dist/generated-defs/Azure.ResourceManager.BaseTypes.d.ts +2 -2
- package/dist/generated-defs/Azure.ResourceManager.BaseTypes.d.ts.map +1 -1
- package/dist/generated-defs/Azure.ResourceManager.Private.d.ts.map +1 -1
- package/dist/generated-defs/Azure.ResourceManager.d.ts +1 -1
- package/dist/src/base-types.d.ts +1 -1
- package/dist/src/base-types.d.ts.map +1 -1
- package/dist/src/common-types.d.ts +4 -4
- package/dist/src/common-types.d.ts.map +1 -1
- package/dist/src/commontypes.private.decorators.d.ts +2 -2
- package/dist/src/commontypes.private.decorators.d.ts.map +1 -1
- package/dist/src/linter.d.ts.map +1 -1
- package/dist/src/linter.js +2 -0
- package/dist/src/linter.js.map +1 -1
- package/dist/src/namespace.d.ts +2 -2
- package/dist/src/namespace.d.ts.map +1 -1
- package/dist/src/operations.d.ts +4 -4
- package/dist/src/operations.d.ts.map +1 -1
- package/dist/src/operations.js.map +1 -1
- package/dist/src/private.decorators.d.ts +2 -2
- package/dist/src/private.decorators.d.ts.map +1 -1
- package/dist/src/private.decorators.js +17 -6
- package/dist/src/private.decorators.js.map +1 -1
- package/dist/src/resource.d.ts +4 -4
- package/dist/src/resource.d.ts.map +1 -1
- package/dist/src/resource.js +6 -0
- package/dist/src/resource.js.map +1 -1
- package/dist/src/rules/arm-agent-base-type-child-resources.d.ts.map +1 -1
- package/dist/src/rules/arm-agent-base-type-child-resources.js +2 -1
- package/dist/src/rules/arm-agent-base-type-child-resources.js.map +1 -1
- package/dist/src/rules/arm-agent-base-type-lifecycle-operations.d.ts.map +1 -1
- package/dist/src/rules/arm-agent-base-type-lifecycle-operations.js +2 -1
- package/dist/src/rules/arm-agent-base-type-lifecycle-operations.js.map +1 -1
- package/dist/src/rules/arm-common-types-version.d.ts.map +1 -1
- package/dist/src/rules/arm-common-types-version.js +2 -1
- package/dist/src/rules/arm-common-types-version.js.map +1 -1
- package/dist/src/rules/arm-custom-resource-no-key.d.ts.map +1 -1
- package/dist/src/rules/arm-custom-resource-no-key.js +2 -1
- package/dist/src/rules/arm-custom-resource-no-key.js.map +1 -1
- package/dist/src/rules/arm-custom-resource-usage-discourage.d.ts.map +1 -1
- package/dist/src/rules/arm-custom-resource-usage-discourage.js +2 -1
- package/dist/src/rules/arm-custom-resource-usage-discourage.js.map +1 -1
- package/dist/src/rules/arm-delete-response-codes.d.ts.map +1 -1
- package/dist/src/rules/arm-delete-response-codes.js +3 -2
- package/dist/src/rules/arm-delete-response-codes.js.map +1 -1
- package/dist/src/rules/arm-feature-file-usage-discourage.d.ts.map +1 -1
- package/dist/src/rules/arm-feature-file-usage-discourage.js +2 -1
- package/dist/src/rules/arm-feature-file-usage-discourage.js.map +1 -1
- package/dist/src/rules/arm-legacy-operations-discourage.js.map +1 -1
- package/dist/src/rules/arm-no-path-casing-conflicts.d.ts.map +1 -1
- package/dist/src/rules/arm-no-path-casing-conflicts.js +2 -1
- package/dist/src/rules/arm-no-path-casing-conflicts.js.map +1 -1
- package/dist/src/rules/arm-no-record.d.ts.map +1 -1
- package/dist/src/rules/arm-no-record.js +2 -1
- package/dist/src/rules/arm-no-record.js.map +1 -1
- package/dist/src/rules/arm-post-response-codes.d.ts.map +1 -1
- package/dist/src/rules/arm-post-response-codes.js +3 -2
- package/dist/src/rules/arm-post-response-codes.js.map +1 -1
- package/dist/src/rules/arm-put-response-codes.d.ts.map +1 -1
- package/dist/src/rules/arm-put-response-codes.js +3 -2
- package/dist/src/rules/arm-put-response-codes.js.map +1 -1
- package/dist/src/rules/arm-resource-action-no-segment.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-action-no-segment.js +2 -1
- package/dist/src/rules/arm-resource-action-no-segment.js.map +1 -1
- package/dist/src/rules/arm-resource-duplicate-property.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-duplicate-property.js +2 -1
- package/dist/src/rules/arm-resource-duplicate-property.js.map +1 -1
- package/dist/src/rules/arm-resource-interfaces.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-interfaces.js +2 -1
- package/dist/src/rules/arm-resource-interfaces.js.map +1 -1
- package/dist/src/rules/arm-resource-invalid-action-verb.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-invalid-action-verb.js +2 -1
- package/dist/src/rules/arm-resource-invalid-action-verb.js.map +1 -1
- package/dist/src/rules/arm-resource-invalid-envelope-property.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-invalid-envelope-property.js +2 -1
- package/dist/src/rules/arm-resource-invalid-envelope-property.js.map +1 -1
- package/dist/src/rules/arm-resource-invalid-version-format.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-invalid-version-format.js +2 -1
- package/dist/src/rules/arm-resource-invalid-version-format.js.map +1 -1
- package/dist/src/rules/arm-resource-key-invalid-chars.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-key-invalid-chars.js +2 -1
- package/dist/src/rules/arm-resource-key-invalid-chars.js.map +1 -1
- package/dist/src/rules/arm-resource-name-pattern.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-name-pattern.js +3 -2
- package/dist/src/rules/arm-resource-name-pattern.js.map +1 -1
- package/dist/src/rules/arm-resource-operation-response.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-operation-response.js +2 -1
- package/dist/src/rules/arm-resource-operation-response.js.map +1 -1
- package/dist/src/rules/arm-resource-patch.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-patch.js +2 -1
- package/dist/src/rules/arm-resource-patch.js.map +1 -1
- package/dist/src/rules/arm-resource-path-invalid-chars.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-path-invalid-chars.js +2 -1
- package/dist/src/rules/arm-resource-path-invalid-chars.js.map +1 -1
- package/dist/src/rules/arm-resource-provisioning-state-rule.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-provisioning-state-rule.js +2 -1
- package/dist/src/rules/arm-resource-provisioning-state-rule.js.map +1 -1
- package/dist/src/rules/beyond-nesting-levels.d.ts.map +1 -1
- package/dist/src/rules/beyond-nesting-levels.js +2 -1
- package/dist/src/rules/beyond-nesting-levels.js.map +1 -1
- package/dist/src/rules/core-operations.d.ts.map +1 -1
- package/dist/src/rules/core-operations.js +2 -1
- package/dist/src/rules/core-operations.js.map +1 -1
- package/dist/src/rules/envelope-properties.d.ts.map +1 -1
- package/dist/src/rules/envelope-properties.js +2 -1
- package/dist/src/rules/envelope-properties.js.map +1 -1
- package/dist/src/rules/improper-subscription-list-operation.d.ts.map +1 -1
- package/dist/src/rules/improper-subscription-list-operation.js +2 -1
- package/dist/src/rules/improper-subscription-list-operation.js.map +1 -1
- package/dist/src/rules/lro-location-header.d.ts.map +1 -1
- package/dist/src/rules/lro-location-header.js +2 -1
- package/dist/src/rules/lro-location-header.js.map +1 -1
- package/dist/src/rules/missing-x-ms-identifiers.d.ts.map +1 -1
- package/dist/src/rules/missing-x-ms-identifiers.js +2 -1
- package/dist/src/rules/missing-x-ms-identifiers.js.map +1 -1
- package/dist/src/rules/no-empty-model.d.ts.map +1 -1
- package/dist/src/rules/no-empty-model.js +2 -1
- package/dist/src/rules/no-empty-model.js.map +1 -1
- package/dist/src/rules/no-override-props.d.ts.map +1 -1
- package/dist/src/rules/no-override-props.js +2 -1
- package/dist/src/rules/no-override-props.js.map +1 -1
- package/dist/src/rules/no-reserved-resource-property.d.ts.map +1 -1
- package/dist/src/rules/no-reserved-resource-property.js +2 -1
- package/dist/src/rules/no-reserved-resource-property.js.map +1 -1
- package/dist/src/rules/no-resource-delete-operation.d.ts.map +1 -1
- package/dist/src/rules/no-resource-delete-operation.js +2 -1
- package/dist/src/rules/no-resource-delete-operation.js.map +1 -1
- package/dist/src/rules/no-response-body.d.ts.map +1 -1
- package/dist/src/rules/no-response-body.js +3 -2
- package/dist/src/rules/no-response-body.js.map +1 -1
- package/dist/src/rules/operations-interface-missing.d.ts.map +1 -1
- package/dist/src/rules/operations-interface-missing.js +2 -1
- package/dist/src/rules/operations-interface-missing.js.map +1 -1
- package/dist/src/rules/patch-envelope-properties.d.ts.map +1 -1
- package/dist/src/rules/patch-envelope-properties.js +2 -1
- package/dist/src/rules/patch-envelope-properties.js.map +1 -1
- package/dist/src/rules/resource-name.d.ts.map +1 -1
- package/dist/src/rules/resource-name.js +2 -1
- package/dist/src/rules/resource-name.js.map +1 -1
- package/dist/src/rules/retry-after.d.ts.map +1 -1
- package/dist/src/rules/retry-after.js +2 -1
- package/dist/src/rules/retry-after.js.map +1 -1
- package/dist/src/rules/secret-prop.d.ts.map +1 -1
- package/dist/src/rules/secret-prop.js +2 -1
- package/dist/src/rules/secret-prop.js.map +1 -1
- package/dist/src/rules/unsupported-type.d.ts.map +1 -1
- package/dist/src/rules/unsupported-type.js +2 -1
- package/dist/src/rules/unsupported-type.js.map +1 -1
- package/dist/src/rules/use-relationship-required-properties.d.ts +5 -0
- package/dist/src/rules/use-relationship-required-properties.d.ts.map +1 -0
- package/dist/src/rules/use-relationship-required-properties.js +79 -0
- package/dist/src/rules/use-relationship-required-properties.js.map +1 -0
- package/dist/src/rules/utils.d.ts +2 -2
- package/dist/src/rules/utils.d.ts.map +1 -1
- package/dist/src/rules/utils.js.map +1 -1
- package/dist/src/rules/version-progression.d.ts.map +1 -1
- package/dist/src/rules/version-progression.js +2 -1
- package/dist/src/rules/version-progression.js.map +1 -1
- package/dist/src/testing/index.d.ts +1 -1
- package/dist/src/testing/index.d.ts.map +1 -1
- package/lib/arm.tsp +1 -0
- package/lib/base-types/agent.tsp +12 -8
- package/lib/base-types/base-types.tsp +18 -3
- package/lib/base-types/relationship.tsp +46 -0
- package/lib/common-types/managed-identity-ref.tsp +1 -1
- package/lib/common-types/nsp-operations.tsp +1 -5
- package/lib/common-types/private-links-ref.tsp +1 -1
- package/lib/decorators.tsp +1 -1
- package/lib/extension/operations.tsp +17 -17
- package/lib/extension/parameters.tsp +19 -5
- package/lib/legacy-types/extension-operations.tsp +5 -5
- package/lib/legacy-types/extension.tsp +2 -2
- package/lib/legacy-types/operations.tsp +4 -4
- package/lib/legacy-types/private-endpoints.tsp +0 -2
- package/lib/operations.tsp +2 -2
- package/lib/responses.tsp +3 -3
- package/package.json +16 -16
package/lib/base-types/agent.tsp
CHANGED
|
@@ -186,6 +186,9 @@ model ConversationProperties {
|
|
|
186
186
|
/** Timestamp of when the conversation was created. Read-only. */
|
|
187
187
|
@visibility(Lifecycle.Read)
|
|
188
188
|
createdAt?: utcDateTime;
|
|
189
|
+
|
|
190
|
+
/** Content input to the conversation. Required on create. */
|
|
191
|
+
input: InputItem;
|
|
189
192
|
}
|
|
190
193
|
|
|
191
194
|
/**
|
|
@@ -232,7 +235,7 @@ enum ItemType {
|
|
|
232
235
|
* - `FunctionCallOutput`: `callId`, `output`
|
|
233
236
|
* - `Compaction`: `summary`
|
|
234
237
|
*/
|
|
235
|
-
model
|
|
238
|
+
model InputItem {
|
|
236
239
|
/** Unique identifier of the item. Read-only (assigned by the service). */
|
|
237
240
|
@visibility(Lifecycle.Read)
|
|
238
241
|
id?: string;
|
|
@@ -240,11 +243,12 @@ model ConversationItem {
|
|
|
240
243
|
/** The item type discriminator. Determines which variant this item represents. */
|
|
241
244
|
type: ItemType;
|
|
242
245
|
|
|
243
|
-
/** The role of the message author. Applies to `Message` items. */
|
|
246
|
+
/** The role of the message author. Applies to `Message` items. Read-only. */
|
|
247
|
+
@visibility(Lifecycle.Read)
|
|
244
248
|
role?: MessageRole;
|
|
245
249
|
|
|
246
|
-
/** The
|
|
247
|
-
content?:
|
|
250
|
+
/** The content of the message. Applies to `Message` items. */
|
|
251
|
+
content?: Record<unknown>;
|
|
248
252
|
|
|
249
253
|
/** Identifier correlating a function call with its output. Applies to `FunctionCall` and `FunctionCallOutput` items. */
|
|
250
254
|
callId?: string;
|
|
@@ -316,7 +320,7 @@ model ResponseProperties {
|
|
|
316
320
|
status?: ResponseStatus;
|
|
317
321
|
|
|
318
322
|
/** Content input to the model. Required on create. */
|
|
319
|
-
input:
|
|
323
|
+
input: InputItem;
|
|
320
324
|
}
|
|
321
325
|
|
|
322
326
|
/**
|
|
@@ -342,9 +346,9 @@ model ResponseItem {
|
|
|
342
346
|
@visibility(Lifecycle.Read)
|
|
343
347
|
role?: MessageRole;
|
|
344
348
|
|
|
345
|
-
/** The
|
|
349
|
+
/** The content of the message. Applies to `Message` items. Read-only. */
|
|
346
350
|
@visibility(Lifecycle.Read)
|
|
347
|
-
content?:
|
|
351
|
+
content?: Record<unknown>;
|
|
348
352
|
|
|
349
353
|
/** Identifier correlating a function call with its output. Applies to `FunctionCall` and `FunctionCallOutput` items. Read-only. */
|
|
350
354
|
@visibility(Lifecycle.Read)
|
|
@@ -399,7 +403,7 @@ model ResponseInstructionsProperty {
|
|
|
399
403
|
* Applies the Agent base type decorator automatically.
|
|
400
404
|
* @template Properties RP-specific properties for the agent (must extend AgentProperties)
|
|
401
405
|
*/
|
|
402
|
-
@azureBaseType(#{ baseType:
|
|
406
|
+
@azureBaseType(#{ baseType: BaseType.Agent, version: "2026-04-01" })
|
|
403
407
|
model Agent<Properties extends AgentProperties> is TrackedResource<Properties>;
|
|
404
408
|
|
|
405
409
|
/**
|
|
@@ -2,14 +2,29 @@ using Reflection;
|
|
|
2
2
|
|
|
3
3
|
namespace Azure.ResourceManager.BaseTypes;
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* The set of Azure base types a resource may declare conformance to via the
|
|
7
|
+
* `@azureBaseType` decorator. Modeled as an extensible (open) enum so additional
|
|
8
|
+
* base types can be introduced without a breaking change.
|
|
9
|
+
*/
|
|
10
|
+
union BaseType {
|
|
11
|
+
/** The Agent base type. */
|
|
12
|
+
Agent: "Agent",
|
|
13
|
+
|
|
14
|
+
/** The Relationship base type. */
|
|
15
|
+
Relationship: "Relationship",
|
|
16
|
+
|
|
17
|
+
string,
|
|
18
|
+
}
|
|
19
|
+
|
|
5
20
|
/**
|
|
6
21
|
* An ARM-managed base type descriptor identifying the schema contract a resource conforms to.
|
|
7
22
|
* Used as a parameter to the `@azureBaseType` decorator to indicate which
|
|
8
23
|
* base types a resource conforms to.
|
|
9
24
|
*/
|
|
10
25
|
model BaseTypeInfo {
|
|
11
|
-
/** The base type identifier
|
|
12
|
-
baseType:
|
|
26
|
+
/** The base type identifier. */
|
|
27
|
+
baseType: BaseType;
|
|
13
28
|
|
|
14
29
|
/** The schema version of the base type. */
|
|
15
30
|
version: string;
|
|
@@ -36,7 +51,7 @@ model BaseTypeInfo {
|
|
|
36
51
|
*
|
|
37
52
|
* // The @azureBaseType decorator marks the resource as conforming to the Agent base type.
|
|
38
53
|
* // (The Agent template applies this automatically, but it can also be applied directly.)
|
|
39
|
-
* @azureBaseType(#{ baseType:
|
|
54
|
+
* @azureBaseType(#{ baseType: BaseType.Agent, version: "2026-04-01" })
|
|
40
55
|
* model ContosoApplianceAgent is TrackedResource<ContosoApplianceProperties> {
|
|
41
56
|
* ...ResourceNameParameter<ContosoApplianceAgent>;
|
|
42
57
|
* }
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import "./base-types.tsp";
|
|
2
|
+
|
|
3
|
+
namespace Azure.ResourceManager.BaseTypes.Relationships;
|
|
4
|
+
|
|
5
|
+
// ============================================================================
|
|
6
|
+
// Relationship Properties (resource property bag)
|
|
7
|
+
// ============================================================================
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Required properties for a relationship resource.
|
|
11
|
+
* @template ProvisioningState The relationship provisioning state values.
|
|
12
|
+
*/
|
|
13
|
+
model RelationshipProperties<ProvisioningState extends string = ResourceProvisioningState> {
|
|
14
|
+
/** ARM-managed. Must include the base type descriptor for this resource. */
|
|
15
|
+
@visibility(Lifecycle.Read)
|
|
16
|
+
baseTypes: BaseTypeInfo[];
|
|
17
|
+
|
|
18
|
+
/** The relationship source identifier. */
|
|
19
|
+
sourceId: string;
|
|
20
|
+
|
|
21
|
+
/** The tenant identifier of the relationship source. */
|
|
22
|
+
sourceTenant: string;
|
|
23
|
+
|
|
24
|
+
/** The relationship target identifier. */
|
|
25
|
+
targetId: string;
|
|
26
|
+
|
|
27
|
+
/** The tenant identifier of the relationship target. */
|
|
28
|
+
targetTenant: string;
|
|
29
|
+
|
|
30
|
+
/** The provisioning state of the relationship. */
|
|
31
|
+
@visibility(Lifecycle.Read)
|
|
32
|
+
provisioningState?: ProvisioningState;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// ============================================================================
|
|
36
|
+
// Resource Templates
|
|
37
|
+
// ============================================================================
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Model template for a Relationship extension resource.
|
|
41
|
+
* Applies the Relationship base type decorator automatically.
|
|
42
|
+
* @template Properties RP-specific properties for the relationship (must extend RelationshipProperties)
|
|
43
|
+
*/
|
|
44
|
+
@azureBaseType(#{ baseType: BaseType.Relationship, version: "2026-04-01" })
|
|
45
|
+
model Relationship<Properties extends RelationshipProperties = RelationshipProperties>
|
|
46
|
+
is ExtensionResource<Properties>;
|
|
@@ -53,7 +53,7 @@ namespace Azure.ResourceManager.CommonTypes;
|
|
|
53
53
|
);
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
* The properties of the
|
|
56
|
+
* The properties of the system-assigned identity associated with this resource.
|
|
57
57
|
*/
|
|
58
58
|
@@armCommonDefinition(
|
|
59
59
|
SystemAssignedServiceIdentity,
|
|
@@ -96,8 +96,6 @@ interface NspConfigurationOperations<
|
|
|
96
96
|
* @template ParentResource the parent resource of the NspConfiguration
|
|
97
97
|
* @template Resource Optional. The NspConfiguration resource being listed
|
|
98
98
|
* @template BaseParameters Optional. Allows overriding the operation parameters
|
|
99
|
-
* @template ParentName Optional. The name of the parent resource
|
|
100
|
-
* @template ParentFriendlyName Optional. The friendly name of the parent resource
|
|
101
99
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
102
100
|
* @template Response Optional. The success response for the list operation
|
|
103
101
|
* @template Error Optional. The error response, if non-standard.
|
|
@@ -127,12 +125,10 @@ interface NspConfigurationOperations<
|
|
|
127
125
|
>;
|
|
128
126
|
|
|
129
127
|
/**
|
|
130
|
-
* List the network security
|
|
128
|
+
* List the network security perimeter configuration for a resource without pagination - this should only be used for legacy operations
|
|
131
129
|
* @template ParentResource the parent resource of the NspConfiguration
|
|
132
130
|
* @template Resource Optional. The NspConfiguration resource being listed
|
|
133
131
|
* @template BaseParameters Optional. Allows overriding the operation parameters
|
|
134
|
-
* @template ParentName Optional. The name of the parent resource
|
|
135
|
-
* @template ParentFriendlyName Optional. The friendly name of the parent resource
|
|
136
132
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
137
133
|
* @template Response Optional. The success response for the list operation
|
|
138
134
|
* @template Error Optional. The error response, if non-standard.
|
package/lib/decorators.tsp
CHANGED
|
@@ -223,7 +223,7 @@ extern dec armResourceCheckExistence(
|
|
|
223
223
|
* clients.
|
|
224
224
|
*
|
|
225
225
|
* The optional `resourceOperationOptions` parameter provides additional options.
|
|
226
|
-
* `allowStaticRoutes` turns off
|
|
226
|
+
* `allowStaticRoutes` turns off autoRoute for the interface, so individual operations can
|
|
227
227
|
* choose static (`@route`) or automatic (`@autoRoute`) routing.
|
|
228
228
|
*
|
|
229
229
|
* `resourceType: Model` specifies the resource type for the operations in the interface
|
|
@@ -9,7 +9,7 @@ using Azure.ResourceManager.Private;
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* List an extension resource at the given target scope
|
|
12
|
-
* @template TargetResource The target to list at, e.g. Extension.Subscription
|
|
12
|
+
* @template TargetResource The target to list at, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
13
13
|
* @template ExtensionResource the resource being listed
|
|
14
14
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
15
15
|
* @template Response Optional. The success response for the list operation
|
|
@@ -40,7 +40,7 @@ op ListByTarget<
|
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* A resource GET operation
|
|
43
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
43
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
44
44
|
* @template ExtensionResource the resource being read
|
|
45
45
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
46
46
|
* @template Response Optional. The success response for the read operation
|
|
@@ -68,7 +68,7 @@ op Read<
|
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* Check a resource's existence via HEAD operation
|
|
71
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
71
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
72
72
|
* @template ExtensionResource the extension resource being checked
|
|
73
73
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
74
74
|
* @template Response Optional. The success response for the read operation
|
|
@@ -101,7 +101,7 @@ op CheckExistence<
|
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
103
|
* A long-running resource CreateOrUpdate (PUT)
|
|
104
|
-
* @template TargetResource the target resource, e.g. Extension.Subscription
|
|
104
|
+
* @template TargetResource the target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
105
105
|
* @template ExtensionResource the resource being created or updated
|
|
106
106
|
* @template LroHeaders Optional. Allows overriding the lro headers returned on resource create
|
|
107
107
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
@@ -141,7 +141,7 @@ op CreateOrUpdateAsync<
|
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
143
|
* Synchronous PUT operation for Azure Resource Manager resources
|
|
144
|
-
* @template TargetResource the target resource, e.g. Extension.Subscription
|
|
144
|
+
* @template TargetResource the target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
145
145
|
* @template ExtensionResource the resource being created or replaced
|
|
146
146
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
147
147
|
* @template Response Optional. The success response for the createOrReplace operation
|
|
@@ -177,7 +177,7 @@ op CreateOrReplaceSync<
|
|
|
177
177
|
|
|
178
178
|
/**
|
|
179
179
|
* A long-running resource CreateOrUpdate (PUT)
|
|
180
|
-
* @template TargetResource the target resource, e.g. Extension.Subscription
|
|
180
|
+
* @template TargetResource the target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
181
181
|
* @template ExtensionResource the resource being created or replaced
|
|
182
182
|
* @template LroHeaders Optional. Allows overriding the lro headers returned on resource create
|
|
183
183
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
@@ -218,7 +218,7 @@ op CreateOrReplaceAsync<
|
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
220
|
* A long-running resource update using a custom PATCH payload (Asynchronous)
|
|
221
|
-
* @template TargetResource the target resource, e.g. Extension.Subscription
|
|
221
|
+
* @template TargetResource the target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
222
222
|
* @template ExtensionResource the resource being patched
|
|
223
223
|
* @template PatchModel The input model for the PATCH request
|
|
224
224
|
* @template LroHeaders Optional. Allows overriding the lro headers returned in the Accepted response
|
|
@@ -258,7 +258,7 @@ op CustomPatchAsync<
|
|
|
258
258
|
|
|
259
259
|
/**
|
|
260
260
|
* A resource update using a custom PATCH payload (synchronous)
|
|
261
|
-
* @template TargetResource the target resource, e.g. Extension.Subscription
|
|
261
|
+
* @template TargetResource the target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
262
262
|
* @template ExtensionResource the resource being patched
|
|
263
263
|
* @template PatchModel The input model for the PATCH request
|
|
264
264
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
@@ -289,7 +289,7 @@ op CustomPatchSync<
|
|
|
289
289
|
|
|
290
290
|
/**
|
|
291
291
|
* Delete a resource asynchronously
|
|
292
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
292
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
293
293
|
* @template ExtensionResource The resource being deleted
|
|
294
294
|
* @template Response The response type for the operation
|
|
295
295
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
@@ -315,7 +315,7 @@ op DeleteAsyncBase<
|
|
|
315
315
|
|
|
316
316
|
/**
|
|
317
317
|
* Delete a resource asynchronously.
|
|
318
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
318
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
319
319
|
* @template ExtensionResource The resource being deleted
|
|
320
320
|
* @template LroHeaders Optional. Allows overriding the headers in the Accepted response
|
|
321
321
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
@@ -352,7 +352,7 @@ op DeleteAsync<
|
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
354
|
* Delete a resource asynchronously
|
|
355
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
355
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
356
356
|
* @template ExtensionResource The resource being deleted
|
|
357
357
|
* @template LroHeaders Optional. Allows overriding the headers returned in the Accepted response
|
|
358
358
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
@@ -385,7 +385,7 @@ op DeleteWithoutOkAsync<
|
|
|
385
385
|
|
|
386
386
|
/**
|
|
387
387
|
* Delete a resource synchronously
|
|
388
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
388
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
389
389
|
* @template ExtensionResource The resource being deleted
|
|
390
390
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
391
391
|
* @template Response Optional. The success response(s) for the delete operation
|
|
@@ -411,7 +411,7 @@ op DeleteSync<
|
|
|
411
411
|
|
|
412
412
|
/**
|
|
413
413
|
* A long-running resource action.
|
|
414
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
414
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
415
415
|
* @template ExtensionResource The resource being acted upon
|
|
416
416
|
* @template Request The request model for the action
|
|
417
417
|
* @template Response The response type for the action
|
|
@@ -445,7 +445,7 @@ op ActionAsyncBase<
|
|
|
445
445
|
|
|
446
446
|
/**
|
|
447
447
|
* A long-running resource action.
|
|
448
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
448
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
449
449
|
* @template ExtensionResource The resource being acted upon
|
|
450
450
|
* @template Request The request model for the action
|
|
451
451
|
* @template Response The response model for the action
|
|
@@ -487,7 +487,7 @@ op ActionAsync<
|
|
|
487
487
|
|
|
488
488
|
/**
|
|
489
489
|
* A synchronous resource action.
|
|
490
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
490
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
491
491
|
* @template ExtensionResource The resource being acted upon
|
|
492
492
|
* @template Request The request model for the action
|
|
493
493
|
* @template Response The response model for the action
|
|
@@ -522,7 +522,7 @@ op ActionSync<
|
|
|
522
522
|
|
|
523
523
|
/**
|
|
524
524
|
* A long-running resource action that returns no content.
|
|
525
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
525
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
526
526
|
* @template ExtensionResource The resource being acted upon
|
|
527
527
|
* @template Request The request model for the action
|
|
528
528
|
* @template LroHeaders Optional. Allows overriding the headers returned in the Accepted response
|
|
@@ -563,7 +563,7 @@ op ActionNoResponseContentAsync<
|
|
|
563
563
|
|
|
564
564
|
/**
|
|
565
565
|
* A synchronous resource action that returns no content.
|
|
566
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
566
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
567
567
|
* @template ExtensionResource The resource being acted upon
|
|
568
568
|
* @template Request The request model for the action
|
|
569
569
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
@@ -27,7 +27,7 @@ model ScopeParameter<Type extends string = string> {
|
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Base parameters for an extension target.
|
|
30
|
-
* @template Resource The resource model for an extension target (usually Extension.Tenant, Extension.Subscription, Extension.ResourceGroup, Extension.Scope, Extension.ManagementGroup or an external resource).
|
|
30
|
+
* @template Resource The resource model for an extension target (usually Extension.Tenant, Extension.Subscription, Extension.ResourceGroup, Extension.Scope, Extension.ManagementGroup, Extension.ServiceGroup or an external resource).
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
33
|
@resourceBaseParametersOf(Resource)
|
|
@@ -45,7 +45,7 @@ model TargetBaseParameters<Resource extends {}> {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/** The path parameters for a target resource for an extension
|
|
48
|
-
* @template Resource The resource model for an extension target (usually Extension.Tenant, Extension.Subscription, Extension.ResourceGroup, Extension.Scope, Extension.ManagementGroup or an external resource).
|
|
48
|
+
* @template Resource The resource model for an extension target (usually Extension.Tenant, Extension.Subscription, Extension.ResourceGroup, Extension.Scope, Extension.ManagementGroup, Extension.ServiceGroup or an external resource).
|
|
49
49
|
*/
|
|
50
50
|
model TargetParameters<Resource extends {}> {
|
|
51
51
|
...TargetBaseParameters<Resource>;
|
|
@@ -64,7 +64,7 @@ model ExtensionProviderNamespace<Resource extends {}> {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/** The provider namespace (if any) for a target resource for an extension
|
|
67
|
-
* @template Resource The resource model for an extension target (usually Extension.Tenant, Extension.Subscription, Extension.ResourceGroup, Extension.Scope, Extension.ManagementGroup or an external resource)
|
|
67
|
+
* @template Resource The resource model for an extension target (usually Extension.Tenant, Extension.Subscription, Extension.ResourceGroup, Extension.Scope, Extension.ManagementGroup, Extension.ServiceGroup or an external resource)
|
|
68
68
|
*/
|
|
69
69
|
model TargetProviderNamespace<Resource extends {}> {
|
|
70
70
|
@resourceParameterBaseFor(
|
|
@@ -84,7 +84,7 @@ model TargetProviderNamespace<Resource extends {}> {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/** The path parameters for an extension resource at the given target
|
|
87
|
-
* @template TargetResource The target of the extension resource (Extension.Tenant, Extension.Subscription, Extension.ResourceGroup, Extension.Scope, Extension.ManagementGroup or another resource).
|
|
87
|
+
* @template TargetResource The target of the extension resource (Extension.Tenant, Extension.Subscription, Extension.ResourceGroup, Extension.Scope, Extension.ManagementGroup, Extension.ServiceGroup or another resource).
|
|
88
88
|
* @template Resource The extension resource.
|
|
89
89
|
*/
|
|
90
90
|
model ExtensionInstanceParameters<TargetResource extends {}, Resource extends {}> {
|
|
@@ -94,7 +94,7 @@ model ExtensionInstanceParameters<TargetResource extends {}, Resource extends {}
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
/** The path parameters for a collection of extension resources at the given target
|
|
97
|
-
* @template TargetResource The target of the extension resource (Extension.Tenant, Extension.Subscription, Extension.ResourceGroup, Extension.Scope, Extension.ManagementGroup or another resource).
|
|
97
|
+
* @template TargetResource The target of the extension resource (Extension.Tenant, Extension.Subscription, Extension.ResourceGroup, Extension.Scope, Extension.ManagementGroup, Extension.ServiceGroup or another resource).
|
|
98
98
|
* @template ExtensionResource The extension resource.
|
|
99
99
|
*/
|
|
100
100
|
model ExtensionParentParameters<TargetResource extends {}, ExtensionResource extends {}> {
|
|
@@ -121,6 +121,20 @@ model ManagementGroup<ParameterName extends valueof string = "managementGroupNam
|
|
|
121
121
|
name: string;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
/** A service group
|
|
125
|
+
* @template ParameterName The name of the 'name' parameter of the service group (usually serviceGroupName or serviceGroupId).
|
|
126
|
+
*/
|
|
127
|
+
@tenantResource
|
|
128
|
+
@armVirtualResource("Microsoft.Management")
|
|
129
|
+
model ServiceGroup<ParameterName extends valueof string = "serviceGroupName"> {
|
|
130
|
+
@path
|
|
131
|
+
@minLength(1)
|
|
132
|
+
@segment("serviceGroups")
|
|
133
|
+
@key(ParameterName)
|
|
134
|
+
@doc("The service group name.")
|
|
135
|
+
name: string;
|
|
136
|
+
}
|
|
137
|
+
|
|
124
138
|
/** An external resource target, used when an extension targets a resource from another provider namespace
|
|
125
139
|
* @template TargetNamespace The provider namespace for the external resource.
|
|
126
140
|
* @template ResourceType The type of the external resource.
|
|
@@ -11,7 +11,7 @@ using Azure.ResourceManager.Private;
|
|
|
11
11
|
/**
|
|
12
12
|
* DEPRECATED: Use CreateOrReplaceAsync instead.
|
|
13
13
|
* A long-running resource CreateOrUpdate (PUT)
|
|
14
|
-
* @template TargetResource the target resource, e.g. Extension.Subscription
|
|
14
|
+
* @template TargetResource the target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
15
15
|
* @template ExtensionResource the resource being created or updated
|
|
16
16
|
* @template Request Optional. The request body for the createOrUpdate operation
|
|
17
17
|
* @template LroHeaders Optional. Allows overriding the lro headers returned on resource create
|
|
@@ -47,7 +47,7 @@ alias CreateOrUpdateAsync<
|
|
|
47
47
|
>;
|
|
48
48
|
|
|
49
49
|
/** A long-running resource CreateOrUpdate (PUT)
|
|
50
|
-
* @template TargetResource the target resource, e.g. Extension.Subscription
|
|
50
|
+
* @template TargetResource the target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
51
51
|
* @template ExtensionResource the resource being created or updated
|
|
52
52
|
* @template Request Optional. The request body for the createOrUpdate operation
|
|
53
53
|
* @template LroHeaders Optional. Allows overriding the lro headers returned on resource create
|
|
@@ -93,7 +93,7 @@ op CreateOrReplaceAsync<
|
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
* Synchronous PUT operation for Azure Resource Manager resources
|
|
96
|
-
* @template TargetResource the target resource, e.g. Extension.Subscription
|
|
96
|
+
* @template TargetResource the target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
97
97
|
* @template ExtensionResource the resource being created or replaced
|
|
98
98
|
* @template Request Optional. The request body for the createOrUpdate operation
|
|
99
99
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
@@ -135,7 +135,7 @@ op CreateOrReplaceSync<
|
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
137
|
* A long-running resource update using a custom PATCH payload (Asynchronous)
|
|
138
|
-
* @template TargetResource the target resource, e.g. Extension.Subscription
|
|
138
|
+
* @template TargetResource the target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
139
139
|
* @template ExtensionResource the resource being patched
|
|
140
140
|
* @template PatchModel The input model for the PATCH request
|
|
141
141
|
* @template LroHeaders Optional. Allows overriding the lro headers returned in the Accepted response
|
|
@@ -179,7 +179,7 @@ op CustomPatchAsync<
|
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
181
|
* A resource update using a custom PATCH payload (synchronous)
|
|
182
|
-
* @template TargetResource the target resource, e.g. Extension.Subscription
|
|
182
|
+
* @template TargetResource the target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
183
183
|
* @template ExtensionResource the resource being patched
|
|
184
184
|
* @template PatchModel The input model for the PATCH request
|
|
185
185
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
@@ -94,7 +94,7 @@ interface ExtensionOperations<
|
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
96
|
* A long-running resource Update (PATCH)
|
|
97
|
-
* @template Resource the resource being
|
|
97
|
+
* @template Resource the resource being updated
|
|
98
98
|
* @template PatchModel the PATCH request model
|
|
99
99
|
* @template LroHeaders Optional. Allows overriding the lro headers returned on resource create
|
|
100
100
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
@@ -134,7 +134,7 @@ interface ExtensionOperations<
|
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
136
|
* A synchronous resource Update (PATCH)
|
|
137
|
-
* @template Resource the resource being
|
|
137
|
+
* @template Resource the resource being updated
|
|
138
138
|
* @template PatchModel the PATCH request model
|
|
139
139
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
140
140
|
* @template Response Optional. The success response(s) for the PATCH operation
|
|
@@ -13,7 +13,7 @@ using Rest;
|
|
|
13
13
|
* is accessible at multiple, fixed resource paths.
|
|
14
14
|
* @template ParentParameters The path parameters for the resource parent
|
|
15
15
|
* @template ResourceTypeParameter The path parameter for the resource name
|
|
16
|
-
* @template ErrorType Optional. The type of error models used in operations created
|
|
16
|
+
* @template ErrorType Optional. The type of error models used in operations created from this template
|
|
17
17
|
* @template ResourceName Optional. The name of the resource type described in this template
|
|
18
18
|
*/
|
|
19
19
|
interface LegacyOperations<
|
|
@@ -34,7 +34,7 @@ interface LegacyOperations<
|
|
|
34
34
|
* is accessible at multiple, fixed resource paths. Can be used with static routes.
|
|
35
35
|
* @template ParentParameters The path parameters for the resource parent
|
|
36
36
|
* @template ResourceTypeParameter The path parameter for the resource name
|
|
37
|
-
* @template ErrorType Optional. The type of error models used in operations created
|
|
37
|
+
* @template ErrorType Optional. The type of error models used in operations created from this template
|
|
38
38
|
* @template ResourceRoute Optional. The resource route to use for operations in the interface.
|
|
39
39
|
* @template RoutedResourceName Optional. The name of the resource type described in this template
|
|
40
40
|
*/
|
|
@@ -660,7 +660,7 @@ op CreateOrReplaceSync<
|
|
|
660
660
|
|
|
661
661
|
/**
|
|
662
662
|
* A resource list operation, at the subscription scope, that lists only a single page
|
|
663
|
-
* @template Resource the resource being
|
|
663
|
+
* @template Resource the resource being listed
|
|
664
664
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
665
665
|
* @template Response Optional. The success response for the list operation
|
|
666
666
|
* @template Error Optional. The error response, if non-standard.
|
|
@@ -681,7 +681,7 @@ op ArmListSinglePageBySubscription<
|
|
|
681
681
|
|
|
682
682
|
/**
|
|
683
683
|
* A resource list operation, at the scope of the resource's parent that lists only a single page.
|
|
684
|
-
* @template Resource the resource being
|
|
684
|
+
* @template Resource the resource being listed
|
|
685
685
|
* @template BaseParameters Optional. Allows overriding the operation parameters
|
|
686
686
|
* @template ParentName Optional. The name of the parent resource
|
|
687
687
|
* @template ParentFriendlyName Optional. The friendly name of the parent resource
|
|
@@ -12,8 +12,6 @@ using Rest;
|
|
|
12
12
|
* @template ParentResource the parent resource of the PrivateEndpointConnection
|
|
13
13
|
* @template Resource Optional. The PrivateEndpointConnection resource being listed
|
|
14
14
|
* @template BaseParameters Optional. Allows overriding the operation parameters
|
|
15
|
-
* @template ParentName Optional. The name of the parent resource
|
|
16
|
-
* @template ParentFriendlyName Optional. The friendly name of the parent resource
|
|
17
15
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
18
16
|
* @template Response Optional. The success response for the list operation
|
|
19
17
|
* @template Error Optional. The error response, if non-standard.
|
package/lib/operations.tsp
CHANGED
|
@@ -885,7 +885,7 @@ op ArmResourceActionNoContentSync<
|
|
|
885
885
|
/**
|
|
886
886
|
* Adds check global name availability operation, normally used if
|
|
887
887
|
* a resource name must be globally unique (for example, if the resource
|
|
888
|
-
* exposes
|
|
888
|
+
* exposes an endpoint that uses the resource name in the url)
|
|
889
889
|
* @template Request the availability request, defaults to the standard request, containing name and resource type
|
|
890
890
|
* @template Response the availability response, default to the standard response
|
|
891
891
|
* @template AdditionalParams A model specifying additional non-path parameters to the availability request
|
|
@@ -905,7 +905,7 @@ op checkGlobalNameAvailability<
|
|
|
905
905
|
/**
|
|
906
906
|
* Adds check location-specific name availability operation, normally used if
|
|
907
907
|
* a resource name must be globally unique (for example, if the resource
|
|
908
|
-
* exposes
|
|
908
|
+
* exposes an endpoint that uses the resource name in the url)
|
|
909
909
|
* @template Request the availability request, defaults to the standard request, containing name and resource type
|
|
910
910
|
* @template Response the availability response, default to the standard response
|
|
911
911
|
* @template AdditionalParams A model specifying additional non-path parameters to the availability request
|
package/lib/responses.tsp
CHANGED
|
@@ -246,7 +246,7 @@ model ArmLroLocationHeader<
|
|
|
246
246
|
* @template StatusMonitor The type of the polling StatusMonitor when following the Azure-AsyncOperation url
|
|
247
247
|
* @template FinalResult The type of the logical result when following the location header
|
|
248
248
|
* @template PollingUrlValue The value type of the link to the status monitor
|
|
249
|
-
* @template FinalUrlValue The value type
|
|
249
|
+
* @template FinalUrlValue The value type of the link to the final result
|
|
250
250
|
*
|
|
251
251
|
* @example
|
|
252
252
|
* ```typespec
|
|
@@ -320,7 +320,7 @@ model ArmResourceUpdatedResponse<Resource extends Azure.ResourceManager.Foundati
|
|
|
320
320
|
|
|
321
321
|
/**
|
|
322
322
|
* Resource create operation succeeded
|
|
323
|
-
* @template Resource The resource being
|
|
323
|
+
* @template Resource The resource being created
|
|
324
324
|
* @template LroHeaders Optional. The lro headers returned with a Created response
|
|
325
325
|
*
|
|
326
326
|
* @example
|
|
@@ -350,7 +350,7 @@ model ArmResourceCreatedResponse<
|
|
|
350
350
|
|
|
351
351
|
/**
|
|
352
352
|
* Resource synchronous create operation succeeded
|
|
353
|
-
* @template Resource The resource being
|
|
353
|
+
* @template Resource The resource being created
|
|
354
354
|
*
|
|
355
355
|
* @example
|
|
356
356
|
* ```typespec
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-azure-resource-manager",
|
|
3
|
-
"version": "0.71.0-dev.
|
|
3
|
+
"version": "0.71.0-dev.10",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Resource Manager library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
@@ -47,33 +47,33 @@
|
|
|
47
47
|
"pluralize": "^8.0.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@azure-tools/typespec-azure-core": "^0.70.0 || >=0.71.0-dev
|
|
50
|
+
"@azure-tools/typespec-azure-core": "^0.70.0 || >= 0.71.0-dev.3",
|
|
51
51
|
"@typespec/compiler": "^1.14.0",
|
|
52
52
|
"@typespec/http": "^1.14.0",
|
|
53
|
-
"@typespec/rest": "^0.84.0
|
|
54
|
-
"@typespec/
|
|
55
|
-
"@typespec/
|
|
53
|
+
"@typespec/rest": "^0.84.0",
|
|
54
|
+
"@typespec/versioning": "^0.84.0",
|
|
55
|
+
"@typespec/openapi": "^1.14.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@azure-tools/typespec-azure-core": "^0.70.0 || >=0.71.0-dev
|
|
58
|
+
"@azure-tools/typespec-azure-core": "^0.70.0 || >= 0.71.0-dev.3",
|
|
59
59
|
"@types/node": "^26.0.0",
|
|
60
60
|
"@types/pluralize": "^0.0.33",
|
|
61
|
-
"@typespec/compiler": "^1.14.0",
|
|
62
|
-
"@typespec/http": "^1.14.0",
|
|
63
|
-
"@typespec/library-linter": "^0.84.0 || >=0.85.0-dev <0.85.0",
|
|
64
|
-
"@typespec/rest": "^0.84.0 || >=0.85.0-dev <0.85.0",
|
|
65
|
-
"@typespec/tspd": "^0.76.0 || >=0.77.0-dev <0.77.0",
|
|
66
|
-
"@typespec/versioning": "^0.84.0 || >=0.85.0-dev <0.85.0",
|
|
67
|
-
"@typespec/openapi": "^1.14.0",
|
|
68
61
|
"@vitest/coverage-v8": "^4.1.3",
|
|
69
62
|
"@vitest/ui": "^4.1.3",
|
|
70
63
|
"rimraf": "^6.1.3",
|
|
71
64
|
"typescript": "~6.0.2",
|
|
72
|
-
"vitest": "^4.1.3"
|
|
65
|
+
"vitest": "^4.1.3",
|
|
66
|
+
"@typespec/rest": "^0.84.0",
|
|
67
|
+
"@typespec/versioning": "^0.84.0",
|
|
68
|
+
"@typespec/compiler": "^1.14.0",
|
|
69
|
+
"@typespec/library-linter": "^0.84.0",
|
|
70
|
+
"@typespec/tspd": "^0.76.0",
|
|
71
|
+
"@typespec/http": "^1.14.0",
|
|
72
|
+
"@typespec/openapi": "^1.14.0"
|
|
73
73
|
},
|
|
74
74
|
"scripts": {
|
|
75
75
|
"clean": "rimraf ./dist ./temp",
|
|
76
|
-
"build": "
|
|
76
|
+
"build": "pnpm gen-extern-signature && tsc -p tsconfig.build.json && pnpm lint-typespec-library",
|
|
77
77
|
"watch": "tsc -p tsconfig.build.json --watch",
|
|
78
78
|
"gen-extern-signature": "tspd --enable-experimental gen-extern-signature .",
|
|
79
79
|
"lint-typespec-library": "tsp compile . --warn-as-error --import @typespec/library-linter --no-emit",
|
|
@@ -83,6 +83,6 @@
|
|
|
83
83
|
"test:ci": "vitest run --coverage --reporter=junit --reporter=default",
|
|
84
84
|
"lint": "oxlint . --deny-warnings",
|
|
85
85
|
"lint:fix": "oxlint . --fix",
|
|
86
|
-
"regen-docs": "tspd doc . --enable-experimental --llmstxt --output-dir ../../website/src/content/docs/docs/libraries/azure-resource-manager/reference"
|
|
86
|
+
"regen-docs": "tspd doc . --enable-experimental --llmstxt --rules-dir ../rules --output-dir ../../website/src/content/docs/docs/libraries/azure-resource-manager/reference"
|
|
87
87
|
}
|
|
88
88
|
}
|