@distilled.cloud/azure 0.8.0 → 0.10.0

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.
Files changed (151) hide show
  1. package/lib/credentials.d.ts +2 -2
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +2 -2
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +24 -24
  6. package/lib/retry.d.ts +2 -2
  7. package/lib/retry.d.ts.map +1 -1
  8. package/lib/retry.js +2 -2
  9. package/lib/retry.js.map +1 -1
  10. package/lib/services/app.d.ts +551 -0
  11. package/lib/services/app.d.ts.map +1 -1
  12. package/lib/services/app.js +788 -0
  13. package/lib/services/app.js.map +1 -1
  14. package/lib/services/applicationinsights.d.ts +56 -85
  15. package/lib/services/applicationinsights.d.ts.map +1 -1
  16. package/lib/services/applicationinsights.js +56 -120
  17. package/lib/services/applicationinsights.js.map +1 -1
  18. package/lib/services/authorization.d.ts +61 -243
  19. package/lib/services/authorization.d.ts.map +1 -1
  20. package/lib/services/authorization.js +61 -303
  21. package/lib/services/authorization.js.map +1 -1
  22. package/lib/services/automation.d.ts +764 -1010
  23. package/lib/services/automation.d.ts.map +1 -1
  24. package/lib/services/automation.js +764 -1070
  25. package/lib/services/automation.js.map +1 -1
  26. package/lib/services/azure-kusto.d.ts +440 -166
  27. package/lib/services/azure-kusto.d.ts.map +1 -1
  28. package/lib/services/azure-kusto.js +440 -166
  29. package/lib/services/azure-kusto.js.map +1 -1
  30. package/lib/services/batch.d.ts +1 -1
  31. package/lib/services/batch.js +1 -1
  32. package/lib/services/batch.js.map +1 -1
  33. package/lib/services/cognitiveservices.d.ts +2 -0
  34. package/lib/services/cognitiveservices.d.ts.map +1 -1
  35. package/lib/services/cognitiveservices.js +3 -1
  36. package/lib/services/cognitiveservices.js.map +1 -1
  37. package/lib/services/computelimit.d.ts +188 -0
  38. package/lib/services/computelimit.d.ts.map +1 -1
  39. package/lib/services/computelimit.js +236 -0
  40. package/lib/services/computelimit.js.map +1 -1
  41. package/lib/services/containerinstance.d.ts +210 -1291
  42. package/lib/services/containerinstance.d.ts.map +1 -1
  43. package/lib/services/containerinstance.js +250 -1355
  44. package/lib/services/containerinstance.js.map +1 -1
  45. package/lib/services/databricks.d.ts +111 -187
  46. package/lib/services/databricks.d.ts.map +1 -1
  47. package/lib/services/databricks.js +111 -220
  48. package/lib/services/databricks.js.map +1 -1
  49. package/lib/services/desktopvirtualization.d.ts +51 -575
  50. package/lib/services/desktopvirtualization.d.ts.map +1 -1
  51. package/lib/services/desktopvirtualization.js +56 -590
  52. package/lib/services/desktopvirtualization.js.map +1 -1
  53. package/lib/services/imagebuilder.d.ts +129 -15
  54. package/lib/services/imagebuilder.d.ts.map +1 -1
  55. package/lib/services/imagebuilder.js +129 -15
  56. package/lib/services/imagebuilder.js.map +1 -1
  57. package/lib/services/index.d.ts +2 -0
  58. package/lib/services/index.d.ts.map +1 -1
  59. package/lib/services/index.js +2 -0
  60. package/lib/services/index.js.map +1 -1
  61. package/lib/services/managednetworkfabric.d.ts +4283 -693
  62. package/lib/services/managednetworkfabric.d.ts.map +1 -1
  63. package/lib/services/managednetworkfabric.js +4833 -828
  64. package/lib/services/managednetworkfabric.js.map +1 -1
  65. package/lib/services/monitor.d.ts +81 -73
  66. package/lib/services/monitor.d.ts.map +1 -1
  67. package/lib/services/monitor.js +91 -88
  68. package/lib/services/monitor.js.map +1 -1
  69. package/lib/services/monitoringservice.d.ts +149 -0
  70. package/lib/services/monitoringservice.d.ts.map +1 -0
  71. package/lib/services/monitoringservice.js +216 -0
  72. package/lib/services/monitoringservice.js.map +1 -0
  73. package/lib/services/network.d.ts +4513 -3857
  74. package/lib/services/network.d.ts.map +1 -1
  75. package/lib/services/network.js +4544 -4056
  76. package/lib/services/network.js.map +1 -1
  77. package/lib/services/orbitalplanetarycomputer.d.ts +131 -0
  78. package/lib/services/orbitalplanetarycomputer.d.ts.map +1 -0
  79. package/lib/services/orbitalplanetarycomputer.js +183 -0
  80. package/lib/services/orbitalplanetarycomputer.js.map +1 -0
  81. package/lib/services/recoveryservicesbackup.d.ts +24 -312
  82. package/lib/services/recoveryservicesbackup.d.ts.map +1 -1
  83. package/lib/services/recoveryservicesbackup.js +24 -312
  84. package/lib/services/recoveryservicesbackup.js.map +1 -1
  85. package/lib/services/redhatopenshift.d.ts +9 -11
  86. package/lib/services/redhatopenshift.d.ts.map +1 -1
  87. package/lib/services/redhatopenshift.js +9 -11
  88. package/lib/services/redhatopenshift.js.map +1 -1
  89. package/lib/services/reservations.d.ts +159 -239
  90. package/lib/services/reservations.d.ts.map +1 -1
  91. package/lib/services/reservations.js +159 -369
  92. package/lib/services/reservations.js.map +1 -1
  93. package/lib/services/resourcegraph.d.ts +64 -30
  94. package/lib/services/resourcegraph.d.ts.map +1 -1
  95. package/lib/services/resourcegraph.js +74 -30
  96. package/lib/services/resourcegraph.js.map +1 -1
  97. package/lib/services/resources.d.ts +549 -3331
  98. package/lib/services/resources.d.ts.map +1 -1
  99. package/lib/services/resources.js +1029 -4846
  100. package/lib/services/resources.js.map +1 -1
  101. package/lib/services/search.d.ts +9 -2
  102. package/lib/services/search.d.ts.map +1 -1
  103. package/lib/services/search.js +9 -2
  104. package/lib/services/search.js.map +1 -1
  105. package/lib/services/sql.d.ts +4008 -2495
  106. package/lib/services/sql.d.ts.map +1 -1
  107. package/lib/services/sql.js +4208 -2521
  108. package/lib/services/sql.js.map +1 -1
  109. package/lib/services/storage.d.ts +4 -20
  110. package/lib/services/storage.d.ts.map +1 -1
  111. package/lib/services/storage.js +4 -20
  112. package/lib/services/storage.js.map +1 -1
  113. package/lib/services/storageactions.d.ts +18 -0
  114. package/lib/services/storageactions.d.ts.map +1 -1
  115. package/lib/services/storageactions.js +28 -0
  116. package/lib/services/storageactions.js.map +1 -1
  117. package/lib/services/storagecache.d.ts +288 -752
  118. package/lib/services/storagecache.d.ts.map +1 -1
  119. package/lib/services/storagecache.js +312 -930
  120. package/lib/services/storagecache.js.map +1 -1
  121. package/package.json +4 -4
  122. package/src/credentials.ts +2 -2
  123. package/src/retry.ts +2 -2
  124. package/src/services/app.ts +1014 -0
  125. package/src/services/applicationinsights.ts +56 -169
  126. package/src/services/authorization.ts +65 -397
  127. package/src/services/automation.ts +1179 -1686
  128. package/src/services/azure-kusto.ts +494 -228
  129. package/src/services/batch.ts +1 -1
  130. package/src/services/cognitiveservices.ts +3 -1
  131. package/src/services/computelimit.ts +310 -0
  132. package/src/services/containerinstance.ts +1393 -3134
  133. package/src/services/databricks.ts +125 -294
  134. package/src/services/desktopvirtualization.ts +83 -859
  135. package/src/services/imagebuilder.ts +129 -21
  136. package/src/services/index.ts +2 -0
  137. package/src/services/managednetworkfabric.ts +7141 -1408
  138. package/src/services/monitor.ts +134 -136
  139. package/src/services/monitoringservice.ts +287 -0
  140. package/src/services/network.ts +5738 -6158
  141. package/src/services/orbitalplanetarycomputer.ts +233 -0
  142. package/src/services/recoveryservicesbackup.ts +26 -456
  143. package/src/services/redhatopenshift.ts +26 -34
  144. package/src/services/reservations.ts +209 -553
  145. package/src/services/resourcegraph.ts +123 -55
  146. package/src/services/resources.ts +1852 -8168
  147. package/src/services/search.ts +9 -2
  148. package/src/services/sql.ts +4552 -2757
  149. package/src/services/storage.ts +4 -22
  150. package/src/services/storageactions.ts +36 -0
  151. package/src/services/storagecache.ts +312 -1303
