azure_mgmt_network 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_network/application_gateways.rb +45 -45
  3. data/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +13 -13
  4. data/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb +9 -9
  5. data/lib/generated/azure_mgmt_network/express_route_circuits.rb +10 -10
  6. data/lib/generated/azure_mgmt_network/express_route_service_providers.rb +1 -1
  7. data/lib/generated/azure_mgmt_network/load_balancers.rb +25 -25
  8. data/lib/generated/azure_mgmt_network/local_network_gateways.rb +5 -5
  9. data/lib/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +1 -1
  10. data/lib/generated/azure_mgmt_network/models/azure_async_operation_result.rb +1 -1
  11. data/lib/generated/azure_mgmt_network/models/backend_address_pool.rb +1 -1
  12. data/lib/generated/azure_mgmt_network/models/connection_shared_key.rb +1 -1
  13. data/lib/generated/azure_mgmt_network/models/connection_shared_key_result.rb +1 -1
  14. data/lib/generated/azure_mgmt_network/models/dns_name_availability_result.rb +1 -1
  15. data/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +1 -1
  16. data/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb +1 -1
  17. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +1 -1
  18. data/lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb +10 -10
  19. data/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb +9 -9
  20. data/lib/generated/azure_mgmt_network/models/load_balancer.rb +2 -2
  21. data/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb +3 -3
  22. data/lib/generated/azure_mgmt_network/models/network_security_group_list_result.rb +1 -1
  23. data/lib/generated/azure_mgmt_network/models/outbound_nat_rule.rb +1 -1
  24. data/lib/generated/azure_mgmt_network/models/probe.rb +2 -2
  25. data/lib/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +1 -1
  26. data/lib/generated/azure_mgmt_network/models/route_list_result.rb +1 -1
  27. data/lib/generated/azure_mgmt_network/models/route_table_list_result.rb +1 -1
  28. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway.rb +10 -0
  29. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +4 -4
  30. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +1 -0
  31. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +1 -0
  32. data/lib/generated/azure_mgmt_network/models/virtual_network_list_result.rb +1 -1
  33. data/lib/generated/azure_mgmt_network/models/virtual_network_peering.rb +1 -1
  34. data/lib/generated/azure_mgmt_network/network_interfaces.rb +7 -7
  35. data/lib/generated/azure_mgmt_network/network_security_groups.rb +9 -9
  36. data/lib/generated/azure_mgmt_network/public_ipaddresses.rb +4 -4
  37. data/lib/generated/azure_mgmt_network/route_tables.rb +9 -9
  38. data/lib/generated/azure_mgmt_network/routes.rb +9 -9
  39. data/lib/generated/azure_mgmt_network/security_rules.rb +4 -4
  40. data/lib/generated/azure_mgmt_network/subnets.rb +8 -8
  41. data/lib/generated/azure_mgmt_network/usages.rb +1 -1
  42. data/lib/generated/azure_mgmt_network/version.rb +1 -1
  43. data/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +15 -15
  44. data/lib/generated/azure_mgmt_network/virtual_network_gateways.rb +5 -5
  45. data/lib/generated/azure_mgmt_network/virtual_network_peerings.rb +4 -4
  46. data/lib/generated/azure_mgmt_network/virtual_networks.rb +5 -5
  47. metadata +5 -9
  48. data/.rspec +0 -3
  49. data/README.md +0 -102
  50. data/Rakefile +0 -5
  51. data/azure_mgmt_network.gemspec +0 -34
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_network
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-11 00:00:00.000000000 Z
11
+ date: 2016-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,25 +72,21 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.4.0
75
+ version: 0.5.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.4.0
82
+ version: 0.5.0
83
83
  description: Microsoft Azure Network Management Client Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []
86
86
  extensions: []
87
87
  extra_rdoc_files: []
88
88
  files:
89
- - ".rspec"
90
89
  - LICENSE.txt
91
- - README.md
92
- - Rakefile
93
- - azure_mgmt_network.gemspec
94
90
  - lib/azure_mgmt_network.rb
95
91
  - lib/generated/azure_mgmt_network.rb
96
92
  - lib/generated/azure_mgmt_network/application_gateways.rb
@@ -269,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
269
265
  version: '0'
270
266
  requirements: []
271
267
  rubyforge_project:
272
- rubygems_version: 2.4.6
268
+ rubygems_version: 2.5.1
273
269
  signing_key:
274
270
  specification_version: 4
