@azure-tools/typespec-azure-resource-manager 0.40.0-dev.6 → 0.40.0-dev.8

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 CHANGED
@@ -94,13 +94,13 @@ the version of the Azure Resource Manager common-types to use for refs in emitte
94
94
 
95
95
  ##### Target
96
96
 
97
- `union Namespace | EnumMember`
97
+ `Namespace | EnumMember`
98
98
 
99
99
  ##### Parameters
100
100
 
101
- | Name | Type | Description |
102
- | ------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
103
- | version | `valueof union string \| EnumMember` | The Azure.ResourceManager.CommonTypes.Versions for the desired common-types version or an equivalent string value. |
101
+ | Name | Type | Description |
102
+ | ------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
103
+ | version | `valueof string \| EnumMember` | The Azure.ResourceManager.CommonTypes.Versions for the desired common-types version or an equivalent string value. |
104
104
 
105
105
  #### `@armLibraryNamespace`
106
106
 
@@ -140,9 +140,9 @@ Namespace element value unless an override value is specified.
140
140
 
141
141
  ##### Parameters
142
142
 
143
- | Name | Type | Description |
144
- | ----------------- | ----------------------- | ------------------ |
145
- | providerNamespace | `valueof scalar string` | Provider namespace |
143
+ | Name | Type | Description |
144
+ | ----------------- | ---------------- | ------------------ |
145
+ | providerNamespace | `valueof string` | Provider namespace |
146
146
 
147
147
  ##### Examples
148
148
 
@@ -167,7 +167,7 @@ property to the type of the Azure Resource Manager resource.
167
167
 
168
168
  ##### Target
169
169
 
170
- `union Operation | Model`
170
+ `Operation | Model`
171
171
 
172
172
  ##### Parameters
173
173
 
@@ -187,11 +187,11 @@ Marks the operation as being a collection action
187
187
 
188
188
  ##### Parameters
189
189
 
190
- | Name | Type | Description |
191
- | ---------------------- | ----------------------- | ------------------------- |
192
- | resourceType | `Model` | Resource |
193
- | parentTypeName | `valueof scalar string` | : Parent type name. |
194
- | parentFriendlyTypeName | `valueof scalar string` | Friendly name for parent. |
190
+ | Name | Type | Description |
191
+ | ---------------------- | ---------------- | ------------------------- |
192
+ | resourceType | `Model` | Resource |
193
+ | parentTypeName | `valueof string` | : Parent type name. |
194
+ | parentFriendlyTypeName | `valueof string` | Friendly name for parent. |
195
195
 
196
196
  #### `@armResourceAction`
197
197
 
@@ -294,9 +294,9 @@ clients.
294
294
 
295
295
  ##### Parameters
296
296
 
297
- | Name | Type | Description |
298
- | ---- | --------------------- | ----------- |
299
- | \_ | `(intrinsic) unknown` | DEPRECATED |
297
+ | Name | Type | Description |
298
+ | ---- | --------- | ----------- |
299
+ | \_ | `unknown` | DEPRECATED |
300
300
 
301
301
  #### `@armResourceRead`
302
302
 
@@ -395,7 +395,7 @@ None
395
395
  This decorator sets the base type of the given resource.
396
396
 
397
397
  ```typespec
398
- @Azure.ResourceManager.resourceBaseType(baseType: Tenant | Subscription | ResourceGroup | Location | Extension)
398
+ @Azure.ResourceManager.resourceBaseType(baseType: "Tenant" | "Subscription" | "ResourceGroup" | "Location" | "Extension")
399
399
  ```
400
400
 
401
401
  ##### Target
@@ -404,9 +404,9 @@ This decorator sets the base type of the given resource.
404
404
 
405
405
  ##### Parameters
406
406
 
407
- | Name | Type | Description |
408
- | -------- | ------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- |
409
- | baseType | `union Tenant \| Subscription \| ResourceGroup \| Location \| Extension` | The built-in parent of the resource, this can be "Tenant", "Subscription", "ResourceGroup", "Location", or "Extension" |
407
+ | Name | Type | Description |
408
+ | -------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
409
+ | baseType | `"Tenant" \| "Subscription" \| "ResourceGroup" \| "Location" \| "Extension"` | The built-in parent of the resource, this can be "Tenant", "Subscription", "ResourceGroup", "Location", or "Extension" |
410
410
 