@@ -649,6 +649,7 @@ export const PermissionsListForResourceGroup =
649
649
  // Input Schema
650
650
  export const ProviderOperationsMetadataGetInput =
651
651
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
652
+ resourceProviderNamespace: Schema.String.pipe(T.PathParam()),
652
653
  "api-version": Schema.String,
653
654
  $expand: Schema.optional(Schema.String),
654
655
  }).pipe(
@@ -666,39 +667,6 @@ export const ProviderOperationsMetadataGetOutput =
666
667
  id: Schema.optional(Schema.String),
667
668
  name: Schema.optional(Schema.String),
668
669
  type: Schema.optional(Schema.String),
669
- displayName: Schema.optional(Schema.String),
670
- resourceTypes: Schema.optional(
671
- Schema.Array(
672
- Schema.Struct({
673
- name: Schema.optional(Schema.String),
674
- displayName: Schema.optional(Schema.String),
675
- operations: Schema.optional(
676
- Schema.Array(
677
- Schema.Struct({
678
- name: Schema.optional(Schema.String),
679
- displayName: Schema.optional(Schema.String),
680
- description: Schema.optional(Schema.String),
681
- origin: Schema.optional(Schema.String),
682
- properties: Schema.optional(Schema.Unknown),
683
- isDataAction: Schema.optional(Schema.Boolean),
684
- }),
685
- ),
686
- ),
687
- }),
688
- ),
689
- ),
690
- operations: Schema.optional(
691
- Schema.Array(
692
- Schema.Struct({
693
- name: Schema.optional(Schema.String),
694
- displayName: Schema.optional(Schema.String),
695
- description: Schema.optional(Schema.String),
696
- origin: Schema.optional(Schema.String),
697
- properties: Schema.optional(Schema.Unknown),
698
- isDataAction: Schema.optional(Schema.Boolean),
699
- }),
700
- ),
701
- ),
702
670
  });