275
271
  summary: Official Ruby client library to consume Microsoft Azure Network Management
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --require spec_helper
2
- --color
3
- --format documentation
data/README.md DELETED
@@ -1,102 +0,0 @@
1
- # Intro
2
-
3
- This project provides a Ruby gem for easy access to the Azure ARM Network API. With this gem you can create/update/list/delete virtual networks, subnets, load balancers and network interfaces.
4
-
5
- # Supported Ruby Versions
6
-
7
- * Ruby 2+
8
-
9
- Note: x64 Ruby for Windows is known to have some compatibility issues.
10
-
11
- # Getting started
12
-
13
- ## Setting up the service principal
14
-
15
- First of all to start interacting with the ARM network you will need to setup a service principal. Service principal is an Azure application which allows you to authenticate to Azure and access Azure services. The detailed steps of how to setup a service principal can be found in this article: http://aka.ms/cli-service-principal. In the result of setting up service principal you will get tenant id, client id and client secret data.
16
-
17
- ## Installation
18
-
19
- install the appropriate gem:
20
-
21
- ```
22
- gem install azure_mgmt_network
23
- ```
24
-
25
- and reference it in your code:
26
-
27
- ```Ruby
28
- require 'azure_mgmt_network'
29
- ```
30
-
31
- After that you should be ready to start using SDK!
32
-
33
- ## Authentication
34
-
35
- ```Ruby
36
- # Create authentication objects
37
- token_provider = MsRestAzure::ApplicationTokenProvider.new(tenant_id, client_id, secret)
38
- credentials = MsRest::TokenCredentials.new(token_provider)
39
- ```
40
-
41
- To get tenant_id, client_id and secret for your Azure application visit Azure portal or copy them from the powershell script from the article mentioned above.
42
-
43
- ## Creating new virtual network
44
-
45
- ```Ruby
46
- # Include SDK modules to ease access to network classes.
47
- include Azure::ARM::Network
48
- include Azure::ARM::Network::Models
49
-
50
- # Create a client - a point of access to the API and set the subscription id
51
- client = NetworkManagementClient.new(credentials)
52
- client.subscription_id = subscription_id
53
-
54
- # Create a model for new virtual network
55
- params = VirtualNetwork.new
56
-
57
- address_space = AddressSpace.new
58
- address_space.address_prefixes = ['10.0.0.0/16']
59
- params.address_space = address_space
60
-
61
- dhcp_options = DhcpOptions.new
62
- dhcp_options.dns_servers = %w(10.1.1.1 10.1.2.4)
63
- params.dhcp_options = dhcp_options
64
-
65
- sub = Subnet.new
66
- sub.name = 'new_subnet'
67
- sub.address_prefix = '10.0.2.0/24'
68
-
69
- params.subnets = [sub]
70
-
71
- params.location = 'westus'
72
- params.properties = props
73
-
74
- promise = client.virtual_networks.create_or_update_async('existing_resource_group', 'new_vn', params)
75
- ```
76
-
77
- The SDK method returns a promise which you can utilize depending on your needs. E.g. if you need to get result immediately via sync blocking call - do the following:
78
-
79
- ```Ruby
80
- result = promise.value!
81
- ```
82
-
83
- If you need to follow async flow - provide a block which will be executed in off main thread:
84
-
85
- ```Ruby
86
- promise = promise.then do |result|
87
- # Handle the result
88
- end
89
- ```
90
-
91
- In both cases you're returned an instance of MsRestAzure::AzureOperationResponse which contains HTTP requests/response objects and response body. Response body is a deserialized object representing the received information. In case of code above - newly created virtual network. To get data from it:
92
-
93
- ```Ruby
94
- virtual_network = result.body
95
-
96
- p virtual_network.name # name of the new vn
97
- p virtual_network.id # id of the new vn
98
- ```
99
-
100
- Congrats, you've create new virtual network. We encourage you to try more stuff and let us know your feedback!
101
- For advanced SDK usage please reference to the spec files.
102
-
data/Rakefile DELETED
@@ -1,5 +0,0 @@
1
- # encoding: utf-8
2
- # Copyright (c) Microsoft Corporation. All rights reserved.
3
- # Licensed under the MIT License. See License.txt in the project root for license information.
4
-
5
- require "bundler/gem_tasks"
@@ -1,34 +0,0 @@
1
- # encoding: utf-8
2
- # Copyright (c) Microsoft Corporation. All rights reserved.
3
- # Licensed under the MIT License. See License.txt in the project root for license information.
4
-
5
- lib = File.expand_path('../lib', __FILE__)
6
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
7
-
8
- require 'generated/azure_mgmt_network/module_definition'
9
- require 'generated/azure_mgmt_network/version'
10
-
11
- Gem::Specification.new do |spec|
12
- spec.name = 'azure_mgmt_network'
13
- spec.version = Azure::ARM::Network::VERSION
14
- spec.authors = 'Microsoft Corporation'
15
- spec.email = 'azrubyteam@microsoft.com'
16
- spec.description = 'Microsoft Azure Network Management Client Library for Ruby'
17
- spec.summary = 'Official Ruby client library to consume Microsoft Azure Network Management services.'
18
- spec.homepage = 'https://aka.ms/azure-sdk-for-ruby'
19
- spec.license = 'MIT'
20
-
21
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
- spec.bindir = 'bin'
23
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
- spec.require_paths = ['lib']
25
-
26
- spec.required_ruby_version = '>= 1.9.3'
27
-
28
- spec.add_development_dependency 'bundler', '~> 1.9'
29
- spec.add_development_dependency 'rake', '~> 10'
30
- spec.add_development_dependency 'rspec', '~> 3'
31
- spec.add_development_dependency 'dotenv', '~> 2'
32
-
33
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.4.0'
34
- end