-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ContainerRepositoryProperties.cs
75 lines (68 loc) · 3.66 KB
/
ContainerRepositoryProperties.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.Containers.ContainerRegistry
{
/// <summary> Properties of this repository. </summary>
public partial class ContainerRepositoryProperties
{
/// <summary> Initializes a new instance of <see cref="ContainerRepositoryProperties"/>. </summary>
/// <param name="registryLoginServer"> Registry login server name. This is likely to be similar to {registry-name}.azurecr.io. </param>
/// <param name="name"> Image name. </param>
/// <param name="createdOn"> Image created time. </param>
/// <param name="lastUpdatedOn"> Image last update time. </param>
/// <param name="manifestCount"> Number of the manifests. </param>
/// <param name="tagCount"> Number of the tags. </param>
/// <exception cref="ArgumentNullException"> <paramref name="registryLoginServer"/> or <paramref name="name"/> is null. </exception>
internal ContainerRepositoryProperties(string registryLoginServer, string name, DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, int manifestCount, int tagCount)
{
Argument.AssertNotNull(registryLoginServer, nameof(registryLoginServer));
Argument.AssertNotNull(name, nameof(name));
RegistryLoginServer = registryLoginServer;
Name = name;
CreatedOn = createdOn;
LastUpdatedOn = lastUpdatedOn;
ManifestCount = manifestCount;
TagCount = tagCount;
}
/// <summary> Initializes a new instance of <see cref="ContainerRepositoryProperties"/>. </summary>
/// <param name="registryLoginServer"> Registry login server name. This is likely to be similar to {registry-name}.azurecr.io. </param>
/// <param name="name"> Image name. </param>
/// <param name="createdOn"> Image created time. </param>
/// <param name="lastUpdatedOn"> Image last update time. </param>
/// <param name="manifestCount"> Number of the manifests. </param>
/// <param name="tagCount"> Number of the tags. </param>
/// <param name="canDelete"> Delete enabled. </param>
/// <param name="canWrite"> Write enabled. </param>
/// <param name="canList"> List enabled. </param>
/// <param name="canRead"> Read enabled. </param>
internal ContainerRepositoryProperties(string registryLoginServer, string name, DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, int manifestCount, int tagCount, bool? canDelete, bool? canWrite, bool? canList, bool? canRead)
{
RegistryLoginServer = registryLoginServer;
Name = name;
CreatedOn = createdOn;
LastUpdatedOn = lastUpdatedOn;
ManifestCount = manifestCount;
TagCount = tagCount;
CanDelete = canDelete;
CanWrite = canWrite;
CanList = canList;
CanRead = canRead;
}
/// <summary> Registry login server name. This is likely to be similar to {registry-name}.azurecr.io. </summary>
public string RegistryLoginServer { get; }
/// <summary> Image name. </summary>
public string Name { get; }
/// <summary> Image created time. </summary>
public DateTimeOffset CreatedOn { get; }
/// <summary> Image last update time. </summary>
public DateTimeOffset LastUpdatedOn { get; }
/// <summary> Number of the manifests. </summary>
public int ManifestCount { get; }
/// <summary> Number of the tags. </summary>
public int TagCount { get; }
}
}