fog-maestrodev 1.15.0.20130829165835 → 1.15.0.20130927082724
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.md +1 -0
- data/fog.gemspec +5 -2
- data/lib/fog.rb +1 -0
- data/lib/fog/atmos/models/storage/file.rb +2 -1
- data/lib/fog/aws.rb +4 -1
- data/lib/fog/aws/data_pipeline.rb +3 -0
- data/lib/fog/aws/elasticache.rb +2 -0
- data/lib/fog/aws/models/auto_scaling/group.rb +12 -12
- data/lib/fog/aws/models/compute/subnet.rb +3 -1
- data/lib/fog/aws/models/elasticache/cluster.rb +3 -1
- data/lib/fog/aws/parsers/redshift/cluster.rb +29 -0
- data/lib/fog/aws/parsers/redshift/cluster_parser.rb +144 -0
- data/lib/fog/aws/parsers/redshift/cluster_security_group_parser.rb +50 -0
- data/lib/fog/aws/parsers/redshift/cluster_snapshot.rb +32 -0
- data/lib/fog/aws/parsers/redshift/cluster_snapshot_parser.rb +66 -0
- data/lib/fog/aws/parsers/redshift/cluster_subnet_group_parser.rb +51 -0
- data/lib/fog/aws/parsers/redshift/create_cluster_parameter_group.rb +30 -0
- data/lib/fog/aws/parsers/redshift/create_cluster_security_group.rb +31 -0
- data/lib/fog/aws/parsers/redshift/describe_cluster_parameter_groups.rb +41 -0
- data/lib/fog/aws/parsers/redshift/describe_cluster_parameters.rb +48 -0
- data/lib/fog/aws/parsers/redshift/describe_cluster_security_groups.rb +38 -0
- data/lib/fog/aws/parsers/redshift/describe_cluster_snapshots.rb +38 -0
- data/lib/fog/aws/parsers/redshift/describe_cluster_subnet_groups.rb +58 -0
- data/lib/fog/aws/parsers/redshift/describe_cluster_versions.rb +53 -0
- data/lib/fog/aws/parsers/redshift/describe_clusters.rb +30 -0
- data/lib/fog/aws/parsers/redshift/describe_default_cluster_parameters.rb +49 -0
- data/lib/fog/aws/parsers/redshift/describe_events.rb +44 -0
- data/lib/fog/aws/parsers/redshift/describe_orderable_cluster_options.rb +54 -0
- data/lib/fog/aws/parsers/redshift/describe_reserved_node_offerings.rb +64 -0
- data/lib/fog/aws/parsers/redshift/describe_reserved_nodes.rb +71 -0
- data/lib/fog/aws/parsers/redshift/describe_resize.rb +60 -0
- data/lib/fog/aws/parsers/redshift/purchase_reserved_node_offering.rb +58 -0
- data/lib/fog/aws/parsers/redshift/revoke_cluster_security_group_ingress.rb +31 -0
- data/lib/fog/aws/parsers/redshift/update_cluster_parameter_group_parser.rb +29 -0
- data/lib/fog/aws/parsers/sts/get_session_token.rb +1 -3
- data/lib/fog/aws/redshift.rb +126 -0
- data/lib/fog/aws/requests/compute/run_instances.rb +2 -0
- data/lib/fog/aws/requests/data_pipeline/delete_pipeline.rb +2 -3
- data/lib/fog/aws/requests/data_pipeline/describe_objects.rb +41 -0
- data/lib/fog/aws/requests/data_pipeline/get_pipeline_definition.rb +37 -0
- data/lib/fog/aws/requests/data_pipeline/query_objects.rb +41 -0
- data/lib/fog/aws/requests/elasticache/authorize_cache_security_group_ingress.rb +27 -2
- data/lib/fog/aws/requests/elasticache/create_cache_security_group.rb +23 -2
- data/lib/fog/aws/requests/elasticache/delete_cache_security_group.rb +10 -1
- data/lib/fog/aws/requests/elasticache/describe_cache_security_groups.rb +36 -2
- data/lib/fog/aws/requests/redshift/authorize_cluster_security_group_ingress.rb +56 -0
- data/lib/fog/aws/requests/redshift/authorize_snapshot_access.rb +43 -0
- data/lib/fog/aws/requests/redshift/copy_cluster_snapshot.rb +48 -0
- data/lib/fog/aws/requests/redshift/create_cluster.rb +151 -0
- data/lib/fog/aws/requests/redshift/create_cluster_parameter_group.rb +54 -0
- data/lib/fog/aws/requests/redshift/create_cluster_security_group.rb +42 -0
- data/lib/fog/aws/requests/redshift/create_cluster_snapshot.rb +44 -0
- data/lib/fog/aws/requests/redshift/create_cluster_subnet_group.rb +50 -0
- data/lib/fog/aws/requests/redshift/delete_cluster.rb +51 -0
- data/lib/fog/aws/requests/redshift/delete_cluster_parameter_group.rb +34 -0
- data/lib/fog/aws/requests/redshift/delete_cluster_security_group.rb +33 -0
- data/lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb +44 -0
- data/lib/fog/aws/requests/redshift/delete_cluster_subnet_group.rb +38 -0
- data/lib/fog/aws/requests/redshift/describe_cluster_parameter_groups.rb +48 -0
- data/lib/fog/aws/requests/redshift/describe_cluster_parameters.rb +55 -0
- data/lib/fog/aws/requests/redshift/describe_cluster_security_groups.rb +50 -0
- data/lib/fog/aws/requests/redshift/describe_cluster_snapshots.rb +73 -0
- data/lib/fog/aws/requests/redshift/describe_cluster_subnet_groups.rb +47 -0
- data/lib/fog/aws/requests/redshift/describe_cluster_versions.rb +54 -0
- data/lib/fog/aws/requests/redshift/describe_clusters.rb +49 -0
- data/lib/fog/aws/requests/redshift/describe_default_cluster_parameters.rb +49 -0
- data/lib/fog/aws/requests/redshift/describe_events.rb +80 -0
- data/lib/fog/aws/requests/redshift/describe_orderable_cluster_options.rb +55 -0
- data/lib/fog/aws/requests/redshift/describe_reserved_node_offerings.rb +48 -0
- data/lib/fog/aws/requests/redshift/describe_reserved_nodes.rb +48 -0
- data/lib/fog/aws/requests/redshift/describe_resize.rb +39 -0
- data/lib/fog/aws/requests/redshift/modify_cluster.rb +111 -0
- data/lib/fog/aws/requests/redshift/modify_cluster_parameter_group.rb +44 -0
- data/lib/fog/aws/requests/redshift/modify_cluster_subnet_group.rb +50 -0
- data/lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb +41 -0
- data/lib/fog/aws/requests/redshift/reboot_cluster.rb +37 -0
- data/lib/fog/aws/requests/redshift/reset_cluster_parameter_group.rb +57 -0
- data/lib/fog/aws/requests/redshift/restore_from_cluster_snapshot.rb +77 -0
- data/lib/fog/aws/requests/redshift/revoke_cluster_security_group_ingress.rb +56 -0
- data/lib/fog/aws/requests/redshift/revoke_snapshot_access.rb +44 -0
- data/lib/fog/aws/requests/sts/get_federation_token.rb +42 -0
- data/lib/fog/bin.rb +1 -0
- data/lib/fog/bin/aws.rb +4 -0
- data/lib/fog/bin/openstack.rb +5 -0
- data/lib/fog/bin/rackspace.rb +4 -0
- data/lib/fog/bin/vcloud_director.rb +30 -0
- data/lib/fog/brightbox/requests/compute/update_server.rb +1 -0
- data/lib/fog/cloudsigma/compute.rb +5 -0
- data/lib/fog/cloudsigma/models/fwpolicies.rb +21 -0
- data/lib/fog/cloudsigma/models/fwpolicy.rb +21 -0
- data/lib/fog/cloudsigma/models/rule.rb +21 -0
- data/lib/fog/cloudsigma/requests/list_fwpolicies.rb +18 -0
- data/lib/fog/compute.rb +7 -4
- data/lib/fog/core.rb +1 -0
- data/lib/fog/core/errors.rb +3 -0
- data/lib/fog/dynect/dns.rb +3 -1
- data/lib/fog/dynect/models/dns/records.rb +32 -20
- data/lib/fog/dynect/requests/dns/get_all_records.rb +56 -0
- data/lib/fog/dynect/requests/dns/get_node_list.rb +1 -1
- data/lib/fog/dynect/requests/dns/put_record.rb +76 -0
- data/lib/fog/google/models/compute/flavors.rb +2 -2
- data/lib/fog/google/requests/compute/get_machine_type.rb +7 -2
- data/lib/fog/joyent/compute.rb +1 -1
- data/lib/fog/linode/models/compute/server.rb +1 -1
- data/lib/fog/local/models/storage/directories.rb +1 -1
- data/lib/fog/openstack.rb +1 -0
- data/lib/fog/openstack/models/compute/images.rb +10 -2
- data/lib/fog/openstack/models/compute/server.rb +2 -0
- data/lib/fog/openstack/models/orchestration/stack.rb +52 -0
- data/lib/fog/openstack/models/orchestration/stacks.rb +21 -0
- data/lib/fog/openstack/orchestration.rb +227 -0
- data/lib/fog/openstack/requests/compute/create_server.rb +36 -25
- data/lib/fog/openstack/requests/compute/list_images_detail.rb +4 -3
- data/lib/fog/openstack/requests/orchestration/create_stack.rb +55 -0
- data/lib/fog/openstack/requests/orchestration/delete_stack.rb +36 -0
- data/lib/fog/openstack/requests/orchestration/list_stacks.rb +48 -0
- data/lib/fog/openstack/requests/orchestration/update_stack.rb +41 -0
- data/lib/fog/openstack/requests/storage/get_object.rb +7 -7
- data/lib/fog/openstack/storage.rb +2 -2
- data/lib/fog/orchestration.rb +25 -0
- data/lib/fog/rackspace.rb +1 -0
- data/lib/fog/rackspace/auto_scale.rb +132 -0
- data/lib/fog/rackspace/block_storage.rb +2 -2
- data/lib/fog/rackspace/cdn.rb +23 -23
- data/lib/fog/rackspace/compute.rb +2 -2
- data/lib/fog/rackspace/compute_v2.rb +2 -2
- data/lib/fog/rackspace/databases.rb +2 -2
- data/lib/fog/rackspace/dns.rb +14 -16
- data/lib/fog/rackspace/examples/compute_v2/create_network.rb +81 -0
- data/lib/fog/rackspace/examples/compute_v2/delete_network.rb +78 -0
- data/lib/fog/rackspace/load_balancers.rb +2 -2
- data/lib/fog/rackspace/mock_data.rb +69 -4
- data/lib/fog/rackspace/models/auto_scale/group.rb +207 -0
- data/lib/fog/rackspace/models/auto_scale/group_config.rb +60 -0
- data/lib/fog/rackspace/models/auto_scale/groups.rb +46 -0
- data/lib/fog/rackspace/models/auto_scale/launch_config.rb +44 -0
- data/lib/fog/rackspace/models/auto_scale/policies.rb +65 -0
- data/lib/fog/rackspace/models/auto_scale/policy.rb +206 -0
- data/lib/fog/rackspace/models/auto_scale/webhook.rb +105 -0
- data/lib/fog/rackspace/models/auto_scale/webhooks.rb +64 -0
- data/lib/fog/rackspace/models/block_storage/volume.rb +2 -1
- data/lib/fog/rackspace/models/monitoring/notification.rb +42 -0
- data/lib/fog/rackspace/models/monitoring/notifications.rb +30 -0
- data/lib/fog/rackspace/monitoring.rb +21 -14
- data/lib/fog/rackspace/requests/auto_scale/create_group.rb +61 -0
- data/lib/fog/rackspace/requests/auto_scale/create_policy.rb +45 -0
- data/lib/fog/rackspace/requests/auto_scale/create_webhook.rb +57 -0
- data/lib/fog/rackspace/requests/auto_scale/delete_group.rb +23 -0
- data/lib/fog/rackspace/requests/auto_scale/delete_policy.rb +31 -0
- data/lib/fog/rackspace/requests/auto_scale/delete_webhook.rb +34 -0
- data/lib/fog/rackspace/requests/auto_scale/execute_anonymous_webhook.rb +22 -0
- data/lib/fog/rackspace/requests/auto_scale/execute_policy.rb +22 -0
- data/lib/fog/rackspace/requests/auto_scale/get_group.rb +29 -0
- data/lib/fog/rackspace/requests/auto_scale/get_group_config.rb +30 -0
- data/lib/fog/rackspace/requests/auto_scale/get_group_state.rb +62 -0
- data/lib/fog/rackspace/requests/auto_scale/get_launch_config.rb +30 -0
- data/lib/fog/rackspace/requests/auto_scale/get_policy.rb +35 -0
- data/lib/fog/rackspace/requests/auto_scale/get_webhook.rb +39 -0
- data/lib/fog/rackspace/requests/auto_scale/list_groups.rb +35 -0
- data/lib/fog/rackspace/requests/auto_scale/list_policies.rb +23 -0
- data/lib/fog/rackspace/requests/auto_scale/list_webhooks.rb +33 -0
- data/lib/fog/rackspace/requests/auto_scale/pause_group_state.rb +23 -0
- data/lib/fog/rackspace/requests/auto_scale/resume_group_state.rb +23 -0
- data/lib/fog/rackspace/requests/auto_scale/update_group_config.rb +39 -0
- data/lib/fog/rackspace/requests/auto_scale/update_launch_config.rb +36 -0
- data/lib/fog/rackspace/requests/auto_scale/update_policy.rb +33 -0
- data/lib/fog/rackspace/requests/auto_scale/update_webhook.rb +44 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_server.rb +2 -2
- data/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb +5 -6
- data/lib/fog/rackspace/requests/load_balancers/delete_load_balancer.rb +10 -0
- data/lib/fog/rackspace/requests/load_balancers/get_load_balancer.rb +30 -0
- data/lib/fog/rackspace/requests/monitoring/create_agent_token.rb +31 -0
- data/lib/fog/rackspace/requests/monitoring/create_alarm.rb +32 -0
- data/lib/fog/rackspace/requests/monitoring/create_check.rb +31 -0
- data/lib/fog/rackspace/requests/monitoring/create_entity.rb +32 -0
- data/lib/fog/rackspace/requests/monitoring/create_notification.rb +18 -0
- data/lib/fog/rackspace/requests/monitoring/delete_agent_token.rb +32 -0
- data/lib/fog/rackspace/requests/monitoring/delete_alarm.rb +27 -0
- data/lib/fog/rackspace/requests/monitoring/delete_check.rb +26 -0
- data/lib/fog/rackspace/requests/monitoring/delete_entity.rb +27 -0
- data/lib/fog/rackspace/requests/monitoring/delete_notification.rb +16 -0
- data/lib/fog/rackspace/requests/monitoring/get_agent_token.rb +33 -0
- data/lib/fog/rackspace/requests/monitoring/get_alarm.rb +38 -0
- data/lib/fog/rackspace/requests/monitoring/get_check.rb +41 -0
- data/lib/fog/rackspace/requests/monitoring/get_entity.rb +30 -21
- data/lib/fog/rackspace/requests/monitoring/get_notification.rb +50 -0
- data/lib/fog/rackspace/requests/monitoring/list_agent_tokens.rb +39 -0
- data/lib/fog/rackspace/requests/monitoring/list_alarms.rb +50 -0
- data/lib/fog/rackspace/requests/monitoring/list_check_types.rb +72 -0
- data/lib/fog/rackspace/requests/monitoring/list_checks.rb +54 -0
- data/lib/fog/rackspace/requests/monitoring/list_data_points.rb +37 -0
- data/lib/fog/rackspace/requests/monitoring/list_entities.rb +53 -0
- data/lib/fog/rackspace/requests/monitoring/list_metrics.rb +65 -0
- data/lib/fog/rackspace/requests/monitoring/list_notification_plans.rb +55 -0
- data/lib/fog/rackspace/requests/monitoring/list_notifications.rb +67 -0
- data/lib/fog/rackspace/requests/monitoring/list_overview.rb +97 -1
- data/lib/fog/rackspace/requests/monitoring/update_alarm.rb +33 -2
- data/lib/fog/rackspace/requests/monitoring/update_check.rb +32 -2
- data/lib/fog/rackspace/requests/monitoring/update_entity.rb +33 -2
- data/lib/fog/rackspace/requests/monitoring/update_notification.rb +17 -0
- data/lib/fog/rackspace/requests/storage/get_object.rb +7 -9
- data/lib/fog/rackspace/service.rb +16 -8
- data/lib/fog/rackspace/storage.rb +2 -2
- data/lib/fog/vcloud_director.rb +11 -0
- data/lib/fog/vcloud_director/README.md +967 -0
- data/lib/fog/vcloud_director/compute.rb +398 -0
- data/lib/fog/vcloud_director/generators/compute/customization.rb +100 -0
- data/lib/fog/vcloud_director/generators/compute/disks.rb +175 -0
- data/lib/fog/vcloud_director/generators/compute/metadata.rb +105 -0
- data/lib/fog/vcloud_director/generators/compute/vm_network.rb +122 -0
- data/lib/fog/vcloud_director/models/compute/catalog.rb +25 -0
- data/lib/fog/vcloud_director/models/compute/catalog_item.rb +25 -0
- data/lib/fog/vcloud_director/models/compute/catalog_items.rb +32 -0
- data/lib/fog/vcloud_director/models/compute/catalogs.rb +32 -0
- data/lib/fog/vcloud_director/models/compute/disk.rb +51 -0
- data/lib/fog/vcloud_director/models/compute/disks.rb +40 -0
- data/lib/fog/vcloud_director/models/compute/network.rb +26 -0
- data/lib/fog/vcloud_director/models/compute/networks.rb +31 -0
- data/lib/fog/vcloud_director/models/compute/organization.rb +41 -0
- data/lib/fog/vcloud_director/models/compute/organizations.rb +30 -0
- data/lib/fog/vcloud_director/models/compute/tag.rb +36 -0
- data/lib/fog/vcloud_director/models/compute/tags.rb +51 -0
- data/lib/fog/vcloud_director/models/compute/task.rb +58 -0
- data/lib/fog/vcloud_director/models/compute/tasks.rb +31 -0
- data/lib/fog/vcloud_director/models/compute/vapp.rb +56 -0
- data/lib/fog/vcloud_director/models/compute/vapps.rb +34 -0
- data/lib/fog/vcloud_director/models/compute/vdc.rb +33 -0
- data/lib/fog/vcloud_director/models/compute/vdcs.rb +32 -0
- data/lib/fog/vcloud_director/models/compute/vm.rb +99 -0
- data/lib/fog/vcloud_director/models/compute/vm_customization.rb +40 -0
- data/lib/fog/vcloud_director/models/compute/vm_customizations.rb +16 -0
- data/lib/fog/vcloud_director/models/compute/vm_network.rb +30 -0
- data/lib/fog/vcloud_director/models/compute/vm_networks.rb +21 -0
- data/lib/fog/vcloud_director/models/compute/vms.rb +41 -0
- data/lib/fog/vcloud_director/parsers/compute/disks.rb +57 -0
- data/lib/fog/vcloud_director/parsers/compute/metadata.rb +66 -0
- data/lib/fog/vcloud_director/parsers/compute/network.rb +108 -0
- data/lib/fog/vcloud_director/parsers/compute/vm.rb +82 -0
- data/lib/fog/vcloud_director/parsers/compute/vm_customization.rb +56 -0
- data/lib/fog/vcloud_director/parsers/compute/vm_network.rb +111 -0
- data/lib/fog/vcloud_director/parsers/compute/vms.rb +96 -0
- data/lib/fog/vcloud_director/parsers/compute/vms_by_metadata.rb +41 -0
- data/lib/fog/vcloud_director/requests/compute/delete_metadata.rb +20 -0
- data/lib/fog/vcloud_director/requests/compute/delete_vapp.rb +20 -0
- data/lib/fog/vcloud_director/requests/compute/get_catalog.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/get_catalog_item.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/get_current_session.rb +75 -0
- data/lib/fog/vcloud_director/requests/compute/get_href.rb +19 -0
- data/lib/fog/vcloud_director/requests/compute/get_metadata.rb +20 -0
- data/lib/fog/vcloud_director/requests/compute/get_network.rb +21 -0
- data/lib/fog/vcloud_director/requests/compute/get_organization.rb +72 -0
- data/lib/fog/vcloud_director/requests/compute/get_organizations.rb +37 -0
- data/lib/fog/vcloud_director/requests/compute/get_request.rb +17 -0
- data/lib/fog/vcloud_director/requests/compute/get_supported_versions.rb +1160 -0
- data/lib/fog/vcloud_director/requests/compute/get_task.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/get_tasks_list.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/get_vapp.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/get_vapp_template.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/get_vdc.rb +154 -0
- data/lib/fog/vcloud_director/requests/compute/get_vm.rb +20 -0
- data/lib/fog/vcloud_director/requests/compute/get_vm_cpu.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/get_vm_customization.rb +20 -0
- data/lib/fog/vcloud_director/requests/compute/get_vm_disks.rb +20 -0
- data/lib/fog/vcloud_director/requests/compute/get_vm_memory.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/get_vm_network.rb +20 -0
- data/lib/fog/vcloud_director/requests/compute/get_vms.rb +20 -0
- data/lib/fog/vcloud_director/requests/compute/get_vms_by_metadata.rb +20 -0
- data/lib/fog/vcloud_director/requests/compute/helper.rb +93 -0
- data/lib/fog/vcloud_director/requests/compute/instantiate_vapp_template.rb +124 -0
- data/lib/fog/vcloud_director/requests/compute/post_task_cancel.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/post_vapp_undeploy.rb +26 -0
- data/lib/fog/vcloud_director/requests/compute/post_vm_metadata.rb +29 -0
- data/lib/fog/vcloud_director/requests/compute/post_vm_poweroff.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/post_vm_poweron.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/put_metadata_value.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/put_vm_cpu.rb +34 -0
- data/lib/fog/vcloud_director/requests/compute/put_vm_customization.rb +24 -0
- data/lib/fog/vcloud_director/requests/compute/put_vm_disks.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/put_vm_memory.rb +34 -0
- data/lib/fog/vcloud_director/requests/compute/put_vm_network.rb +24 -0
- data/tests/aws/models/auto_scaling/groups_test.rb +5 -0
- data/tests/aws/models/compute/subnet_tests.rb +1 -1
- data/tests/aws/models/compute/subnets_tests.rb +1 -1
- data/tests/aws/requests/data_pipeline/helper.rb +38 -8
- data/tests/aws/requests/data_pipeline/pipeline_tests.rb +25 -1
- data/tests/aws/requests/elasticache/security_group_tests.rb +3 -2
- data/tests/aws/requests/redshift/cluster_parameter_group_tests.rb +77 -0
- data/tests/aws/requests/redshift/cluster_security_group_tests.rb +44 -0
- data/tests/aws/requests/redshift/cluster_snapshot_tests.rb +75 -0
- data/tests/aws/requests/redshift/cluster_tests.rb +82 -0
- data/tests/aws/requests/sts/get_federation_token_tests.rb +0 -1
- data/tests/aws/signed_params_tests.rb +12 -0
- data/tests/brightbox/compute/helper.rb +1 -0
- data/tests/brightbox/compute/schema.rb +696 -0
- data/tests/brightbox/requests/compute/account_tests.rb +7 -7
- data/tests/brightbox/requests/compute/api_client_tests.rb +6 -6
- data/tests/brightbox/requests/compute/application_test.rb +6 -6
- data/tests/brightbox/requests/compute/cloud_ip_tests.rb +7 -7
- data/tests/brightbox/requests/compute/firewall_policy_tests.rb +5 -5
- data/tests/brightbox/requests/compute/firewall_rule_tests.rb +4 -4
- data/tests/brightbox/requests/compute/helper.rb +0 -688
- data/tests/brightbox/requests/compute/image_tests.rb +2 -2
- data/tests/brightbox/requests/compute/interface_tests.rb +1 -1
- data/tests/brightbox/requests/compute/load_balancer_tests.rb +9 -9
- data/tests/brightbox/requests/compute/server_group_tests.rb +8 -8
- data/tests/brightbox/requests/compute/server_tests.rb +13 -10
- data/tests/brightbox/requests/compute/server_type_tests.rb +2 -2
- data/tests/brightbox/requests/compute/user_tests.rb +3 -3
- data/tests/brightbox/requests/compute/zone_tests.rb +2 -2
- data/tests/compute/helper.rb +3 -2
- data/tests/dynect/requests/dns/dns_tests.rb +29 -0
- data/tests/helpers/mock_helper.rb +3 -0
- data/tests/openstack/requests/compute/server_tests.rb +30 -0
- data/tests/openstack/requests/orchestration/stack_tests.rb +30 -0
- data/tests/rackspace/auto_scale_tests.rb +84 -0
- data/tests/rackspace/models/auto_scale/group.rb +19 -0
- data/tests/rackspace/models/auto_scale/groups.rb +13 -0
- data/tests/rackspace/models/auto_scale/policies.rb +23 -0
- data/tests/rackspace/models/auto_scale/policy.rb +29 -0
- data/tests/rackspace/models/auto_scale/webhook.rb +35 -0
- data/tests/rackspace/models/auto_scale/webhooks.rb +28 -0
- data/tests/rackspace/models/monitoring/notification_tests.rb +19 -0
- data/tests/rackspace/models/monitoring/notifications_tests.rb +10 -0
- data/tests/rackspace/requests/auto_scale/config_tests.rb +51 -0
- data/tests/rackspace/requests/auto_scale/group_tests.rb +38 -0
- data/tests/rackspace/requests/auto_scale/helper.rb +181 -0
- data/tests/rackspace/requests/auto_scale/policy_tests.rb +61 -0
- data/tests/rackspace/requests/auto_scale/webhook_tests.rb +49 -0
- data/tests/rackspace/requests/compute_v2/address_tests.rb +1 -1
- data/tests/rackspace/requests/monitoring/agent_tests.rb +0 -1
- data/tests/rackspace/requests/monitoring/alarm_tests.rb +3 -3
- data/tests/rackspace/requests/monitoring/check_tests.rb +0 -1
- data/tests/rackspace/requests/monitoring/entity_tests.rb +3 -12
- data/tests/rackspace/requests/monitoring/list_tests.rb +18 -6
- data/tests/rackspace/requests/monitoring/notification_tests.rb +46 -0
- data/tests/vcloud_director/models/compute/catalog_items_tests.rb +42 -0
- data/tests/vcloud_director/models/compute/catalogs_tests.rb +42 -0
- data/tests/vcloud_director/models/compute/helper.rb +67 -0
- data/tests/vcloud_director/models/compute/organizations_tests.rb +22 -0
- data/tests/vcloud_director/models/compute/vapp_life_cycle_tests.rb +98 -0
- data/tests/vcloud_director/models/compute/vapp_tests.rb +42 -0
- data/tests/vcloud_director/models/compute/vdcs_tests.rb +45 -0
- data/tests/vcloud_director/models/compute/vms_tests.rb +89 -0
- data/tests/vcloud_director/models/tools/reduced_vcr_requests.rb +27 -0
- data/tests/vcloud_director/requests/compute/organization_tests.rb +48 -0
- data/tests/vcloud_director/requests/compute/session_tests.rb +29 -0
- data/tests/vcloud_director/requests/compute/vdc_tests.rb +90 -0
- data/tests/vcloud_director/requests/compute/versions_tests.rb +28 -0
- metadata +342 -43
@@ -0,0 +1 @@
|
|
1
|
+
require File.expand_path("schema", File.dirname(__FILE__))
|
@@ -0,0 +1,696 @@
|
|
1
|
+
module Fog
|
2
|
+
module Brightbox
|
3
|
+
module Nullable
|
4
|
+
module Account; end
|
5
|
+
module ApiClient; end
|
6
|
+
module FirewallPolicy; end
|
7
|
+
module Image; end
|
8
|
+
module Interface; end
|
9
|
+
module LoadBalancer; end
|
10
|
+
module Server; end
|
11
|
+
module ServerGroup; end
|
12
|
+
module User; end
|
13
|
+
module Zone; end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
Hash.send :include, Fog::Brightbox::Nullable::Account
|
19
|
+
NilClass.send :include, Fog::Brightbox::Nullable::Account
|
20
|
+
|
21
|
+
Hash.send :include, Fog::Brightbox::Nullable::ApiClient
|
22
|
+
NilClass.send :include, Fog::Brightbox::Nullable::ApiClient
|
23
|
+
|
24
|
+
Hash.send :include, Fog::Brightbox::Nullable::FirewallPolicy
|
25
|
+
NilClass.send :include, Fog::Brightbox::Nullable::FirewallPolicy
|
26
|
+
|
27
|
+
Hash.send :include, Fog::Brightbox::Nullable::Image
|
28
|
+
NilClass.send :include, Fog::Brightbox::Nullable::Image
|
29
|
+
|
30
|
+
Hash.send :include, Fog::Brightbox::Nullable::Interface
|
31
|
+
NilClass.send :include, Fog::Brightbox::Nullable::Interface
|
32
|
+
|
33
|
+
Hash.send :include, Fog::Brightbox::Nullable::LoadBalancer
|
34
|
+
NilClass.send :include, Fog::Brightbox::Nullable::LoadBalancer
|
35
|
+
|
36
|
+
Hash.send :include, Fog::Brightbox::Nullable::Server
|
37
|
+
NilClass.send :include, Fog::Brightbox::Nullable::Server
|
38
|
+
|
39
|
+
Hash.send :include, Fog::Brightbox::Nullable::ServerGroup
|
40
|
+
NilClass.send :include, Fog::Brightbox::Nullable::ServerGroup
|
41
|
+
|
42
|
+
Hash.send :include, Fog::Brightbox::Nullable::User
|
43
|
+
NilClass.send :include, Fog::Brightbox::Nullable::User
|
44
|
+
|
45
|
+
Hash.send :include, Fog::Brightbox::Nullable::Zone
|
46
|
+
NilClass.send :include, Fog::Brightbox::Nullable::Zone
|
47
|
+
|
48
|
+
class Brightbox
|
49
|
+
module Compute
|
50
|
+
module Formats
|
51
|
+
module Struct
|
52
|
+
CIP_PORT_TRANSLATOR = {
|
53
|
+
"protocol" => String,
|
54
|
+
"incoming" => Integer,
|
55
|
+
"outgoing" => Integer
|
56
|
+
}
|
57
|
+
LB_LISTENER = {
|
58
|
+
"in" => Integer,
|
59
|
+
"out" => Integer,
|
60
|
+
"protocol" => String,
|
61
|
+
"timeout" => Integer
|
62
|
+
}
|
63
|
+
LB_HEALTHCHECK = {
|
64
|
+
"type" => String,
|
65
|
+
"request" => String,
|
66
|
+
"port" => Integer,
|
67
|
+
"interval" => Integer,
|
68
|
+
"timeout" => Integer,
|
69
|
+
"threshold_up" => Integer,
|
70
|
+
"threshold_down" => Integer
|
71
|
+
}
|
72
|
+
end
|
73
|
+
|
74
|
+
module Nested
|
75
|
+
ACCOUNT = {
|
76
|
+
"name" => String,
|
77
|
+
"resource_type" => String,
|
78
|
+
"url" => String,
|
79
|
+
"id" => String,
|
80
|
+
"status" => String
|
81
|
+
}
|
82
|
+
|
83
|
+
API_CLIENT = {
|
84
|
+
"id" => String,
|
85
|
+
"resource_type" => String,
|
86
|
+
"url" => String,
|
87
|
+
"name" => String,
|
88
|
+
"description" => String,
|
89
|
+
"revoked_at" => Fog::Nullable::String
|
90
|
+
}
|
91
|
+
|
92
|
+
CLOUD_IP = {
|
93
|
+
"id" => String,
|
94
|
+
"resource_type" => String,
|
95
|
+
"url" => String,
|
96
|
+
"name" => Fog::Nullable::String,
|
97
|
+
"public_ip" => String,
|
98
|
+
"status" => String,
|
99
|
+
"reverse_dns" => String
|
100
|
+
}
|
101
|
+
|
102
|
+
FIREWALL_POLICY = {
|
103
|
+
"id" => String,
|
104
|
+
"resource_type" => String,
|
105
|
+
"url" => String,
|
106
|
+
"name" => Fog::Nullable::String,
|
107
|
+
"default" => Fog::Boolean,
|
108
|
+
"created_at" => String,
|
109
|
+
"description" => Fog::Nullable::String
|
110
|
+
}
|
111
|
+
|
112
|
+
FIREWALL_RULE = {
|
113
|
+
"id" => String,
|
114
|
+
"resource_type" => String,
|
115
|
+
"url" => String,
|
116
|
+
"created_at" => String,
|
117
|
+
"source" => Fog::Nullable::String,
|
118
|
+
"source_port" => Fog::Nullable::String,
|
119
|
+
"destination" => Fog::Nullable::String,
|
120
|
+
"destination_port" => Fog::Nullable::String,
|
121
|
+
"protocol" => Fog::Nullable::String,
|
122
|
+
"icmp_type_name" => Fog::Nullable::String,
|
123
|
+
"description" => Fog::Nullable::String
|
124
|
+
}
|
125
|
+
|
126
|
+
IMAGE = {
|
127
|
+
"name" => String,
|
128
|
+
"created_at" => String,
|
129
|
+
"resource_type" => String,
|
130
|
+
"arch" => String,
|
131
|
+
"url" => String,
|
132
|
+
"id" => String,
|
133
|
+
"description" => String,
|
134
|
+
"source" => String,
|
135
|
+
"status" => String,
|
136
|
+
"public" => Fog::Boolean,
|
137
|
+
"official" => Fog::Boolean,
|
138
|
+
"owner" => String,
|
139
|
+
"username" => Fog::Nullable::String
|
140
|
+
}
|
141
|
+
|
142
|
+
INTERFACE = {
|
143
|
+
"resource_type" => String,
|
144
|
+
"url" => String,
|
145
|
+
"id" => String,
|
146
|
+
"ipv4_address" => String,
|
147
|
+
"ipv6_address" => Fog::Nullable::String,
|
148
|
+
"mac_address" => String
|
149
|
+
}
|
150
|
+
|
151
|
+
LOAD_BALANCER = {
|
152
|
+
"id" => String,
|
153
|
+
"resource_type" => String,
|
154
|
+
"url" => String,
|
155
|
+
"name" => String,
|
156
|
+
"status" => String,
|
157
|
+
"created_at" => String,
|
158
|
+
"deleted_at" => Fog::Nullable::String
|
159
|
+
}
|
160
|
+
|
161
|
+
SERVER = {
|
162
|
+
"id" => String,
|
163
|
+
"resource_type" => String,
|
164
|
+
"url" => String,
|
165
|
+
"name" => String,
|
166
|
+
"status" => String,
|
167
|
+
"hostname" => String,
|
168
|
+
"fqdn" => String,
|
169
|
+
"created_at" => String,
|
170
|
+
"started_at" => Fog::Nullable::String,
|
171
|
+
"deleted_at" => Fog::Nullable::String,
|
172
|
+
"username" => Fog::Nullable::String
|
173
|
+
}
|
174
|
+
|
175
|
+
SERVER_GROUP = {
|
176
|
+
"id" => String,
|
177
|
+
"resource_type" => String,
|
178
|
+
"url" => String,
|
179
|
+
"name" => Fog::Nullable::String,
|
180
|
+
"created_at" => String,
|
181
|
+
"default" => Fog::Boolean,
|
182
|
+
"description" => Fog::Nullable::String,
|
183
|
+
"created_at" => String
|
184
|
+
}
|
185
|
+
|
186
|
+
SERVER_TYPE = {
|
187
|
+
"name" => String,
|
188
|
+
"handle" => Fog::Nullable::String,
|
189
|
+
"cores" => Integer,
|
190
|
+
"resource_type" => String,
|
191
|
+
"disk_size" => Integer,
|
192
|
+
"url" => String,
|
193
|
+
"id" => String,
|
194
|
+
"ram" => Integer,
|
195
|
+
"status" => String
|
196
|
+
}
|
197
|
+
|
198
|
+
USER = {
|
199
|
+
"id" => String,
|
200
|
+
"resource_type" => String,
|
201
|
+
"url" => String,
|
202
|
+
"name" => String,
|
203
|
+
"email_address" => String
|
204
|
+
}
|
205
|
+
|
206
|
+
|
207
|
+
COLLABORATION = {
|
208
|
+
"id" => String,
|
209
|
+
"resource_type" => String,
|
210
|
+
"url" => String,
|
211
|
+
"status" => String,
|
212
|
+
"email" => Fog::Nullable::String,
|
213
|
+
"role" => String,
|
214
|
+
"role_label" => String,
|
215
|
+
"user" => Fog::Brightbox::Nullable::User,
|
216
|
+
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
217
|
+
"inviter" => Brightbox::Compute::Formats::Nested::USER
|
218
|
+
}
|
219
|
+
|
220
|
+
ZONE = {
|
221
|
+
"id" => String,
|
222
|
+
"resource_type" => String,
|
223
|
+
"url" => String,
|
224
|
+
"handle" => Fog::Nullable::String
|
225
|
+
}
|
226
|
+
end
|
227
|
+
|
228
|
+
module Collected
|
229
|
+
ACCOUNT = {
|
230
|
+
"id" => String,
|
231
|
+
"resource_type" => String,
|
232
|
+
"url" => String,
|
233
|
+
"name" => String,
|
234
|
+
"status" => String,
|
235
|
+
"vat_registration_number" => Fog::Nullable::String,
|
236
|
+
"telephone_number" => Fog::Nullable::String,
|
237
|
+
"telephone_verified" => Fog::Nullable::Boolean,
|
238
|
+
"ram_limit" => Integer,
|
239
|
+
"ram_used" => Integer,
|
240
|
+
"cloud_ips_limit" => Integer,
|
241
|
+
"cloud_ips_used" => Integer,
|
242
|
+
"load_balancers_limit" => Integer,
|
243
|
+
"load_balancers_used" => Integer,
|
244
|
+
"library_ftp_password" => Fog::Nullable::String,
|
245
|
+
"verified_telephone" => Fog::Nullable::String,
|
246
|
+
"verified_at" => Fog::Nullable::String,
|
247
|
+
"verified_ip" => Fog::Nullable::String,
|
248
|
+
"owner" => Brightbox::Compute::Formats::Nested::USER,
|
249
|
+
"users" => [Brightbox::Compute::Formats::Nested::USER],
|
250
|
+
"clients" => [Brightbox::Compute::Formats::Nested::API_CLIENT],
|
251
|
+
"servers" => [Brightbox::Compute::Formats::Nested::SERVER],
|
252
|
+
"load_balancers" => [Brightbox::Compute::Formats::Nested::LOAD_BALANCER],
|
253
|
+
"cloud_ips" => [Brightbox::Compute::Formats::Nested::CLOUD_IP],
|
254
|
+
"server_groups" => [Brightbox::Compute::Formats::Nested::SERVER_GROUP],
|
255
|
+
"firewall_policies" => [Brightbox::Compute::Formats::Nested::FIREWALL_POLICY],
|
256
|
+
"images" => [Brightbox::Compute::Formats::Nested::IMAGE],
|
257
|
+
"zones" => [Brightbox::Compute::Formats::Nested::ZONE]
|
258
|
+
}
|
259
|
+
|
260
|
+
API_CLIENT = {
|
261
|
+
"id" => String,
|
262
|
+
"resource_type" => String,
|
263
|
+
"url" => String,
|
264
|
+
"name" => String,
|
265
|
+
"description" => String,
|
266
|
+
"revoked_at" => Fog::Nullable::String,
|
267
|
+
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT
|
268
|
+
}
|
269
|
+
|
270
|
+
APPLICATION = {
|
271
|
+
"id" => String,
|
272
|
+
"resource_type" => String,
|
273
|
+
"url" => String,
|
274
|
+
"name" => Fog::Nullable::String
|
275
|
+
}
|
276
|
+
|
277
|
+
CLOUD_IP = {
|
278
|
+
"id" => String,
|
279
|
+
"resource_type" => String,
|
280
|
+
"url" => String,
|
281
|
+
"name" => Fog::Nullable::String,
|
282
|
+
"public_ip" => String,
|
283
|
+
"status" => String,
|
284
|
+
"reverse_dns" => String,
|
285
|
+
"port_translators" => [Brightbox::Compute::Formats::Struct::CIP_PORT_TRANSLATOR],
|
286
|
+
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
287
|
+
"interface" => Fog::Brightbox::Nullable::Interface,
|
288
|
+
"load_balancer" => Fog::Brightbox::Nullable::LoadBalancer,
|
289
|
+
"server" => Fog::Brightbox::Nullable::Server,
|
290
|
+
"server_group" => Fog::Brightbox::Nullable::ServerGroup
|
291
|
+
}
|
292
|
+
|
293
|
+
FIREWALL_POLICY = {
|
294
|
+
"id" => String,
|
295
|
+
"resource_type" => String,
|
296
|
+
"url" => String,
|
297
|
+
"name" => Fog::Nullable::String,
|
298
|
+
"description" => Fog::Nullable::String,
|
299
|
+
"default" => Fog::Boolean,
|
300
|
+
"created_at" => String,
|
301
|
+
"server_group" => Fog::Brightbox::Nullable::ServerGroup,
|
302
|
+
"rules" => [Brightbox::Compute::Formats::Nested::FIREWALL_RULE]
|
303
|
+
}
|
304
|
+
|
305
|
+
IMAGE = {
|
306
|
+
"name" => String,
|
307
|
+
"created_at" => String,
|
308
|
+
"resource_type" => String,
|
309
|
+
"arch" => String,
|
310
|
+
"url" => String,
|
311
|
+
"id" => String,
|
312
|
+
"description" => String,
|
313
|
+
"source" => String,
|
314
|
+
"source_type" => String,
|
315
|
+
"status" => String,
|
316
|
+
"owner" => String,
|
317
|
+
"username" => Fog::Nullable::String,
|
318
|
+
"public" => Fog::Boolean,
|
319
|
+
"official" => Fog::Boolean,
|
320
|
+
"compatibility_mode" => Fog::Boolean,
|
321
|
+
"virtual_size" => Integer,
|
322
|
+
"disk_size" => Integer,
|
323
|
+
"min_ram" => Fog::Nullable::Integer,
|
324
|
+
"ancestor" => Fog::Brightbox::Nullable::Image,
|
325
|
+
"username" => Fog::Nullable::String
|
326
|
+
}
|
327
|
+
|
328
|
+
LOAD_BALANCER = {
|
329
|
+
"id" => String,
|
330
|
+
"resource_type" => String,
|
331
|
+
"url" => String,
|
332
|
+
"name" => String,
|
333
|
+
"status" => String,
|
334
|
+
"created_at" => String,
|
335
|
+
"deleted_at" => Fog::Nullable::String,
|
336
|
+
"cloud_ips" => [Brightbox::Compute::Formats::Nested::CLOUD_IP],
|
337
|
+
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
338
|
+
"listeners" => [Brightbox::Compute::Formats::Struct::LB_LISTENER],
|
339
|
+
"nodes" => [Brightbox::Compute::Formats::Nested::SERVER]
|
340
|
+
}
|
341
|
+
|
342
|
+
SERVER = {
|
343
|
+
"id" => String,
|
344
|
+
"resource_type" => String,
|
345
|
+
"url" => String,
|
346
|
+
"name" => String,
|
347
|
+
"status" => String,
|
348
|
+
"hostname" => String,
|
349
|
+
"fqdn" => String,
|
350
|
+
"created_at" => String,
|
351
|
+
"started_at" => Fog::Nullable::String,
|
352
|
+
"deleted_at" => Fog::Nullable::String,
|
353
|
+
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
354
|
+
"server_type" => Brightbox::Compute::Formats::Nested::SERVER_TYPE,
|
355
|
+
"cloud_ips" => [Brightbox::Compute::Formats::Nested::CLOUD_IP],
|
356
|
+
"image" => Brightbox::Compute::Formats::Nested::IMAGE,
|
357
|
+
"server_groups" => [Brightbox::Compute::Formats::Nested::SERVER_GROUP],
|
358
|
+
"snapshots" => [Brightbox::Compute::Formats::Nested::IMAGE],
|
359
|
+
"interfaces" => [Brightbox::Compute::Formats::Nested::INTERFACE],
|
360
|
+
"zone" => Fog::Brightbox::Nullable::Zone,
|
361
|
+
"username" => Fog::Nullable::String,
|
362
|
+
"compatibility_mode" => Fog::Boolean
|
363
|
+
}
|
364
|
+
|
365
|
+
SERVER_GROUP = {
|
366
|
+
"created_at" => String,
|
367
|
+
"id" => String,
|
368
|
+
"resource_type" => String,
|
369
|
+
"url" => String,
|
370
|
+
"name" => Fog::Nullable::String,
|
371
|
+
"description" => Fog::Nullable::String,
|
372
|
+
"default" => Fog::Boolean,
|
373
|
+
"created_at" => String,
|
374
|
+
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
375
|
+
"servers" => [Brightbox::Compute::Formats::Nested::SERVER],
|
376
|
+
"firewall_policy" => Fog::Brightbox::Nullable::FirewallPolicy
|
377
|
+
}
|
378
|
+
|
379
|
+
SERVER_TYPE = {
|
380
|
+
"id" => String,
|
381
|
+
"resource_type" => String,
|
382
|
+
"url" => String,
|
383
|
+
"handle" => Fog::Nullable::String,
|
384
|
+
"name" => String,
|
385
|
+
"status" => String,
|
386
|
+
"cores" => Integer,
|
387
|
+
"ram" => Integer,
|
388
|
+
"disk_size" => Integer
|
389
|
+
}
|
390
|
+
|
391
|
+
USER = {
|
392
|
+
"id" => String,
|
393
|
+
"resource_type" => String,
|
394
|
+
"url" => String,
|
395
|
+
"name" => String,
|
396
|
+
"email_address" => String,
|
397
|
+
"email_verified" => Fog::Boolean,
|
398
|
+
"accounts" => [Brightbox::Compute::Formats::Nested::ACCOUNT],
|
399
|
+
"default_account" => NilClass
|
400
|
+
}
|
401
|
+
|
402
|
+
COLLABORATION = {
|
403
|
+
"id" => String,
|
404
|
+
"resource_type" => String,
|
405
|
+
"url" => String,
|
406
|
+
"status" => String,
|
407
|
+
"role" => String,
|
408
|
+
"role_label" => String,
|
409
|
+
"email" => Fog::Nullable::String,
|
410
|
+
"user" => Fog::Brightbox::Nullable::User,
|
411
|
+
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
412
|
+
"inviter" => Brightbox::Compute::Formats::Nested::USER
|
413
|
+
}
|
414
|
+
|
415
|
+
ZONE = {
|
416
|
+
"id" => String,
|
417
|
+
"resource_type" => String,
|
418
|
+
"url" => String,
|
419
|
+
"handle" => Fog::Nullable::String
|
420
|
+
}
|
421
|
+
end
|
422
|
+
|
423
|
+
module Full
|
424
|
+
ACCOUNT = {
|
425
|
+
"id" => String,
|
426
|
+
"resource_type" => String,
|
427
|
+
"url" => String,
|
428
|
+
"name" => String,
|
429
|
+
"status" => String,
|
430
|
+
"address_1" => String,
|
431
|
+
"address_2" => String,
|
432
|
+
"city" => String,
|
433
|
+
"county" => String,
|
434
|
+
"postcode" => String,
|
435
|
+
"country_code" => String,
|
436
|
+
"country_name" => String,
|
437
|
+
"vat_registration_number" => Fog::Nullable::String,
|
438
|
+
"telephone_number" => String,
|
439
|
+
"telephone_verified" => Fog::Boolean,
|
440
|
+
"created_at" => String,
|
441
|
+
"ram_limit" => Integer,
|
442
|
+
"ram_used" => Integer,
|
443
|
+
"cloud_ips_limit" => Integer,
|
444
|
+
"cloud_ips_used" => Integer,
|
445
|
+
"load_balancers_limit" => Integer,
|
446
|
+
"load_balancers_used" => Integer,
|
447
|
+
"library_ftp_host" => String,
|
448
|
+
"library_ftp_user" => String,
|
449
|
+
"library_ftp_password" => Fog::Nullable::String,
|
450
|
+
"verified_telephone" => Fog::Nullable::String,
|
451
|
+
"verified_at" => Fog::Nullable::String,
|
452
|
+
"verified_ip" => Fog::Nullable::String,
|
453
|
+
"valid_credit_card" => Fog::Boolean,
|
454
|
+
"owner" => Brightbox::Compute::Formats::Nested::USER,
|
455
|
+
"users" => [Brightbox::Compute::Formats::Nested::USER],
|
456
|
+
"clients" => [Brightbox::Compute::Formats::Nested::API_CLIENT],
|
457
|
+
"servers" => [Brightbox::Compute::Formats::Nested::SERVER],
|
458
|
+
"load_balancers" => [Brightbox::Compute::Formats::Nested::LOAD_BALANCER],
|
459
|
+
"cloud_ips" => [Brightbox::Compute::Formats::Nested::CLOUD_IP],
|
460
|
+
"server_groups" => [Brightbox::Compute::Formats::Nested::SERVER_GROUP],
|
461
|
+
"firewall_policies" => [Brightbox::Compute::Formats::Nested::FIREWALL_POLICY],
|
462
|
+
"images" => [Brightbox::Compute::Formats::Nested::IMAGE],
|
463
|
+
"zones" => [Brightbox::Compute::Formats::Nested::ZONE]
|
464
|
+
}
|
465
|
+
|
466
|
+
API_CLIENT = {
|
467
|
+
"id" => String,
|
468
|
+
"resource_type" => String,
|
469
|
+
"url" => String,
|
470
|
+
"name" => String,
|
471
|
+
"description" => String,
|
472
|
+
"revoked_at" => Fog::Nullable::String,
|
473
|
+
"secret" => Fog::Nullable::String,
|
474
|
+
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT
|
475
|
+
}
|
476
|
+
|
477
|
+
APPLICATION = {
|
478
|
+
"id" => String,
|
479
|
+
"resource_type" => String,
|
480
|
+
"url" => String,
|
481
|
+
"name" => Fog::Nullable::String,
|
482
|
+
"secret" => Fog::Nullable::String
|
483
|
+
}
|
484
|
+
|
485
|
+
CLOUD_IP = {
|
486
|
+
"id" => String,
|
487
|
+
"resource_type" => String,
|
488
|
+
"url" => String,
|
489
|
+
"name" => Fog::Nullable::String,
|
490
|
+
"public_ip" => String,
|
491
|
+
"status" => String,
|
492
|
+
"reverse_dns" => String,
|
493
|
+
"port_translators" => [Brightbox::Compute::Formats::Struct::CIP_PORT_TRANSLATOR],
|
494
|
+
"account" => Fog::Brightbox::Nullable::Account,
|
495
|
+
"interface" => Fog::Brightbox::Nullable::Interface,
|
496
|
+
"load_balancer" => Fog::Brightbox::Nullable::LoadBalancer,
|
497
|
+
"server" => Fog::Brightbox::Nullable::Server,
|
498
|
+
"server_group" => Fog::Brightbox::Nullable::ServerGroup
|
499
|
+
}
|
500
|
+
|
501
|
+
FIREWALL_POLICY = {
|
502
|
+
"id" => String,
|
503
|
+
"resource_type" => String,
|
504
|
+
"url" => String,
|
505
|
+
"name" => Fog::Nullable::String,
|
506
|
+
"description" => Fog::Nullable::String,
|
507
|
+
"default" => Fog::Boolean,
|
508
|
+
"created_at" => String,
|
509
|
+
"server_group" => Fog::Brightbox::Nullable::ServerGroup,
|
510
|
+
"rules" => [Brightbox::Compute::Formats::Nested::FIREWALL_RULE]
|
511
|
+
}
|
512
|
+
|
513
|
+
FIREWALL_RULE = {
|
514
|
+
"id" => String,
|
515
|
+
"resource_type" => String,
|
516
|
+
"url" => String,
|
517
|
+
"created_at" => String,
|
518
|
+
"source" => Fog::Nullable::String,
|
519
|
+
"source_port" => Fog::Nullable::String,
|
520
|
+
"destination" => Fog::Nullable::String,
|
521
|
+
"destination_port" => Fog::Nullable::String,
|
522
|
+
"protocol" => Fog::Nullable::String,
|
523
|
+
"icmp_type_name" => Fog::Nullable::String,
|
524
|
+
"description" => Fog::Nullable::String,
|
525
|
+
"firewall_policy" => Brightbox::Compute::Formats::Nested::FIREWALL_POLICY
|
526
|
+
}
|
527
|
+
|
528
|
+
#FIREWALL_RULE = {
|
529
|
+
#"id" => String,
|
530
|
+
#"resource_type" => String,
|
531
|
+
#"url" => String,
|
532
|
+
#"source" => String,
|
533
|
+
#"source_port" => String,
|
534
|
+
#"destination" => String,
|
535
|
+
#"destination_port" => String,
|
536
|
+
#"protocol" => String,
|
537
|
+
#"icmp_type_name" => String,
|
538
|
+
#"description" => Fog::Nullable::String
|
539
|
+
#}
|
540
|
+
|
541
|
+
IMAGE = {
|
542
|
+
"name" => String,
|
543
|
+
"created_at" => String,
|
544
|
+
"resource_type" => String,
|
545
|
+
"arch" => String,
|
546
|
+
"url" => String,
|
547
|
+
"id" => String,
|
548
|
+
"description" => String,
|
549
|
+
"source" => String,
|
550
|
+
"source_type" => String,
|
551
|
+
"status" => String,
|
552
|
+
"owner" => String, # Account ID not object
|
553
|
+
"username" => Fog::Nullable::String,
|
554
|
+
"public" => Fog::Boolean,
|
555
|
+
"official" => Fog::Boolean,
|
556
|
+
"compatibility_mode" => Fog::Boolean,
|
557
|
+
"virtual_size" => Integer,
|
558
|
+
"disk_size" => Integer,
|
559
|
+
"min_ram" => Fog::Nullable::Integer,
|
560
|
+
"ancestor" => Fog::Brightbox::Nullable::Image,
|
561
|
+
"username" => Fog::Nullable::String,
|
562
|
+
"licence_name" => Fog::Nullable::String
|
563
|
+
}
|
564
|
+
|
565
|
+
INTERFACE = {
|
566
|
+
"resource_type" => String,
|
567
|
+
"url" => String,
|
568
|
+
"id" => String,
|
569
|
+
"ipv4_address" => String,
|
570
|
+
"ipv6_address" => Fog::Nullable::String,
|
571
|
+
"mac_address" => String,
|
572
|
+
"server" => Brightbox::Compute::Formats::Nested::SERVER
|
573
|
+
}
|
574
|
+
|
575
|
+
LOAD_BALANCER = {
|
576
|
+
"id" => String,
|
577
|
+
"resource_type" => String,
|
578
|
+
"url" => String,
|
579
|
+
"name" => String,
|
580
|
+
"status" => String,
|
581
|
+
"listeners" => [Brightbox::Compute::Formats::Struct::LB_LISTENER],
|
582
|
+
"policy" => String,
|
583
|
+
"healthcheck" => Brightbox::Compute::Formats::Struct::LB_HEALTHCHECK,
|
584
|
+
"created_at" => String,
|
585
|
+
"deleted_at" => Fog::Nullable::String,
|
586
|
+
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
587
|
+
"nodes" => [Brightbox::Compute::Formats::Nested::SERVER],
|
588
|
+
"cloud_ips" => [Brightbox::Compute::Formats::Nested::CLOUD_IP]
|
589
|
+
}
|
590
|
+
|
591
|
+
SERVER = {
|
592
|
+
"id" => String,
|
593
|
+
"resource_type" => String,
|
594
|
+
"url" => String,
|
595
|
+
"name" => String,
|
596
|
+
"status" => String,
|
597
|
+
"hostname" => String,
|
598
|
+
"fqdn" => String,
|
599
|
+
"created_at" => String,
|
600
|
+
"started_at" => Fog::Nullable::String,
|
601
|
+
"deleted_at" => Fog::Nullable::String,
|
602
|
+
"user_data" => Fog::Nullable::String,
|
603
|
+
"console_url" => Fog::Nullable::String,
|
604
|
+
"console_token" => Fog::Nullable::String,
|
605
|
+
"console_token_expires" => Fog::Nullable::String,
|
606
|
+
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
607
|
+
"server_type" => Brightbox::Compute::Formats::Nested::SERVER_TYPE,
|
608
|
+
"cloud_ips" => [Brightbox::Compute::Formats::Nested::CLOUD_IP],
|
609
|
+
"image" => Brightbox::Compute::Formats::Nested::IMAGE,
|
610
|
+
"snapshots" => [Brightbox::Compute::Formats::Nested::IMAGE],
|
611
|
+
"server_groups" => [Brightbox::Compute::Formats::Nested::SERVER_GROUP],
|
612
|
+
"interfaces" => [Brightbox::Compute::Formats::Nested::INTERFACE],
|
613
|
+
"zone" => Fog::Brightbox::Nullable::Zone,
|
614
|
+
"licence_name" => Fog::Nullable::String,
|
615
|
+
"username" => Fog::Nullable::String,
|
616
|
+
"compatibility_mode" => Fog::Boolean
|
617
|
+
}
|
618
|
+
|
619
|
+
SERVER_GROUP = {
|
620
|
+
"created_at" => String,
|
621
|
+
"id" => String,
|
622
|
+
"resource_type" => String,
|
623
|
+
"url" => String,
|
624
|
+
"name" => String,
|
625
|
+
"description" => Fog::Nullable::String,
|
626
|
+
"default" => Fog::Boolean,
|
627
|
+
"created_at" => String,
|
628
|
+
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
629
|
+
"servers" => [Brightbox::Compute::Formats::Nested::SERVER],
|
630
|
+
"firewall_policy" => Fog::Brightbox::Nullable::FirewallPolicy
|
631
|
+
}
|
632
|
+
|
633
|
+
SERVER_TYPE = {
|
634
|
+
"id" => String,
|
635
|
+
"resource_type" => String,
|
636
|
+
"url" => String,
|
637
|
+
"handle" => Fog::Nullable::String,
|
638
|
+
"name" => String,
|
639
|
+
"status" => String,
|
640
|
+
"cores" => Integer,
|
641
|
+
"ram" => Integer,
|
642
|
+
"disk_size" => Integer
|
643
|
+
}
|
644
|
+
|
645
|
+
USER = {
|
646
|
+
"id" => String,
|
647
|
+
"resource_type" => String,
|
648
|
+
"url" => String,
|
649
|
+
"name" => String,
|
650
|
+
"email_address" => String,
|
651
|
+
"email_verified" => Fog::Boolean,
|
652
|
+
"accounts" => [Brightbox::Compute::Formats::Nested::ACCOUNT],
|
653
|
+
"default_account" => Fog::Brightbox::Nullable::Account,
|
654
|
+
"ssh_key" => Fog::Nullable::String,
|
655
|
+
"messaging_pref" => Fog::Boolean
|
656
|
+
}
|
657
|
+
|
658
|
+
COLLABORATION = {
|
659
|
+
"id" => String,
|
660
|
+
"resource_type" => String,
|
661
|
+
"url" => String,
|
662
|
+
"status" => String,
|
663
|
+
"role" => String,
|
664
|
+
"role_label" => String,
|
665
|
+
"email" => Fog::Nullable::String,
|
666
|
+
"user" => Fog::Brightbox::Nullable::User,
|
667
|
+
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
668
|
+
"inviter" => Brightbox::Compute::Formats::Nested::USER
|
669
|
+
}
|
670
|
+
|
671
|
+
ZONE = {
|
672
|
+
"id" => String,
|
673
|
+
"resource_type" => String,
|
674
|
+
"url" => String,
|
675
|
+
"handle" => String
|
676
|
+
}
|
677
|
+
end
|
678
|
+
|
679
|
+
module Collection
|
680
|
+
ACCOUNTS = [Brightbox::Compute::Formats::Collected::ACCOUNT]
|
681
|
+
API_CLIENTS = [Brightbox::Compute::Formats::Collected::API_CLIENT]
|
682
|
+
APPLICATION = [Brightbox::Compute::Formats::Collected::APPLICATION]
|
683
|
+
CLOUD_IPS = [Brightbox::Compute::Formats::Collected::CLOUD_IP]
|
684
|
+
IMAGES = [Brightbox::Compute::Formats::Collected::IMAGE]
|
685
|
+
FIREWALL_POLICIES = [Brightbox::Compute::Formats::Collected::FIREWALL_POLICY]
|
686
|
+
LOAD_BALANCERS = [Brightbox::Compute::Formats::Collected::LOAD_BALANCER]
|
687
|
+
SERVERS = [Brightbox::Compute::Formats::Collected::SERVER]
|
688
|
+
SERVER_GROUPS = [Brightbox::Compute::Formats::Collected::SERVER_GROUP]
|
689
|
+
SERVER_TYPES = [Brightbox::Compute::Formats::Collected::SERVER_TYPE]
|
690
|
+
USERS = [Brightbox::Compute::Formats::Collected::USER]
|
691
|
+
ZONES = [Brightbox::Compute::Formats::Collected::ZONE]
|
692
|
+
COLLABORATIONS = [Brightbox::Compute::Formats::Collected::COLLABORATION]
|
693
|
+
end
|
694
|
+
end
|
695
|
+
end
|
696
|
+
end
|