-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ContainerInstanceGitRepoVolume.cs
44 lines (37 loc) · 2.1 KB
/
ContainerInstanceGitRepoVolume.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.ResourceManager.ContainerInstance.Models
{
/// <summary> Represents a volume that is populated with the contents of a git repository. </summary>
public partial class ContainerInstanceGitRepoVolume
{
/// <summary> Initializes a new instance of ContainerInstanceGitRepoVolume. </summary>
/// <param name="repository"> Repository URL. </param>
/// <exception cref="ArgumentNullException"> <paramref name="repository"/> is null. </exception>
public ContainerInstanceGitRepoVolume(string repository)
{
Argument.AssertNotNull(repository, nameof(repository));
Repository = repository;
}
/// <summary> Initializes a new instance of ContainerInstanceGitRepoVolume. </summary>
/// <param name="directory"> Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. </param>
/// <param name="repository"> Repository URL. </param>
/// <param name="revision"> Commit hash for the specified revision. </param>
internal ContainerInstanceGitRepoVolume(string directory, string repository, string revision)
{
Directory = directory;
Repository = repository;
Revision = revision;
}
/// <summary> Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. </summary>
public string Directory { get; set; }
/// <summary> Repository URL. </summary>
public string Repository { get; set; }
/// <summary> Commit hash for the specified revision. </summary>
public string Revision { get; set; }
}
}