Class: Azure::ARM::Web::Models::SourceControl

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

Overview

The source control OAuth token.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#expiration_timeDateTime

Returns OAuth token expiration.

Returns:

  • (DateTime)

    OAuth token expiration.



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

def expiration_time
  @expiration_time
end

#refresh_tokenString

Returns OAuth refresh token.

Returns:

  • (String)

    OAuth refresh token.



26
27
28
# File 'lib/generated/azure_mgmt_web/models/source_control.rb', line 26

def refresh_token
  @refresh_token
end

#source_control_nameString

Returns Name or source control type.

Returns:

  • (String)

    Name or source control type.



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

def source_control_name
  @source_control_name
end

#tokenString

Returns OAuth access token.

Returns:

  • (String)

    OAuth access token.



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

def token
  @token
end

#token_secretString

Returns OAuth access token secret.

Returns:

  • (String)

    OAuth access token secret.



23
24
25
# File 'lib/generated/azure_mgmt_web/models/source_control.rb', line 23

def token_secret
  @token_secret
end

Class Method Details

.mapperObject

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



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
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
# File 'lib/generated/azure_mgmt_web/models/source_control.rb', line 36

def self.mapper()
  {
    required: false,
    serialized_name: 'SourceControl',
    type: {
      name: 'Composite',
      class_name: 'SourceControl',
      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'
                }
            }
          }
        },
        source_control_name: {
          required: false,
          serialized_name: 'properties.name',
          type: {
            name: 'String'
          }
        },
        token: {
          required: false,
          serialized_name: 'properties.token',
          type: {
            name: 'String'
          }
        },
        token_secret: {
          required: false,
          serialized_name: 'properties.tokenSecret',
          type: {
            name: 'String'
          }
        },
        refresh_token: {
          required: false,
          serialized_name: 'properties.refreshToken',
          type: {
            name: 'String'
          }
        },
        expiration_time: {
          required: false,
          serialized_name: 'properties.expirationTime',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end