Class: Azure::ContainerInstance::Mgmt::V2019_12_01::Models::GitRepoVolume

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-12-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb

Overview

Represents a volume that is populated with the contents of a git repository

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#directoryString

‘..’. 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.

Returns:

  • (String)

    Target directory name. Must not contain or start with



20
21
22
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb', line 20

def directory
  @directory
end

#repositoryString

Returns Repository URL.

Returns:

  • (String)

    Repository URL



23
24
25
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb', line 23

def repository
  @repository
end

#revisionString

Returns Commit hash for the specified revision.

Returns:

  • (String)

    Commit hash for the specified revision.



26
27
28
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb', line 26

def revision
  @revision
end

Class Method Details

.mapperObject

Mapper for GitRepoVolume class as Ruby Hash. This will be used for serialization/deserialization.



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
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb', line 33

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'GitRepoVolume',
    type: {
      name: 'Composite',
      class_name: 'GitRepoVolume',
      model_properties: {
        directory: {
          client_side_validation: true,
          required: false,
          serialized_name: 'directory',
          type: {
            name: 'String'
          }
        },
        repository: {
          client_side_validation: true,
          required: true,
          serialized_name: 'repository',
          type: {
            name: 'String'
          }
        },
        revision: {
          client_side_validation: true,
          required: false,
          serialized_name: 'revision',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end