Class: Azure::Storage::Mgmt::V2021_01_01::Models::RoutingPreference

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2021-01-01/generated/azure_mgmt_storage/models/routing_preference.rb

Overview

Routing preference defines the type of network, either microsoft or internet routing to be used to deliver the user data, the default option is microsoft routing

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#publish_internet_endpointsBoolean

routing storage endpoints are to be published

Returns:

  • (Boolean)

    A boolean flag which indicates whether internet



28
29
30
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/routing_preference.rb', line 28

def publish_internet_endpoints
  @publish_internet_endpoints
end

#publish_microsoft_endpointsBoolean

routing storage endpoints are to be published

Returns:

  • (Boolean)

    A boolean flag which indicates whether microsoft



24
25
26
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/routing_preference.rb', line 24

def publish_microsoft_endpoints
  @publish_microsoft_endpoints
end

#routing_choiceRoutingChoice

routing opted by the user. Possible values include: ‘MicrosoftRouting’, ‘InternetRouting’

Returns:



20
21
22
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/routing_preference.rb', line 20

def routing_choice
  @routing_choice
end

Class Method Details

.mapperObject

Mapper for RoutingPreference 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
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/routing_preference.rb', line 35

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'RoutingPreference',
    type: {
      name: 'Composite',
      class_name: 'RoutingPreference',
      model_properties: {
        routing_choice: {
          client_side_validation: true,
          required: false,
          serialized_name: 'routingChoice',
          type: {
            name: 'String'
          }
        },
        publish_microsoft_endpoints: {
          client_side_validation: true,
          required: false,
          serialized_name: 'publishMicrosoftEndpoints',
          type: {
            name: 'Boolean'
          }
        },
        publish_internet_endpoints: {
          client_side_validation: true,
          required: false,
          serialized_name: 'publishInternetEndpoints',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end