703
671
  export type ProviderOperationsMetadataGetOutput =
704
672
  typeof ProviderOperationsMetadataGetOutput.Type;
@@ -708,6 +676,7 @@ export type ProviderOperationsMetadataGetOutput =
708
676
  * Gets provider operations metadata for the specified resource provider.
709
677
  *
710
678
  * @param api-version - The API version to use for this operation.
679
+ * @param resourceProviderNamespace - The namespace of the resource provider.
711
680
  * @param $expand - Specifies whether to expand the values.
712
681
  */
713
682
  export const ProviderOperationsMetadataGet =
@@ -732,47 +701,12 @@ export type ProviderOperationsMetadataListInput =
732
701
  // Output Schema
733
702
  export const ProviderOperationsMetadataListOutput =
734
703
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
735
- value: Schema.optional(
736
- Schema.Array(
737
- Schema.Struct({
738
- id: Schema.optional(Schema.String),
739
- name: Schema.optional(Schema.String),
740
- type: Schema.optional(Schema.String),
741
- displayName: Schema.optional(Schema.String),
742
- resourceTypes: Schema.optional(
743
- Schema.Array(
744
- Schema.Struct({
745
- name: Schema.optional(Schema.String),
746
- displayName: Schema.optional(Schema.String),
747
- operations: Schema.optional(
748
- Schema.Array(
749
- Schema.Struct({
750
- name: Schema.optional(Schema.String),
751
- displayName: Schema.optional(Schema.String),
752
- description: Schema.optional(Schema.String),
753
- origin: Schema.optional(Schema.String),
754
- properties: Schema.optional(Schema.Unknown),
755
- isDataAction: Schema.optional(Schema.Boolean),
756
- }),
757
- ),
758
- ),
759
- }),
760
- ),
761
- ),
762
- operations: Schema.optional(
763
- Schema.Array(
764
- Schema.Struct({
765
- name: Schema.optional(Schema.String),
766
- displayName: Schema.optional(Schema.String),
767
- description: Schema.optional(Schema.String),
768
- origin: Schema.optional(Schema.String),
769
- properties: Schema.optional(Schema.Unknown),
770
- isDataAction: Schema.optional(Schema.Boolean),
771
- }),
772
- ),
773
- ),
774
- }),
775
- ),
704
+ value: Schema.Array(
705
+ Schema.Struct({
706
+ id: Schema.optional(Schema.String),
707
+ name: Schema.optional(Schema.String),
708
+ type: Schema.optional(Schema.String),
709
+ }),
776
710
  ),
777
711
  nextLink: Schema.optional(Schema.String),
778
712
  });
@@ -795,6 +729,7 @@ export const ProviderOperationsMetadataList =
795
729
  export const RoleAssignmentsCreateInput =
796
730
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
797
731
  scope: Schema.String.pipe(T.PathParam()),
732
+ roleAssignmentName: Schema.String.pipe(T.PathParam()),
798
733
  "api-version": Schema.String,
