fog-storm_on_demand 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +23 -0
- data/.rubocop.yml +20 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +17 -0
- data/CONTRIBUTING.md +18 -0
- data/CONTRIBUTORS.md +15 -0
- data/Gemfile +4 -0
- data/LICENSE.md +20 -0
- data/README.md +38 -0
- data/Rakefile +11 -0
- data/fog-storm_on_demand.gemspec +34 -0
- data/gemfiles/Gemfile.1.9.2- +8 -0
- data/gemfiles/Gemfile.1.9.3+ +7 -0
- data/lib/fog/account/storm_on_demand.rb +51 -0
- data/lib/fog/account/storm_on_demand/models/token.rb +14 -0
- data/lib/fog/account/storm_on_demand/models/tokens.rb +14 -0
- data/lib/fog/account/storm_on_demand/requests/create_token.rb +14 -0
- data/lib/fog/account/storm_on_demand/requests/expire_token.rb +14 -0
- data/lib/fog/billing/storm_on_demand.rb +57 -0
- data/lib/fog/billing/storm_on_demand/models/invoice.rb +19 -0
- data/lib/fog/billing/storm_on_demand/models/invoices.rb +24 -0
- data/lib/fog/billing/storm_on_demand/models/payment.rb +8 -0
- data/lib/fog/billing/storm_on_demand/models/payments.rb +14 -0
- data/lib/fog/billing/storm_on_demand/requests/get_invoice.rb +14 -0
- data/lib/fog/billing/storm_on_demand/requests/list_invoices.rb +14 -0
- data/lib/fog/billing/storm_on_demand/requests/make_payment.rb +14 -0
- data/lib/fog/billing/storm_on_demand/requests/next_invoice.rb +14 -0
- data/lib/fog/bin/storm_on_demand.rb +29 -0
- data/lib/fog/compute/storm_on_demand.rb +115 -0
- data/lib/fog/compute/storm_on_demand/models/config.rb +31 -0
- data/lib/fog/compute/storm_on_demand/models/configs.rb +19 -0
- data/lib/fog/compute/storm_on_demand/models/image.rb +35 -0
- data/lib/fog/compute/storm_on_demand/models/images.rb +24 -0
- data/lib/fog/compute/storm_on_demand/models/notification.rb +25 -0
- data/lib/fog/compute/storm_on_demand/models/notifications.rb +24 -0
- data/lib/fog/compute/storm_on_demand/models/product.rb +31 -0
- data/lib/fog/compute/storm_on_demand/models/products.rb +22 -0
- data/lib/fog/compute/storm_on_demand/models/server.rb +87 -0
- data/lib/fog/compute/storm_on_demand/models/servers.rb +24 -0
- data/lib/fog/compute/storm_on_demand/models/template.rb +20 -0
- data/lib/fog/compute/storm_on_demand/models/templates.rb +19 -0
- data/lib/fog/compute/storm_on_demand/requests/clone_server.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/create_image.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/create_server.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/current_notifications.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/delete_image.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/delete_server.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/get_config_details.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/get_image_details.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/get_notification.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/get_product.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/get_product_code.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/get_product_price.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/get_product_starting_price.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/get_server.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/get_template_details.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/list_configs.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/list_images.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/list_notifications.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/list_products.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/list_servers.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/list_templates.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/reboot_server.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/resize_server.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/resolve_notification.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/restore_image.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/restore_template.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/server_history.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/server_status.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/shutdown_server.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/start_server.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/update_image.rb +14 -0
- data/lib/fog/compute/storm_on_demand/requests/update_server.rb +14 -0
- data/lib/fog/dns/storm_on_demand.rb +82 -0
- data/lib/fog/dns/storm_on_demand/models/domain.rb +25 -0
- data/lib/fog/dns/storm_on_demand/models/domains.rb +14 -0
- data/lib/fog/dns/storm_on_demand/models/record.rb +55 -0
- data/lib/fog/dns/storm_on_demand/models/records.rb +24 -0
- data/lib/fog/dns/storm_on_demand/models/reverse.rb +8 -0
- data/lib/fog/dns/storm_on_demand/models/reverses.rb +17 -0
- data/lib/fog/dns/storm_on_demand/models/zone.rb +32 -0
- data/lib/fog/dns/storm_on_demand/models/zones.rb +24 -0
- data/lib/fog/dns/storm_on_demand/requests/check_zone_delegation.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/create_record.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/create_record_region.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/create_zone.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/delete_record.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/delete_record_region.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/delete_reverse.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/delete_zone.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/get_record.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/get_zone.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/list_domains.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/list_records.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/list_zones.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/renew_domain.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/update_record.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/update_record_region.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/update_reverse.rb +14 -0
- data/lib/fog/dns/storm_on_demand/requests/update_zone.rb +14 -0
- data/lib/fog/monitoring/storm_on_demand.rb +65 -0
- data/lib/fog/monitoring/storm_on_demand/models/bandwidth.rb +14 -0
- data/lib/fog/monitoring/storm_on_demand/models/bandwidths.rb +18 -0
- data/lib/fog/monitoring/storm_on_demand/models/load.rb +14 -0
- data/lib/fog/monitoring/storm_on_demand/models/loads.rb +18 -0
- data/lib/fog/monitoring/storm_on_demand/models/monitor_service.rb +13 -0
- data/lib/fog/monitoring/storm_on_demand/models/monitor_services.rb +27 -0
- data/lib/fog/monitoring/storm_on_demand/requests/get_bandwidth_graph.rb +14 -0
- data/lib/fog/monitoring/storm_on_demand/requests/get_bandwidth_stats.rb +14 -0
- data/lib/fog/monitoring/storm_on_demand/requests/get_load_graph.rb +14 -0
- data/lib/fog/monitoring/storm_on_demand/requests/get_load_stats.rb +14 -0
- data/lib/fog/monitoring/storm_on_demand/requests/get_service.rb +14 -0
- data/lib/fog/monitoring/storm_on_demand/requests/get_service_status.rb +14 -0
- data/lib/fog/monitoring/storm_on_demand/requests/monitoring_ips.rb +14 -0
- data/lib/fog/monitoring/storm_on_demand/requests/update_service.rb +14 -0
- data/lib/fog/network/storm_on_demand.rb +115 -0
- data/lib/fog/network/storm_on_demand/models/balancer.rb +50 -0
- data/lib/fog/network/storm_on_demand/models/balancers.rb +37 -0
- data/lib/fog/network/storm_on_demand/models/firewall.rb +12 -0
- data/lib/fog/network/storm_on_demand/models/firewalls.rb +28 -0
- data/lib/fog/network/storm_on_demand/models/network_ip.rb +15 -0
- data/lib/fog/network/storm_on_demand/models/network_ips.rb +43 -0
- data/lib/fog/network/storm_on_demand/models/pool.rb +24 -0
- data/lib/fog/network/storm_on_demand/models/pools.rb +23 -0
- data/lib/fog/network/storm_on_demand/models/private_ip.rb +9 -0
- data/lib/fog/network/storm_on_demand/models/private_ips.rb +33 -0
- data/lib/fog/network/storm_on_demand/models/ruleset.rb +19 -0
- data/lib/fog/network/storm_on_demand/models/rulesets.rb +24 -0
- data/lib/fog/network/storm_on_demand/models/zone.rb +19 -0
- data/lib/fog/network/storm_on_demand/models/zones.rb +19 -0
- data/lib/fog/network/storm_on_demand/requests/add_balancer_node.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/add_balancer_service.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/add_ip_to_server.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/attach_server_to_private_ip.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/check_balancer_available.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/check_server_attached.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/create_balancer.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/create_pool.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/create_ruleset.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/delete_balancer.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/delete_pool.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/detach_server_from_private_ip.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_assignments.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_balancer_details.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_balancer_possible_nodes.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_balancer_strategies.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_firewall.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_firewall_basic_options.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_firewall_rules.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_ip_details.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_pool.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_private_ip.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_ruleset.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/get_zone.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/list_balancers.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/list_ip_public_accounts.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/list_network_ips.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/list_network_public_ips.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/list_private_ips.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/list_rulesets.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/list_zones.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/remove_balancer_node.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/remove_balancer_service.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/remove_ip_from_server.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/request_new_ips.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/set_default_zone.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/update_balancer.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/update_firewall.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/update_pool.rb +14 -0
- data/lib/fog/network/storm_on_demand/requests/update_ruleset.rb +14 -0
- data/lib/fog/storage/storm_on_demand.rb +62 -0
- data/lib/fog/storage/storm_on_demand/models/cluster.rb +11 -0
- data/lib/fog/storage/storm_on_demand/models/clusters.rb +14 -0
- data/lib/fog/storage/storm_on_demand/models/volume.rb +45 -0
- data/lib/fog/storage/storm_on_demand/models/volumes.rb +24 -0
- data/lib/fog/storage/storm_on_demand/requests/attach_volume_to_server.rb +14 -0
- data/lib/fog/storage/storm_on_demand/requests/create_volume.rb +14 -0
- data/lib/fog/storage/storm_on_demand/requests/delete_volume.rb +14 -0
- data/lib/fog/storage/storm_on_demand/requests/detach_volume_from_server.rb +14 -0
- data/lib/fog/storage/storm_on_demand/requests/get_volume.rb +14 -0
- data/lib/fog/storage/storm_on_demand/requests/list_clusters.rb +14 -0
- data/lib/fog/storage/storm_on_demand/requests/list_volumes.rb +14 -0
- data/lib/fog/storage/storm_on_demand/requests/resize_volume.rb +14 -0
- data/lib/fog/storage/storm_on_demand/requests/update_volume.rb +14 -0
- data/lib/fog/storm_on_demand.rb +57 -0
- data/lib/fog/storm_on_demand/shared.rb +53 -0
- data/lib/fog/storm_on_demand/version.rb +5 -0
- data/lib/fog/support/storm_on_demand.rb +63 -0
- data/lib/fog/support/storm_on_demand/models/alert.rb +10 -0
- data/lib/fog/support/storm_on_demand/models/alerts.rb +14 -0
- data/lib/fog/support/storm_on_demand/models/ticket.rb +64 -0
- data/lib/fog/support/storm_on_demand/models/tickets.rb +27 -0
- data/lib/fog/support/storm_on_demand/requests/add_feedback.rb +14 -0
- data/lib/fog/support/storm_on_demand/requests/add_transaction_feedback.rb +14 -0
- data/lib/fog/support/storm_on_demand/requests/authenticate.rb +14 -0
- data/lib/fog/support/storm_on_demand/requests/close_ticket.rb +14 -0
- data/lib/fog/support/storm_on_demand/requests/create_ticket.rb +14 -0
- data/lib/fog/support/storm_on_demand/requests/get_active_alert.rb +14 -0
- data/lib/fog/support/storm_on_demand/requests/get_ticket_details.rb +14 -0
- data/lib/fog/support/storm_on_demand/requests/list_ticket_types.rb +14 -0
- data/lib/fog/support/storm_on_demand/requests/list_tickets.rb +14 -0
- data/lib/fog/support/storm_on_demand/requests/reopen_ticket.rb +14 -0
- data/lib/fog/support/storm_on_demand/requests/reply_ticket.rb +14 -0
- data/lib/fog/vpn/storm_on_demand.rb +53 -0
- data/lib/fog/vpn/storm_on_demand/models/vpn.rb +22 -0
- data/lib/fog/vpn/storm_on_demand/models/vpns.rb +23 -0
- data/lib/fog/vpn/storm_on_demand/requests/create_vpn.rb +14 -0
- data/lib/fog/vpn/storm_on_demand/requests/get_vpn.rb +14 -0
- data/lib/fog/vpn/storm_on_demand/requests/list_vpn_users.rb +14 -0
- data/lib/fog/vpn/storm_on_demand/requests/update_vpn.rb +14 -0
- data/spec/minitest_helper.rb +31 -0
- metadata +371 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
module Fog
|
2
|
+
module DNS
|
3
|
+
class StormOnDemand
|
4
|
+
class Reverses < Fog::Collection
|
5
|
+
model Fog::DNS::StormOnDemand::Reverse
|
6
|
+
|
7
|
+
def destroy(options)
|
8
|
+
service.delete_reverse(options).body
|
9
|
+
end
|
10
|
+
|
11
|
+
def update(options)
|
12
|
+
service.update_reverse(options).body
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module Fog
|
2
|
+
module DNS
|
3
|
+
class StormOnDemand
|
4
|
+
class Zone < Fog::Model
|
5
|
+
identity :id
|
6
|
+
attribute :active
|
7
|
+
attribute :delegation_checked
|
8
|
+
attribute :delegation_status
|
9
|
+
attribute :master
|
10
|
+
attribute :name
|
11
|
+
attribute :notified_serial
|
12
|
+
attribute :region_support
|
13
|
+
attribute :type
|
14
|
+
|
15
|
+
def delegation
|
16
|
+
requires :identity
|
17
|
+
service.check_zone_delegation(:id => identity).body['delegation']
|
18
|
+
end
|
19
|
+
|
20
|
+
def destroy
|
21
|
+
requires :identity
|
22
|
+
service.delete_zone(:id => identity).body['deleted']
|
23
|
+
end
|
24
|
+
|
25
|
+
def update(options = {})
|
26
|
+
requires :identity
|
27
|
+
service.update_zone({:id => identity}.merge!(options))
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Fog
|
2
|
+
module DNS
|
3
|
+
class StormOnDemand
|
4
|
+
class Zones < Fog::Collection
|
5
|
+
model Fog::DNS::StormOnDemand::Zone
|
6
|
+
|
7
|
+
def create(options)
|
8
|
+
zone = service.create_zone(options).body
|
9
|
+
new(zone)
|
10
|
+
end
|
11
|
+
|
12
|
+
def get(zone_id)
|
13
|
+
zone = service.get_zone(:id => zone_id).body
|
14
|
+
new(zone)
|
15
|
+
end
|
16
|
+
|
17
|
+
def all(options = {})
|
18
|
+
zones = service.list_zones(options).body['items']
|
19
|
+
load(zones)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
module Fog
|
2
|
+
module Monitoring
|
3
|
+
class StormOnDemand < Fog::Service
|
4
|
+
autoload :Bandwidth, 'fog/monitoring/storm_on_demand/models/bandwidth'
|
5
|
+
autoload :Bandwidths, 'fog/monitoring/storm_on_demand/models/bandwidths'
|
6
|
+
autoload :Load, 'fog/monitoring/storm_on_demand/models/load'
|
7
|
+
autoload :Loads, 'fog/monitoring/storm_on_demand/models/loads'
|
8
|
+
autoload :MonitorService, 'fog/monitoring/storm_on_demand/models/monitor_service'
|
9
|
+
autoload :MonitorServices, 'fog/monitoring/storm_on_demand/models/monitor_services'
|
10
|
+
|
11
|
+
requires :storm_on_demand_username, :storm_on_demand_password
|
12
|
+
recognizes :storm_on_demand_auth_url
|
13
|
+
|
14
|
+
model_path 'fog/monitoring/storm_on_demand/models'
|
15
|
+
model :load
|
16
|
+
collection :loads
|
17
|
+
model :bandwidth
|
18
|
+
collection :bandwidths
|
19
|
+
model :monitor_service
|
20
|
+
collection :monitor_services
|
21
|
+
|
22
|
+
request_path 'fog/monitoring/storm_on_demand/requests'
|
23
|
+
request :get_load_graph
|
24
|
+
request :get_load_stats
|
25
|
+
request :get_bandwidth_graph
|
26
|
+
request :get_bandwidth_stats
|
27
|
+
request :get_service
|
28
|
+
request :monitoring_ips
|
29
|
+
request :get_service_status
|
30
|
+
request :update_service
|
31
|
+
|
32
|
+
class Mock
|
33
|
+
def self.data
|
34
|
+
@data ||= Hash.new
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.reset
|
38
|
+
@data = nil
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.reset_data(keys=data.keys)
|
42
|
+
for key in [*keys]
|
43
|
+
data.delete(key)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
def initialize(options = {})
|
48
|
+
@storm_on_demand_username = options[:storm_on_demand_username]
|
49
|
+
end
|
50
|
+
|
51
|
+
def data
|
52
|
+
self.class.data[@storm_on_demand_username]
|
53
|
+
end
|
54
|
+
|
55
|
+
def reset_data
|
56
|
+
self.class.data.delete(@storm_on_demand_username)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
class Real
|
61
|
+
include Fog::StormOnDemand::Shared
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|