@azure/arm-containerregistry 10.1.1-alpha.20230918.1 → 11.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/CHANGELOG.md +55 -8
  2. package/README.md +1 -1
  3. package/dist/index.js +2302 -877
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/cacheRulesCreateSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/cacheRulesCreateSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/cacheRulesCreateSample.js +45 -0
  10. package/dist-esm/samples-dev/cacheRulesCreateSample.js.map +1 -0
  11. package/dist-esm/samples-dev/cacheRulesDeleteSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/cacheRulesDeleteSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/cacheRulesDeleteSample.js +40 -0
  14. package/dist-esm/samples-dev/cacheRulesDeleteSample.js.map +1 -0
  15. package/dist-esm/samples-dev/cacheRulesGetSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/cacheRulesGetSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/cacheRulesGetSample.js +40 -0
  18. package/dist-esm/samples-dev/cacheRulesGetSample.js.map +1 -0
  19. package/dist-esm/samples-dev/cacheRulesListSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/cacheRulesListSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/cacheRulesListSample.js +60 -0
  22. package/dist-esm/samples-dev/cacheRulesListSample.js.map +1 -0
  23. package/dist-esm/samples-dev/cacheRulesUpdateSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/cacheRulesUpdateSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/cacheRulesUpdateSample.js +43 -0
  26. package/dist-esm/samples-dev/cacheRulesUpdateSample.js.map +1 -0
  27. package/dist-esm/samples-dev/credentialSetsCreateSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/credentialSetsCreateSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/credentialSetsCreateSample.js +51 -0
  30. package/dist-esm/samples-dev/credentialSetsCreateSample.js.map +1 -0
  31. package/dist-esm/samples-dev/credentialSetsDeleteSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/credentialSetsDeleteSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/credentialSetsDeleteSample.js +40 -0
  34. package/dist-esm/samples-dev/credentialSetsDeleteSample.js.map +1 -0
  35. package/dist-esm/samples-dev/credentialSetsGetSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/credentialSetsGetSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/credentialSetsGetSample.js +40 -0
  38. package/dist-esm/samples-dev/credentialSetsGetSample.js.map +1 -0
  39. package/dist-esm/samples-dev/credentialSetsListSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/credentialSetsListSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/credentialSetsListSample.js +60 -0
  42. package/dist-esm/samples-dev/credentialSetsListSample.js.map +1 -0
  43. package/dist-esm/samples-dev/credentialSetsUpdateSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/credentialSetsUpdateSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/credentialSetsUpdateSample.js +49 -0
  46. package/dist-esm/samples-dev/credentialSetsUpdateSample.js.map +1 -0
  47. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  48. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +1 -1
  49. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  50. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  51. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
  52. package/dist-esm/samples-dev/registriesCheckNameAvailabilitySample.js +2 -2
  53. package/dist-esm/samples-dev/registriesCreateSample.js +2 -2
  54. package/dist-esm/samples-dev/registriesDeleteSample.js +1 -1
  55. package/dist-esm/samples-dev/registriesGenerateCredentialsSample.js +1 -1
  56. package/dist-esm/samples-dev/registriesGetPrivateLinkResourceSample.js +1 -1
  57. package/dist-esm/samples-dev/registriesGetSample.js +1 -1
  58. package/dist-esm/samples-dev/registriesImportImageSample.js +3 -3
  59. package/dist-esm/samples-dev/registriesListByResourceGroupSample.js +1 -1
  60. package/dist-esm/samples-dev/registriesListCredentialsSample.js +1 -1
  61. package/dist-esm/samples-dev/registriesListPrivateLinkResourcesSample.js +1 -1
  62. package/dist-esm/samples-dev/registriesListSample.js +1 -1
  63. package/dist-esm/samples-dev/registriesListUsagesSample.js +1 -1
  64. package/dist-esm/samples-dev/registriesRegenerateCredentialSample.js +1 -1
  65. package/dist-esm/samples-dev/registriesUpdateSample.js +1 -1
  66. package/dist-esm/samples-dev/replicationsCreateSample.js +2 -2
  67. package/dist-esm/samples-dev/replicationsDeleteSample.js +1 -1
  68. package/dist-esm/samples-dev/replicationsGetSample.js +1 -1
  69. package/dist-esm/samples-dev/replicationsListSample.js +1 -1
  70. package/dist-esm/samples-dev/replicationsUpdateSample.js +1 -1
  71. package/dist-esm/samples-dev/scopeMapsCreateSample.js +1 -1
  72. package/dist-esm/samples-dev/scopeMapsDeleteSample.js +1 -1
  73. package/dist-esm/samples-dev/scopeMapsGetSample.js +1 -1
  74. package/dist-esm/samples-dev/scopeMapsListSample.js +1 -1
  75. package/dist-esm/samples-dev/scopeMapsUpdateSample.js +1 -1
  76. package/dist-esm/samples-dev/tokensCreateSample.js +1 -1
  77. package/dist-esm/samples-dev/tokensDeleteSample.js +1 -1
  78. package/dist-esm/samples-dev/tokensGetSample.js +1 -1
  79. package/dist-esm/samples-dev/tokensListSample.js +1 -1
  80. package/dist-esm/samples-dev/tokensUpdateSample.js +1 -1
  81. package/dist-esm/samples-dev/webhooksCreateSample.js +2 -4
  82. package/dist-esm/samples-dev/webhooksCreateSample.js.map +1 -1
  83. package/dist-esm/samples-dev/webhooksDeleteSample.js +1 -1
  84. package/dist-esm/samples-dev/webhooksGetCallbackConfigSample.js +1 -1
  85. package/dist-esm/samples-dev/webhooksGetSample.js +1 -1
  86. package/dist-esm/samples-dev/webhooksListEventsSample.js +1 -1
  87. package/dist-esm/samples-dev/webhooksListSample.js +1 -1
  88. package/dist-esm/samples-dev/webhooksPingSample.js +1 -1
  89. package/dist-esm/samples-dev/webhooksUpdateSample.js +2 -4
  90. package/dist-esm/samples-dev/webhooksUpdateSample.js.map +1 -1
  91. package/dist-esm/src/containerRegistryManagementClient.d.ts +3 -1
  92. package/dist-esm/src/containerRegistryManagementClient.d.ts.map +1 -1
  93. package/dist-esm/src/containerRegistryManagementClient.js +4 -2
  94. package/dist-esm/src/containerRegistryManagementClient.js.map +1 -1
  95. package/dist-esm/src/models/index.d.ts +432 -141
  96. package/dist-esm/src/models/index.d.ts.map +1 -1
  97. package/dist-esm/src/models/index.js +42 -28
  98. package/dist-esm/src/models/index.js.map +1 -1
  99. package/dist-esm/src/models/mappers.d.ts +24 -7
  100. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  101. package/dist-esm/src/models/mappers.js +644 -236
  102. package/dist-esm/src/models/mappers.js.map +1 -1
  103. package/dist-esm/src/models/parameters.d.ts +10 -4
  104. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  105. package/dist-esm/src/models/parameters.js +72 -26
  106. package/dist-esm/src/models/parameters.js.map +1 -1
  107. package/dist-esm/src/operations/agentPools.js +11 -11
  108. package/dist-esm/src/operations/agentPools.js.map +1 -1
  109. package/dist-esm/src/operations/cacheRules.d.ts +99 -0
  110. package/dist-esm/src/operations/cacheRules.d.ts.map +1 -0
  111. package/dist-esm/src/operations/cacheRules.js +476 -0
  112. package/dist-esm/src/operations/cacheRules.js.map +1 -0
  113. package/dist-esm/src/operations/credentialSets.d.ts +99 -0
  114. package/dist-esm/src/operations/credentialSets.d.ts.map +1 -0
  115. package/dist-esm/src/operations/credentialSets.js +476 -0
  116. package/dist-esm/src/operations/credentialSets.js.map +1 -0
  117. package/dist-esm/src/operations/index.d.ts +2 -0
  118. package/dist-esm/src/operations/index.d.ts.map +1 -1
  119. package/dist-esm/src/operations/index.js +2 -0
  120. package/dist-esm/src/operations/index.js.map +1 -1
  121. package/dist-esm/src/operations/privateEndpointConnections.js +1 -1
  122. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  123. package/dist-esm/src/operations/registries.js +8 -8
  124. package/dist-esm/src/operations/registries.js.map +1 -1
  125. package/dist-esm/src/operations/replications.js +2 -2
  126. package/dist-esm/src/operations/replications.js.map +1 -1
  127. package/dist-esm/src/operations/runs.js +9 -9
  128. package/dist-esm/src/operations/runs.js.map +1 -1
  129. package/dist-esm/src/operations/scopeMaps.js +2 -2
  130. package/dist-esm/src/operations/scopeMaps.js.map +1 -1
  131. package/dist-esm/src/operations/taskRuns.js +11 -11
  132. package/dist-esm/src/operations/taskRuns.js.map +1 -1
  133. package/dist-esm/src/operations/tasks.js +11 -11
  134. package/dist-esm/src/operations/tasks.js.map +1 -1
  135. package/dist-esm/src/operations/tokens.js +2 -2
  136. package/dist-esm/src/operations/tokens.js.map +1 -1
  137. package/dist-esm/src/operations/webhooks.js +2 -2
  138. package/dist-esm/src/operations/webhooks.js.map +1 -1
  139. package/dist-esm/src/operationsInterfaces/cacheRules.d.ts +74 -0
  140. package/dist-esm/src/operationsInterfaces/cacheRules.d.ts.map +1 -0
  141. package/dist-esm/src/operationsInterfaces/cacheRules.js +9 -0
  142. package/dist-esm/src/operationsInterfaces/cacheRules.js.map +1 -0
  143. package/dist-esm/src/operationsInterfaces/credentialSets.d.ts +74 -0
  144. package/dist-esm/src/operationsInterfaces/credentialSets.d.ts.map +1 -0
  145. package/dist-esm/src/operationsInterfaces/credentialSets.js +9 -0
  146. package/dist-esm/src/operationsInterfaces/credentialSets.js.map +1 -0
  147. package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
  148. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  149. package/dist-esm/src/operationsInterfaces/index.js +2 -0
  150. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  151. package/package.json +6 -6
  152. package/review/arm-containerregistry.api.md +258 -5
  153. package/src/containerRegistryManagementClient.ts +9 -1
  154. package/src/models/index.ts +494 -152
  155. package/src/models/mappers.ts +682 -243
  156. package/src/models/parameters.ts +83 -27
  157. package/src/operations/agentPools.ts +11 -11
  158. package/src/operations/cacheRules.ts +661 -0
  159. package/src/operations/credentialSets.ts +661 -0
  160. package/src/operations/index.ts +2 -0
  161. package/src/operations/privateEndpointConnections.ts +1 -1
  162. package/src/operations/registries.ts +8 -8
  163. package/src/operations/replications.ts +2 -2
  164. package/src/operations/runs.ts +9 -9
  165. package/src/operations/scopeMaps.ts +2 -2
  166. package/src/operations/taskRuns.ts +11 -11
  167. package/src/operations/tasks.ts +11 -11
  168. package/src/operations/tokens.ts +2 -2
  169. package/src/operations/webhooks.ts +2 -2
  170. package/src/operationsInterfaces/cacheRules.ts +153 -0
  171. package/src/operationsInterfaces/credentialSets.ts +153 -0
  172. package/src/operationsInterfaces/index.ts +2 -0
  173. package/types/arm-containerregistry.d.ts +491 -11
  174. package/types/tsdoc-metadata.json +1 -1
