Class: Azure::ARM::SQL::Models::FirewallRule

Inherits:
SubResource
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_sql/models/firewall_rule.rb

Overview

Represents a server firewall rule.

Instance Attribute Summary collapse

Attributes inherited from SubResource

#name

Class Method Summary collapse

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.

Returns:

  • (String)

    The end IP address of the firewall rule. Must be IPv4



34
35
36
# File 'lib/generated/azure_mgmt_sql/models/firewall_rule.rb', line 34

def end_ip_address
  @end_ip_address
end

#kindString

Returns Kind of server that contains this firewall rule.

Returns:

  • (String)

    Kind of server that contains this firewall rule.



17
18
19
# File 'lib/generated/azure_mgmt_sql/models/firewall_rule.rb', line 17

def kind
  @kind
end

#locationString

rule.

Returns:

  • (String)

    Location of the server that contains this firewall



21
22
23
# File 'lib/generated/azure_mgmt_sql/models/firewall_rule.rb', line 21

def location
  @location
end

#start_ip_addressString

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

Returns:

  • (String)

    The start IP address of the firewall rule. Must be



29
30
31
# File 'lib/generated/azure_mgmt_sql/models/firewall_rule.rb', line 29

def start_ip_address
  @start_ip_address
end

#typeString

Returns Type of resource this is.

Returns:

  • (String)

    Type of resource this is.



24
25
26
# File 'lib/generated/azure_mgmt_sql/models/firewall_rule.rb', line 24

def type
  @type
end

Class Method Details

.mapperObject

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



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

def self.mapper()
  {
    required: false,
    serialized_name: 'FirewallRule',
    type: {
      name: 'Composite',
      class_name: 'FirewallRule',
      model_properties: {
        name: {
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        id: {
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        kind: {
          required: false,
          read_only: true,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        location: {
          required: false,
          read_only: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        type: {
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        start_ip_address: {
          required: true,
          serialized_name: 'properties.startIpAddress',
          type: {
            name: 'String'
          }
        },
        end_ip_address: {
          required: true,
          serialized_name: 'properties.endIpAddress',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end