fog-azure-rm 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/lib/fog/azurerm/docs/application_gateway.md +3 -3
  4. data/lib/fog/azurerm/docs/compute.md +1 -1
  5. data/lib/fog/azurerm/docs/network.md +17 -17
  6. data/lib/fog/azurerm/models/compute/caching_types.rb +8 -6
  7. data/lib/fog/azurerm/models/compute/disk_create_option_types.rb +8 -6
  8. data/lib/fog/azurerm/models/network/ipallocation_method.rb +7 -5
  9. data/lib/fog/azurerm/models/network/security_rule_access.rb +7 -5
  10. data/lib/fog/azurerm/models/network/security_rule_direction.rb +7 -5
  11. data/lib/fog/azurerm/models/network/security_rule_protocol.rb +8 -6
  12. data/lib/fog/azurerm/models/storage/kind.rb +7 -5
  13. data/lib/fog/azurerm/models/storage/sku_name.rb +10 -8
  14. data/lib/fog/azurerm/models/storage/sku_tier.rb +7 -5
  15. data/lib/fog/azurerm/version.rb +1 -1
  16. data/test/integration/Virtual_network_gateway_connection.rb +2 -2
  17. data/test/integration/application_gateway.rb +2 -2
  18. data/test/integration/external_load_balancer.rb +2 -2
  19. data/test/integration/internal_load_balancer.rb +1 -1
  20. data/test/integration/network_security_group.rb +9 -9
  21. data/test/integration/network_security_rule.rb +3 -3
  22. data/test/integration/public_ip.rb +2 -2
  23. data/test/integration/resource_tag.rb +1 -1
  24. data/test/integration/server.rb +2 -2
  25. data/test/integration/server_custom_image.rb +1 -1
  26. data/test/integration/storage_account.rb +2 -2
  27. data/test/integration/virtual_machine_extension.rb +1 -1
  28. data/test/integration/virtual_network_gateway.rb +1 -1
  29. data/test/integration/virtual_network_gateway_connection_to_express_route.rb +1 -1
  30. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a229fc3ad67bc450669aaa95ef75aea77e1e886
4
- data.tar.gz: 9b25636194beacdb451765b7894b0044282c7386
3
+ metadata.gz: b5b4e76795f078ff4e443df900904d3897f8a3e4
4
+ data.tar.gz: 6f353bd4edf4a35bbee465e4e17f6ecacde178dc
5
5
  SHA512:
6
- metadata.gz: 2429b485a5d228cf42ce191ca4d5a048caac1082a50c774cdb0967f8d6a0c5413eeabc177de8669fdc50fc59ffa976e86d4339302a4600c05365340d29735fed
7
- data.tar.gz: 5f7b8ac957e2c4c3c5dac39e6de606ff99fd01edf6bb245a2d1a687a83080128c8be5a0ea90488d0ecc892079b7d1330bf823cd8fbb66562ce4de1219944bb9b
6
+ metadata.gz: 31d56e3785fda4ef54befcd886fab0a720ab61365e47cd581a6b81bfb14791ebde00f1e7fe8880dfa1a3c93ac24f9bec8d6f455b4c09a181ec941e9a675bbd8f
7
+ data.tar.gz: 206e0906cb48173e5466bd3819283a0cd4b36f1de180886685dd52148d446d7b6c8f804143828de9f8e6cc768db18ec68e0fb3a39b9d0226933c4f1732dbf67b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.2.4
2
+
3
+ **Changed:**
4
+ - Updated Fog model enums
5
+
1
6
  ## 0.2.3
2
7
 
3
8
  **Added:**
