Class: Azure::ARM::Web::Models::SiteSourceControl

Inherits:
MsRestAzure::Resource
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_web/models/site_source_control.rb

Overview

Source control configuration for an app.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#branchString

Returns Name of branch to use for deployment.

Returns:

  • (String)

    Name of branch to use for deployment.



20
21
22
# File 'lib/generated/azure_mgmt_web/models/site_source_control.rb', line 20

def branch
  @branch
end

#deployment_rollback_enabledBoolean

otherwise, false.

Returns:

  • (Boolean)

    true to enable deployment rollback;



29
30
31
# File 'lib/generated/azure_mgmt_web/models/site_source_control.rb', line 29

def deployment_rollback_enabled
  @deployment_rollback_enabled
end

#is_manual_integrationBoolean

false to enable continuous integration (which configures webhooks into online repos like GitHub).

Returns:

  • (Boolean)

    true to limit to manual integration;



25
26
27
# File 'lib/generated/azure_mgmt_web/models/site_source_control.rb', line 25

def is_manual_integration
  @is_manual_integration
end

#is_mercurialBoolean

false for a Git repository.

Returns:

  • (Boolean)

    true for a Mercurial repository;



33
34
35
# File 'lib/generated/azure_mgmt_web/models/site_source_control.rb', line 33

def is_mercurial
  @is_mercurial
end

#repo_urlString

Returns Repository or source control URL.

Returns:

  • (String)

    Repository or source control URL.



17
18
19
# File 'lib/generated/azure_mgmt_web/models/site_source_control.rb', line 17

def repo_url
  @repo_url
end

Class Method Details

.mapperObject

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



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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# File 'lib/generated/azure_mgmt_web/models/site_source_control.rb', line 40

def self.mapper()
  {
    required: false,
    serialized_name: 'SiteSourceControl',
    type: {
      name: 'Composite',
      class_name: 'SiteSourceControl',
      model_properties: {
        id: {
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        kind: {
          required: false,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        location: {
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        type: {
          required: false,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        tags: {
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        repo_url: {
          required: false,
          serialized_name: 'properties.repoUrl',
          type: {
            name: 'String'
          }
        },
        branch: {
          required: false,
          serialized_name: 'properties.branch',
          type: {
            name: 'String'
          }
        },
        is_manual_integration: {
          required: false,
          serialized_name: 'properties.isManualIntegration',
          type: {
            name: 'Boolean'
          }
        },
        deployment_rollback_enabled: {
          required: false,
          serialized_name: 'properties.deploymentRollbackEnabled',
          type: {
            name: 'Boolean'
          }
        },
        is_mercurial: {
          required: false,
          serialized_name: 'properties.isMercurial',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end