Class: Azure::CognitiveServices::Mgmt::V2017_04_18::Models::VirtualNetworkRule

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/virtual_network_rule.rb

Overview

A rule governing the accessibility from a specific virtual network.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idString

‘/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1’.

Returns:

  • (String)

    Full resource id of a vnet subnet, such as



17
18
19
# File 'lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/virtual_network_rule.rb', line 17

def id
  @id
end

#ignore_missing_vnet_service_endpointBoolean

Returns Ignore missing vnet service endpoint or not.

Returns:

  • (Boolean)

    Ignore missing vnet service endpoint or not.



23
24
25
# File 'lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/virtual_network_rule.rb', line 23

def ignore_missing_vnet_service_endpoint
  @ignore_missing_vnet_service_endpoint
end

#stateString

Returns Gets the state of virtual network rule.

Returns:

  • (String)

    Gets the state of virtual network rule.



20
21
22
# File 'lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/virtual_network_rule.rb', line 20

def state
  @state
end

Class Method Details

.mapperObject

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



30
31
32
33
34
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
# File 'lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/virtual_network_rule.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'VirtualNetworkRule',
    type: {
      name: 'Composite',
      class_name: 'VirtualNetworkRule',
      model_properties: {
        id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'state',
          type: {
            name: 'String'
          }
        },
        ignore_missing_vnet_service_endpoint: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ignoreMissingVnetServiceEndpoint',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end