@@ -52,7 +52,7 @@ Create a new Application Gateway.
52
52
  [
53
53
  {
54
54
  name: 'frontendIpConfig',
55
- private_ip_allocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic,
55
+ private_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic,
56
56
  public_ip_address_id: '/subscriptions/<Subscription_id>/resourcegroups/<Resource Group name>/providers/Microsoft.Network/publicIPAddresses/<Public IP Address Name>',
57
57
  private_ip_address: '10.0.1.5'
58
58
  }
@@ -120,7 +120,7 @@ There can be two ways of giving `frontend_ip_configurations` while creating appl
120
120
  [
121
121
  {
122
122
  name: 'frontendIpConfig',
123
- private_ip_allocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic,
123
+ private_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic,
124
124
  public_ip_address_id: '/subscriptions/<Subscription_id>/resourcegroups/<Resource Group name>/providers/Microsoft.Network/publicIPAddresses/<Public IP Address Name>',
125
125
  private_ip_address: '10.0.1.5'
126
126
  }
@@ -132,7 +132,7 @@ There can be two ways of giving `frontend_ip_configurations` while creating appl
132
132
  [
133
133
  {
134
134
  name: 'frontendIpConfig',
135
- private_ip_allocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic,
135
+ private_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic,
136
136
  subnet_id: '<Subnet ID',
137
137
  private_ip_address: '10.0.1.5'
138
138
  }
@@ -53,7 +53,7 @@ Create a new linux server
53
53
  platform: 'Linux',
54
54
  vhd_path: '<Path of VHD>', # Optional, if you want to create the VM from a custom image.
55
55
  custom_data: 'echo customData', # Optional, if you want to add custom data in this VM.
56
- os_disk_caching: Fog::Compute::AzureRM::CachingTypes::None # Optional, can be one of None, ReadOnly, ReadWrite
56
+ os_disk_caching: Fog::ARM::Compute::Models::CachingTypes::None # Optional, can be one of None, ReadOnly, ReadWrite
57
57
  )
58
58
  ```
59
59
 
@@ -253,7 +253,7 @@ Create a new network interface. Skip public_ip_address_id parameter to create ne
253
253
  subnet_id: '/subscriptions/<Subscriptionid>/resourceGroups/<Resource Group name>/providers/Microsoft.Network/virtualNetworks/<Virtual Network name>/subnets/<Subnet name>',
254
254
  public_ip_address_id: '/subscriptions/<Subscriptionid>/resourceGroups/<Resource Group name>/providers/Microsoft.Network/publicIPAddresses/<Public IP name>',
255
255
  ip_configuration_name: '<Ip Configuration Name>',
256
- private_ip_allocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic
256
+ private_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic
257
257
  )
258
258
  ```
259
259
 
@@ -333,7 +333,7 @@ Create a new public IP. The parameter, type can be Dynamic or Static.
333
333
  name: '<Public IP name>',
334
334
  resource_group: '<Resource Group name>',
335
335
  location: 'westus',
336
- public_ip_allocation_method: Fog::Network::AzureRM::IPAllocationMethod::Static
336
+ public_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Static
337
337
  )
338
338
  ```
339
339
 
@@ -404,14 +404,14 @@ Network security group requires a resource group to create.
404
404
  location: 'eastus',
405
405
  security_rules: [{
406
406
  name: '<Security Rule name>',
407
- protocol: Fog::Network::AzureRM::SecurityRuleProtocol::Tcp,
407
+ protocol: Fog::ARM::Network::Models::SecurityRuleProtocol::Tcp,
408
408
  source_port_range: '22',
409
409
  destination_port_range: '22',
410
410
  source_address_prefix: '0.0.0.0/0',
411
411
  destination_address_prefix: '0.0.0.0/0',
412
- access: Fog::Network::AzureRM::SecurityRuleAccess::Allow,
412
+ access: Fog::ARM::Network::Models::SecurityRuleAccess::Allow,
413
413
  priority: '100',
414
- direction: Fog::Network::AzureRM::SecurityRuleDirection::Inbound
414
+ direction: Fog::ARM::Network::Models::SecurityRuleDirection::Inbound
415
415
  }]
416
416
  )
417
417
  ```
@@ -448,14 +448,14 @@ You can update security rules by passing the modified attributes in the form of
448
448
  [
449
449
  {
450
450
  name: '<Security Rule name>',
451
- protocol: Fog::Network::AzureRM::SecurityRuleProtocol::Tcp,
451
+ protocol: Fog::ARM::Network::Models::SecurityRuleProtocol::Tcp,
452
452
  source_port_range: '*',
453
453
  destination_port_range: '*',
454
454
  source_address_prefix: '0.0.0.0/0',
455
455
  destination_address_prefix: '0.0.0.0/0',
456
- access: Fog::Network::AzureRM::SecurityRuleAccess::Allow,
456
+ access: Fog::ARM::Network::Models::SecurityRuleAccess::Allow,
457
457
  priority: '100',
458
- direction: Fog::Network::AzureRM::SecurityRuleDirection::Inbound
458
+ direction: Fog::ARM::Network::Models::SecurityRuleDirection::Inbound
459
459
  }
460
460
  ]
461
461
  )
