@azure/arm-containerregistry 10.1.1-alpha.20230824.1 → 11.0.0-alpha.20230919.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 (173) 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 +5 -5
  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
@@ -2,6 +2,178 @@ import * as coreClient from "@azure/core-client";
2
2
  export type RunRequestUnion = RunRequest | DockerBuildRequest | FileTaskRunRequest | TaskRunRequest | EncodedTaskRunRequest;
3
3
  export type TaskStepPropertiesUnion = TaskStepProperties | DockerBuildStep | FileTaskStep | EncodedTaskStep;
4
4
  export type TaskStepUpdateParametersUnion = TaskStepUpdateParameters | DockerBuildStepUpdateParameters | FileTaskStepUpdateParameters | EncodedTaskStepUpdateParameters;
5
+ /** The result of a request to list cache rules for a container registry. */
6
+ export interface CacheRulesListResult {
7
+ /** The list of cache rules. */
8
+ value?: CacheRule[];
9
+ /** If provided, client must use NextLink URI to request next list of cache rules. */
10
+ nextLink?: string;
11
+ }
12
+ /** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. */
13
+ export interface ProxyResource {
14
+ /**
15
+ * The resource ID.
16
+ * NOTE: This property will not be serialized. It can only be populated by the server.
17
+ */
18
+ readonly id?: string;
19
+ /**
20
+ * The name of the resource.
21
+ * NOTE: This property will not be serialized. It can only be populated by the server.
22
+ */
23
+ readonly name?: string;
24
+ /**
25
+ * The type of the resource.
26
+ * NOTE: This property will not be serialized. It can only be populated by the server.
27
+ */
28
+ readonly type?: string;
29
+ /**
30
+ * Metadata pertaining to creation and last modification of the resource.
31
+ * NOTE: This property will not be serialized. It can only be populated by the server.
32
+ */
33
+ readonly systemData?: SystemData;
34
+ }
35
+ /** Metadata pertaining to creation and last modification of the resource. */
36
+ export interface SystemData {
37
+ /** The identity that created the resource. */
38
+ createdBy?: string;
39
+ /** The type of identity that created the resource. */
40
+ createdByType?: CreatedByType;
41
+ /** The timestamp of resource creation (UTC). */
42
+ createdAt?: Date;
43
+ /** The identity that last modified the resource. */
44
+ lastModifiedBy?: string;
45
+ /** The type of identity that last modified the resource. */
46
+ lastModifiedByType?: LastModifiedByType;
47
+ /** The timestamp of resource modification (UTC). */
48
+ lastModifiedAt?: Date;
49
+ }
50
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
51
+ export interface ErrorResponse {
52
+ /** The error object. */
53
+ error?: ErrorDetail;
54
+ }
55
+ /** The error detail. */
56
+ export interface ErrorDetail {
57
+ /**
58
+ * The error code.
59
+ * NOTE: This property will not be serialized. It can only be populated by the server.
60
+ */
61
+ readonly code?: string;
62
+ /**
63
+ * The error message.
64
+ * NOTE: This property will not be serialized. It can only be populated by the server.
65
+ */
66
+ readonly message?: string;
67
+ /**
68
+ * The error target.
69
+ * NOTE: This property will not be serialized. It can only be populated by the server.
70
+ */
71
+ readonly target?: string;
72
+ /**
73
+ * The error details.
74
+ * NOTE: This property will not be serialized. It can only be populated by the server.
75
+ */
76
+ readonly details?: ErrorDetail[];
77
+ /**
78
+ * The error additional info.
79
+ * NOTE: This property will not be serialized. It can only be populated by the server.
80
+ */
81
+ readonly additionalInfo?: ErrorAdditionalInfo[];
82
+ }
83
+ /** The resource management error additional info. */
84
+ export interface ErrorAdditionalInfo {
85
+ /**
86
+ * The additional info type.
87
+ * NOTE: This property will not be serialized. It can only be populated by the server.
88
+ */
89
+ readonly type?: string;
90
+ /**
91
+ * The additional info.
92
+ * NOTE: This property will not be serialized. It can only be populated by the server.
93
+ */
94
+ readonly info?: Record<string, unknown>;
95
+ }
96
+ /** The parameters for updating a cache rule. */
97
+ export interface CacheRuleUpdateParameters {
98
+ /** The ARM resource ID of the credential store which is associated with the Cache rule. */
99
+ credentialSetResourceId?: string;
100
+ }
101
+ /** The result of a request to list credential sets for a container registry. */
102
+ export interface CredentialSetListResult {
103
+ /** 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. */
104
+ value?: CredentialSet[];
105
+ /** The URI that can be used to request the next list of credential sets. */
106
+ nextLink?: string;
107
+ }
108
+ /** Managed identity for the resource. */
109
+ export interface IdentityProperties {
110
+ /**
111
+ * The principal ID of resource identity.
112
+ * NOTE: This property will not be serialized. It can only be populated by the server.
113
+ */
114
+ readonly principalId?: string;
115
+ /**
116
+ * The tenant ID of resource.
117
+ * NOTE: This property will not be serialized. It can only be populated by the server.
118
+ */
119
+ readonly tenantId?: string;
120
+ /** The identity type. */
121
+ type?: ResourceIdentityType;
122
+ /**
123
+ * The list of user identities associated with the resource. The user identity
124
+ * dictionary key references will be ARM resource ids in the form:
125
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/
126
+ * providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
127
+ */
128
+ userAssignedIdentities?: {
129
+ [propertyName: string]: UserIdentityProperties;
130
+ };
131
+ }
132
+ export interface UserIdentityProperties {
133
+ /**
134
+ * The principal id of user assigned identity.
135
+ * NOTE: This property will not be serialized. It can only be populated by the server.
136
+ */
137
+ readonly principalId?: string;
138
+ /**
139
+ * The client id of user assigned identity.
140
+ * NOTE: This property will not be serialized. It can only be populated by the server.
141
+ */
142
+ readonly clientId?: string;
143
+ }
144
+ /** Authentication credential stored for an upstream. */
145
+ export interface AuthCredential {
146
+ /** The name of the credential. */
147
+ name?: CredentialName;
148
+ /** KeyVault Secret URI for accessing the username. */
149
+ usernameSecretIdentifier?: string;
150
+ /** KeyVault Secret URI for accessing the password. */
151
+ passwordSecretIdentifier?: string;
152
+ /**
153
+ * This provides data pertaining to the health of the auth credential.
154
+ * NOTE: This property will not be serialized. It can only be populated by the server.
155
+ */
156
+ readonly credentialHealth?: CredentialHealth;
157
+ }
158
+ /** The health of the auth credential. */
159
+ export interface CredentialHealth {
160
+ /** The health status of credential. */
161
+ status?: CredentialHealthStatus;
162
+ /** Error code representing the health check error. */
163
+ errorCode?: string;
164
+ /** Descriptive message representing the health check error. */
165
+ errorMessage?: string;
166
+ }
167
+ /** The parameters for updating a credential set */
168
+ export interface CredentialSetUpdateParameters {
169
+ /** Identities associated with the resource. This is used to access the KeyVault secrets. */
170
+ identity?: IdentityProperties;
171
+ /**
172
+ * List of authentication credentials stored for an upstream.
173
+ * Usually consists of a primary and an optional secondary credential.
174
+ */
175
+ authCredentials?: AuthCredential[];
176
+ }
5
177
  export interface ImportImageParameters {
6
178
  /** The source of the image. */
7
179
  source: ImportSource;
@@ -135,44 +307,6 @@ export interface PrivateLinkServiceConnectionState {
135
307
  /** A message indicating if changes on the service provider require any updates on the consumer. */
136
308
  actionsRequired?: ActionsRequired;
137
309
  }
138
- /** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. */
139
- export interface ProxyResource {
140
- /**
141
- * The resource ID.
142
- * NOTE: This property will not be serialized. It can only be populated by the server.
143
- */
144
- readonly id?: string;
145
- /**
146
- * The name of the resource.
147
- * NOTE: This property will not be serialized. It can only be populated by the server.
148
- */
149
- readonly name?: string;
150
- /**
151
- * The type of the resource.
152
- * NOTE: This property will not be serialized. It can only be populated by the server.
153
- */
154
- readonly type?: string;
155
- /**
156
- * Metadata pertaining to creation and last modification of the resource.
157
- * NOTE: This property will not be serialized. It can only be populated by the server.
158
- */
159
- readonly systemData?: SystemData;
160
- }
161
- /** Metadata pertaining to creation and last modification of the resource. */
162
- export interface SystemData {
163
- /** The identity that created the resource. */
164
- createdBy?: string;
165
- /** The type of identity that created the resource. */
166
- createdByType?: CreatedByType;
167
- /** The timestamp of resource creation (UTC). */
168
- createdAt?: Date;
169
- /** The identity that last modified the resource. */
170
- lastModifiedBy?: string;
171
- /** The type of identity that last modified the resource. */
172
- lastModifiedByType?: LastModifiedByType;
173
- /** The timestamp of resource modification (UTC). */
174
- lastModifiedAt?: Date;
175
- }
176
310
  /** The result of a request to list container registries. */
177
311
  export interface RegistryListResult {
178
312
  /** 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. */
@@ -190,30 +324,6 @@ export interface Sku {
190
324
  */
191
325
  readonly tier?: SkuTier;
192
326
  }
193
- /** Managed identity for the resource. */
194
- export interface IdentityProperties {
195
- /** The principal ID of resource identity. */
196
- principalId?: string;
197
- /** The tenant ID of resource. */
198
- tenantId?: string;
199
- /** The identity type. */
200
- type?: ResourceIdentityType;
201
- /**
202
- * The list of user identities associated with the resource. The user identity
203
- * dictionary key references will be ARM resource ids in the form:
204
- * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/
205
- * providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
206
- */
207
- userAssignedIdentities?: {
208
- [propertyName: string]: UserIdentityProperties;
209
- };
210
- }
211
- export interface UserIdentityProperties {
212
- /** The principal id of user assigned identity. */
213
- principalId?: string;
214
- /** The client id of user assigned identity. */
215
- clientId?: string;
216
- }
217
327
  /** The status of an Azure resource at the time the operation was called. */
218
328
  export interface Status {
219
329
  /**
@@ -408,31 +518,6 @@ export interface PrivateLinkResource {
408
518
  /** The private link resource Private link DNS zone name. */
409
519
  requiredZoneNames?: string[];
410
520
  }
411
- /** An error response from the Azure Container Registry service. */
412
- export interface ErrorResponse {
413
- /** Azure container registry build API error body. */
414
- error?: ErrorResponseBody;
415
- }
416
- /** An error response from the Azure Container Registry service. */
417
- export interface ErrorResponseBody {
418
- /** error code. */
419
- code: string;
420
- /** error message. */
421
- message: string;
422
- /** target of the particular error. */
423
- target?: string;
424
- /** an array of additional nested error response info objects, as described by this contract. */
425
- details?: InnerErrorDescription[];
426
- }
427
- /** inner error. */
428
- export interface InnerErrorDescription {
429
- /** error code. */
430
- code: string;
431
- /** error message. */
432
- message: string;
433
- /** target of the particular error. */
434
- target?: string;
435
- }
436
521
  /** The response from the ListCredentials operation. */
437
522
  export interface RegistryListCredentialsResult {
438
523
  /** The username for a container registry. */
@@ -708,6 +793,31 @@ export interface CallbackConfig {
708
793
  [propertyName: string]: string;
709
794
  };
710
795
  }
796
+ /** An error response from the Azure Container Registry service. */
797
+ export interface ErrorResponseForContainerRegistry {
798
+ /** Azure container registry build API error body. */
799
+ error?: ErrorResponseBody;
800
+ }
801
+ /** An error response from the Azure Container Registry service. */
802
+ export interface ErrorResponseBody {
803
+ /** error code. */
804
+ code: string;
805
+ /** error message. */
806
+ message: string;
807
+ /** target of the particular error. */
808
+ target?: string;
809
+ /** an array of additional nested error response info objects, as described by this contract. */
810
+ details?: InnerErrorDescription[];
811
+ }
812
+ /** inner error. */
813
+ export interface InnerErrorDescription {
814
+ /** error code. */
815
+ code: string;
816
+ /** error message. */
817
+ message: string;
818
+ /** target of the particular error. */
819
+ target?: string;
820
+ }
711
821
  /** The parameters for updating an agent pool. */
712
822
  export interface AgentPoolUpdateParameters {
713
823
  /** The ARM resource tags. */
@@ -1197,6 +1307,50 @@ export interface OverrideTaskStepProperties {
1197
1307
  /** Base64 encoded update trigger token that will be attached with the base image trigger webhook. */
1198
1308
  updateTriggerToken?: string;
1199
1309
  }
1310
+ /** An object that represents a cache rule for a container registry. */
1311
+ export interface CacheRule extends ProxyResource {
1312
+ /** The ARM resource ID of the credential store which is associated with the cache rule. */
1313
+ credentialSetResourceId?: string;
1314
+ /** Source repository pulled from upstream. */
1315
+ sourceRepository?: string;
1316
+ /**
1317
+ * Target repository specified in docker pull command.
1318
+ * Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag}
1319
+ */
1320
+ targetRepository?: string;
1321
+ /**
1322
+ * The creation date of the cache rule.
1323
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1324
+ */
1325
+ readonly creationDate?: Date;
1326
+ /**
1327
+ * Provisioning state of the resource.
1328
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1329
+ */
1330
+ readonly provisioningState?: ProvisioningState;
1331
+ }
1332
+ /** An object that represents a credential set resource for a container registry. */
1333
+ export interface CredentialSet extends ProxyResource {
1334
+ /** Identities associated with the resource. This is used to access the KeyVault secrets. */
1335
+ identity?: IdentityProperties;
1336
+ /** The credentials are stored for this upstream or login server. */
1337
+ loginServer?: string;
1338
+ /**
1339
+ * List of authentication credentials stored for an upstream.
1340
+ * Usually consists of a primary and an optional secondary credential.
1341
+ */
1342
+ authCredentials?: AuthCredential[];
1343
+ /**
1344
+ * The creation date of credential store resource.
1345
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1346
+ */
1347
+ readonly creationDate?: Date;
1348
+ /**
1349
+ * Provisioning state of the resource.
1350
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1351
+ */
1352
+ readonly provisioningState?: ProvisioningState;
1353
+ }
1200
1354
  /** An object that represents a private endpoint connection for a container registry. */
1201
1355
  export interface PrivateEndpointConnection extends ProxyResource {
1202
1356
  /** The resource of private endpoint. */
@@ -1644,6 +1798,30 @@ export interface EncodedTaskStepUpdateParameters extends TaskStepUpdateParameter
1644
1798
  /** The collection of overridable values that can be passed when running a task. */
1645
1799
  values?: SetValue[];
1646
1800
  }
1801
+ /** Defines headers for CacheRules_create operation. */
1802
+ export interface CacheRulesCreateHeaders {
1803
+ azureAsyncOperation?: string;
1804
+ }
1805
+ /** Defines headers for CacheRules_delete operation. */
1806
+ export interface CacheRulesDeleteHeaders {
1807
+ location?: string;
1808
+ }
1809
+ /** Defines headers for CacheRules_update operation. */
1810
+ export interface CacheRulesUpdateHeaders {
1811
+ azureAsyncOperation?: string;
1812
+ }
1813
+ /** Defines headers for CredentialSets_create operation. */
1814
+ export interface CredentialSetsCreateHeaders {
1815
+ azureAsyncOperation?: string;
1816
+ }
1817
+ /** Defines headers for CredentialSets_delete operation. */
1818
+ export interface CredentialSetsDeleteHeaders {
1819
+ location?: string;
1820
+ }
1821
+ /** Defines headers for CredentialSets_update operation. */
1822
+ export interface CredentialSetsUpdateHeaders {
1823
+ azureAsyncOperation?: string;
1824
+ }
1647
1825
  /** Defines headers for Registries_importImage operation. */
1648
1826
  export interface RegistriesImportImageHeaders {
1649
1827
  location?: string;
@@ -1720,60 +1898,6 @@ export interface WebhooksDeleteHeaders {
1720
1898
  export interface WebhooksUpdateHeaders {
1721
1899
  azureAsyncOperation?: string;
1722
1900
  }
1723
- /** Known values of {@link ImportMode} that the service accepts. */
1724
- export declare enum KnownImportMode {
1725
- /** NoForce */
1726
- NoForce = "NoForce",
1727
- /** Force */
1728
- Force = "Force"
1729
- }
1730
- /**
1731
- * Defines values for ImportMode. \
1732
- * {@link KnownImportMode} can be used interchangeably with ImportMode,
1733
- * this enum contains the known values that the service supports.
1734
- * ### Known values supported by the service
1735
- * **NoForce** \
1736
- * **Force**
1737
- */
1738
- export type ImportMode = string;
1739
- /** Known values of {@link ConnectionStatus} that the service accepts. */
1740
- export declare enum KnownConnectionStatus {
1741
- /** Approved */
1742
- Approved = "Approved",
1743
- /** Pending */
1744
- Pending = "Pending",
1745
- /** Rejected */
1746
- Rejected = "Rejected",
1747
- /** Disconnected */
1748
- Disconnected = "Disconnected"
1749
- }
1750
- /**
1751
- * Defines values for ConnectionStatus. \
1752
- * {@link KnownConnectionStatus} can be used interchangeably with ConnectionStatus,
1753
- * this enum contains the known values that the service supports.
1754
- * ### Known values supported by the service
1755
- * **Approved** \
1756
- * **Pending** \
1757
- * **Rejected** \
1758
- * **Disconnected**
1759
- */
1760
- export type ConnectionStatus = string;
1761
- /** Known values of {@link ActionsRequired} that the service accepts. */
1762
- export declare enum KnownActionsRequired {
1763
- /** None */
1764
- None = "None",
1765
- /** Recreate */
1766
- Recreate = "Recreate"
1767
- }
1768
- /**
1769
- * Defines values for ActionsRequired. \
1770
- * {@link KnownActionsRequired} can be used interchangeably with ActionsRequired,
1771
- * this enum contains the known values that the service supports.
1772
- * ### Known values supported by the service
1773
- * **None** \
1774
- * **Recreate**
1775
- */
1776
- export type ActionsRequired = string;
1777
1901
  /** Known values of {@link ProvisioningState} that the service accepts. */
1778
1902
  export declare enum KnownProvisioningState {
1779
1903
  /** Creating */
@@ -1846,6 +1970,89 @@ export declare enum KnownLastModifiedByType {
1846
1970
  * **Key**
1847
1971
  */
1848
1972
  export type LastModifiedByType = string;
1973
+ /** Known values of {@link CredentialName} that the service accepts. */
1974
+ export declare enum KnownCredentialName {
1975
+ /** Credential1 */
1976
+ Credential1 = "Credential1"
1977
+ }
1978
+ /**
1979
+ * Defines values for CredentialName. \
1980
+ * {@link KnownCredentialName} can be used interchangeably with CredentialName,
1981
+ * this enum contains the known values that the service supports.
1982
+ * ### Known values supported by the service
1983
+ * **Credential1**
1984
+ */
1985
+ export type CredentialName = string;
1986
+ /** Known values of {@link CredentialHealthStatus} that the service accepts. */
1987
+ export declare enum KnownCredentialHealthStatus {
1988
+ /** Healthy */
1989
+ Healthy = "Healthy",
1990
+ /** Unhealthy */
1991
+ Unhealthy = "Unhealthy"
1992
+ }
1993
+ /**
1994
+ * Defines values for CredentialHealthStatus. \
1995
+ * {@link KnownCredentialHealthStatus} can be used interchangeably with CredentialHealthStatus,
1996
+ * this enum contains the known values that the service supports.
1997
+ * ### Known values supported by the service
1998
+ * **Healthy** \
1999
+ * **Unhealthy**
2000
+ */
2001
+ export type CredentialHealthStatus = string;
2002
+ /** Known values of {@link ImportMode} that the service accepts. */
2003
+ export declare enum KnownImportMode {
2004
+ /** NoForce */
2005
+ NoForce = "NoForce",
2006
+ /** Force */
2007
+ Force = "Force"
2008
+ }
2009
+ /**
2010
+ * Defines values for ImportMode. \
2011
+ * {@link KnownImportMode} can be used interchangeably with ImportMode,
2012
+ * this enum contains the known values that the service supports.
2013
+ * ### Known values supported by the service
2014
+ * **NoForce** \
2015
+ * **Force**
2016
+ */
2017
+ export type ImportMode = string;
2018
+ /** Known values of {@link ConnectionStatus} that the service accepts. */
2019
+ export declare enum KnownConnectionStatus {
2020
+ /** Approved */
2021
+ Approved = "Approved",
2022
+ /** Pending */
2023
+ Pending = "Pending",
2024
+ /** Rejected */
2025
+ Rejected = "Rejected",
2026
+ /** Disconnected */
2027
+ Disconnected = "Disconnected"
2028
+ }
2029
+ /**
2030
+ * Defines values for ConnectionStatus. \
2031
+ * {@link KnownConnectionStatus} can be used interchangeably with ConnectionStatus,
2032
+ * this enum contains the known values that the service supports.
2033
+ * ### Known values supported by the service
2034
+ * **Approved** \
2035
+ * **Pending** \
2036
+ * **Rejected** \
2037
+ * **Disconnected**
2038
+ */
2039
+ export type ConnectionStatus = string;
2040
+ /** Known values of {@link ActionsRequired} that the service accepts. */
2041
+ export declare enum KnownActionsRequired {
2042
+ /** None */
2043
+ None = "None",
2044
+ /** Recreate */
2045
+ Recreate = "Recreate"
2046
+ }
2047
+ /**
2048
+ * Defines values for ActionsRequired. \
2049
+ * {@link KnownActionsRequired} can be used interchangeably with ActionsRequired,
2050
+ * this enum contains the known values that the service supports.
2051
+ * ### Known values supported by the service
2052
+ * **None** \
2053
+ * **Recreate**
2054
+ */
2055
+ export type ActionsRequired = string;
1849
2056
  /** Known values of {@link SkuName} that the service accepts. */
1850
2057
  export declare enum KnownSkuName {
1851
2058
  /** Classic */
@@ -2433,6 +2640,90 @@ export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "SystemAs
2433
2640
  /** Defines values for PasswordName. */
2434
2641
  export type PasswordName = "password" | "password2";
2435
2642
  /** Optional parameters. */
2643
+ export interface CacheRulesListOptionalParams extends coreClient.OperationOptions {
2644
+ }
2645
+ /** Contains response data for the list operation. */
2646
+ export type CacheRulesListResponse = CacheRulesListResult;
2647
+ /** Optional parameters. */
2648
+ export interface CacheRulesGetOptionalParams extends coreClient.OperationOptions {
2649
+ }
2650
+ /** Contains response data for the get operation. */
2651
+ export type CacheRulesGetResponse = CacheRule;
2652
+ /** Optional parameters. */
2653
+ export interface CacheRulesCreateOptionalParams extends coreClient.OperationOptions {
2654
+ /** Delay to wait until next poll, in milliseconds. */
2655
+ updateIntervalInMs?: number;
2656
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2657
+ resumeFrom?: string;
2658
+ }
2659
+ /** Contains response data for the create operation. */
2660
+ export type CacheRulesCreateResponse = CacheRule;
2661
+ /** Optional parameters. */
2662
+ export interface CacheRulesDeleteOptionalParams extends coreClient.OperationOptions {
2663
+ /** Delay to wait until next poll, in milliseconds. */
2664
+ updateIntervalInMs?: number;
2665
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2666
+ resumeFrom?: string;
2667
+ }
2668
+ /** Contains response data for the delete operation. */
2669
+ export type CacheRulesDeleteResponse = CacheRulesDeleteHeaders;
2670
+ /** Optional parameters. */
2671
+ export interface CacheRulesUpdateOptionalParams extends coreClient.OperationOptions {
2672
+ /** Delay to wait until next poll, in milliseconds. */
2673
+ updateIntervalInMs?: number;
2674
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2675
+ resumeFrom?: string;
2676
+ }
2677
+ /** Contains response data for the update operation. */
2678
+ export type CacheRulesUpdateResponse = CacheRule;
2679
+ /** Optional parameters. */
2680
+ export interface CacheRulesListNextOptionalParams extends coreClient.OperationOptions {
2681
+ }
2682
+ /** Contains response data for the listNext operation. */
2683
+ export type CacheRulesListNextResponse = CacheRulesListResult;
2684
+ /** Optional parameters. */
2685
+ export interface CredentialSetsListOptionalParams extends coreClient.OperationOptions {
2686
+ }
2687
+ /** Contains response data for the list operation. */
2688
+ export type CredentialSetsListResponse = CredentialSetListResult;
2689
+ /** Optional parameters. */
2690
+ export interface CredentialSetsGetOptionalParams extends coreClient.OperationOptions {
2691
+ }
2692
+ /** Contains response data for the get operation. */
2693
+ export type CredentialSetsGetResponse = CredentialSet;
2694
+ /** Optional parameters. */
2695
+ export interface CredentialSetsCreateOptionalParams extends coreClient.OperationOptions {
2696
+ /** Delay to wait until next poll, in milliseconds. */
2697
+ updateIntervalInMs?: number;
2698
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2699
+ resumeFrom?: string;
2700
+ }
2701
+ /** Contains response data for the create operation. */
2702
+ export type CredentialSetsCreateResponse = CredentialSet;
2703
+ /** Optional parameters. */
2704
+ export interface CredentialSetsDeleteOptionalParams extends coreClient.OperationOptions {
2705
+ /** Delay to wait until next poll, in milliseconds. */
2706
+ updateIntervalInMs?: number;
2707
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2708
+ resumeFrom?: string;
2709
+ }
2710
+ /** Contains response data for the delete operation. */
2711
+ export type CredentialSetsDeleteResponse = CredentialSetsDeleteHeaders;
2712
+ /** Optional parameters. */
2713
+ export interface CredentialSetsUpdateOptionalParams extends coreClient.OperationOptions {
2714
+ /** Delay to wait until next poll, in milliseconds. */
2715
+ updateIntervalInMs?: number;
2716
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2717
+ resumeFrom?: string;
2718
+ }
2719
+ /** Contains response data for the update operation. */
2720
+ export type CredentialSetsUpdateResponse = CredentialSet;
2721
+ /** Optional parameters. */
2722
+ export interface CredentialSetsListNextOptionalParams extends coreClient.OperationOptions {
2723
+ }
2724
+ /** Contains response data for the listNext operation. */
2725
+ export type CredentialSetsListNextResponse = CredentialSetListResult;
2726
+ /** Optional parameters. */
2436
2727
  export interface RegistriesImportImageOptionalParams extends coreClient.OperationOptions {
2437
2728
  /** Delay to wait until next poll, in milliseconds. */
2438
2729
  updateIntervalInMs?: number;