411
411
  #### `@resourceGroupResource`
412
412
 
@@ -440,7 +440,7 @@ Singleton resources only have a single instance with a fixed key name.
440
440
  See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
441
441
 
442
442
  ```typespec
443
- @Azure.ResourceManager.singleton(keyValue?: valueof string | default)
443
+ @Azure.ResourceManager.singleton(keyValue?: valueof string | "default")
444
444
  ```
445
445
 
446
446
  ##### Target
@@ -449,9 +449,9 @@ See more details on [different Azure Resource Manager resource type here.](https
449
449
 
450
450
  ##### Parameters
451
451
 
452
- | Name | Type | Description |
453
- | -------- | --------------------------------- | -------------------------------------------------------------- |
454
- | keyValue | `valueof union string \| default` | The name of the singleton resource. Default name is "default". |
452
+ | Name | Type | Description |
453
+ | -------- | ----------------------------- | -------------------------------------------------------------- |
454
+ | keyValue | `valueof string \| "default"` | The name of the singleton resource. Default name is "default". |
455
455
 
456
456
  #### `@subscriptionResource`
457
457
 
@@ -510,6 +510,6 @@ This allows sharing Azure Resource Manager resource types across specifications
510
510
 
511
511
  ##### Parameters
512
512
 
513
- | Name | Type | Description |
514
- | ---------- | ------------------- | ------------------------------------------------------------------------ |
515
- | namespaces | `model Namespace[]` | The namespaces of Azure Resource Manager libraries used in this provider |
513
+ | Name | Type | Description |
514
+ | ---------- | ------------- | ------------------------------------------------------------------------ |
515
+ | namespaces | `Namespace[]` | The namespaces of Azure Resource Manager libraries used in this provider |
@@ -1 +1 @@
1
- {"version":3,"file":"linter.d.ts","sourceRoot":"","sources":["../../src/linter.ts"],"names":[],"mappings":"AA2DA,eAAO,MAAM,OAAO,+CAgBlB,CAAC"}
1
+ {"version":3,"file":"linter.d.ts","sourceRoot":"","sources":["../../src/linter.ts"],"names":[],"mappings":"AA2DA,eAAO,MAAM,OAAO,+CAmBlB,CAAC"}
@@ -56,6 +56,10 @@ export const $linter = defineLinter({
56
56
  rules,
57
57
  ruleSets: {
58
58
  all: {
59
+ extends: [
60
+ "@azure-tools/typespec-azure-core/all",
61
+ "@azure-tools/typespec-azure-core/canonical-versioning",
62
+ ],
59
63
  enable: {
60
64
  ...allRulesEnabled,
61
65
  // TODO: Enable this rule once azure-rest-api-specs repo is ready (issue #3839)
@@ -64,7 +68,6 @@ export const $linter = defineLinter({
64
68
  disable: {
65
69
  [`@azure-tools/typespec-azure-core/bad-record-type`]: "This clashes with the ARM `no-record` rule.",
66
70
  },
67
- extends: ["@azure-tools/typespec-azure-core/all"],
68
71
  },
69
72
  },
70
73
  });
@@ -1 +1 @@
1
- {"version":3,"file":"linter.js","sourceRoot":"","sources":["../../src/linter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAC3F,OAAO,EAAE,kCAAkC,EAAE,MAAM,4CAA4C,CAAC;AAChG,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAClG,OAAO,EAAE,mCAAmC,EAAE,MAAM,gDAAgD,CAAC;AACrG,OAAO,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAC3F,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,+BAA+B,EAAE,MAAM,4CAA4C,CAAC;AAC7F,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AACnG,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,M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GED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-tools/typespec-azure-resource-manager",
3
- "version": "0.40.0-dev.6",
3
+ "version": "0.40.0-dev.8",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec Azure Resource Manager library",
6
6
  "homepage": "https://azure.github.io/typespec-azure",