1// +build go1.13
2
3// Copyright (c) Microsoft Corporation. All rights reserved.
4// Licensed under the MIT License. See License.txt in the project root for license information.
5// Code generated by Microsoft (R) AutoRest Code Generator.
6// Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
8package armcontainerregistry
9
10import (
11	"context"
12	"net/http"
13	"time"
14)
15
16// AgentPoolListResultResponse is the response envelope for operations that return a AgentPoolListResult type.
17type AgentPoolListResultResponse struct {
18	// The collection of agent pools.
19	AgentPoolListResult *AgentPoolListResult
20
21	// RawResponse contains the underlying HTTP response.
22	RawResponse *http.Response
23}
24
25// AgentPoolPollerResponse is the response envelope for operations that asynchronously return a AgentPool type.
26type AgentPoolPollerResponse struct {
27	// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received
28	PollUntilDone func(ctx context.Context, frequency time.Duration) (AgentPoolResponse, error)
29
30	// Poller contains an initialized poller.
31	Poller AgentPoolPoller
32
33	// RawResponse contains the underlying HTTP response.
34	RawResponse *http.Response
35}
36
37// AgentPoolQueueStatusResponse is the response envelope for operations that return a AgentPoolQueueStatus type.
38type AgentPoolQueueStatusResponse struct {
39	// The QueueStatus of Agent Pool
40	AgentPoolQueueStatus *AgentPoolQueueStatus
41
42	// RawResponse contains the underlying HTTP response.
43	RawResponse *http.Response
44}
45
46// AgentPoolResponse is the response envelope for operations that return a AgentPool type.
47type AgentPoolResponse struct {
48	// The agentpool that has the ARM resource and properties.
49	// The agentpool will have all information to create an agent pool.
50	AgentPool *AgentPool
51
52	// RawResponse contains the underlying HTTP response.
53	RawResponse *http.Response
54}
55
56// CallbackConfigResponse is the response envelope for operations that return a CallbackConfig type.
57type CallbackConfigResponse struct {
58	// The configuration of service URI and custom headers for the webhook.
59	CallbackConfig *CallbackConfig
60
61	// RawResponse contains the underlying HTTP response.
62	RawResponse *http.Response
63}
64
65// ConnectedRegistryListResultResponse is the response envelope for operations that return a ConnectedRegistryListResult type.
66type ConnectedRegistryListResultResponse struct {
67	// The result of a request to list connected registries for a container registry.
68	ConnectedRegistryListResult *ConnectedRegistryListResult
69
70	// RawResponse contains the underlying HTTP response.
71	RawResponse *http.Response
72}
73
74// ConnectedRegistryPollerResponse is the response envelope for operations that asynchronously return a ConnectedRegistry type.
75type ConnectedRegistryPollerResponse struct {
76	// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received
77	PollUntilDone func(ctx context.Context, frequency time.Duration) (ConnectedRegistryResponse, error)
78
79	// Poller contains an initialized poller.
80	Poller ConnectedRegistryPoller
81
82	// RawResponse contains the underlying HTTP response.
83	RawResponse *http.Response
84}
85
86// ConnectedRegistryResponse is the response envelope for operations that return a ConnectedRegistry type.
87type ConnectedRegistryResponse struct {
88	// An object that represents a connected registry for a container registry.
89	ConnectedRegistry *ConnectedRegistry
90
91	// RawResponse contains the underlying HTTP response.
92	RawResponse *http.Response
93}
94
95// EventInfoResponse is the response envelope for operations that return a EventInfo type.
96type EventInfoResponse struct {
97	// The basic information of an event.
98	EventInfo *EventInfo
99
100	// RawResponse contains the underlying HTTP response.
101	RawResponse *http.Response
102}
103
104// EventListResultResponse is the response envelope for operations that return a EventListResult type.
105type EventListResultResponse struct {
106	// The result of a request to list events for a webhook.
107	EventListResult *EventListResult
108
109	// RawResponse contains the underlying HTTP response.
110	RawResponse *http.Response
111}
112
113// ExportPipelineListResultResponse is the response envelope for operations that return a ExportPipelineListResult type.
114type ExportPipelineListResultResponse struct {
115	// The result of a request to list export pipelines for a container registry.
116	ExportPipelineListResult *ExportPipelineListResult
117
118	// RawResponse contains the underlying HTTP response.
119	RawResponse *http.Response
120}
121
122// ExportPipelinePollerResponse is the response envelope for operations that asynchronously return a ExportPipeline type.
123type ExportPipelinePollerResponse struct {
124	// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received
125	PollUntilDone func(ctx context.Context, frequency time.Duration) (ExportPipelineResponse, error)
126
127	// Poller contains an initialized poller.
128	Poller ExportPipelinePoller
129
130	// RawResponse contains the underlying HTTP response.
131	RawResponse *http.Response
132}
133
134// ExportPipelineResponse is the response envelope for operations that return a ExportPipeline type.
135type ExportPipelineResponse struct {
136	// An object that represents an export pipeline for a container registry.
137	ExportPipeline *ExportPipeline
138
139	// RawResponse contains the underlying HTTP response.
140	RawResponse *http.Response
141}
142
143// GenerateCredentialsResultPollerResponse is the response envelope for operations that asynchronously return a GenerateCredentialsResult type.
144type GenerateCredentialsResultPollerResponse struct {
145	// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received
146	PollUntilDone func(ctx context.Context, frequency time.Duration) (GenerateCredentialsResultResponse, error)
147
148	// Poller contains an initialized poller.
149	Poller GenerateCredentialsResultPoller
150
151	// RawResponse contains the underlying HTTP response.
152	RawResponse *http.Response
153}
154
155// GenerateCredentialsResultResponse is the response envelope for operations that return a GenerateCredentialsResult type.
156type GenerateCredentialsResultResponse struct {
157	// The response from the GenerateCredentials operation.
158	GenerateCredentialsResult *GenerateCredentialsResult
159
160	// RawResponse contains the underlying HTTP response.
161	RawResponse *http.Response
162}
163
164// HTTPPollerResponse contains the asynchronous HTTP response from the call to the service endpoint.
165type HTTPPollerResponse struct {
166	// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received
167	PollUntilDone func(ctx context.Context, frequency time.Duration) (*http.Response, error)
168
169	// Poller contains an initialized poller.
170	Poller HTTPPoller
171
172	// RawResponse contains the underlying HTTP response.
173	RawResponse *http.Response
174}
175
176// ImportPipelineListResultResponse is the response envelope for operations that return a ImportPipelineListResult type.
177type ImportPipelineListResultResponse struct {
178	// The result of a request to list import pipelines for a container registry.
179	ImportPipelineListResult *ImportPipelineListResult
180
181	// RawResponse contains the underlying HTTP response.
182	RawResponse *http.Response
183}
184
185// ImportPipelinePollerResponse is the response envelope for operations that asynchronously return a ImportPipeline type.
186type ImportPipelinePollerResponse struct {
187	// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received
188	PollUntilDone func(ctx context.Context, frequency time.Duration) (ImportPipelineResponse, error)
189
190	// Poller contains an initialized poller.
191	Poller ImportPipelinePoller
192
193	// RawResponse contains the underlying HTTP response.
194	RawResponse *http.Response
195}
196
197// ImportPipelineResponse is the response envelope for operations that return a ImportPipeline type.
198type ImportPipelineResponse struct {
199	// An object that represents an import pipeline for a container registry.
200	ImportPipeline *ImportPipeline
201
202	// RawResponse contains the underlying HTTP response.
203	RawResponse *http.Response
204}
205
206// OperationListResultResponse is the response envelope for operations that return a OperationListResult type.
207type OperationListResultResponse struct {
208	// The result of a request to list container registry operations.
209	OperationListResult *OperationListResult
210
211	// RawResponse contains the underlying HTTP response.
212	RawResponse *http.Response
213}
214
215// PipelineRunListResultResponse is the response envelope for operations that return a PipelineRunListResult type.
216type PipelineRunListResultResponse struct {
217	// The result of a request to list pipeline runs for a container registry.
218	PipelineRunListResult *PipelineRunListResult
219
220	// RawResponse contains the underlying HTTP response.
221	RawResponse *http.Response
222}
223
224// PipelineRunPollerResponse is the response envelope for operations that asynchronously return a PipelineRun type.
225type PipelineRunPollerResponse struct {
226	// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received
227	PollUntilDone func(ctx context.Context, frequency time.Duration) (PipelineRunResponseType, error)
228
229	// Poller contains an initialized poller.
230	Poller PipelineRunPoller
231
232	// RawResponse contains the underlying HTTP response.
233	RawResponse *http.Response
234}
235
236// PipelineRunResponseType is the response envelope for operations that return a PipelineRun type.
237type PipelineRunResponseType struct {
238	// An object that represents a pipeline run for a container registry.
239	PipelineRun *PipelineRun
240
241	// RawResponse contains the underlying HTTP response.
242	RawResponse *http.Response
243}
244
245// PrivateEndpointConnectionListResultResponse is the response envelope for operations that return a PrivateEndpointConnectionListResult type.
246type PrivateEndpointConnectionListResultResponse struct {
247	// The result of a request to list private endpoint connections for a container registry.
248	PrivateEndpointConnectionListResult *PrivateEndpointConnectionListResult
249
250	// RawResponse contains the underlying HTTP response.
251	RawResponse *http.Response
252}
253
254// PrivateEndpointConnectionPollerResponse is the response envelope for operations that asynchronously return a PrivateEndpointConnection type.
255type PrivateEndpointConnectionPollerResponse struct {
256	// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received
257	PollUntilDone func(ctx context.Context, frequency time.Duration) (PrivateEndpointConnectionResponse, error)
258
259	// Poller contains an initialized poller.
260	Poller PrivateEndpointConnectionPoller
261
262	// RawResponse contains the underlying HTTP response.
263	RawResponse *http.Response
264}
265
266// PrivateEndpointConnectionResponse is the response envelope for operations that return a PrivateEndpointConnection type.
267type PrivateEndpointConnectionResponse struct {
268	// An object that represents a private endpoint connection for a container registry.
269	PrivateEndpointConnection *PrivateEndpointConnection
270
271	// RawResponse contains the underlying HTTP response.
272	RawResponse *http.Response
273}
274
275// PrivateLinkResourceListResultResponse is the response envelope for operations that return a PrivateLinkResourceListResult type.
276type PrivateLinkResourceListResultResponse struct {
277	// The result of a request to list private link resources for a container registry.
278	PrivateLinkResourceListResult *PrivateLinkResourceListResult
279
280	// RawResponse contains the underlying HTTP response.
281	RawResponse *http.Response
282}
283
284// RegistryListCredentialsResultResponse is the response envelope for operations that return a RegistryListCredentialsResult type.
285type RegistryListCredentialsResultResponse struct {
286	// RawResponse contains the underlying HTTP response.
287	RawResponse *http.Response
288
289	// The response from the ListCredentials operation.
290	RegistryListCredentialsResult *RegistryListCredentialsResult
291}
292
293// RegistryListResultResponse is the response envelope for operations that return a RegistryListResult type.
294type RegistryListResultResponse struct {
295	// RawResponse contains the underlying HTTP response.
296	RawResponse *http.Response
297
298	// The result of a request to list container registries.
299	RegistryListResult *RegistryListResult
300}
301
302// RegistryNameStatusResponse is the response envelope for operations that return a RegistryNameStatus type.
303type RegistryNameStatusResponse struct {
304	// RawResponse contains the underlying HTTP response.
305	RawResponse *http.Response
306
307	// The result of a request to check the availability of a container registry name.
308	RegistryNameStatus *RegistryNameStatus
309}
310
311// RegistryPollerResponse is the response envelope for operations that asynchronously return a Registry type.
312type RegistryPollerResponse struct {
313	// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received
314	PollUntilDone func(ctx context.Context, frequency time.Duration) (RegistryResponse, error)
315
316	// Poller contains an initialized poller.
317	Poller RegistryPoller
318
319	// RawResponse contains the underlying HTTP response.
320	RawResponse *http.Response
321}
322
323// RegistryResponse is the response envelope for operations that return a Registry type.
324type RegistryResponse struct {
325	// RawResponse contains the underlying HTTP response.
326	RawResponse *http.Response
327
328	// An object that represents a container registry.
329	Registry *Registry
330}
331
332// RegistryUsageListResultResponse is the response envelope for operations that return a RegistryUsageListResult type.
333type RegistryUsageListResultResponse struct {
334	// RawResponse contains the underlying HTTP response.
335	RawResponse *http.Response
336
337	// The result of a request to get container registry quota usages.
338	RegistryUsageListResult *RegistryUsageListResult
339}
340
341// ReplicationListResultResponse is the response envelope for operations that return a ReplicationListResult type.
342type ReplicationListResultResponse struct {
343	// RawResponse contains the underlying HTTP response.
344	RawResponse *http.Response
345
346	// The result of a request to list replications for a container registry.
347	ReplicationListResult *ReplicationListResult
348}
349
350// ReplicationPollerResponse is the response envelope for operations that asynchronously return a Replication type.
351type ReplicationPollerResponse struct {
352	// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received
353	PollUntilDone func(ctx context.Context, frequency time.Duration) (ReplicationResponse, error)
354
355	// Poller contains an initialized poller.
356	Poller ReplicationPoller
357
358	// RawResponse contains the underlying HTTP response.
359	RawResponse *http.Response
360}
361
362// ReplicationResponse is the response envelope for operations that return a Replication type.
363type ReplicationResponse struct {
364	// RawResponse contains the underlying HTTP response.
365	RawResponse *http.Response
366
367	// An object that represents a replication for a container registry.
368	Replication *Replication
369}
370
371// RunGetLogResultResponse is the response envelope for operations that return a RunGetLogResult type.
372type RunGetLogResultResponse struct {
373	// RawResponse contains the underlying HTTP response.
374	RawResponse *http.Response
375
376	// The result of get log link operation.
377	RunGetLogResult *RunGetLogResult
378}
379
380// RunListResultResponse is the response envelope for operations that return a RunListResult type.
381type RunListResultResponse struct {
382	// RawResponse contains the underlying HTTP response.
383	RawResponse *http.Response
384
385	// Collection of runs.
386	RunListResult *RunListResult
387}
388
389// RunPollerResponse is the response envelope for operations that asynchronously return a Run type.
390type RunPollerResponse struct {
391	// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received
392	PollUntilDone func(ctx context.Context, frequency time.Duration) (RunResponse, error)
393
394	// Poller contains an initialized poller.
395	Poller RunPoller
396
397	// RawResponse contains the underlying HTTP response.
398	RawResponse *http.Response
399}
400
401// RunResponse is the response envelope for operations that return a Run type.
402type RunResponse struct {
403	// RawResponse contains the underlying HTTP response.
404	RawResponse *http.Response
405
406	// Run resource properties
407	Run *Run
408}
409
410// ScopeMapListResultResponse is the response envelope for operations that return a ScopeMapListResult type.
411type ScopeMapListResultResponse struct {
412	// RawResponse contains the underlying HTTP response.
413	RawResponse *http.Response
414
415	// The result of a request to list scope maps for a container registry.
416	ScopeMapListResult *ScopeMapListResult
417}
418
419// ScopeMapPollerResponse is the response envelope for operations that asynchronously return a ScopeMap type.
420type ScopeMapPollerResponse struct {
421	// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received
422	PollUntilDone func(ctx context.Context, frequency time.Duration) (ScopeMapResponse, error)
423
424	// Poller contains an initialized poller.
425	Poller ScopeMapPoller
426
427	// RawResponse contains the underlying HTTP response.
428	RawResponse *http.Response
429}
430
431// ScopeMapResponse is the response envelope for operations that return a ScopeMap type.
432type ScopeMapResponse struct {
433	// RawResponse contains the underlying HTTP response.
434	RawResponse *http.Response
435
436	// An object that represents a scope map for a container registry.
437	ScopeMap *ScopeMap
438}
439
440// SourceUploadDefinitionResponse is the response envelope for operations that return a SourceUploadDefinition type.
441type SourceUploadDefinitionResponse struct {
442	// RawResponse contains the underlying HTTP response.
443	RawResponse *http.Response
444
445	// The properties of a response to source upload request.
446	SourceUploadDefinition *SourceUploadDefinition
447}
448
449// TaskListResultResponse is the response envelope for operations that return a TaskListResult type.
450type TaskListResultResponse struct {
451	// RawResponse contains the underlying HTTP response.
452	RawResponse *http.Response
453
454	// The collection of tasks.
455	TaskListResult *TaskListResult
456}
457
458// TaskPollerResponse is the response envelope for operations that asynchronously return a Task type.
459type TaskPollerResponse struct {
460	// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received
461	PollUntilDone func(ctx context.Context, frequency time.Duration) (TaskResponse, error)
462
463	// Poller contains an initialized poller.
464	Poller TaskPoller
465
466	// RawResponse contains the underlying HTTP response.
467	RawResponse *http.Response
468}
469
470// TaskResponse is the response envelope for operations that return a Task type.
471type TaskResponse struct {
472	// RawResponse contains the underlying HTTP response.
473	RawResponse *http.Response
474
475	// The task that has the ARM resource and task properties.
476	// The task will have all information to schedule a run against it.
477	Task *Task
478}
479
480// TaskRunListResultResponse is the response envelope for operations that return a TaskRunListResult type.
481type TaskRunListResultResponse struct {
482	// RawResponse contains the underlying HTTP response.
483	RawResponse *http.Response
484
485	// The collection of task runs.
486	TaskRunListResult *TaskRunListResult
487}
488
489// TaskRunPollerResponse is the response envelope for operations that asynchronously return a TaskRun type.
490type TaskRunPollerResponse struct {
491	// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received
492	PollUntilDone func(ctx context.Context, frequency time.Duration) (TaskRunResponse, error)
493
494	// Poller contains an initialized poller.
495	Poller TaskRunPoller
496
497	// RawResponse contains the underlying HTTP response.
498	RawResponse *http.Response
499}
500
501// TaskRunResponse is the response envelope for operations that return a TaskRun type.
502type TaskRunResponse struct {
503	// RawResponse contains the underlying HTTP response.
504	RawResponse *http.Response
505
506	// The task run that has the ARM resource and properties.
507	// The task run will have the information of request and result of a run.
508	TaskRun *TaskRun
509}
510
511// TokenListResultResponse is the response envelope for operations that return a TokenListResult type.
512type TokenListResultResponse struct {
513	// RawResponse contains the underlying HTTP response.
514	RawResponse *http.Response
515
516	// The result of a request to list tokens for a container registry.
517	TokenListResult *TokenListResult
518}
519
520// TokenPollerResponse is the response envelope for operations that asynchronously return a Token type.
521type TokenPollerResponse struct {
522	// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received
523	PollUntilDone func(ctx context.Context, frequency time.Duration) (TokenResponse, error)
524
525	// Poller contains an initialized poller.
526	Poller TokenPoller
527
528	// RawResponse contains the underlying HTTP response.
529	RawResponse *http.Response
530}
531
532// TokenResponse is the response envelope for operations that return a Token type.
533type TokenResponse struct {
534	// RawResponse contains the underlying HTTP response.
535	RawResponse *http.Response
536
537	// An object that represents a token for a container registry.
538	Token *Token
539}
540
541// WebhookListResultResponse is the response envelope for operations that return a WebhookListResult type.
542type WebhookListResultResponse struct {
543	// RawResponse contains the underlying HTTP response.
544	RawResponse *http.Response
545
546	// The result of a request to list webhooks for a container registry.
547	WebhookListResult *WebhookListResult
548}
549
550// WebhookPollerResponse is the response envelope for operations that asynchronously return a Webhook type.
551type WebhookPollerResponse struct {
552	// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received
553	PollUntilDone func(ctx context.Context, frequency time.Duration) (WebhookResponse, error)
554
555	// Poller contains an initialized poller.
556	Poller WebhookPoller
557
558	// RawResponse contains the underlying HTTP response.
559	RawResponse *http.Response
560}
561
562// WebhookResponse is the response envelope for operations that return a Webhook type.
563type WebhookResponse struct {
564	// RawResponse contains the underlying HTTP response.
565	RawResponse *http.Response
566
567	// An object that represents a webhook for a container registry.
568	Webhook *Webhook
569}
570