Class: Azure::Network::Mgmt::V2017_03_01::Models::BGPCommunity

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-03-01/generated/azure_mgmt_network/models/bgpcommunity.rb

Overview

Contains bgp community information offered in Service Community resources.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#community_nameString

Returns The name of the bgp community. e.g. Skype.

Returns:

  • (String)

    The name of the bgp community. e.g. Skype.


21
22
23
# File 'lib/2017-03-01/generated/azure_mgmt_network/models/bgpcommunity.rb', line 21

def community_name
  @community_name
end

#community_prefixesArray<String>

Returns The prefixes that the bgp community contains.

Returns:

  • (Array<String>)

    The prefixes that the bgp community contains.


28
29
30
# File 'lib/2017-03-01/generated/azure_mgmt_network/models/bgpcommunity.rb', line 28

def community_prefixes
  @community_prefixes
end

#community_valueString

Returns:

  • (String)

    The value of the bgp community. For more information:


25
26
27
# File 'lib/2017-03-01/generated/azure_mgmt_network/models/bgpcommunity.rb', line 25

def community_value
  @community_value
end

#service_supported_regionString

region is Global.

Returns:

  • (String)

    The region which the service support. e.g. For O365,


18
19
20
# File 'lib/2017-03-01/generated/azure_mgmt_network/models/bgpcommunity.rb', line 18

def service_supported_region
  @service_supported_region
end

Class Method Details

.mapperObject

Mapper for BGPCommunity 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
81
82
83
84
85
86
87
# File 'lib/2017-03-01/generated/azure_mgmt_network/models/bgpcommunity.rb', line 35

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'BGPCommunity',
    type: {
      name: 'Composite',
      class_name: 'BGPCommunity',
      model_properties: {
        service_supported_region: {
          client_side_validation: true,
          required: false,
          serialized_name: 'serviceSupportedRegion',
          type: {
            name: 'String'
          }
        },
        community_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'communityName',
          type: {
            name: 'String'
          }
        },
        community_value: {
          client_side_validation: true,
          required: false,
          serialized_name: 'communityValue',
          type: {
            name: 'String'
          }
        },
        community_prefixes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'communityPrefixes',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end