@@ -25,6 +25,189 @@ export type TaskStepUpdateParametersUnion =
25
25
  | FileTaskStepUpdateParameters
26
26
  | EncodedTaskStepUpdateParameters;
27
27
 
28
+ /** The result of a request to list cache rules for a container registry. */
29
+ export interface CacheRulesListResult {
30
+ /** The list of cache rules. */
31
+ value?: CacheRule[];
32
+ /** If provided, client must use NextLink URI to request next list of cache rules. */
33
+ nextLink?: string;
34
+ }
35
+
36
+ /** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. */
37
+ export interface ProxyResource {
38
+ /**
39
+ * The resource ID.
40
+ * NOTE: This property will not be serialized. It can only be populated by the server.
41
+ */
42
+ readonly id?: string;
43
+ /**
44
+ * The name of the resource.
45
+ * NOTE: This property will not be serialized. It can only be populated by the server.
46
+ */
47
+ readonly name?: string;
48
+ /**
49
+ * The type of the resource.
50
+ * NOTE: This property will not be serialized. It can only be populated by the server.
51
+ */
52
+ readonly type?: string;
53
+ /**
54
+ * Metadata pertaining to creation and last modification of the resource.
55
+ * NOTE: This property will not be serialized. It can only be populated by the server.
56
+ */
57
+ readonly systemData?: SystemData;
58
+ }
59
+
60
+ /** Metadata pertaining to creation and last modification of the resource. */
61
+ export interface SystemData {
62
+ /** The identity that created the resource. */
63
+ createdBy?: string;
64
+ /** The type of identity that created the resource. */
65
+ createdByType?: CreatedByType;
66
+ /** The timestamp of resource creation (UTC). */
67
+ createdAt?: Date;
68
+ /** The identity that last modified the resource. */
69
+ lastModifiedBy?: string;
70
+ /** The type of identity that last modified the resource. */
71
+ lastModifiedByType?: LastModifiedByType;
72
+ /** The timestamp of resource modification (UTC). */
73
+ lastModifiedAt?: Date;
74
+ }
75
+
76
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
77
+ export interface ErrorResponse {
78
+ /** The error object. */
79
+ error?: ErrorDetail;
80
+ }
81
+
82
+ /** The error detail. */
83
+ export interface ErrorDetail {
84
+ /**
85
+ * The error code.
86
+ * NOTE: This property will not be serialized. It can only be populated by the server.
87
+ */
88
+ readonly code?: string;
89
+ /**
90
+ * The error message.
91
+ * NOTE: This property will not be serialized. It can only be populated by the server.
92
+ */
93
+ readonly message?: string;
94
+ /**
95
+ * The error target.
96
+ * NOTE: This property will not be serialized. It can only be populated by the server.
97
+ */
98
+ readonly target?: string;
99
+ /**
100
+ * The error details.
101
+ * NOTE: This property will not be serialized. It can only be populated by the server.
102
+ */
103
+ readonly details?: ErrorDetail[];
104
+ /**
105
+ * The error additional info.
106
+ * NOTE: This property will not be serialized. It can only be populated by the server.
107
+ */
108
+ readonly additionalInfo?: ErrorAdditionalInfo[];
109
+ }
110
+
111
+ /** The resource management error additional info. */
112
+ export interface ErrorAdditionalInfo {
113
+ /**
114
+ * The additional info type.
115
+ * NOTE: This property will not be serialized. It can only be populated by the server.
116
+ */
117
+ readonly type?: string;
118
+ /**
119
+ * The additional info.
120
+ * NOTE: This property will not be serialized. It can only be populated by the server.
121
+ */
122
+ readonly info?: Record<string, unknown>;
123
+ }
124
+
125
+ /** The parameters for updating a cache rule. */
126
+ export interface CacheRuleUpdateParameters {
127
+ /** The ARM resource ID of the credential store which is associated with the Cache rule. */
128
+ credentialSetResourceId?: string;
129
+ }
130
+
131
+ /** The result of a request to list credential sets for a container registry. */
132
+ export interface CredentialSetListResult {
133
+ /** The list of credential sets. Since this list may be incomplete, the nextLink field should be used to request the next list of credential sets. */
134
+ value?: CredentialSet[];
135
+ /** The URI that can be used to request the next list of credential sets. */
136
+ nextLink?: string;
137
+ }
138
+
139
+ /** Managed identity for the resource. */
140
+ export interface IdentityProperties {
141
+ /**
142
+ * The principal ID of resource identity.
143
+ * NOTE: This property will not be serialized. It can only be populated by the server.
144
+ */
145
+ readonly principalId?: string;
146
+ /**
147
+ * The tenant ID of resource.
148
+ * NOTE: This property will not be serialized. It can only be populated by the server.
149
+ */
150
+ readonly tenantId?: string;
151
+ /** The identity type. */
152
+ type?: ResourceIdentityType;
153
+ /**
154
+ * The list of user identities associated with the resource. The user identity
155
+ * dictionary key references will be ARM resource ids in the form:
156
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/
157
+ * providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
158
+ */
159
+ userAssignedIdentities?: { [propertyName: string]: UserIdentityProperties };
160
+ }
161
+
162
+ export interface UserIdentityProperties {
163
+ /**
164
+ * The principal id of user assigned identity.
165
+ * NOTE: This property will not be serialized. It can only be populated by the server.
166
+ */
167
+ readonly principalId?: string;
168
+ /**
169
+ * The client id of user assigned identity.
170
+ * NOTE: This property will not be serialized. It can only be populated by the server.
171
+ */
172
+ readonly clientId?: string;
173
+ }
174
+
175
+ /** Authentication credential stored for an upstream. */
176
+ export interface AuthCredential {
177
+ /** The name of the credential. */
178
+ name?: CredentialName;
179
+ /** KeyVault Secret URI for accessing the username. */
180
+ usernameSecretIdentifier?: string;
181
+ /** KeyVault Secret URI for accessing the password. */
182
+ passwordSecretIdentifier?: string;
183
+ /**
184
+ * This provides data pertaining to the health of the auth credential.
185
+ * NOTE: This property will not be serialized. It can only be populated by the server.
186
+ */
187
+ readonly credentialHealth?: CredentialHealth;
188
+ }
189
+
190
+ /** The health of the auth credential. */
191
+ export interface CredentialHealth {
192
+ /** The health status of credential. */
193
+ status?: CredentialHealthStatus;
194
+ /** Error code representing the health check error. */
195
+ errorCode?: string;
196
+ /** Descriptive message representing the health check error. */
197
+ errorMessage?: string;
198
+ }
199
+
200
+ /** The parameters for updating a credential set */
201
+ export interface CredentialSetUpdateParameters {
202
+ /** Identities associated with the resource. This is used to access the KeyVault secrets. */
203
+ identity?: IdentityProperties;
204
+ /**
205
+ * List of authentication credentials stored for an upstream.
206
+ * Usually consists of a primary and an optional secondary credential.
207
+ */
208
+ authCredentials?: AuthCredential[];
209
+ }
210
+
28
211
  export interface ImportImageParameters {
29
212
  /** The source of the image. */
30
213
  source: ImportSource;
@@ -172,46 +355,6 @@ export interface PrivateLinkServiceConnectionState {
172
355
  actionsRequired?: ActionsRequired;
173
356
  }
174
357
 
175
- /** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. */
176
- export interface ProxyResource {
177
- /**
178
- * The resource ID.
179
- * NOTE: This property will not be serialized. It can only be populated by the server.
180
- */
181
- readonly id?: string;
182
- /**
183
- * The name of the resource.
184
- * NOTE: This property will not be serialized. It can only be populated by the server.
185
- */
186
- readonly name?: string;
187
- /**
188
- * The type of the resource.
189
- * NOTE: This property will not be serialized. It can only be populated by the server.
190
- */
191
- readonly type?: string;
192
- /**
193
- * Metadata pertaining to creation and last modification of the resource.
194
- * NOTE: This property will not be serialized. It can only be populated by the server.
195
- */
196
- readonly systemData?: SystemData;
197
- }
198
-
199
- /** Metadata pertaining to creation and last modification of the resource. */
200
- export interface SystemData {
201
- /** The identity that created the resource. */
202
- createdBy?: string;
203
- /** The type of identity that created the resource. */
204
- createdByType?: CreatedByType;
205
- /** The timestamp of resource creation (UTC). */
206
- createdAt?: Date;
207
- /** The identity that last modified the resource. */
208
- lastModifiedBy?: string;
209
- /** The type of identity that last modified the resource. */
210
- lastModifiedByType?: LastModifiedByType;
211
- /** The timestamp of resource modification (UTC). */
212
- lastModifiedAt?: Date;
213
- }
214
-
215
358
  /** The result of a request to list container registries. */
216
359
  export interface RegistryListResult {
217
360
  /** The list of container registries. Since this list may be incomplete, the nextLink field should be used to request the next list of container registries. */
@@ -231,30 +374,6 @@ export interface Sku {
231
374
  readonly tier?: SkuTier;
232
375
  }
233
376
 
234
- /** Managed identity for the resource. */
235
- export interface IdentityProperties {
236
- /** The principal ID of resource identity. */
237
- principalId?: string;
238
- /** The tenant ID of resource. */
239
- tenantId?: string;
240
- /** The identity type. */
241
- type?: ResourceIdentityType;
242
- /**
243
- * The list of user identities associated with the resource. The user identity
244
- * dictionary key references will be ARM resource ids in the form:
245
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/
246
- * providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
247
- */
248
- userAssignedIdentities?: { [propertyName: string]: UserIdentityProperties };
249
- }
250
-
251
- export interface UserIdentityProperties {
252
- /** The principal id of user assigned identity. */
253
- principalId?: string;
254
- /** The client id of user assigned identity. */
255
- clientId?: string;
256
- }
257
-
258
377
  /** The status of an Azure resource at the time the operation was called. */
259
378
  export interface Status {
260
379
  /**
@@ -461,34 +580,6 @@ export interface PrivateLinkResource {
461
580
  requiredZoneNames?: string[];
462
581
  }
463
582
 
464
- /** An error response from the Azure Container Registry service. */
465
- export interface ErrorResponse {
466
- /** Azure container registry build API error body. */
467
- error?: ErrorResponseBody;
468
- }
469
-
470
- /** An error response from the Azure Container Registry service. */
471
- export interface ErrorResponseBody {
472
- /** error code. */
473
- code: string;
474
- /** error message. */
475
- message: string;
476
- /** target of the particular error. */
477
- target?: string;
478
- /** an array of additional nested error response info objects, as described by this contract. */
479
- details?: InnerErrorDescription[];
480
- }
481
-
482
- /** inner error. */
483
- export interface InnerErrorDescription {
484
- /** error code. */
485
- code: string;
486
- /** error message. */
487
- message: string;
488
- /** target of the particular error. */
489
- target?: string;
490
- }
491
-
492
583
  /** The response from the ListCredentials operation. */
493
584
  export interface RegistryListCredentialsResult {
494
585
  /** The username for a container registry. */
@@ -775,6 +866,34 @@ export interface CallbackConfig {
775
866
  customHeaders?: { [propertyName: string]: string };
776
867
  }
777
868
 
869
+ /** An error response from the Azure Container Registry service. */
870
+ export interface ErrorResponseForContainerRegistry {
871
+ /** Azure container registry build API error body. */
872
+ error?: ErrorResponseBody;
873
+ }
874
+
875
+ /** An error response from the Azure Container Registry service. */
876
+ export interface ErrorResponseBody {
877
+ /** error code. */
878
+ code: string;
879
+ /** error message. */
880
+ message: string;
881
+ /** target of the particular error. */
882
+ target?: string;
883
+ /** an array of additional nested error response info objects, as described by this contract. */
884
+ details?: InnerErrorDescription[];
885
+ }
886
+
887
+ /** inner error. */
888
+ export interface InnerErrorDescription {
889
+ /** error code. */
890
+ code: string;
891
+ /** error message. */
892
+ message: string;
893
+ /** target of the particular error. */
894
+ target?: string;
895
+ }
896
+
778
897
  /** The parameters for updating an agent pool. */
779
898
  export interface AgentPoolUpdateParameters {
780
899
  /** The ARM resource tags. */
@@ -1305,6 +1424,52 @@ export interface OverrideTaskStepProperties {
1305
1424
  updateTriggerToken?: string;
1306
1425
  }
1307
1426
 
1427
+ /** An object that represents a cache rule for a container registry. */
1428
+ export interface CacheRule extends ProxyResource {
1429
+ /** The ARM resource ID of the credential store which is associated with the cache rule. */
1430
+ credentialSetResourceId?: string;
1431
+ /** Source repository pulled from upstream. */
1432
+ sourceRepository?: string;
1433
+ /**
1434
+ * Target repository specified in docker pull command.
1435
+ * Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag}
1436
+ */
1437
+ targetRepository?: string;
1438
+ /**
1439
+ * The creation date of the cache rule.
1440
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1441
+ */
1442
+ readonly creationDate?: Date;
1443
+ /**
1444
+ * Provisioning state of the resource.
1445
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1446
+ */
1447
+ readonly provisioningState?: ProvisioningState;
1448
+ }
1449
+
1450
+ /** An object that represents a credential set resource for a container registry. */
1451
+ export interface CredentialSet extends ProxyResource {
1452
+ /** Identities associated with the resource. This is used to access the KeyVault secrets. */
1453
+ identity?: IdentityProperties;
1454
+ /** The credentials are stored for this upstream or login server. */
1455
+ loginServer?: string;
1456
+ /**
1457
+ * List of authentication credentials stored for an upstream.
1458
+ * Usually consists of a primary and an optional secondary credential.
1459
+ */
1460
+ authCredentials?: AuthCredential[];
1461
+ /**
1462
+ * The creation date of credential store resource.
1463
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1464
+ */
1465
+ readonly creationDate?: Date;
1466
+ /**
1467
+ * Provisioning state of the resource.
1468
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1469
+ */
1470
+ readonly provisioningState?: ProvisioningState;
1471
+ }
1472
+
1308
1473
  /** An object that represents a private endpoint connection for a container registry. */
1309
1474
  export interface PrivateEndpointConnection extends ProxyResource {
1310
1475
  /** The resource of private endpoint. */
@@ -1775,6 +1940,36 @@ export interface EncodedTaskStepUpdateParameters
1775
1940
  values?: SetValue[];
1776
1941
  }
1777
1942
 
1943
+ /** Defines headers for CacheRules_create operation. */
1944
+ export interface CacheRulesCreateHeaders {
1945
+ azureAsyncOperation?: string;
1946
+ }
1947
+
1948
+ /** Defines headers for CacheRules_delete operation. */
1949
+ export interface CacheRulesDeleteHeaders {
1950
+ location?: string;
1951
+ }
1952
+
1953
+ /** Defines headers for CacheRules_update operation. */
1954
+ export interface CacheRulesUpdateHeaders {
1955
+ azureAsyncOperation?: string;
1956
+ }
1957
+
1958
+ /** Defines headers for CredentialSets_create operation. */
1959
+ export interface CredentialSetsCreateHeaders {
1960
+ azureAsyncOperation?: string;
1961
+ }
1962
+
1963
+ /** Defines headers for CredentialSets_delete operation. */
1964
+ export interface CredentialSetsDeleteHeaders {
1965
+ location?: string;
1966
+ }
1967
+
1968
+ /** Defines headers for CredentialSets_update operation. */
1969
+ export interface CredentialSetsUpdateHeaders {
1970
+ azureAsyncOperation?: string;
1971
+ }
1972
+
1778
1973
  /** Defines headers for Registries_importImage operation. */
1779
1974
  export interface RegistriesImportImageHeaders {
1780
1975
  location?: string;
@@ -1870,66 +2065,6 @@ export interface WebhooksUpdateHeaders {
1870
2065
  azureAsyncOperation?: string;
1871
2066
  }
1872
2067
 
1873
- /** Known values of {@link ImportMode} that the service accepts. */
1874
- export enum KnownImportMode {
1875
- /** NoForce */
1876
- NoForce = "NoForce",
1877
- /** Force */
1878
- Force = "Force"
1879
- }
1880
-
1881
- /**
1882
- * Defines values for ImportMode. \
1883
- * {@link KnownImportMode} can be used interchangeably with ImportMode,
1884
- * this enum contains the known values that the service supports.
1885
- * ### Known values supported by the service
1886
- * **NoForce** \
1887
- * **Force**
1888
- */
1889
- export type ImportMode = string;
1890
-
1891
- /** Known values of {@link ConnectionStatus} that the service accepts. */
1892
- export enum KnownConnectionStatus {
1893
- /** Approved */
1894
- Approved = "Approved",
1895
- /** Pending */
1896
- Pending = "Pending",
1897
- /** Rejected */
1898
- Rejected = "Rejected",
1899
- /** Disconnected */
1900
- Disconnected = "Disconnected"
1901
- }
1902
-
1903
- /**
1904
- * Defines values for ConnectionStatus. \
1905
- * {@link KnownConnectionStatus} can be used interchangeably with ConnectionStatus,
1906
- * this enum contains the known values that the service supports.
1907
- * ### Known values supported by the service
1908
- * **Approved** \
1909
- * **Pending** \
1910
- * **Rejected** \
1911
- * **Disconnected**
1912
- */
1913
- export type ConnectionStatus = string;
1914
-
1915
- /** Known values of {@link ActionsRequired} that the service accepts. */
1916
- export enum KnownActionsRequired {
1917
- /** None */
1918
- None = "None",
1919
- /** Recreate */
1920
- Recreate = "Recreate"
1921
- }
1922
-
1923
- /**
1924
- * Defines values for ActionsRequired. \
1925
- * {@link KnownActionsRequired} can be used interchangeably with ActionsRequired,
1926
- * this enum contains the known values that the service supports.
1927
- * ### Known values supported by the service
1928
- * **None** \
1929
- * **Recreate**
1930
- */
1931
- export type ActionsRequired = string;
1932
-
1933
2068
  /** Known values of {@link ProvisioningState} that the service accepts. */
1934
2069
  export enum KnownProvisioningState {
1935
2070
  /** Creating */
@@ -2008,6 +2143,99 @@ export enum KnownLastModifiedByType {
2008
2143
  */
2009
2144
  export type LastModifiedByType = string;
2010
2145
 
2146
+ /** Known values of {@link CredentialName} that the service accepts. */
2147
+ export enum KnownCredentialName {
2148
+ /** Credential1 */
2149
+ Credential1 = "Credential1"
2150
+ }
2151
+
2152
+ /**
2153
+ * Defines values for CredentialName. \
2154
+ * {@link KnownCredentialName} can be used interchangeably with CredentialName,
2155
+ * this enum contains the known values that the service supports.
2156
+ * ### Known values supported by the service
2157
+ * **Credential1**
2158
+ */
2159
+ export type CredentialName = string;
2160
+
2161
+ /** Known values of {@link CredentialHealthStatus} that the service accepts. */
2162
+ export enum KnownCredentialHealthStatus {
2163
+ /** Healthy */
2164
+ Healthy = "Healthy",
2165
+ /** Unhealthy */
2166
+ Unhealthy = "Unhealthy"
2167
+ }
2168
+
2169
+ /**
2170
+ * Defines values for CredentialHealthStatus. \
2171
+ * {@link KnownCredentialHealthStatus} can be used interchangeably with CredentialHealthStatus,
2172
+ * this enum contains the known values that the service supports.
2173
+ * ### Known values supported by the service
2174
+ * **Healthy** \
2175
+ * **Unhealthy**
2176
+ */
2177
+ export type CredentialHealthStatus = string;
2178
+
2179
+ /** Known values of {@link ImportMode} that the service accepts. */
2180
+ export enum KnownImportMode {
2181
+ /** NoForce */
2182
+ NoForce = "NoForce",
2183
+ /** Force */
2184
+ Force = "Force"
2185
+ }
2186
+
2187
+ /**
2188
+ * Defines values for ImportMode. \
2189
+ * {@link KnownImportMode} can be used interchangeably with ImportMode,
2190
+ * this enum contains the known values that the service supports.
2191
+ * ### Known values supported by the service
2192
+ * **NoForce** \
2193
+ * **Force**
2194
+ */
2195
+ export type ImportMode = string;
2196
+
2197
+ /** Known values of {@link ConnectionStatus} that the service accepts. */
2198
+ export enum KnownConnectionStatus {
2199
+ /** Approved */
2200
+ Approved = "Approved",
2201
+ /** Pending */
2202
+ Pending = "Pending",
2203
+ /** Rejected */
2204
+ Rejected = "Rejected",
2205
+ /** Disconnected */
2206
+ Disconnected = "Disconnected"
2207
+ }
2208
+
2209
+ /**
2210
+ * Defines values for ConnectionStatus. \
2211
+ * {@link KnownConnectionStatus} can be used interchangeably with ConnectionStatus,
2212
+ * this enum contains the known values that the service supports.
2213
+ * ### Known values supported by the service
2214
+ * **Approved** \
2215
+ * **Pending** \
2216
+ * **Rejected** \
2217
+ * **Disconnected**
2218
+ */
2219
+ export type ConnectionStatus = string;
2220
+
2221
+ /** Known values of {@link ActionsRequired} that the service accepts. */
2222
+ export enum KnownActionsRequired {
2223
+ /** None */
2224
+ None = "None",
2225
+ /** Recreate */
2226
+ Recreate = "Recreate"
2227
+ }
2228
+
2229
+ /**
2230
+ * Defines values for ActionsRequired. \
2231
+ * {@link KnownActionsRequired} can be used interchangeably with ActionsRequired,
2232
+ * this enum contains the known values that the service supports.
2233
+ * ### Known values supported by the service
2234
+ * **None** \
2235
+ * **Recreate**
2236
+ */
2237
+ export type ActionsRequired = string;
2238
+
2011
2239
  /** Known values of {@link SkuName} that the service accepts. */
2012
2240
  export enum KnownSkuName {
2013
2241
  /** Classic */
@@ -2664,6 +2892,120 @@ export type ResourceIdentityType =
2664
2892
  /** Defines values for PasswordName. */
2665
2893
  export type PasswordName = "password" | "password2";
2666
2894
 
2895
+ /** Optional parameters. */
2896
+ export interface CacheRulesListOptionalParams
2897
+ extends coreClient.OperationOptions {}
2898
+
2899
+ /** Contains response data for the list operation. */
2900
+ export type CacheRulesListResponse = CacheRulesListResult;
2901
+
2902
+ /** Optional parameters. */
2903
+ export interface CacheRulesGetOptionalParams
2904
+ extends coreClient.OperationOptions {}
2905
+
2906
+ /** Contains response data for the get operation. */
2907
+ export type CacheRulesGetResponse = CacheRule;
2908
+
2909
+ /** Optional parameters. */
2910
+ export interface CacheRulesCreateOptionalParams
2911
+ extends coreClient.OperationOptions {
2912
+ /** Delay to wait until next poll, in milliseconds. */
2913
+ updateIntervalInMs?: number;
2914
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2915
+ resumeFrom?: string;
2916
+ }
2917
+
2918
+ /** Contains response data for the create operation. */
2919
+ export type CacheRulesCreateResponse = CacheRule;
2920
+
2921
+ /** Optional parameters. */
2922
+ export interface CacheRulesDeleteOptionalParams
2923
+ extends coreClient.OperationOptions {
2924
+ /** Delay to wait until next poll, in milliseconds. */
2925
+ updateIntervalInMs?: number;
2926
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2927
+ resumeFrom?: string;
2928
+ }
2929
+
2930
+ /** Contains response data for the delete operation. */
2931
+ export type CacheRulesDeleteResponse = CacheRulesDeleteHeaders;
2932
+
2933
+ /** Optional parameters. */
2934
+ export interface CacheRulesUpdateOptionalParams
2935
+ extends coreClient.OperationOptions {
2936
+ /** Delay to wait until next poll, in milliseconds. */
2937
+ updateIntervalInMs?: number;
2938
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2939
+ resumeFrom?: string;
2940
+ }
2941
+
2942
+ /** Contains response data for the update operation. */
2943
+ export type CacheRulesUpdateResponse = CacheRule;
2944
+
2945
+ /** Optional parameters. */
2946
+ export interface CacheRulesListNextOptionalParams
2947
+ extends coreClient.OperationOptions {}
2948
+
2949
+ /** Contains response data for the listNext operation. */
2950
+ export type CacheRulesListNextResponse = CacheRulesListResult;
2951
+
2952
+ /** Optional parameters. */
2953
+ export interface CredentialSetsListOptionalParams
2954
+ extends coreClient.OperationOptions {}
2955
+
2956
+ /** Contains response data for the list operation. */
2957
+ export type CredentialSetsListResponse = CredentialSetListResult;
2958
+
2959
+ /** Optional parameters. */
2960
+ export interface CredentialSetsGetOptionalParams
2961
+ extends coreClient.OperationOptions {}
2962
+
2963
+ /** Contains response data for the get operation. */
2964
+ export type CredentialSetsGetResponse = CredentialSet;
2965
+
2966
+ /** Optional parameters. */
2967
+ export interface CredentialSetsCreateOptionalParams
2968
+ extends coreClient.OperationOptions {
2969
+ /** Delay to wait until next poll, in milliseconds. */
2970
+ updateIntervalInMs?: number;
2971
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2972
+ resumeFrom?: string;
2973
+ }
2974
+
2975
+ /** Contains response data for the create operation. */
2976
+ export type CredentialSetsCreateResponse = CredentialSet;
2977
+
2978
+ /** Optional parameters. */
2979
+ export interface CredentialSetsDeleteOptionalParams
2980
+ extends coreClient.OperationOptions {
2981
+ /** Delay to wait until next poll, in milliseconds. */
2982
+ updateIntervalInMs?: number;
2983
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2984
+ resumeFrom?: string;
2985
+ }
2986
+
2987
+ /** Contains response data for the delete operation. */
2988
+ export type CredentialSetsDeleteResponse = CredentialSetsDeleteHeaders;
2989
+
2990
+ /** Optional parameters. */
2991
+ export interface CredentialSetsUpdateOptionalParams
2992
+ extends coreClient.OperationOptions {
2993
+ /** Delay to wait until next poll, in milliseconds. */
2994
+ updateIntervalInMs?: number;
2995
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2996
+ resumeFrom?: string;
2997
+ }
2998
+
2999
+ /** Contains response data for the update operation. */
3000
+ export type CredentialSetsUpdateResponse = CredentialSet;
3001
+
3002
+ /** Optional parameters. */
3003
+ export interface CredentialSetsListNextOptionalParams
3004
+ extends coreClient.OperationOptions {}
3005
+
3006
+ /** Contains response data for the listNext operation. */
3007
+ export type CredentialSetsListNextResponse = CredentialSetListResult;
3008
+
2667
3009
  /** Optional parameters. */
2668
3010
  export interface RegistriesImportImageOptionalParams
2669
3011
  extends coreClient.OperationOptions {