Class: Azure::SQL::Mgmt::V2014_04_01::Models::FirewallRule

Inherits:
ProxyResource show all
Includes:
MsRestAzure
Defined in:
lib/2014-04-01/generated/azure_mgmt_sql/models/firewall_rule.rb

Overview

Represents a server firewall rule.

Instance Attribute Summary collapse

Attributes inherited from Resource

#id, #name, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#end_ip_addressString

format. Must be greater than or equal to startIpAddress. Use value ‘0.0.0.0’ to represent all Azure-internal IP addresses.



30
31
32
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/firewall_rule.rb', line 30

def end_ip_address
  @end_ip_address
end

#kindString



16
17
18
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/firewall_rule.rb', line 16

def kind
  @kind
end

#locationString

rule.



20
21
22
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/firewall_rule.rb', line 20

def location
  @location
end

#start_ip_addressString

IPv4 format. Use value ‘0.0.0.0’ to represent all Azure-internal IP addresses.



25
26
27
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/firewall_rule.rb', line 25

def start_ip_address
  @start_ip_address
end

Class Method Details

.mapperObject

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



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
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/firewall_rule.rb', line 37

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'FirewallRule',
    type: {
      name: 'Composite',
      class_name: 'FirewallRule',
      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'
          }
        },
        kind: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        start_ip_address: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.startIpAddress',
          type: {
            name: 'String'
          }
        },
        end_ip_address: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.endIpAddress',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end