fog-azure-rm 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +17 -0
- data/.gitignore +6 -0
- data/.hound.yml +2 -0
- data/.rubocop.yml +36 -0
- data/.travis.yml +14 -0
- data/CHANGELOG.md +28 -0
- data/CONTRIBUTING.md +2 -0
- data/CONTRIBUTORS.md +2 -0
- data/Gemfile +3 -0
- data/fog-azure-rm.gemspec +34 -0
- data/lib/fog/azurerm.rb +1 -0
- data/lib/fog/azurerm/compute.rb +0 -1
- data/lib/fog/azurerm/config.rb +4 -0
- data/lib/fog/azurerm/credentials.rb +10 -3
- data/lib/fog/azurerm/docs/compute.md +172 -0
- data/lib/fog/azurerm/docs/dns.md +112 -0
- data/lib/fog/azurerm/docs/network.md +794 -0
- data/lib/fog/azurerm/docs/resources.md +155 -0
- data/lib/fog/azurerm/docs/storage.md +222 -0
- data/lib/fog/azurerm/docs/structure.md +53 -0
- data/lib/fog/azurerm/models/compute/server.rb +3 -2
- data/lib/fog/azurerm/models/network/frontend_ip_configuration.rb +5 -1
- data/lib/fog/azurerm/models/network/network_interface.rb +49 -4
- data/lib/fog/azurerm/models/network/network_interfaces.rb +4 -2
- data/lib/fog/azurerm/models/network/network_security_group.rb +27 -4
- data/lib/fog/azurerm/models/network/network_security_groups.rb +4 -2
- data/lib/fog/azurerm/models/network/network_security_rule.rb +1 -1
- data/lib/fog/azurerm/models/network/subnet.rb +26 -6
- data/lib/fog/azurerm/models/network/subnets.rb +4 -2
- data/lib/fog/azurerm/models/network/virtual_network.rb +72 -10
- data/lib/fog/azurerm/models/network/virtual_networks.rb +4 -2
- data/lib/fog/azurerm/models/resources/azure_resource.rb +25 -0
- data/lib/fog/azurerm/models/resources/azure_resources.rb +31 -0
- data/lib/fog/azurerm/models/resources/dependency.rb +27 -0
- data/lib/fog/azurerm/models/resources/deployment.rb +65 -0
- data/lib/fog/azurerm/models/resources/deployments.rb +27 -0
- data/lib/fog/azurerm/models/resources/provider.rb +27 -0
- data/lib/fog/azurerm/models/resources/provider_resource_type.rb +22 -0
- data/lib/fog/azurerm/models/storage/blob.rb +13 -0
- data/lib/fog/azurerm/models/storage/blobs.rb +22 -0
- data/lib/fog/azurerm/models/storage/container.rb +65 -0
- data/lib/fog/azurerm/models/storage/containers.rb +44 -0
- data/lib/fog/azurerm/models/storage/data_disk.rb +26 -0
- data/lib/fog/azurerm/models/storage/storage_account.rb +4 -0
- data/lib/fog/azurerm/network.rb +21 -3
- data/lib/fog/azurerm/requests/network/add_address_prefixes_in_virtual_network.rb +68 -0
- data/lib/fog/azurerm/requests/network/add_dns_servers_in_virtual_network.rb +74 -0
- data/lib/fog/azurerm/requests/network/add_security_rules.rb +152 -0
- data/lib/fog/azurerm/requests/network/add_subnets_in_virtual_network.rb +69 -0
- data/lib/fog/azurerm/requests/network/attach_network_security_group_to_subnet.rb +59 -0
- data/lib/fog/azurerm/requests/network/attach_resource_to_nic.rb +88 -0
- data/lib/fog/azurerm/requests/network/attach_route_table_to_subnet.rb +59 -0
- data/lib/fog/azurerm/requests/network/create_load_balancer.rb +4 -4
- data/lib/fog/azurerm/requests/network/{create_network_interface.rb → create_or_update_network_interface.rb} +14 -13
- data/lib/fog/azurerm/requests/network/{create_network_security_group.rb → create_or_update_network_security_group.rb} +17 -35
- data/lib/fog/azurerm/requests/network/create_or_update_virtual_network.rb +116 -0
- data/lib/fog/azurerm/requests/network/create_subnet.rb +28 -14
- data/lib/fog/azurerm/requests/network/detach_network_security_group_from_subnet.rb +53 -0
- data/lib/fog/azurerm/requests/network/detach_resource_from_nic.rb +80 -0
- data/lib/fog/azurerm/requests/network/detach_route_table_from_subnet.rb +53 -0
- data/lib/fog/azurerm/requests/network/get_network_interface.rb +60 -0
- data/lib/fog/azurerm/requests/network/get_network_security_group.rb +161 -0
- data/lib/fog/azurerm/requests/network/get_subnet.rb +36 -0
- data/lib/fog/azurerm/requests/network/get_virtual_network.rb +64 -0
- data/lib/fog/azurerm/requests/network/remove_address_prefixes_from_virtual_network.rb +67 -0
- data/lib/fog/azurerm/requests/network/remove_dns_servers_from_virtual_network.rb +67 -0
- data/lib/fog/azurerm/requests/network/remove_security_rule.rb +155 -0
- data/lib/fog/azurerm/requests/network/remove_subnets_from_virtual_network.rb +57 -0
- data/lib/fog/azurerm/requests/resources/create_deployment.rb +90 -0
- data/lib/fog/azurerm/requests/resources/delete_deployment.rb +28 -0
- data/lib/fog/azurerm/requests/resources/delete_resource_tag.rb +48 -0
- data/lib/fog/azurerm/requests/resources/list_deployments.rb +75 -0
- data/lib/fog/azurerm/requests/resources/list_tagged_resources.rb +46 -0
- data/lib/fog/azurerm/requests/resources/tag_resource.rb +46 -0
- data/lib/fog/azurerm/requests/storage/create_container.rb +37 -0
- data/lib/fog/azurerm/requests/storage/delete_container.rb +26 -0
- data/lib/fog/azurerm/requests/storage/delete_disk.rb +36 -0
- data/lib/fog/azurerm/requests/storage/get_blob_metadata.rb +30 -0
- data/lib/fog/azurerm/requests/storage/get_container_access_control_list.rb +29 -0
- data/lib/fog/azurerm/requests/storage/get_container_metadata.rb +31 -0
- data/lib/fog/azurerm/requests/storage/get_container_properties.rb +36 -0
- data/lib/fog/azurerm/requests/storage/get_storage_access_keys.rb +31 -0
- data/lib/fog/azurerm/requests/storage/list_containers.rb +49 -0
- data/lib/fog/azurerm/requests/storage/list_storage_account_for_rg.rb +0 -1
- data/lib/fog/azurerm/requests/storage/set_blob_metadata.rb +26 -0
- data/lib/fog/azurerm/requests/storage/set_container_metadata.rb +26 -0
- data/lib/fog/azurerm/resources.rb +13 -0
- data/lib/fog/azurerm/storage.rb +46 -6
- data/lib/fog/azurerm/utilities/general.rb +18 -0
- data/lib/fog/azurerm/version.rb +1 -1
- data/rakefile +21 -0
- data/test/api_stub.rb +44 -0
- data/test/api_stub/models/compute/availability_set.rb +21 -0
- data/test/api_stub/models/compute/server.rb +191 -0
- data/test/api_stub/models/dns/record_set.rb +59 -0
- data/test/api_stub/models/dns/zone.rb +47 -0
- data/test/api_stub/models/network/application_gateway.rb +135 -0
- data/test/api_stub/models/network/load_balancer.rb +132 -0
- data/test/api_stub/models/network/network_interface.rb +71 -0
- data/test/api_stub/models/network/network_security_group.rb +94 -0
- data/test/api_stub/models/network/public_ip.rb +35 -0
- data/test/api_stub/models/network/subnet.rb +35 -0
- data/test/api_stub/models/network/traffic_manager_end_point.rb +26 -0
- data/test/api_stub/models/network/traffic_manager_profile.rb +74 -0
- data/test/api_stub/models/network/virtual_network.rb +61 -0
- data/test/api_stub/models/resources/deployment.rb +110 -0
- data/test/api_stub/models/resources/resource.rb +40 -0
- data/test/api_stub/models/resources/resource_group.rb +38 -0
- data/test/api_stub/models/storage/blob.rb +17 -0
- data/test/api_stub/models/storage/container.rb +92 -0
- data/test/api_stub/models/storage/data_disk.rb +30 -0
- data/test/api_stub/models/storage/storageaccount.rb +29 -0
- data/test/api_stub/requests/compute/availability_set.rb +46 -0
- data/test/api_stub/requests/compute/virtual_machine.rb +654 -0
- data/test/api_stub/requests/dns/record_set.rb +105 -0
- data/test/api_stub/requests/dns/zone.rb +67 -0
- data/test/api_stub/requests/network/application_gateway.rb +433 -0
- data/test/api_stub/requests/network/load_balancer.rb +366 -0
- data/test/api_stub/requests/network/network_interface.rb +268 -0
- data/test/api_stub/requests/network/network_security_group.rb +240 -0
- data/test/api_stub/requests/network/public_ip.rb +73 -0
- data/test/api_stub/requests/network/subnet.rb +73 -0
- data/test/api_stub/requests/network/traffic_manager_endpoint.rb +25 -0
- data/test/api_stub/requests/network/traffic_manager_profile.rb +140 -0
- data/test/api_stub/requests/network/virtual_network.rb +127 -0
- data/test/api_stub/requests/resources/deployment.rb +23 -0
- data/test/api_stub/requests/resources/resource.rb +47 -0
- data/test/api_stub/requests/resources/resource_group.rb +53 -0
- data/test/api_stub/requests/storage/blob.rb +24 -0
- data/test/api_stub/requests/storage/container.rb +95 -0
- data/test/api_stub/requests/storage/storageaccount.rb +112 -0
- data/test/integration/README.md +14 -0
- data/test/integration/application_gateway.rb +129 -0
- data/test/integration/availability_set.rb +56 -0
- data/test/integration/container.rb +81 -0
- data/test/integration/credentials/azure.yml +4 -0
- data/test/integration/external_load_balancer.rb +119 -0
- data/test/integration/internal_load_balancer.rb +126 -0
- data/test/integration/network_interface.rb +135 -0
- data/test/integration/network_security_group.rb +104 -0
- data/test/integration/public_ip.rb +63 -0
- data/test/integration/record_set.rb +88 -0
- data/test/integration/server.rb +139 -0
- data/test/integration/storage_account.rb +62 -0
- data/test/integration/subnet.rb +91 -0
- data/test/integration/traffic_manager.rb +81 -0
- data/test/integration/virtual_network.rb +124 -0
- data/test/integration/zone.rb +64 -0
- data/test/models/compute/test_availability_set.rb +53 -0
- data/test/models/compute/test_availability_sets.rb +41 -0
- data/test/models/compute/test_server.rb +143 -0
- data/test/models/compute/test_servers.rb +49 -0
- data/test/models/dns/test_record_set.rb +59 -0
- data/test/models/dns/test_record_sets.rb +51 -0
- data/test/models/dns/test_zone.rb +49 -0
- data/test/models/dns/test_zones.rb +49 -0
- data/test/models/network/test_application_gateway.rb +62 -0
- data/test/models/network/test_application_gateways.rb +42 -0
- data/test/models/network/test_load_balancer.rb +56 -0
- data/test/models/network/test_load_balancers.rb +42 -0
- data/test/models/network/test_network_interface.rb +106 -0
- data/test/models/network/test_network_interfaces.rb +41 -0
- data/test/models/network/test_network_security_group.rb +88 -0
- data/test/models/network/test_network_security_groups.rb +40 -0
- data/test/models/network/test_network_security_rule.rb +30 -0
- data/test/models/network/test_public_ip.rb +58 -0
- data/test/models/network/test_public_ips.rb +55 -0
- data/test/models/network/test_subnet.rb +84 -0
- data/test/models/network/test_subnets.rb +42 -0
- data/test/models/network/test_traffic_manager_end_point.rb +53 -0
- data/test/models/network/test_traffic_manager_end_points.rb +42 -0
- data/test/models/network/test_traffic_manager_profile.rb +54 -0
- data/test/models/network/test_traffic_manager_profiles.rb +41 -0
- data/test/models/network/test_virtual_network.rb +112 -0
- data/test/models/network/test_virtual_networks.rb +54 -0
- data/test/models/resources/test_deployment.rb +54 -0
- data/test/models/resources/test_deployments.rb +37 -0
- data/test/models/resources/test_resource.rb +22 -0
- data/test/models/resources/test_resource_group.rb +43 -0
- data/test/models/resources/test_resource_groups.rb +37 -0
- data/test/models/resources/test_resources.rb +38 -0
- data/test/models/storage/test_blobs.rb +32 -0
- data/test/models/storage/test_container.rb +67 -0
- data/test/models/storage/test_containers.rb +56 -0
- data/test/models/storage/test_data_disk.rb +29 -0
- data/test/models/storage/test_storage_account.rb +62 -0
- data/test/models/storage/test_storage_accounts.rb +65 -0
- data/test/requests/compute/test_attach_data_disk_to_vm.rb +175 -0
- data/test/requests/compute/test_create_availability_set.rb +30 -0
- data/test/requests/compute/test_create_virtual_machine.rb +50 -0
- data/test/requests/compute/test_deallocate_virtual_machine.rb +29 -0
- data/test/requests/compute/test_delete_availability_set.rb +29 -0
- data/test/requests/compute/test_delete_virtual_machine.rb +29 -0
- data/test/requests/compute/test_detach_data_disk_from_vm.rb +53 -0
- data/test/requests/compute/test_generalize_virtual_machine.rb +29 -0
- data/test/requests/compute/test_get_virtual_machine.rb +31 -0
- data/test/requests/compute/test_get_vm_status.rb +31 -0
- data/test/requests/compute/test_list_availability_sets.rb +30 -0
- data/test/requests/compute/test_list_available_sizes_for_virtual_machine.rb +31 -0
- data/test/requests/compute/test_list_virtual_machines.rb +30 -0
- data/test/requests/compute/test_power_off_virtual_machine.rb +29 -0
- data/test/requests/compute/test_redeploy_virtual_machine.rb +29 -0
- data/test/requests/compute/test_restart_virtual_machine.rb +29 -0
- data/test/requests/compute/test_start_virtual_machine.rb +29 -0
- data/test/requests/dns/test_check_for_zone.rb +52 -0
- data/test/requests/dns/test_create_record_set.rb +45 -0
- data/test/requests/dns/test_create_zone.rb +36 -0
- data/test/requests/dns/test_delete_record_set.rb +35 -0
- data/test/requests/dns/test_delete_zone.rb +35 -0
- data/test/requests/dns/test_get_records_from_record_set.rb +55 -0
- data/test/requests/dns/test_list_record_sets.rb +36 -0
- data/test/requests/dns/test_list_zones.rb +40 -0
- data/test/requests/network/test_add_address_prefixes_in_virtual_network.rb +45 -0
- data/test/requests/network/test_add_dns_servers_in_virtual_network.rb +45 -0
- data/test/requests/network/test_add_security_rules.rb +63 -0
- data/test/requests/network/test_add_subnets_in_virtual_network.rb +45 -0
- data/test/requests/network/test_attach_network_security_group_to_subnet.rb +33 -0
- data/test/requests/network/test_attach_resource_to_nic.rb +65 -0
- data/test/requests/network/test_attach_route_table_to_subnet.rb +33 -0
- data/test/requests/network/test_check_for_public_ip.rb +38 -0
- data/test/requests/network/test_check_for_virtual_network.rb +38 -0
- data/test/requests/network/test_create_application_gateway.rb +61 -0
- data/test/requests/network/test_create_load_balancer.rb +56 -0
- data/test/requests/network/test_create_network_interface.rb +54 -0
- data/test/requests/network/test_create_network_security_group.rb +45 -0
- data/test/requests/network/test_create_or_update_virtual_network.rb +63 -0
- data/test/requests/network/test_create_public_ip.rb +44 -0
- data/test/requests/network/test_create_subnet.rb +44 -0
- data/test/requests/network/test_create_traffic_manager_endpoint.rb +32 -0
- data/test/requests/network/test_create_traffic_manager_profile.rb +32 -0
- data/test/requests/network/test_delete_application_gateway.rb +30 -0
- data/test/requests/network/test_delete_load_balancer.rb +30 -0
- data/test/requests/network/test_delete_network_interface.rb +30 -0
- data/test/requests/network/test_delete_network_security_group.rb +32 -0
- data/test/requests/network/test_delete_public_ip.rb +30 -0
- data/test/requests/network/test_delete_subnet.rb +30 -0
- data/test/requests/network/test_delete_traffic_manager_endpoint.rb +28 -0
- data/test/requests/network/test_delete_traffic_manager_profile.rb +28 -0
- data/test/requests/network/test_delete_virtual_network.rb +30 -0
- data/test/requests/network/test_detach_network_security_group_from_subnet.rb +33 -0
- data/test/requests/network/test_detach_resource_from_nic.rb +60 -0
- data/test/requests/network/test_detach_route_table_from_subnet.rb +33 -0
- data/test/requests/network/test_get_network_interface.rb +31 -0
- data/test/requests/network/test_get_network_security_group.rb +33 -0
- data/test/requests/network/test_get_subnet.rb +33 -0
- data/test/requests/network/test_get_traffic_manager_profile.rb +29 -0
- data/test/requests/network/test_list_application_gateways.rb +31 -0
- data/test/requests/network/test_list_load_balancers.rb +31 -0
- data/test/requests/network/test_list_network_interfaces.rb +31 -0
- data/test/requests/network/test_list_network_security_groups.rb +33 -0
- data/test/requests/network/test_list_public_ips.rb +31 -0
- data/test/requests/network/test_list_subnets.rb +31 -0
- data/test/requests/network/test_list_traffic_manager_profiles.rb +29 -0
- data/test/requests/network/test_list_virtual_networks.rb +31 -0
- data/test/requests/network/test_remove_address_prefixes_from_virtual_network.rb +45 -0
- data/test/requests/network/test_remove_dns_servers_from_virtual_network.rb +45 -0
- data/test/requests/network/test_remove_security_rule.rb +49 -0
- data/test/requests/network/test_remove_subnets_from_virtual_network.rb +45 -0
- data/test/requests/resources/test_create_deployment.rb +49 -0
- data/test/requests/resources/test_create_resource_group.rb +31 -0
- data/test/requests/resources/test_delete_deployment.rb +31 -0
- data/test/requests/resources/test_delete_resource_group.rb +30 -0
- data/test/requests/resources/test_delete_resource_tag.rb +51 -0
- data/test/requests/resources/test_list_deployments.rb +32 -0
- data/test/requests/resources/test_list_resource_groups.rb +31 -0
- data/test/requests/resources/test_list_tagged_resources.rb +31 -0
- data/test/requests/resources/test_tag_resource.rb +51 -0
- data/test/requests/storage/test_check_storage_account_name_availability.rb +59 -0
- data/test/requests/storage/test_create_container.rb +31 -0
- data/test/requests/storage/test_create_storage_account.rb +56 -0
- data/test/requests/storage/test_delete_container.rb +30 -0
- data/test/requests/storage/test_delete_storage_account.rb +34 -0
- data/test/requests/storage/test_get_blob_metadata.rb +18 -0
- data/test/requests/storage/test_get_container_access_control_list.rb +31 -0
- data/test/requests/storage/test_get_container_metadata.rb +18 -0
- data/test/requests/storage/test_get_container_properties.rb +31 -0
- data/test/requests/storage/test_get_storage_access_keys.rb +31 -0
- data/test/requests/storage/test_list_containers.rb +23 -0
- data/test/requests/storage/test_list_storage_accounts.rb +47 -0
- data/test/requests/storage/test_list_storage_accounts_for_rg.rb +51 -0
- data/test/requests/storage/test_set_blob_metadata.rb +17 -0
- data/test/requests/storage/test_set_container_metadata.rb +17 -0
- data/test/test_credentials.rb +39 -0
- data/test/test_helper.rb +428 -0
- metadata +273 -14
- data/lib/fog/azurerm/models/compute/data_disk.rb +0 -26
- data/lib/fog/azurerm/requests/network/create_virtual_network.rb +0 -115
@@ -0,0 +1,59 @@
|
|
1
|
+
module ApiStub
|
2
|
+
module Models
|
3
|
+
module DNS
|
4
|
+
# Mock class for Record Set
|
5
|
+
class RecordSet
|
6
|
+
# This class contain two mocks, for collection and for model
|
7
|
+
def self.list_record_sets
|
8
|
+
{
|
9
|
+
'id' => '/subscriptions/########-####-####-####-############/resourceGroups/fog-test-rg/providers/Microsoft.Network/dnszones/fog-test-zone.com/A/fog-test-record_set',
|
10
|
+
'name' => 'fog-test-record_set',
|
11
|
+
'type' => 'Microsoft.Network/dnszones/A',
|
12
|
+
'etag' => '3376a38f-a53f-4ed0-a2e7-dfaba67dbb40',
|
13
|
+
'location' => 'global',
|
14
|
+
'properties' =>
|
15
|
+
{
|
16
|
+
'metadata' => nil,
|
17
|
+
'fqdn' => 'fog-test-record_set.fog-test-zone.com.',
|
18
|
+
'TTL' => 60,
|
19
|
+
'ARecords' =>
|
20
|
+
[
|
21
|
+
{
|
22
|
+
'ipv4Address' => '1.2.3.4'
|
23
|
+
},
|
24
|
+
{
|
25
|
+
'ipv4Address' => '1.2.3.3'
|
26
|
+
}
|
27
|
+
]
|
28
|
+
}
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.create_record_set_obj
|
33
|
+
{
|
34
|
+
'id' => '/subscriptions/########-####-####-####-############/resourceGroups/fog-test-rg/providers/Microsoft.Network/dnszones/fog-test-zone.com/A/fog-test-record_set',
|
35
|
+
'name' => 'fog-test-record_set',
|
36
|
+
'type' => 'Microsoft.Network/dnszones/A',
|
37
|
+
'etag' => '3376a38f-a53f-4ed0-a2e7-dfaba67dbb40',
|
38
|
+
'location' => 'global',
|
39
|
+
'properties' =>
|
40
|
+
{
|
41
|
+
'metadata' => nil,
|
42
|
+
'fqdn' => 'fog-test-record_set.fog-test-zone.com.',
|
43
|
+
'TTL' => 60,
|
44
|
+
'ARecords' =>
|
45
|
+
[
|
46
|
+
{
|
47
|
+
'ipv4Address' => '1.2.3.4'
|
48
|
+
},
|
49
|
+
{
|
50
|
+
'ipv4Address' => '1.2.3.3'
|
51
|
+
}
|
52
|
+
]
|
53
|
+
}
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
module ApiStub
|
2
|
+
module Models
|
3
|
+
module DNS
|
4
|
+
# Mock class for Zone
|
5
|
+
class Zone
|
6
|
+
# This class contain two mocks, for collection and for model
|
7
|
+
def self.list_zones
|
8
|
+
{
|
9
|
+
'id' => '/subscriptions/########-####-####-####-############/resourceGroups/fog-test-rg/providers/Microsoft.Network/dnszones/fog-test-zone.com',
|
10
|
+
'name' => 'fog-test-zone.com',
|
11
|
+
'type' => 'Microsoft.Network/dnszones',
|
12
|
+
'etag' => '00000003-0000-0000-bd66-02b337a4d101',
|
13
|
+
'location' => 'global',
|
14
|
+
'tags' => {},
|
15
|
+
'properties' =>
|
16
|
+
{
|
17
|
+
'maxNumberOfRecordSets' => 100_00,
|
18
|
+
'nameServers' => nil,
|
19
|
+
'numberOfRecordSets' => 2,
|
20
|
+
'parentResourceGroupName' => 'fog-test-rg'
|
21
|
+
},
|
22
|
+
'resource_group' => 'fog-test-rg'
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.create_zone_obj
|
27
|
+
{
|
28
|
+
'id' => '/subscriptions/########-####-####-####-############/resourceGroups/fog-test-rg/providers/Microsoft.Network/dnszones/fog-test-zone.com',
|
29
|
+
'name' => 'fog-test-zone.com',
|
30
|
+
'type' => 'Microsoft.Network/dnszones',
|
31
|
+
'etag' => '00000003-0000-0000-bd66-02b337a4d101',
|
32
|
+
'location' => 'global',
|
33
|
+
'tags' => {},
|
34
|
+
'properties' =>
|
35
|
+
{
|
36
|
+
'maxNumberOfRecordSets' => 100_00,
|
37
|
+
'nameServers' => nil,
|
38
|
+
'numberOfRecordSets' => 2,
|
39
|
+
'parentResourceGroupName' => 'fog-test-rg'
|
40
|
+
},
|
41
|
+
'resource_group' => 'fog-test-rg'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,135 @@
|
|
1
|
+
module ApiStub
|
2
|
+
module Models
|
3
|
+
module Network
|
4
|
+
class ApplicationGateway
|
5
|
+
def self.create_application_gateway_response
|
6
|
+
gateway = '{
|
7
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/ag-demoagplat",
|
8
|
+
"name": "gateway",
|
9
|
+
"type": "Microsoft.Network/applicationGateways",
|
10
|
+
"location": "eastus",
|
11
|
+
"properties": {
|
12
|
+
"sku": {
|
13
|
+
"name": "Standard_Medium",
|
14
|
+
"tier": "Standard",
|
15
|
+
"capacity": 2
|
16
|
+
},
|
17
|
+
"gatewayIpConfigurations": [{
|
18
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/gateway/gatewayIPConfigurations/ag-GatewayIP",
|
19
|
+
"properties": {
|
20
|
+
"subnet": {
|
21
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/vnet/subnets/GatewaySubnet"
|
22
|
+
},
|
23
|
+
"provisioningState": "Succeeded"
|
24
|
+
},
|
25
|
+
"name": "ag-GatewayIP"
|
26
|
+
}],
|
27
|
+
"sslCertificates": [{
|
28
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/gateway/sslCertificates/ssl_certificate",
|
29
|
+
"properties": {
|
30
|
+
"publicCertData": "MIIDiDCCAnACCQCwYkR0Mxy+QTANBgkqhkiG9w0BAQUFADCBhTELMAkGA1UEBhMCUEsxDzANBgNVBAgTBlB1bmphYjEPMA0GA1UEBxMGTGFob3JlMQ8wDQYDVQQKEwZDb25maXoxDDAKBgNVBAsTA0RldjEPMA0GA1UEAxMGaGFpZGVyMSQwIgYJKoZIhvcNAQkBFhVoYWlkZXIuYWxpQGNvbmZpei5jb20wHhcNMTYwMzAyMTE0NTM2WhcNMTcwMzAyMTE0NTM2WjCBhTELMAkGA1UEBhMCUEsxDzANBgNVBAgTBlB1bmphYjEPMA0GA1UEBxMGTGFob3JlMQ8wDQYDVQQKEwZDb25maXoxDDAKBgNVBAsTA0RldjEPMA0GA1UEAxMGaGFpZGVyMSQwIgYJKoZIhvcNAQkBFhVoYWlkZXIuYWxpQGNvbmZpei5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCuJrPbvOG+4oXQRamkOALlpdK98m+atJue9zOcCCagY8IJI4quYL13d8VItmrZf7erA+siqpYlWEuk1+lmmUY7T4AWAL8mXeR2vc7hWF601WDUjeVPK19+IcC8emMLOlBpvjXC9nbvADLQuR0PGitfjCqFoG66EOqJmLDNBsyHWmy+qhb8J4WXitruNAJDPe/20h6L23vD6z4tvwBjh4zkrfskGlKCNcAuvG1NI0FAS8261Jvs3lf+8oFyI+oSXGtknrkeQv3PbXyeEe3KO5a/M61Uebo04Uwd4yCvdu6H0sF+YYA4bfFdanuFmrZvf9cZSwknQid+vOdzyGkTHTPFAgMBAAEwDQYJKoZIhvcNAQEFBQADggEBAKtPhYpfvn5OxP+BcChsWaQA4KZQj0THGdiAjHsvfjsgteFvhkzqZBkhKYtsAWV5tB5/GDl+o4c6PQJ2/TXhOJn3pSNaUzrCJIGtKS5DknbqTQxCwVlxyBtPHLAYWqKcPMlH282rw3VY0OYTL96XOgZ/WZjcN6A7ku+uWsNCql443FoWL+N3Gpaab45OyIluFUOH+yc0ToHNlP3iOpI3rVpi2xwmGrSyUKsGUma3nrBq7TWjkDE1E+oJoybaMNZzgXGIPSJC1HYIF1U8GSoFkZpAFxXecD0FinXWDRwUP6K54iti3i6a/Ox73WhwfI4mVCqsOy1WYWtKYhMVe6Kj4Nw=",
|
31
|
+
"provisioningState": "Succeeded"
|
32
|
+
},
|
33
|
+
"name": "ssl_certificate"
|
34
|
+
}],
|
35
|
+
"frontendIpConfigurations": [{
|
36
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/gateway/frontendIPConfigurations/frontend_ip_config",
|
37
|
+
"properties": {
|
38
|
+
"privateIPAllocationMethod": "Dynamic",
|
39
|
+
"publicIPAddress": {
|
40
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/ag_publicip-672835"
|
41
|
+
},
|
42
|
+
"privateIPAddress": "10.0.1.5",
|
43
|
+
"provisioningState": "Succeeded"
|
44
|
+
},
|
45
|
+
"name": "frontend_ip_config"
|
46
|
+
}],
|
47
|
+
"frontendPorts": [{
|
48
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/gateway/frontendPorts/gateway_front_port",
|
49
|
+
"properties": {
|
50
|
+
"port": 443,
|
51
|
+
"provisioningState": "Succeeded"
|
52
|
+
},
|
53
|
+
"name": "gateway_front_port"
|
54
|
+
}],
|
55
|
+
"probes": [{
|
56
|
+
"name": "<probeName>",
|
57
|
+
"id": "/subscriptions/<subscriptionId>/../microsoft.network/applicationGateways/<gatewayName>/probes/<probeName>",
|
58
|
+
"properties": {
|
59
|
+
"protocol": "<probeProtocol>",
|
60
|
+
"host": "<probeHost>",
|
61
|
+
"path": "<probePath>",
|
62
|
+
"interval": "<probeIntervalInSec>",
|
63
|
+
"timeout": "<probeTimeoutInSec>",
|
64
|
+
"unhealthyThreshold": "<probeUnhealthyThreshold>"
|
65
|
+
}
|
66
|
+
}],
|
67
|
+
"backendAddressPools": [{
|
68
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/gateway/backendAddressPools/AG-BackEndAddressPool",
|
69
|
+
"properties": {
|
70
|
+
"backendAddresses": [{
|
71
|
+
"ipAddress": "10.0.0.4"
|
72
|
+
}, {
|
73
|
+
"ipAddress": "10.0.0.5"
|
74
|
+
}],
|
75
|
+
"provisioningState": "Succeeded"
|
76
|
+
},
|
77
|
+
"name": "AG-BackEndAddressPool"
|
78
|
+
}],
|
79
|
+
"backendHttpSettingsCollection": [{
|
80
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/gateway/backendHttpSettingsCollection/gateway_settings",
|
81
|
+
"properties": {
|
82
|
+
"port": 80,
|
83
|
+
"protocol": "Http",
|
84
|
+
"cookieBasedAffinity": "Enabled",
|
85
|
+
"requestTimeout": 30,
|
86
|
+
"provisioningState": "Succeeded"
|
87
|
+
},
|
88
|
+
"name": "gateway_settings"
|
89
|
+
}],
|
90
|
+
"httpListeners": [{
|
91
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/gateway/httpListeners/gateway_listener",
|
92
|
+
"properties": {
|
93
|
+
"frontendIPConfiguration": {
|
94
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/ag-demoagplat/frontendIPConfigurations/frontend_ip_config"
|
95
|
+
},
|
96
|
+
"frontendPort": {
|
97
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/ag-demoagplat/frontendPorts/gateway_front_port"
|
98
|
+
},
|
99
|
+
"protocol": "Https",
|
100
|
+
"sslCertificate": {
|
101
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/ag-demoagplat/sslCertificates/ssl_certificate"
|
102
|
+
},
|
103
|
+
"requireServerNameIndication": false,
|
104
|
+
"provisioningState": "Succeeded"
|
105
|
+
},
|
106
|
+
"name": "gateway_listener"
|
107
|
+
}],
|
108
|
+
"urlPathMaps": [],
|
109
|
+
"requestRoutingRules": [{
|
110
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/ag-demoagplat/requestRoutingRules/gateway_request_route_rule",
|
111
|
+
"properties": {
|
112
|
+
"ruleType": "Basic",
|
113
|
+
"backendAddressPool": {
|
114
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/ag-demoagplat/backendAddressPools/AG-BackEndAddressPool"
|
115
|
+
},
|
116
|
+
"backendHttpSettings": {
|
117
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/ag-demoagplat/backendHttpSettingsCollection/gateway_settings"
|
118
|
+
},
|
119
|
+
"httpListener": {
|
120
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/ag-demoagplat/httpListeners/gateway_listener"
|
121
|
+
},
|
122
|
+
"provisioningState": "Succeeded"
|
123
|
+
},
|
124
|
+
"name": "gateway_request_route_rule"
|
125
|
+
}],
|
126
|
+
"resourceGuid": "b3db5ebf-10f8-4666-9596-d1459530f64b",
|
127
|
+
"provisioningState": "Succeeded"
|
128
|
+
}
|
129
|
+
}'
|
130
|
+
JSON.parse(gateway)
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
@@ -0,0 +1,132 @@
|
|
1
|
+
module ApiStub
|
2
|
+
module Models
|
3
|
+
module Network
|
4
|
+
class LoadBalancer
|
5
|
+
def self.create_load_balancer_response
|
6
|
+
lb = '{
|
7
|
+
"name": "mylb1",
|
8
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/mylb1",
|
9
|
+
"location": "North US",
|
10
|
+
"tags": {
|
11
|
+
"key": "value"
|
12
|
+
},
|
13
|
+
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
|
14
|
+
"properties": {
|
15
|
+
"resourceGuid": "6ECBD4C1-0DC1-4D86-9F6E-4A58F83C9023",
|
16
|
+
"provisioningState": "Succeeded",
|
17
|
+
"frontendIPConfigurations": [{
|
18
|
+
"name": "myip1",
|
19
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/mylb1/frontendIPConfigurations/myip1",
|
20
|
+
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
|
21
|
+
"properties": {
|
22
|
+
"provisioningState": "Succeeded",
|
23
|
+
"subnet": {
|
24
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/myvnet1/subnets/mysubnet1"
|
25
|
+
},
|
26
|
+
"privateIPAddress": "10.0.0.10",
|
27
|
+
"privateIPAllocationMethod": "Static",
|
28
|
+
"publicIPAddress": {
|
29
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/myip1"
|
30
|
+
},
|
31
|
+
"loadBalancingRules": [{
|
32
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/myLB1/loadBalancingRules/rule1"
|
33
|
+
}],
|
34
|
+
"inboundNatRules": [{
|
35
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/myLB1/inboundNatRules/rule1"
|
36
|
+
}]
|
37
|
+
}
|
38
|
+
}],
|
39
|
+
"backendAddressPools": [{
|
40
|
+
"name": "pool1",
|
41
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/mylb1/backendAddressPools/pool1",
|
42
|
+
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
|
43
|
+
"properties": {
|
44
|
+
"provisioningState": "Succeeded",
|
45
|
+
"backendIPConfigurations": [{
|
46
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/vm1nic1/ipConfigurations/ip1"
|
47
|
+
}],
|
48
|
+
"loadBalancingRules": [{
|
49
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/myLB1/loadBalancingRules/rule1"
|
50
|
+
}]
|
51
|
+
}
|
52
|
+
}],
|
53
|
+
"loadBalancingRules": [{
|
54
|
+
"name": "HTTP Traffic",
|
55
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/mylb1/loadBalancingRules/rule1",
|
56
|
+
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
|
57
|
+
"properties": {
|
58
|
+
"provisioningState": "Succeeded",
|
59
|
+
"frontendIPConfiguration": {
|
60
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/myLB1/frontendIPConfigurations/ip1"
|
61
|
+
},
|
62
|
+
"backendAddressPool": {
|
63
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/myLB1/backendAddressPool/pool1"
|
64
|
+
},
|
65
|
+
"protocol": "Tcp",
|
66
|
+
"frontendPort": 80,
|
67
|
+
"backendPort": 8080,
|
68
|
+
"probe": {
|
69
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/myLB1/probes/probe1"
|
70
|
+
},
|
71
|
+
"enableFloatingIP": true,
|
72
|
+
"idleTimeoutInMinutes": 4,
|
73
|
+
"loadDistribution": "Default"
|
74
|
+
|
75
|
+
}
|
76
|
+
}],
|
77
|
+
"probes": [{
|
78
|
+
"name": "my probe 1",
|
79
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/myLB1/probes/my probe 1",
|
80
|
+
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
|
81
|
+
"properties": {
|
82
|
+
"provisioningState": "Succeeded",
|
83
|
+
"protocol": "Tcp",
|
84
|
+
"port": 8080,
|
85
|
+
"requestPath": "myprobeapp1/myprobe1.svc",
|
86
|
+
"intervalInSeconds": 5,
|
87
|
+
"numberOfProbes": 16,
|
88
|
+
"loadBalancingRules": [{
|
89
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/myLB1/loadBalancingRules/rule1"
|
90
|
+
}]
|
91
|
+
}
|
92
|
+
}],
|
93
|
+
"inboundNatRules": [{
|
94
|
+
"name": "RDP Traffic",
|
95
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/myLB1/inboundNatRules/RDP Traffic",
|
96
|
+
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
|
97
|
+
"properties": {
|
98
|
+
"provisioningState": "Succeeded",
|
99
|
+
"frontendIPConfiguration": {
|
100
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/myLB1/frontendIPConfigurations/ip1"
|
101
|
+
},
|
102
|
+
"backendIPConfiguration": {
|
103
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/vm1nic1/ipConfigurations/ip1"
|
104
|
+
},
|
105
|
+
"protocol": "Tcp",
|
106
|
+
"frontendPort": 3389,
|
107
|
+
"backendPort": 3389
|
108
|
+
}
|
109
|
+
}],
|
110
|
+
"inboundNatPools": [{
|
111
|
+
"name": "RDPForVMSS1",
|
112
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers /Microsoft.Network/loadBalancers/myLB1/inboundNatRules/RDPForVMSS1",
|
113
|
+
"etag": "W/\"00000000-0000-0000-0000-000000000000\"",
|
114
|
+
"properties": {
|
115
|
+
"provisioningState": "Updating|Deleting|Failed|Succeeded",
|
116
|
+
"frontendIPConfiguration": {
|
117
|
+
"id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/myLB1/frontendIPConfigurations/ip1"
|
118
|
+
},
|
119
|
+
"protocol": "Tcp",
|
120
|
+
"frontendPortRangeStart": 50000,
|
121
|
+
"frontendPortRangeEnd": 50500,
|
122
|
+
"backendPort": 3389
|
123
|
+
}
|
124
|
+
}]
|
125
|
+
}
|
126
|
+
}'
|
127
|
+
JSON.parse(lb)
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
module ApiStub
|
2
|
+
module Models
|
3
|
+
module Network
|
4
|
+
class NetworkInterface
|
5
|
+
def self.create_network_interface_response
|
6
|
+
nic = '{
|
7
|
+
"name":"fog-test-network-interface",
|
8
|
+
"id":"/subscriptions/{guid}/resourceGroups/fog-test-rg/providers/Microsoft.Network/networkInterfaces/fog-test-network-interface",
|
9
|
+
"location":"West US",
|
10
|
+
"tags":{
|
11
|
+
"key":"value"
|
12
|
+
},
|
13
|
+
"etag":"W/\"00000000-0000-0000-0000-000000000000\"",
|
14
|
+
"properties":{
|
15
|
+
"resourceGuid":"5ED47B81-9F1C-4ACE-97A5-7B8CE08C5002",
|
16
|
+
"provisioningState":"Succeeded",
|
17
|
+
"virtualMachine":{
|
18
|
+
"id":"/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/vm1"
|
19
|
+
},
|
20
|
+
"macAddress":"00-00-00-00-00-00",
|
21
|
+
"networkSecurityGroup":{
|
22
|
+
"id":"/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/myNSG1"
|
23
|
+
},
|
24
|
+
"ipConfigurations":[
|
25
|
+
{
|
26
|
+
"name":"myip1",
|
27
|
+
"id":"/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/vm1mynic1/ipConfigurations/myip1",
|
28
|
+
"etag":"W/\"00000000-0000-0000-0000-000000000000\"",
|
29
|
+
"properties":{
|
30
|
+
"provisioningState":"Succeeded",
|
31
|
+
"subnet":{
|
32
|
+
"id":"/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/myvnet1/subnets/mysub1"
|
33
|
+
},
|
34
|
+
"privateIPAddress":"10.0.0.8",
|
35
|
+
"privateIPAllocationMethod":"Static",
|
36
|
+
"publicIPAddress":{
|
37
|
+
"id":"/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/mypip1"
|
38
|
+
},
|
39
|
+
"loadBalancerBackendAddressPools":[
|
40
|
+
{
|
41
|
+
"id":"/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/mylb1/backendAddressPools/pool1"
|
42
|
+
}
|
43
|
+
],
|
44
|
+
"loadBalancerInboundNatRules":[
|
45
|
+
{
|
46
|
+
"id":"/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/mylb1/inboundNatRules/rdp for myvm1"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"id":"/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/mylb1/inboundNatRules/powershell for myvm1"
|
50
|
+
}
|
51
|
+
]
|
52
|
+
}
|
53
|
+
}
|
54
|
+
],
|
55
|
+
"dnsSettings":{
|
56
|
+
"dnsServers":[
|
57
|
+
"10.0.0.4",
|
58
|
+
"10.0.0.5"
|
59
|
+
],
|
60
|
+
"appliedDnsServers": ["1.0.0.1", "2.0.0.2", "3.0.0.3"],
|
61
|
+
"internalDnsNameLabel": "IdnsVm1",
|
62
|
+
"internalFqd": "IdnsVm1.a2ftlxfjn2iezihj3udx1wfn4d.hx.internal.cloudapp.net"
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}'
|
66
|
+
JSON.parse(nic)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|