| | | 1 | | // <auto-generated> |
| | | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | | 4 | | // license information. |
| | | 5 | | // |
| | | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | | 8 | | // regenerated. |
| | | 9 | | // </auto-generated> |
| | | 10 | | |
| | | 11 | | namespace Microsoft.Azure.ContainerRegistry |
| | | 12 | | { |
| | | 13 | | using Microsoft.Rest; |
| | | 14 | | using Microsoft.Rest.Azure; |
| | | 15 | | using Models; |
| | | 16 | | using System.Threading; |
| | | 17 | | using System.Threading.Tasks; |
| | | 18 | | |
| | | 19 | | /// <summary> |
| | | 20 | | /// Extension methods for TagOperations. |
| | | 21 | | /// </summary> |
| | | 22 | | public static partial class TagOperationsExtensions |
| | | 23 | | { |
| | | 24 | | /// <summary> |
| | | 25 | | /// List tags of a repository |
| | | 26 | | /// </summary> |
| | | 27 | | /// <param name='operations'> |
| | | 28 | | /// The operations group for this extension method. |
| | | 29 | | /// </param> |
| | | 30 | | /// <param name='name'> |
| | | 31 | | /// Name of the image (including the namespace) |
| | | 32 | | /// </param> |
| | | 33 | | /// <param name='last'> |
| | | 34 | | /// Query parameter for the last item in previous query. Result set will |
| | | 35 | | /// include values lexically after last. |
| | | 36 | | /// </param> |
| | | 37 | | /// <param name='n'> |
| | | 38 | | /// query parameter for max number of items |
| | | 39 | | /// </param> |
| | | 40 | | /// <param name='orderby'> |
| | | 41 | | /// orderby query parameter |
| | | 42 | | /// </param> |
| | | 43 | | /// <param name='digest'> |
| | | 44 | | /// filter by digest |
| | | 45 | | /// </param> |
| | | 46 | | /// <param name='cancellationToken'> |
| | | 47 | | /// The cancellation token. |
| | | 48 | | /// </param> |
| | | 49 | | public static async Task<TagList> GetListAsync(this ITagOperations operations, string name, string last = de |
| | | 50 | | { |
| | 8 | 51 | | using (var _result = await operations.GetListWithHttpMessagesAsync(name, last, n, orderby, digest, null, |
| | | 52 | | { |
| | 8 | 53 | | return _result.Body; |
| | | 54 | | } |
| | 8 | 55 | | } |
| | | 56 | | |
| | | 57 | | /// <summary> |
| | | 58 | | /// Get tag attributes by tag |
| | | 59 | | /// </summary> |
| | | 60 | | /// <param name='operations'> |
| | | 61 | | /// The operations group for this extension method. |
| | | 62 | | /// </param> |
| | | 63 | | /// <param name='name'> |
| | | 64 | | /// Name of the image (including the namespace) |
| | | 65 | | /// </param> |
| | | 66 | | /// <param name='reference'> |
| | | 67 | | /// Tag name |
| | | 68 | | /// </param> |
| | | 69 | | /// <param name='cancellationToken'> |
| | | 70 | | /// The cancellation token. |
| | | 71 | | /// </param> |
| | | 72 | | public static async Task<TagAttributes> GetAttributesAsync(this ITagOperations operations, string name, stri |
| | | 73 | | { |
| | 8 | 74 | | using (var _result = await operations.GetAttributesWithHttpMessagesAsync(name, reference, null, cancella |
| | | 75 | | { |
| | 8 | 76 | | return _result.Body; |
| | | 77 | | } |
| | 8 | 78 | | } |
| | | 79 | | |
| | | 80 | | /// <summary> |
| | | 81 | | /// Update tag attributes |
| | | 82 | | /// </summary> |
| | | 83 | | /// <param name='operations'> |
| | | 84 | | /// The operations group for this extension method. |
| | | 85 | | /// </param> |
| | | 86 | | /// <param name='name'> |
| | | 87 | | /// Name of the image (including the namespace) |
| | | 88 | | /// </param> |
| | | 89 | | /// <param name='reference'> |
| | | 90 | | /// Tag name |
| | | 91 | | /// </param> |
| | | 92 | | /// <param name='value'> |
| | | 93 | | /// Repository attribute value |
| | | 94 | | /// </param> |
| | | 95 | | /// <param name='cancellationToken'> |
| | | 96 | | /// The cancellation token. |
| | | 97 | | /// </param> |
| | | 98 | | public static async Task UpdateAttributesAsync(this ITagOperations operations, string name, string reference |
| | | 99 | | { |
| | 4 | 100 | | (await operations.UpdateAttributesWithHttpMessagesAsync(name, reference, value, null, cancellationToken) |
| | 4 | 101 | | } |
| | | 102 | | |
| | | 103 | | /// <summary> |
| | | 104 | | /// Delete tag |
| | | 105 | | /// </summary> |
| | | 106 | | /// <param name='operations'> |
| | | 107 | | /// The operations group for this extension method. |
| | | 108 | | /// </param> |
| | | 109 | | /// <param name='name'> |
| | | 110 | | /// Name of the image (including the namespace) |
| | | 111 | | /// </param> |
| | | 112 | | /// <param name='reference'> |
| | | 113 | | /// Tag name |
| | | 114 | | /// </param> |
| | | 115 | | /// <param name='cancellationToken'> |
| | | 116 | | /// The cancellation token. |
| | | 117 | | /// </param> |
| | | 118 | | public static async Task DeleteAsync(this ITagOperations operations, string name, string reference, Cancella |
| | | 119 | | { |
| | 2 | 120 | | (await operations.DeleteWithHttpMessagesAsync(name, reference, null, cancellationToken).ConfigureAwait(f |
| | 2 | 121 | | } |
| | | 122 | | |
| | | 123 | | } |
| | | 124 | | } |