Class: Azure::ContainerRegistry::Mgmt::V2019_06_01_preview::Models::SourceProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_properties.rb

Overview

The properties of the source code repository.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#branchString

Returns The branch name of the source code.

Returns:

  • (String)

    The branch name of the source code.



23
24
25
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_properties.rb', line 23

def branch
  @branch
end

#repository_urlString

Returns The full URL to the source code repository.

Returns:

  • (String)

    The full URL to the source code repository



20
21
22
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_properties.rb', line 20

def repository_url
  @repository_url
end

#source_control_auth_propertiesAuthInfo

source code repository and to set up webhooks for notifications.

Returns:

  • (AuthInfo)

    The authorization properties for accessing the



28
29
30
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_properties.rb', line 28

def source_control_auth_properties
  @source_control_auth_properties
end

#source_control_typeSourceControlType

Possible values include: ‘Github’, ‘VisualStudioTeamService’

Returns:



17
18
19
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_properties.rb', line 17

def source_control_type
  @source_control_type
end

Class Method Details

.mapperObject

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



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
76
77
78
79
80
# File 'lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/source_properties.rb', line 35

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SourceProperties',
    type: {
      name: 'Composite',
      class_name: 'SourceProperties',
      model_properties: {
        source_control_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'sourceControlType',
          type: {
            name: 'String'
          }
        },
        repository_url: {
          client_side_validation: true,
          required: true,
          serialized_name: 'repositoryUrl',
          type: {
            name: 'String'
          }
        },
        branch: {
          client_side_validation: true,
          required: false,
          serialized_name: 'branch',
          type: {
            name: 'String'
          }
        },
        source_control_auth_properties: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceControlAuthProperties',
          type: {
            name: 'Composite',
            class_name: 'AuthInfo'
          }
        }
      }
    }
  }
end