Class: Azure::Relay::Mgmt::V2016_07_01::Models::HybridConnection

Inherits:
Resource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-07-01/generated/azure_mgmt_relay/models/hybrid_connection.rb

Overview

Description of HybridConnection Resource.

Instance Attribute Summary collapse

Attributes inherited from Resource

#id, #name, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#created_atDateTime

Returns The time the HybridConnection was created.

Returns:

  • (DateTime)

    The time the HybridConnection was created.



16
17
18
# File 'lib/2016-07-01/generated/azure_mgmt_relay/models/hybrid_connection.rb', line 16

def created_at
  @created_at
end

#listener_countInteger

min : 1 and max:25 supported

Returns:

  • (Integer)

    The number of listeners for this HybridConnection.



23
24
25
# File 'lib/2016-07-01/generated/azure_mgmt_relay/models/hybrid_connection.rb', line 23

def listener_count
  @listener_count
end

#requires_client_authorizationBoolean

HybridConnection; otherwise, false.

Returns:

  • (Boolean)

    true if client authorization is needed for this



27
28
29
# File 'lib/2016-07-01/generated/azure_mgmt_relay/models/hybrid_connection.rb', line 27

def requires_client_authorization
  @requires_client_authorization
end

#updated_atDateTime

Returns The time the namespace was updated.

Returns:

  • (DateTime)

    The time the namespace was updated.



19
20
21
# File 'lib/2016-07-01/generated/azure_mgmt_relay/models/hybrid_connection.rb', line 19

def updated_at
  @updated_at
end

#user_metadataString

string data for the HybridConnection endpoint.e.g. it can be used to store descriptive data, such as list of teams and their contact information also user-defined configuration settings can be stored.

Returns:

  • (String)

    usermetadata is a placeholder to store user-defined



33
34
35
# File 'lib/2016-07-01/generated/azure_mgmt_relay/models/hybrid_connection.rb', line 33

def 
  @user_metadata
end

Class Method Details

.mapperObject

Mapper for HybridConnection 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
# File 'lib/2016-07-01/generated/azure_mgmt_relay/models/hybrid_connection.rb', line 40

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'HybridConnection',
    type: {
      name: 'Composite',
      class_name: 'HybridConnection',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        created_at: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.createdAt',
          type: {
            name: 'DateTime'
          }
        },
        updated_at: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.updatedAt',
          type: {
            name: 'DateTime'
          }
        },
        listener_count: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.listenerCount',
          constraints: {
            InclusiveMaximum: 25,
            InclusiveMinimum: 1
          },
          type: {
            name: 'Number'
          }
        },
        requires_client_authorization: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.requiresClientAuthorization',
          type: {
            name: 'Boolean'
          }
        },
        user_metadata: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.userMetadata',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end