@@ -471,14 +471,14 @@ Add array of security rules in the form of hash.
471
471
  [
472
472
  {
473
473
  name: '<Security Rule name>',
474
- protocol: Fog::Network::AzureRM::SecurityRuleProtocol::Tcp,
474
+ protocol: Fog::ARM::Network::Models::SecurityRuleProtocol::Tcp,
475
475
  source_port_range: '3389',
476
476
  destination_port_range: '3389',
477
477
  source_address_prefix: '0.0.0.0/0',
478
478
  destination_address_prefix: '0.0.0.0/0',
479
- access: Fog::Network::AzureRM::SecurityRuleAccess::Allow,
479
+ access: Fog::ARM::Network::Models::SecurityRuleAccess::Allow,
480
480
  priority: '102',
481
- direction: Fog::Network::AzureRM::SecurityRuleDirection::Inbound
481
+ direction: Fog::ARM::Network::Models::SecurityRuleDirection::Inbound
482
482
  }
483
483
  ]
484
484
  )
@@ -512,15 +512,15 @@ Network security rule requires a resource group and network security group to cr
512
512
  azure_network_service.network_security_rules.create(
513
513
  name: '<Security Rule name>',
514
514
  resource_group: '<Resource Group name>',
515
- protocol: Fog::Network::AzureRM::SecurityRuleProtocol::Tcp,
515
+ protocol: Fog::ARM::Network::Models::SecurityRuleProtocol::Tcp,
516
516
  network_security_group_name: '<Network Security Group name>',
517
517
  source_port_range: '22',
518
518
  destination_port_range: '22',
519
519
  source_address_prefix: '0.0.0.0/0',
520
520
  destination_address_prefix: '0.0.0.0/0',
521
- access: Fog::Network::AzureRM::SecurityRuleAccess::Allow,
521
+ access: Fog::ARM::Network::Models::SecurityRuleAccess::Allow,
522
522
  priority: '100',
523
- direction: Fog::Network::AzureRM::SecurityRuleDirection::Inbound
523
+ direction: Fog::ARM::Network::Models::SecurityRuleDirection::Inbound
524
524
  )