799
734
  }).pipe(
800
735
  T.Http({
@@ -806,35 +741,7 @@ export type RoleAssignmentsCreateInput = typeof RoleAssignmentsCreateInput.Type;
806
741
 
807
742
  // Output Schema
808
743
  export const RoleAssignmentsCreateOutput =
809
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
810
- id: Schema.optional(Schema.String),
811
- name: Schema.optional(Schema.String),
812
- type: Schema.optional(Schema.String),
813
- properties: Schema.optional(
814
- Schema.Struct({
815
- scope: Schema.optional(Schema.String),
816
- roleDefinitionId: Schema.String,
817
- principalId: Schema.String,
818
- principalType: Schema.optional(
819
- Schema.Literals([
820
- "User",
821
- "Group",
822
- "ServicePrincipal",
823
- "ForeignGroup",
824
- "Device",
825
- ]),
826
- ),
827
- description: Schema.optional(Schema.String),
828
- condition: Schema.optional(Schema.String),
829
- conditionVersion: Schema.optional(Schema.String),
830
- createdOn: Schema.optional(Schema.String),
831
- updatedOn: Schema.optional(Schema.String),
832
- createdBy: Schema.optional(Schema.String),
833
- updatedBy: Schema.optional(Schema.String),
834
- delegatedManagedIdentityResourceId: Schema.optional(Schema.String),
835
- }),
836
- ),
837
- });
744
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
838
745
  export type RoleAssignmentsCreateOutput =
839
746
  typeof RoleAssignmentsCreateOutput.Type;
840
747
 
@@ -842,8 +749,9 @@ export type RoleAssignmentsCreateOutput =
842
749
  /**
843
750
  * Create or update a role assignment by scope and name.
844
751
  *
845
- * @param scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'
846
752
  * @param api-version - The API version to use for this operation.
753
+ * @param scope - The fully qualified Azure Resource manager identifier of the resource.
754
+ * @param roleAssignmentName - The name of the role assignment. It can be any valid GUID.
847
755
  */
848
756
  export const RoleAssignmentsCreate = /*@__PURE__*/ /*#__PURE__*/ API.make(
849
757
  () => ({
@@ -854,6 +762,7 @@ export const RoleAssignmentsCreate = /*@__PURE__*/ /*#__PURE__*/ API.make(
854
762
  // Input Schema
855
763
  export const RoleAssignmentsCreateByIdInput =
856
764
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
765
+ roleAssignmentId: Schema.String.pipe(T.PathParam()),
857
766
  "api-version": Schema.String,
858
767
  }).pipe(T.Http({ method: "PUT", path: "/{roleAssignmentId}" }));
859
768
  export type RoleAssignmentsCreateByIdInput =
@@ -861,35 +770,7 @@ export type RoleAssignmentsCreateByIdInput =
861
770
 
862
771
  // Output Schema
863
772
  export const RoleAssignmentsCreateByIdOutput =
864
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
865
- id: Schema.optional(Schema.String),
866
- name: Schema.optional(Schema.String),
867
- type: Schema.optional(Schema.String),
868
- properties: Schema.optional(
869
- Schema.Struct({
870
- scope: Schema.optional(Schema.String),
871
- roleDefinitionId: Schema.String,
872
- principalId: Schema.String,
873
- principalType: Schema.optional(
874
- Schema.Literals([
875
- "User",
876
- "Group",
877
- "ServicePrincipal",
878
- "ForeignGroup",
879
- "Device",
880
- ]),
881
- ),
882
- description: Schema.optional(Schema.String),
883
- condition: Schema.optional(Schema.String),
884
- conditionVersion: Schema.optional(Schema.String),
885
- createdOn: Schema.optional(Schema.String),
886
- updatedOn: Schema.optional(Schema.String),
887
- createdBy: Schema.optional(Schema.String),
888
- updatedBy: Schema.optional(Schema.String),
889
- delegatedManagedIdentityResourceId: Schema.optional(Schema.String),
890
- }),
891
- ),
892
- });
773
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
893
774
  export type RoleAssignmentsCreateByIdOutput =
894
775
  typeof RoleAssignmentsCreateByIdOutput.Type;
895
776
 
@@ -898,6 +779,7 @@ export type RoleAssignmentsCreateByIdOutput =
898
779
  * Create or update a role assignment by ID.
899
780
  *
900
781
  * @param api-version - The API version to use for this operation.
782
+ * @param roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>
901
783
  */
902
784
  export const RoleAssignmentsCreateById = /*@__PURE__*/ /*#__PURE__*/ API.make(
903
785
  () => ({
@@ -909,7 +791,9 @@ export const RoleAssignmentsCreateById = /*@__PURE__*/ /*#__PURE__*/ API.make(
909
791
  export const RoleAssignmentsDeleteInput =
910
792
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
911
793
  scope: Schema.String.pipe(T.PathParam()),
794
+ roleAssignmentName: Schema.String.pipe(T.PathParam()),
912
795
  "api-version": Schema.String,
796
+ tenantId: Schema.optional(Schema.String),
913
797
  }).pipe(
914
798
  T.Http({
915
799
  method: "DELETE",
@@ -920,35 +804,7 @@ export type RoleAssignmentsDeleteInput = typeof RoleAssignmentsDeleteInput.Type;
920
804
 
921
805
  // Output Schema
922
806
  export const RoleAssignmentsDeleteOutput =
923
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
924
- id: Schema.optional(Schema.String),
925
- name: Schema.optional(Schema.String),
926
- type: Schema.optional(Schema.String),
927
- properties: Schema.optional(
928
- Schema.Struct({
929
- scope: Schema.optional(Schema.String),
930
- roleDefinitionId: Schema.String,
931
- principalId: Schema.String,
932
- principalType: Schema.optional(
933
- Schema.Literals([
934
- "User",
935
- "Group",
936
- "ServicePrincipal",
937
- "ForeignGroup",
938
- "Device",
939
- ]),
940
- ),
941
- description: Schema.optional(Schema.String),
942
- condition: Schema.optional(Schema.String),
943
- conditionVersion: Schema.optional(Schema.String),
944
- createdOn: Schema.optional(Schema.String),
945
- updatedOn: Schema.optional(Schema.String),
946
- createdBy: Schema.optional(Schema.String),
947
- updatedBy: Schema.optional(Schema.String),
948
- delegatedManagedIdentityResourceId: Schema.optional(Schema.String),
949
- }),
950
- ),
951
- });
807
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
952
808
  export type RoleAssignmentsDeleteOutput =
953
809
  typeof RoleAssignmentsDeleteOutput.Type;
954
810
 
@@ -956,8 +812,10 @@ export type RoleAssignmentsDeleteOutput =
956
812
  /**
957
813
  * Delete a role assignment by scope and name.
958
814
  *
959
- * @param scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'
960
815
  * @param api-version - The API version to use for this operation.
816
+ * @param scope - The fully qualified Azure Resource manager identifier of the resource.
817
+ * @param tenantId - Tenant ID for cross-tenant request
818
+ * @param roleAssignmentName - The name of the role assignment. It can be any valid GUID.
961
819
  */
962
820
  export const RoleAssignmentsDelete = /*@__PURE__*/ /*#__PURE__*/ API.make(
963
821
  () => ({
@@ -968,42 +826,16 @@ export const RoleAssignmentsDelete = /*@__PURE__*/ /*#__PURE__*/ API.make(
968
826
  // Input Schema
969
827
  export const RoleAssignmentsDeleteByIdInput =
970
828
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
829
+ roleAssignmentId: Schema.String.pipe(T.PathParam()),
971
830
  "api-version": Schema.String,
831
+ tenantId: Schema.optional(Schema.String),
972
832
  }).pipe(T.Http({ method: "DELETE", path: "/{roleAssignmentId}" }));
973
833
  export type RoleAssignmentsDeleteByIdInput =
974
834
  typeof RoleAssignmentsDeleteByIdInput.Type;
975
835
 
976
836
  // Output Schema
977
837
  export const RoleAssignmentsDeleteByIdOutput =
978
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
979
- id: Schema.optional(Schema.String),
980
- name: Schema.optional(Schema.String),
981
- type: Schema.optional(Schema.String),
982
- properties: Schema.optional(
983
- Schema.Struct({
984
- scope: Schema.optional(Schema.String),
985
- roleDefinitionId: Schema.String,
986
- principalId: Schema.String,
987
- principalType: Schema.optional(
988
- Schema.Literals([
989
- "User",
990
- "Group",
991
- "ServicePrincipal",
992
- "ForeignGroup",
993
- "Device",
994
- ]),
995
- ),
996
- description: Schema.optional(Schema.String),
997
- condition: Schema.optional(Schema.String),
998
- conditionVersion: Schema.optional(Schema.String),
999
- createdOn: Schema.optional(Schema.String),
1000
- updatedOn: Schema.optional(Schema.String),
1001
- createdBy: Schema.optional(Schema.String),
1002
- updatedBy: Schema.optional(Schema.String),
1003
- delegatedManagedIdentityResourceId: Schema.optional(Schema.String),
1004
- }),
1005
- ),
1006
- });
838
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
1007
839
  export type RoleAssignmentsDeleteByIdOutput =
1008
840
  typeof RoleAssignmentsDeleteByIdOutput.Type;
1009
841
 
@@ -1012,6 +844,8 @@ export type RoleAssignmentsDeleteByIdOutput =
1012
844
  * Delete a role assignment by ID.
1013
845
  *
1014
846
  * @param api-version - The API version to use for this operation.
847
+ * @param roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>
848
+ * @param tenantId - Tenant ID for cross-tenant request
1015
849
  */
1016
850
  export const RoleAssignmentsDeleteById = /*@__PURE__*/ /*#__PURE__*/ API.make(
1017
851
  () => ({
@@ -1023,7 +857,9 @@ export const RoleAssignmentsDeleteById = /*@__PURE__*/ /*#__PURE__*/ API.make(
1023
857
  export const RoleAssignmentsGetInput =
1024
858
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1025
859
  scope: Schema.String.pipe(T.PathParam()),
860
+ roleAssignmentName: Schema.String.pipe(T.PathParam()),
1026
861
  "api-version": Schema.String,
862
+ tenantId: Schema.optional(Schema.String),
1027
863
  }).pipe(
1028
864
  T.Http({
1029
865
  method: "GET",
@@ -1034,43 +870,17 @@ export type RoleAssignmentsGetInput = typeof RoleAssignmentsGetInput.Type;
1034
870
 
1035
871
  // Output Schema
1036
872
  export const RoleAssignmentsGetOutput =
1037
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1038
- id: Schema.optional(Schema.String),
1039
- name: Schema.optional(Schema.String),
1040
- type: Schema.optional(Schema.String),
1041
- properties: Schema.optional(
1042
- Schema.Struct({
1043
- scope: Schema.optional(Schema.String),
1044
- roleDefinitionId: Schema.String,
1045
- principalId: Schema.String,
1046
- principalType: Schema.optional(
1047
- Schema.Literals([
1048
- "User",
1049
- "Group",
1050
- "ServicePrincipal",
1051
- "ForeignGroup",
1052
- "Device",
1053
- ]),
1054
- ),
1055
- description: Schema.optional(Schema.String),
1056
- condition: Schema.optional(Schema.String),
1057
- conditionVersion: Schema.optional(Schema.String),
1058
- createdOn: Schema.optional(Schema.String),
1059
- updatedOn: Schema.optional(Schema.String),
1060
- createdBy: Schema.optional(Schema.String),
1061
- updatedBy: Schema.optional(Schema.String),
1062
- delegatedManagedIdentityResourceId: Schema.optional(Schema.String),
1063
- }),
1064
- ),
1065
- });
873
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
1066
874
  export type RoleAssignmentsGetOutput = typeof RoleAssignmentsGetOutput.Type;
1067
875
 
1068
876
  // The operation
1069
877
  /**
1070
878
  * Get a role assignment by scope and name.
1071
879
  *
1072
- * @param scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'
1073
880
  * @param api-version - The API version to use for this operation.
881
+ * @param scope - The fully qualified Azure Resource manager identifier of the resource.
882
+ * @param tenantId - Tenant ID for cross-tenant request
883
+ * @param roleAssignmentName - The name of the role assignment. It can be any valid GUID.
1074
884
  */
1075
885
  export const RoleAssignmentsGet = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1076
886
  inputSchema: RoleAssignmentsGetInput,
@@ -1079,42 +889,16 @@ export const RoleAssignmentsGet = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1079
889
  // Input Schema
1080
890
  export const RoleAssignmentsGetByIdInput =
1081
891
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
892
+ roleAssignmentId: Schema.String.pipe(T.PathParam()),
1082
893
  "api-version": Schema.String,
894
+ tenantId: Schema.optional(Schema.String),
1083
895
  }).pipe(T.Http({ method: "GET", path: "/{roleAssignmentId}" }));
1084
896
  export type RoleAssignmentsGetByIdInput =
1085
897
  typeof RoleAssignmentsGetByIdInput.Type;
1086
898
 
1087
899
  // Output Schema
1088
900
  export const RoleAssignmentsGetByIdOutput =
1089
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1090
- id: Schema.optional(Schema.String),
1091
- name: Schema.optional(Schema.String),
1092
- type: Schema.optional(Schema.String),
1093
- properties: Schema.optional(
1094
- Schema.Struct({
1095
- scope: Schema.optional(Schema.String),
1096
- roleDefinitionId: Schema.String,
1097
- principalId: Schema.String,
1098
- principalType: Schema.optional(
1099
- Schema.Literals([
1100
- "User",
1101
- "Group",
1102
- "ServicePrincipal",
1103
- "ForeignGroup",
1104
- "Device",
1105
- ]),
1106
- ),
1107
- description: Schema.optional(Schema.String),
1108
- condition: Schema.optional(Schema.String),
1109
- conditionVersion: Schema.optional(Schema.String),
1110
- createdOn: Schema.optional(Schema.String),
1111
- updatedOn: Schema.optional(Schema.String),
1112
- createdBy: Schema.optional(Schema.String),
1113
- updatedBy: Schema.optional(Schema.String),
1114
- delegatedManagedIdentityResourceId: Schema.optional(Schema.String),
1115
- }),
1116
- ),
1117
- });
901
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({});
1118
902
  export type RoleAssignmentsGetByIdOutput =
1119
903
  typeof RoleAssignmentsGetByIdOutput.Type;
1120
904
 
@@ -1123,6 +907,8 @@ export type RoleAssignmentsGetByIdOutput =
1123
907
  * Get a role assignment by ID.
1124
908
  *
1125
909
  * @param api-version - The API version to use for this operation.
910
+ * @param roleAssignmentId - The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions/<SUB_ID>/resourcegroups/<RESOURCE_GROUP>/providers/Microsoft.Authorization/roleAssignments/<ROLE_ASSIGNMENT_NAME>
911
+ * @param tenantId - Tenant ID for cross-tenant request
1126
912
  */
1127
913
  export const RoleAssignmentsGetById = /*@__PURE__*/ /*#__PURE__*/ API.make(
1128
914
  () => ({
@@ -1139,6 +925,8 @@ export const RoleAssignmentsListForResourceInput =
1139
925
  resourceType: Schema.String.pipe(T.PathParam()),
1140
926
  resourceName: Schema.String.pipe(T.PathParam()),
1141
927
  "api-version": Schema.String,
928
+ $filter: Schema.optional(Schema.String),
929
+ tenantId: Schema.optional(Schema.String),
1142
930
  }).pipe(
1143
931
  T.Http({
1144
932
  method: "GET",
@@ -1151,41 +939,7 @@ export type RoleAssignmentsListForResourceInput =
1151
939
  // Output Schema
1152
940
  export const RoleAssignmentsListForResourceOutput =
1153
941
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1154
- value: Schema.optional(
1155
- Schema.Array(
1156
- Schema.Struct({
1157
- id: Schema.optional(Schema.String),
1158
- name: Schema.optional(Schema.String),
1159
- type: Schema.optional(Schema.String),
1160
- properties: Schema.optional(
1161
- Schema.Struct({
1162
- scope: Schema.optional(Schema.String),
1163
- roleDefinitionId: Schema.String,
1164
- principalId: Schema.String,
1165
- principalType: Schema.optional(
1166
- Schema.Literals([
1167
- "User",
1168
- "Group",
1169
- "ServicePrincipal",
1170
- "ForeignGroup",
1171
- "Device",
1172
- ]),
1173
- ),
1174
- description: Schema.optional(Schema.String),
1175
- condition: Schema.optional(Schema.String),
1176
- conditionVersion: Schema.optional(Schema.String),
1177
- createdOn: Schema.optional(Schema.String),
1178
- updatedOn: Schema.optional(Schema.String),
1179
- createdBy: Schema.optional(Schema.String),
1180
- updatedBy: Schema.optional(Schema.String),
1181
- delegatedManagedIdentityResourceId: Schema.optional(
1182
- Schema.String,
1183
- ),
1184
- }),
1185
- ),
1186
- }),
1187
- ),
1188
- ),
942
+ value: Schema.Array(Schema.Struct({})),
1189
943
  nextLink: Schema.optional(Schema.String),
1190
944
  });
1191
945
  export type RoleAssignmentsListForResourceOutput =
@@ -1195,12 +949,14 @@ export type RoleAssignmentsListForResourceOutput =
1195
949
  /**
1196
950
  * List all role assignments that apply to a resource.
1197
951
  *
952
+ * @param api-version - The API version to use for this operation.
1198
953
  * @param subscriptionId - The ID of the target subscription.
1199
954
  * @param resourceGroupName - The name of the resource group. The name is case insensitive.
1200
955
  * @param resourceProviderNamespace - The namespace of the resource provider.
1201
- * @param resourceType - The resource type name. For example the type name of a web app is 'sites' (from Microsoft.Web/sites).
1202
- * @param resourceName - The resource name.
1203
- * @param api-version - The API version to use for this operation.
956
+ * @param resourceType - The resource type of the resource.
957
+ * @param resourceName - The name of the resource to get role assignments for.
958
+ * @param $filter - The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.
959
+ * @param tenantId - Tenant ID for cross-tenant request
1204
960
  */
1205
961
  export const RoleAssignmentsListForResource =
1206
962
  /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
@@ -1213,6 +969,8 @@ export const RoleAssignmentsListForResourceGroupInput =
1213
969
  subscriptionId: Schema.String.pipe(T.PathParam()),
1214
970
  resourceGroupName: Schema.String.pipe(T.PathParam()),
1215
971
  "api-version": Schema.String,
972
+ $filter: Schema.optional(Schema.String),
973
+ tenantId: Schema.optional(Schema.String),
1216
974
  }).pipe(
1217
975
  T.Http({
1218
976
  method: "GET",
@@ -1225,41 +983,7 @@ export type RoleAssignmentsListForResourceGroupInput =
1225
983
  // Output Schema
1226
984
  export const RoleAssignmentsListForResourceGroupOutput =
1227
985
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1228
- value: Schema.optional(
1229
- Schema.Array(
1230
- Schema.Struct({
1231
- id: Schema.optional(Schema.String),
1232
- name: Schema.optional(Schema.String),
1233
- type: Schema.optional(Schema.String),
1234
- properties: Schema.optional(
1235
- Schema.Struct({
1236
- scope: Schema.optional(Schema.String),
1237
- roleDefinitionId: Schema.String,
1238
- principalId: Schema.String,
1239
- principalType: Schema.optional(
1240
- Schema.Literals([
1241
- "User",
1242
- "Group",
1243
- "ServicePrincipal",
1244
- "ForeignGroup",
1245
- "Device",
1246
- ]),
1247
- ),
1248
- description: Schema.optional(Schema.String),
1249
- condition: Schema.optional(Schema.String),
1250
- conditionVersion: Schema.optional(Schema.String),
1251
- createdOn: Schema.optional(Schema.String),
1252
- updatedOn: Schema.optional(Schema.String),
1253
- createdBy: Schema.optional(Schema.String),
1254
- updatedBy: Schema.optional(Schema.String),
1255
- delegatedManagedIdentityResourceId: Schema.optional(
1256
- Schema.String,
1257
- ),
1258
- }),
1259
- ),
1260
- }),
1261
- ),
1262
- ),
986
+ value: Schema.Array(Schema.Struct({})),
1263
987
  nextLink: Schema.optional(Schema.String),
1264
988
  });
1265
989
  export type RoleAssignmentsListForResourceGroupOutput =
@@ -1269,9 +993,11 @@ export type RoleAssignmentsListForResourceGroupOutput =
1269
993
  /**
1270
994
  * List all role assignments that apply to a resource group.
1271
995
  *
996
+ * @param api-version - The API version to use for this operation.
1272
997
  * @param subscriptionId - The ID of the target subscription.
1273
998
  * @param resourceGroupName - The name of the resource group. The name is case insensitive.
1274
- * @param api-version - The API version to use for this operation.
999
+ * @param $filter - The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.
1000
+ * @param tenantId - Tenant ID for cross-tenant request
1275
1001
  */
1276
1002
  export const RoleAssignmentsListForResourceGroup =
1277
1003
  /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
@@ -1283,6 +1009,9 @@ export const RoleAssignmentsListForScopeInput =
1283
1009
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1284
1010
  scope: Schema.String.pipe(T.PathParam()),
1285
1011
  "api-version": Schema.String,
1012
+ $filter: Schema.optional(Schema.String),
1013
+ tenantId: Schema.optional(Schema.String),
1014
+ $skipToken: Schema.optional(Schema.String),
1286
1015
  }).pipe(
1287
1016
  T.Http({
1288
1017
  method: "GET",
@@ -1295,41 +1024,7 @@ export type RoleAssignmentsListForScopeInput =
1295
1024
  // Output Schema
1296
1025
  export const RoleAssignmentsListForScopeOutput =
1297
1026
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1298
- value: Schema.optional(
1299
- Schema.Array(
1300
- Schema.Struct({
1301
- id: Schema.optional(Schema.String),
1302
- name: Schema.optional(Schema.String),
1303
- type: Schema.optional(Schema.String),
1304
- properties: Schema.optional(
1305
- Schema.Struct({
1306
- scope: Schema.optional(Schema.String),
1307
- roleDefinitionId: Schema.String,
1308
- principalId: Schema.String,
1309
- principalType: Schema.optional(
1310
- Schema.Literals([
1311
- "User",
1312
- "Group",
1313
- "ServicePrincipal",
1314
- "ForeignGroup",
1315
- "Device",
1316
- ]),
1317
- ),
1318
- description: Schema.optional(Schema.String),
1319
- condition: Schema.optional(Schema.String),
1320
- conditionVersion: Schema.optional(Schema.String),
1321
- createdOn: Schema.optional(Schema.String),
1322
- updatedOn: Schema.optional(Schema.String),
1323
- createdBy: Schema.optional(Schema.String),
1324
- updatedBy: Schema.optional(Schema.String),
1325
- delegatedManagedIdentityResourceId: Schema.optional(
1326
- Schema.String,
1327
- ),
1328
- }),
1329
- ),
1330
- }),
1331
- ),
1332
- ),
1027
+ value: Schema.Array(Schema.Struct({})),
1333
1028
  nextLink: Schema.optional(Schema.String),
1334
1029
  });
1335
1030
  export type RoleAssignmentsListForScopeOutput =
@@ -1339,8 +1034,11 @@ export type RoleAssignmentsListForScopeOutput =
1339
1034
  /**
1340
1035
  * List all role assignments that apply to a scope.
1341
1036
  *
1342
- * @param scope - The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'
1343
1037
  * @param api-version - The API version to use for this operation.
1038
+ * @param scope - The fully qualified Azure Resource manager identifier of the resource.
1039
+ * @param $filter - The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.
1040
+ * @param tenantId - Tenant ID for cross-tenant request
1041
+ * @param $skipToken - The skipToken to apply on the operation. Use $skipToken={skiptoken} to return paged role assignments following the skipToken passed. Only supported on provider level calls.
1344
1042
  */
1345
1043
  export const RoleAssignmentsListForScope = /*@__PURE__*/ /*#__PURE__*/ API.make(
1346
1044
  () => ({
@@ -1353,6 +1051,8 @@ export const RoleAssignmentsListForSubscriptionInput =
1353
1051
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1354
1052
  subscriptionId: Schema.String.pipe(T.PathParam()),
1355
1053
  "api-version": Schema.String,
1054
+ $filter: Schema.optional(Schema.String),
1055
+ tenantId: Schema.optional(Schema.String),
1356
1056
  }).pipe(
1357
1057
  T.Http({
1358
1058
  method: "GET",
@@ -1365,41 +1065,7 @@ export type RoleAssignmentsListForSubscriptionInput =
1365
1065
  // Output Schema
1366
1066
  export const RoleAssignmentsListForSubscriptionOutput =
1367
1067
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1368
- value: Schema.optional(
1369
- Schema.Array(
1370
- Schema.Struct({
1371
- id: Schema.optional(Schema.String),
1372
- name: Schema.optional(Schema.String),
1373
- type: Schema.optional(Schema.String),
1374
- properties: Schema.optional(
1375
- Schema.Struct({
1376
- scope: Schema.optional(Schema.String),
1377
- roleDefinitionId: Schema.String,
1378
- principalId: Schema.String,
1379
- principalType: Schema.optional(
1380
- Schema.Literals([
1381
- "User",
1382
- "Group",
1383
- "ServicePrincipal",
1384
- "ForeignGroup",
1385
- "Device",
1386
- ]),
1387
- ),
1388
- description: Schema.optional(Schema.String),
1389
- condition: Schema.optional(Schema.String),
1390
- conditionVersion: Schema.optional(Schema.String),
1391
- createdOn: Schema.optional(Schema.String),
1392
- updatedOn: Schema.optional(Schema.String),
1393
- createdBy: Schema.optional(Schema.String),
1394
- updatedBy: Schema.optional(Schema.String),
1395
- delegatedManagedIdentityResourceId: Schema.optional(
1396
- Schema.String,
1397
- ),
1398
- }),
1399
- ),
1400
- }),
1401
- ),
1402
- ),
1068
+ value: Schema.Array(Schema.Struct({})),
1403
1069
  nextLink: Schema.optional(Schema.String),
1404
1070
  });
1405
1071
  export type RoleAssignmentsListForSubscriptionOutput =
@@ -1409,8 +1075,10 @@ export type RoleAssignmentsListForSubscriptionOutput =
1409
1075
  /**
1410
1076
  * List all role assignments that apply to a subscription.
1411
1077
  *
1412
- * @param subscriptionId - The ID of the target subscription.
1413
1078
  * @param api-version - The API version to use for this operation.
1079
+ * @param subscriptionId - The ID of the target subscription.
1080
+ * @param $filter - The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.
1081
+ * @param tenantId - Tenant ID for cross-tenant request
1414
1082
  */
1415
1083
  export const RoleAssignmentsListForSubscription =
1416
1084
  /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({