525
525
  ```
526
526
 
@@ -575,7 +575,7 @@ Create a new load balancer.
575
575
  [
576
576
  {
577
577
  name: 'fic',
578
- private_ipallocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic,
578
+ private_ipallocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic,
579
579
  public_ipaddress_id: '/subscriptions/<Subscriptionid>/resourceGroups/<Resource Group name>/providers/Microsoft.Network/publicIPAddresses/<Public-IP-Name>'
580
580
  }
581
581
  ],
@@ -622,7 +622,7 @@ Create a new load balancer.
622
622
  [
623
623
  {
624
624
  name: 'LB-Frontend',
625
- private_ipallocation_method: Fog::Network::AzureRM::IPAllocationMethod::Static,
625
+ private_ipallocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Static,
626
626
  private_ipaddress: '10.1.2.5',
627
627
  subnet_id: subnet.id
628
628
  }
@@ -736,7 +736,7 @@ Create a new Virtual Network Gateway.
736
736
  ip_configurations: [
737
737
  {
738
738
  name: 'default',
739
- private_ipallocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic,
739
+ private_ipallocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic,
740
740
  public_ipaddress_id: '/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Network/publicIPAddresses/{public_ip_name}',
741
741
  subnet_id: '/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Network/virtualNetworks/{virtual_network_name}/subnets/{subnet_name}',
742
742
  private_ipaddress: nil
@@ -1,10 +1,12 @@
1
1
  module Fog
2
- module Compute
3
- class AzureRM
4
- module CachingTypes
5
- None = 'None'.freeze
6
- ReadOnly = 'ReadOnly'.freeze
7
- ReadWrite = 'ReadWrite'.freeze
2
+ module ARM
3
+ module Compute
4
+ module Models
5
+ module CachingTypes
6
+ None = 'None'.freeze
7
+ ReadOnly = 'ReadOnly'.freeze
8
+ ReadWrite = 'ReadWrite'.freeze
9
+ end
8
10
  end
9
11
  end
10
12
  end
@@ -1,10 +1,12 @@
1
1
  module Fog
2
- module Compute
3
- class AzureRM
4
- module DiskCreateOptionTypes
5
- FromImage = 'fromImage'.freeze
6
- Empty = 'empty'.freeze
7
- Attach = 'attach'.freeze
2
+ module ARM
3
+ module Compute
4
+ module Models
5
+ module DiskCreateOptionTypes
6
+ FromImage = 'fromImage'.freeze
7
+ Empty = 'empty'.freeze
8
+ Attach = 'attach'.freeze
9
+ end
8
10
  end
9
11
  end
10
12
  end
@@ -1,9 +1,11 @@
1
1
  module Fog
2
- module Network
3
- class AzureRM
4
- module IPAllocationMethod
5
- Static = 'Static'.freeze
6
- Dynamic = 'Dynamic'.freeze
2
+ module ARM
3
+ module Compute
4
+ module Models
5
+ module IPAllocationMethod
6
+ Static = 'Static'.freeze
7
+ Dynamic = 'Dynamic'.freeze
8
+ end
7
9
  end
8
10
  end
9
11
  end
@@ -1,9 +1,11 @@
1
1
  module Fog
2
- module Network
3
- class AzureRM
4
- module SecurityRuleAccess
5
- Allow = 'Allow'.freeze
6
- Deny = 'Deny'.freeze
2
+ module ARM
3
+ module Compute
4
+ module Models
5
+ module SecurityRuleAccess
6
+ Allow = 'Allow'.freeze
7
+ Deny = 'Deny'.freeze
8
+ end
7
9
  end
8
10
  end
9
11
  end
@@ -1,9 +1,11 @@
1
1
  module Fog
2
- module Network
3
- class AzureRM
4
- module SecurityRuleDirection
5
- Inbound = 'Inbound'.freeze
6
- Outbound = 'Outbound'.freeze
2
+ module ARM
3
+ module Compute
4
+ module Models
5
+ module SecurityRuleDirection
6
+ Inbound = 'Inbound'.freeze
7
+ Outbound = 'Outbound'.freeze
8
+ end
7
9
  end
8
10
  end
9
11
  end
@@ -1,10 +1,12 @@
1
1
  module Fog
2
- module Network
3
- class AzureRM
4
- module SecurityRuleProtocol
5
- Tcp = 'Tcp'.freeze
6
- Udp = 'Udp'.freeze
7
- Asterisk = '*'.freeze
2
+ module ARM
3
+ module Compute
4
+ module Models
5
+ module SecurityRuleProtocol
6
+ Tcp = 'Tcp'.freeze
7
+ Udp = 'Udp'.freeze
8
+ Asterisk = '*'.freeze
9
+ end
8
10
  end
9
11
  end
10
12
  end
@@ -1,9 +1,11 @@
1
1
  module Fog
2
- module Storage
3
- class AzureRM
4
- module Kind
5
- Storage = 'Storage'.freeze
6
- BlobStorage = 'BlobStorage'.freeze
2
+ module ARM
3
+ module Compute
4
+ module Models
5
+ module Kind
6
+ Storage = 'Storage'.freeze
7
+ BlobStorage = 'BlobStorage'.freeze
8
+ end
7
9
  end
8
10
  end
9
11
  end
@@ -1,12 +1,14 @@
1
1
  module Fog
2
- module Storage
3
- class AzureRM
4
- module SkuName
5
- StandardLRS = 'Standard_LRS'.freeze
6
- StandardGRS = 'Standard_GRS'.freeze
7
- StandardRAGRS = 'Standard_RAGRS'.freeze
8
- StandardZRS = 'Standard_ZRS'.freeze
9
- PremiumLRS = 'Premium_LRS'.freeze
2
+ module ARM
3
+ module Compute
4
+ module Models
5
+ module SkuName
6
+ StandardLRS = 'Standard_LRS'.freeze
7
+ StandardGRS = 'Standard_GRS'.freeze
8
+ StandardRAGRS = 'Standard_RAGRS'.freeze
9
+ StandardZRS = 'Standard_ZRS'.freeze
10
+ PremiumLRS = 'Premium_LRS'.freeze
11
+ end
10
12
  end
11
13
  end
12
14
  end
@@ -1,9 +1,11 @@
1
1
  module Fog
2
- module Storage
3
- class AzureRM
4
- module SkuTier
5
- Standard = 'Standard'.freeze
6
- Premium = 'Premium'.freeze
2
+ module ARM
3
+ module Compute
4
+ module Models
5
+ module SkuTier
6
+ Standard = 'Standard'.freeze
7
+ Premium = 'Premium'.freeze
8
+ end
7
9
  end
8
10
  end
9
11
  end
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module AzureRM
3
- VERSION = '0.2.3'.freeze
3
+ VERSION = '0.2.4'.freeze
4
4
  end
5
5
  end
@@ -64,14 +64,14 @@ begin
64
64
  name: 'mypubip',
65
65
  resource_group: 'TestRG-GC',
66
66
  location: LOCATION,
67
- public_ip_allocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic
67
+ public_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic
68
68
  )
69
69
 
70
70
  network.public_ips.create(
71
71
  name: 'mypubip2',
72
72
  resource_group: 'TestRG-GC',
73
73
  location: LOCATION,
74
- public_ip_allocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic
74
+ public_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic
75
75
  )
76
76
 
77
77
  network.local_network_gateways.create(
@@ -68,7 +68,7 @@ begin
68
68
  name: public_ip_name,
69
69
  resource_group: resource_group_name,
70
70
  location: LOCATION,
71
- public_ip_allocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic
71
+ public_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic
72
72
  )
73
73
 
74
74
  ########################################################################################################################
@@ -98,7 +98,7 @@ begin
98
98
  frontend_ip_configurations: [
99
99
  {
100
100
  name: 'frontendIpConfig',
101
- private_ip_allocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic,
101
+ private_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic,
102
102
  public_ip_address_id: "/subscriptions/#{azure_credentials['subscription_id']}/resourcegroups/#{resource_group_name}/providers/Microsoft.Network/publicIPAddresses/#{public_ip_name}",
103
103
  private_ip_address: '10.0.1.5'
104
104
  }
@@ -51,7 +51,7 @@ begin
51
51
  name: 'mypubip',
52
52
  resource_group: 'TestRG-LB',
53
53
  location: LOCATION,
54
- public_ip_allocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic
54
+ public_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic
55
55
  )
56
56
 
57
57
  ########################################################################################################################
@@ -73,7 +73,7 @@ begin
73
73
  [
74
74
  {
75
75
  name: 'fic',
76
- private_ipallocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic,
76
+ private_ipallocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic,
77
77
  public_ipaddress_id: pip.id
78
78
  }
79
79
  ],
@@ -59,7 +59,7 @@ begin
59
59
  [
60
60
  {
61
61
  name: 'LB-Frontend',
62
- private_ipallocation_method: Fog::Network::AzureRM::IPAllocationMethod::Static,
62
+ private_ipallocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Static,
63
63
  private_ipaddress: '10.1.2.5',
64
64
  subnet_id: subnet.id
65
65
  }
@@ -49,14 +49,14 @@ begin
49
49
  location: LOCATION,
50
50
  security_rules: [{
51
51
  name: 'testRule',
52
- protocol: Fog::Network::AzureRM::SecurityRuleProtocol::Tcp,
52
+ protocol: Fog::ARM::Network::Models::SecurityRuleProtocol::Tcp,
53
53
  source_port_range: '22',
54
54
  destination_port_range: '22',
55
55
  source_address_prefix: '0.0.0.0/0',
56
56
  destination_address_prefix: '0.0.0.0/0',
57
- access: Fog::Network::AzureRM::SecurityRuleAccess::Allow,
57
+ access: Fog::ARM::Network::Models::SecurityRuleAccess::Allow,
58
58
  priority: '100',
59
- direction: Fog::Network::AzureRM::SecurityRuleDirection::Inbound
59
+ direction: Fog::ARM::Network::Models::SecurityRuleDirection::Inbound
60
60
  }]
61
61
  )
62
62
  puts "Created network security group: #{network_security_group.name}"
@@ -72,14 +72,14 @@ begin
72
72
  [
73
73
  {
74
74
  name: 'testRule',
75
- protocol: Fog::Network::AzureRM::SecurityRuleProtocol::Tcp,
75
+ protocol: Fog::ARM::Network::Models::SecurityRuleProtocol::Tcp,
76
76
  source_port_range: '*',
77
77
  destination_port_range: '22',
78
78
  source_address_prefix: '0.0.0.0/0',
79
79
  destination_address_prefix: '0.0.0.0/0',
80
- access: Fog::Network::AzureRM::SecurityRuleAccess::Allow,
80
+ access: Fog::ARM::Network::Models::SecurityRuleAccess::Allow,
81
81
  priority: '100',
82
- direction: Fog::Network::AzureRM::SecurityRuleDirection::Inbound
82
+ direction: Fog::ARM::Network::Models::SecurityRuleDirection::Inbound
83
83
  }
84
84
  ]
85
85
  )
@@ -103,14 +103,14 @@ begin
103
103
  [
104
104
  {
105
105
  name: 'testRule2',
106
- protocol: Fog::Network::AzureRM::SecurityRuleProtocol::Tcp,
106
+ protocol: Fog::ARM::Network::Models::SecurityRuleProtocol::Tcp,
107
107
  source_port_range: '22',
108
108
  destination_port_range: '22',
109
109
  source_address_prefix: '0.0.0.0/0',
110
110
  destination_address_prefix: '0.0.0.0/0',
111
- access: Fog::Network::AzureRM::SecurityRuleAccess::Allow,
111
+ access: Fog::ARM::Network::Models::SecurityRuleAccess::Allow,
112
112
  priority: '102',
113
- direction: Fog::Network::AzureRM::SecurityRuleDirection::Inbound
113
+ direction: Fog::ARM::Network::Models::SecurityRuleDirection::Inbound
114
114
  }
115
115
  ]
116
116
  )
@@ -56,15 +56,15 @@ begin
56
56
  network_security_rule = network.network_security_rules.create(
57
57
  name: 'testRule',
58
58
  resource_group: 'TestRG-NSR',
59
- protocol: Fog::Network::AzureRM::SecurityRuleProtocol::Tcp,
59
+ protocol: Fog::ARM::Network::Models::SecurityRuleProtocol::Tcp,
60
60
  network_security_group_name: 'testGroup',
61
61
  source_port_range: '22',
62
62
  destination_port_range: '22',
63
63
  source_address_prefix: '0.0.0.0/0',
64
64
  destination_address_prefix: '0.0.0.0/0',
65
- access: Fog::Network::AzureRM::SecurityRuleAccess::Allow,
65
+ access: Fog::ARM::Network::Models::SecurityRuleAccess::Allow,
66
66
  priority: '100',
67
- direction: Fog::Network::AzureRM::SecurityRuleDirection::Inbound
67
+ direction: Fog::ARM::Network::Models::SecurityRuleDirection::Inbound
68
68
  )
69
69
  puts "Created network security rule: #{network_security_rule.name}"
70
70
 
@@ -47,7 +47,7 @@ begin
47
47
  name: 'mypubip',
48
48
  resource_group: 'TestRG-PB',
49
49
  location: LOCATION,
50
- public_ip_allocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic
50
+ public_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic
51
51
  )
52
52
  puts "Created public ip: #{public_ip.name}"
53
53
 
@@ -58,7 +58,7 @@ begin
58
58
  pubip = network.public_ips.get('TestRG-PB', 'mypubip')
59
59
  puts "Get public ip: #{pubip.name}"
60
60
  pubip.update(
61
- public_ip_allocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic,
61
+ public_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic,
62
62
  idle_timeout_in_minutes: '10',
63
63
  domain_name_label: 'newdomainlabel'
64
64
  )
@@ -36,7 +36,7 @@ begin
36
36
  name: 'mypubip',
37
37
  resource_group: 'TestRG-RT',
38
38
  location: LOCATION,
39
- public_ip_allocation_method: Fog::Network::AzureRM::IPAllocationMethod::Static
39
+ public_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Static
40
40
  ).id
41
41
 
42
42
  ########################################################################################################################
@@ -76,7 +76,7 @@ begin
76
76
  location: LOCATION,
77
77
  subnet_id: "/subscriptions/#{azure_credentials['subscription_id']}/resourceGroups/TestRG-VM/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/mysubnet",
78
78
  ip_configuration_name: 'testIpConfiguration',
79
- private_ip_allocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic
79
+ private_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic
80
80
  )
81
81
 
82
82
  ########################################################################################################################
@@ -106,7 +106,7 @@ begin
106
106
  version: 'latest',
107
107
  platform: 'linux',
108
108
  custom_data: 'echo customData',
109
- os_disk_caching: Fog::Compute::AzureRM::CachingTypes::None
109
+ os_disk_caching: Fog::ARM::Compute::Models::CachingTypes::None
110
110
  )
111
111
  puts "Created virtual machine: #{virtual_machine.name}"
112
112
 
@@ -76,7 +76,7 @@ begin
76
76
  location: LOCATION,
77
77
  subnet_id: "/subscriptions/#{azure_credentials['subscription_id']}/resourceGroups/TestRG-CustomVM/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/mysubnet",
78
78
  ip_configuration_name: 'testIpConfiguration',
79
- private_ip_allocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic
79
+ private_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic
80
80
  )
81
81
 
82
82
  ########################################################################################################################
@@ -70,7 +70,7 @@ begin
70
70
  name: grs_storage_account,
71
71
  location: LOCATION,
72
72
  resource_group: 'TestRG-SA',
73
- sku_name: Fog::Storage::AzureRM::SkuTier::Standard,
73
+ sku_name: Fog::ARM::Storage::Models::SkuTier::Standard,
74
74
  replication: 'GRS',
75
75
  encryption: true
76
76
  )
@@ -86,7 +86,7 @@ begin
86
86
  name: premium_storage_acc,
87
87
  location: LOCATION,
88
88
  resource_group: 'TestRG-SA',
89
- sku_name: Fog::Storage::AzureRM::SkuTier::Premium,
89
+ sku_name: Fog::ARM::Storage::Models::SkuTier::Premium,
90
90
  replication: 'LRS'
91
91
  )
92
92
  puts "Created storage account for premium lrs replication: #{storage_account.name}"
@@ -75,7 +75,7 @@ begin
75
75
  location: LOCATION,
76
76
  subnet_id: "/subscriptions/#{azure_credentials['subscription_id']}/resourceGroups/TestRG-VME/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/mysubnet",
77
77
  ip_configuration_name: 'testIpConfiguration',
78
- private_ip_allocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic
78
+ private_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic
79
79
  )
80
80
 
81
81
  compute.servers.create(
@@ -50,7 +50,7 @@ begin
50
50
  name: 'mypubip',
51
51
  resource_group: 'TestRG-VNG',
52
52
  location: LOCATION,
53
- public_ip_allocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic
53
+ public_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic
54
54
  )
55
55
 
56
56
  ########################################################################################################################
@@ -50,7 +50,7 @@ begin
50
50
  name: 'mypubip',
51
51
  resource_group: 'TestRG-GCE',
52
52
  location: LOCATION,
53
- public_ip_allocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic
53
+ public_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic
54
54
  )
55
55
 
56
56
  network.virtual_network_gateways.create(
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-azure-rm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaffan Chaudhry