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
@@ -5,21 +5,21 @@ Shindo.tests('Fog::Compute[:brightbox] | account requests', ['brightbox']) do
|
|
5
5
|
tests("#list_accounts") do
|
6
6
|
pending if Fog.mocking?
|
7
7
|
result = Fog::Compute[:brightbox].list_accounts
|
8
|
-
|
8
|
+
data_matches_schema(Brightbox::Compute::Formats::Collection::ACCOUNTS, {:allow_extra_keys => true}) { result }
|
9
9
|
end
|
10
10
|
|
11
11
|
tests("#get_scoped_account") do
|
12
12
|
pending if Fog.mocking?
|
13
13
|
result = Fog::Compute[:brightbox].get_scoped_account
|
14
14
|
@scoped_account_identifier = result["id"]
|
15
|
-
|
15
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::ACCOUNT, {:allow_extra_keys => true}) { result }
|
16
16
|
test("ftp password is blanked") { result["library_ftp_password"].nil? }
|
17
17
|
end
|
18
18
|
|
19
19
|
tests("#get_account(#{@scoped_account_identifier}") do
|
20
20
|
pending if Fog.mocking?
|
21
21
|
result = Fog::Compute[:brightbox].get_account(@scoped_account_identifier)
|
22
|
-
|
22
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::ACCOUNT, {:allow_extra_keys => true}) { result }
|
23
23
|
test("ftp password is blanked") { result["library_ftp_password"].nil? }
|
24
24
|
end
|
25
25
|
|
@@ -27,26 +27,26 @@ Shindo.tests('Fog::Compute[:brightbox] | account requests', ['brightbox']) do
|
|
27
27
|
tests("#update_scoped_account(#{update_options.inspect})") do
|
28
28
|
pending if Fog.mocking?
|
29
29
|
result = Fog::Compute[:brightbox].update_scoped_account(update_options)
|
30
|
-
|
30
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::ACCOUNT, {:allow_extra_keys => true}) { result }
|
31
31
|
end
|
32
32
|
|
33
33
|
tests("#update_account(#{@scoped_account_identifier}, #{update_options.inspect})") do
|
34
34
|
pending if Fog.mocking?
|
35
35
|
result = Fog::Compute[:brightbox].update_account(@scoped_account_identifier, update_options)
|
36
|
-
|
36
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::ACCOUNT, {:allow_extra_keys => true}) { result }
|
37
37
|
end
|
38
38
|
|
39
39
|
tests("#reset_ftp_password_scoped_account") do
|
40
40
|
pending if Fog.mocking?
|
41
41
|
result = Fog::Compute[:brightbox].reset_ftp_password_scoped_account
|
42
|
-
|
42
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::ACCOUNT, {:allow_extra_keys => true}) { result }
|
43
43
|
test("new ftp password is visible") { ! result["library_ftp_password"].nil? }
|
44
44
|
end
|
45
45
|
|
46
46
|
tests("#reset_ftp_password_account(#{@scoped_account_identifier})") do
|
47
47
|
pending if Fog.mocking?
|
48
48
|
result = Fog::Compute[:brightbox].reset_ftp_password_account(@scoped_account_identifier)
|
49
|
-
|
49
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::ACCOUNT, {:allow_extra_keys => true}) { result }
|
50
50
|
test("new ftp password is visible") { ! result["library_ftp_password"].nil? }
|
51
51
|
end
|
52
52
|
|
@@ -11,39 +11,39 @@ Shindo.tests('Fog::Compute[:brightbox] | api client requests', ['brightbox']) do
|
|
11
11
|
pending if Fog.mocking?
|
12
12
|
result = Fog::Compute[:brightbox].create_api_client(create_options)
|
13
13
|
@api_client_id = result["id"]
|
14
|
-
|
14
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::API_CLIENT, {:allow_extra_keys => true}) { result }
|
15
15
|
end
|
16
16
|
|
17
17
|
tests("#list_api_clients") do
|
18
18
|
pending if Fog.mocking?
|
19
19
|
result = Fog::Compute[:brightbox].list_api_clients
|
20
|
-
|
20
|
+
data_matches_schema(Brightbox::Compute::Formats::Collection::API_CLIENTS, {:allow_extra_keys => true}) { result }
|
21
21
|
end
|
22
22
|
|
23
23
|
tests("#get_api_client('#{@api_client_id}')") do
|
24
24
|
pending if Fog.mocking?
|
25
25
|
result = Fog::Compute[:brightbox].get_api_client(@api_client_id)
|
26
|
-
|
26
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::API_CLIENT, {:allow_extra_keys => true}) { result }
|
27
27
|
end
|
28
28
|
|
29
29
|
update_options = {:name => "Fog@#{Time.now.iso8601}"}
|
30
30
|
tests("#update_api_client('#{@api_client_id}', #{update_options.inspect})") do
|
31
31
|
pending if Fog.mocking?
|
32
32
|
result = Fog::Compute[:brightbox].update_api_client(@api_client_id, update_options)
|
33
|
-
|
33
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::API_CLIENT, {:allow_extra_keys => true}) { result }
|
34
34
|
end
|
35
35
|
|
36
36
|
tests("#reset_secret_api_client('#{@api_client_id}')") do
|
37
37
|
pending if Fog.mocking?
|
38
38
|
result = Fog::Compute[:brightbox].reset_secret_api_client(@api_client_id)
|
39
|
-
|
39
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::API_CLIENT, {:allow_extra_keys => true}) { result }
|
40
40
|
test("new secret is visible") { ! result["secret"].nil? }
|
41
41
|
end
|
42
42
|
|
43
43
|
tests("#destroy_api_client('#{@api_client_id}')") do
|
44
44
|
pending if Fog.mocking?
|
45
45
|
result = Fog::Compute[:brightbox].destroy_api_client(@api_client_id)
|
46
|
-
|
46
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::API_CLIENT, {:allow_extra_keys => true}) { result }
|
47
47
|
end
|
48
48
|
|
49
49
|
end
|
@@ -10,39 +10,39 @@ Shindo.tests('Fog::Compute[:brightbox] | api client requests', ['brightbox']) do
|
|
10
10
|
pending if Fog.mocking?
|
11
11
|
result = Fog::Compute[:brightbox].create_application(create_options)
|
12
12
|
@application_id = result["id"]
|
13
|
-
|
13
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::APPLICATION, {:allow_extra_keys => true}) { result }
|
14
14
|
end
|
15
15
|
|
16
16
|
tests("#list_applications") do
|
17
17
|
pending if Fog.mocking?
|
18
18
|
result = Fog::Compute[:brightbox].list_applications
|
19
|
-
|
19
|
+
data_matches_schema(Brightbox::Compute::Formats::Collection::APPLICATION, {:allow_extra_keys => true}) { result }
|
20
20
|
end
|
21
21
|
|
22
22
|
tests("#get_application('#{@application_id}')") do
|
23
23
|
pending if Fog.mocking?
|
24
24
|
result = Fog::Compute[:brightbox].get_application(@application_id)
|
25
|
-
|
25
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::APPLICATION, {:allow_extra_keys => true}) { result }
|
26
26
|
end
|
27
27
|
|
28
28
|
update_options = {:name => "Fog@#{Time.now.iso8601}"}
|
29
29
|
tests("#update_application('#{@application_id}', #{update_options.inspect})") do
|
30
30
|
pending if Fog.mocking?
|
31
31
|
result = Fog::Compute[:brightbox].update_application(@application_id, update_options)
|
32
|
-
|
32
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::APPLICATION, {:allow_extra_keys => true}) { result }
|
33
33
|
end
|
34
34
|
|
35
35
|
tests("#reset_secret_application('#{@application_id}')") do
|
36
36
|
pending if Fog.mocking?
|
37
37
|
result = Fog::Compute[:brightbox].reset_secret_application(@application_id)
|
38
|
-
|
38
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::APPLICATION, {:allow_extra_keys => true}) { result }
|
39
39
|
test("new secret is visible") { ! result["secret"].nil? }
|
40
40
|
end
|
41
41
|
|
42
42
|
tests("#destroy_application('#{@application_id}')") do
|
43
43
|
pending if Fog.mocking?
|
44
44
|
result = Fog::Compute[:brightbox].destroy_application(@application_id)
|
45
|
-
|
45
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::APPLICATION, {:allow_extra_keys => true}) { result }
|
46
46
|
end
|
47
47
|
|
48
48
|
end
|
@@ -10,19 +10,19 @@ Shindo.tests('Fog::Compute[:brightbox] | cloud ip requests', ['brightbox']) do
|
|
10
10
|
pending if Fog.mocking?
|
11
11
|
result = Fog::Compute[:brightbox].create_cloud_ip
|
12
12
|
@cloud_ip_id = result["id"]
|
13
|
-
|
13
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::CLOUD_IP, {:allow_extra_keys => true}) { result }
|
14
14
|
end
|
15
15
|
|
16
16
|
tests("#list_cloud_ips") do
|
17
17
|
pending if Fog.mocking?
|
18
18
|
result = Fog::Compute[:brightbox].list_cloud_ips
|
19
|
-
|
19
|
+
data_matches_schema(Brightbox::Compute::Formats::Collection::CLOUD_IPS, {:allow_extra_keys => true}) { result }
|
20
20
|
end
|
21
21
|
|
22
22
|
tests("#get_cloud_ip('#{@cloud_ip_id}')") do
|
23
23
|
pending if Fog.mocking?
|
24
24
|
result = Fog::Compute[:brightbox].get_cloud_ip(@cloud_ip_id)
|
25
|
-
|
25
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::CLOUD_IP, {:allow_extra_keys => true}) { result }
|
26
26
|
end
|
27
27
|
|
28
28
|
unless Fog.mocking?
|
@@ -32,7 +32,7 @@ Shindo.tests('Fog::Compute[:brightbox] | cloud ip requests', ['brightbox']) do
|
|
32
32
|
tests("#map_cloud_ip('#{@cloud_ip_id}', #{map_options.inspect})") do
|
33
33
|
pending if Fog.mocking?
|
34
34
|
result = Fog::Compute[:brightbox].map_cloud_ip(@cloud_ip_id, map_options)
|
35
|
-
|
35
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::CLOUD_IP, {:allow_extra_keys => true}) { result }
|
36
36
|
end
|
37
37
|
|
38
38
|
unless Fog.mocking?
|
@@ -42,7 +42,7 @@ Shindo.tests('Fog::Compute[:brightbox] | cloud ip requests', ['brightbox']) do
|
|
42
42
|
tests("#unmap_cloud_ip('#{@cloud_ip_id}')") do
|
43
43
|
pending if Fog.mocking?
|
44
44
|
result = Fog::Compute[:brightbox].unmap_cloud_ip(@cloud_ip_id)
|
45
|
-
|
45
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::CLOUD_IP, {:allow_extra_keys => true}) { result }
|
46
46
|
end
|
47
47
|
|
48
48
|
unless Fog.mocking?
|
@@ -52,14 +52,14 @@ Shindo.tests('Fog::Compute[:brightbox] | cloud ip requests', ['brightbox']) do
|
|
52
52
|
tests("#update_cloud_ip('#{@cloud_ip_id}', #{update_options.inspect})") do
|
53
53
|
pending if Fog.mocking?
|
54
54
|
result = Fog::Compute[:brightbox].update_cloud_ip(@cloud_ip_id, update_options)
|
55
|
-
|
55
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::CLOUD_IP, {:allow_extra_keys => true}) { result }
|
56
56
|
result = Fog::Compute[:brightbox].update_cloud_ip(@cloud_ip_id, {:reverse_dns => ""})
|
57
57
|
end
|
58
58
|
|
59
59
|
tests("#destroy_cloud_ip('#{@cloud_ip_id}')") do
|
60
60
|
pending if Fog.mocking?
|
61
61
|
result = Fog::Compute[:brightbox].destroy_cloud_ip(@cloud_ip_id)
|
62
|
-
|
62
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::CLOUD_IP, {:allow_extra_keys => true}) { result }
|
63
63
|
end
|
64
64
|
|
65
65
|
unless Fog.mocking?
|
@@ -10,17 +10,17 @@ Shindo.tests('Fog::Compute[:brightbox] | firewall policy requests', ['brightbox'
|
|
10
10
|
tests("#create_firewall_policy(#{create_options.inspect})") do
|
11
11
|
result = Fog::Compute[:brightbox].create_firewall_policy(create_options)
|
12
12
|
@firewall_policy_id = result["id"]
|
13
|
-
|
13
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::FIREWALL_POLICY, {:allow_extra_keys => true}) { result }
|
14
14
|
end
|
15
15
|
|
16
16
|
tests("#list_firewall_policies()") do
|
17
|
-
|
17
|
+
data_matches_schema(Brightbox::Compute::Formats::Collection::FIREWALL_POLICIES, {:allow_extra_keys => true}) do
|
18
18
|
Fog::Compute[:brightbox].list_firewall_policies
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
22
|
tests("#get_firewall_policy('#{@firewall_policy_id}')") do
|
23
|
-
|
23
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::FIREWALL_POLICY, {:allow_extra_keys => true}) do
|
24
24
|
Fog::Compute[:brightbox].get_firewall_policy(@firewall_policy_id)
|
25
25
|
end
|
26
26
|
end
|
@@ -28,13 +28,13 @@ Shindo.tests('Fog::Compute[:brightbox] | firewall policy requests', ['brightbox'
|
|
28
28
|
update_options = {:name => "Fog test policy B"}
|
29
29
|
tests("#update_firewall_policy('#{@firewall_policy_id}', #{update_options.inspect})") do
|
30
30
|
result = Fog::Compute[:brightbox].update_firewall_policy(@firewall_policy_id, update_options)
|
31
|
-
|
31
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::FIREWALL_POLICY, {:allow_extra_keys => true}) { result }
|
32
32
|
returns("Fog test policy B") { result["name"] }
|
33
33
|
end
|
34
34
|
|
35
35
|
tests("#destroy_firewall_policy('#{@firewall_policy_id}')") do
|
36
36
|
result = Fog::Compute[:brightbox].destroy_firewall_policy(@firewall_policy_id)
|
37
|
-
|
37
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::FIREWALL_POLICY, {:allow_extra_keys => true}) { result }
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
@@ -15,25 +15,25 @@ Shindo.tests('Fog::Compute[:brightbox] | firewall rule requests', ['brightbox'])
|
|
15
15
|
tests("#create_firewall_rule(#{create_options.inspect})") do
|
16
16
|
result = Fog::Compute[:brightbox].create_firewall_rule(create_options)
|
17
17
|
@firewall_rule_id = result["id"]
|
18
|
-
|
18
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::FIREWALL_RULE, {:allow_extra_keys => true}) { result }
|
19
19
|
end
|
20
20
|
|
21
21
|
tests("#get_firewall_rule('#{@firewall_rule_id}')") do
|
22
|
-
|
22
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::FIREWALL_RULE, {:allow_extra_keys => true}) do
|
23
23
|
Fog::Compute[:brightbox].get_firewall_rule(@firewall_rule_id)
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
27
|
update_options = {:source => nil, :destination => "127.0.0.1"}
|
28
28
|
tests("#update_firewall_rule('#{@firewall_rule_id}', #{update_options.inspect})") do
|
29
|
-
|
29
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::FIREWALL_RULE, {:allow_extra_keys => true}) do
|
30
30
|
Fog::Compute[:brightbox].update_firewall_rule(@firewall_rule_id, update_options)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
34
|
tests("#destroy_firewall_rule('#{@firewall_rule_id}')") do
|
35
35
|
result = Fog::Compute[:brightbox].destroy_firewall_rule(@firewall_rule_id)
|
36
|
-
|
36
|
+
data_matches_schema(Brightbox::Compute::Formats::Full::FIREWALL_RULE, {:allow_extra_keys => true}) { result }
|
37
37
|
end
|
38
38
|
|
39
39
|
unless Fog.mocking?
|
@@ -1,46 +1,3 @@
|
|
1
|
-
module Fog
|
2
|
-
module Brightbox
|
3
|
-
module Nullable
|
4
|
-
module Account; end
|
5
|
-
module FirewallPolicy; end
|
6
|
-
module Image; end
|
7
|
-
module Interface; end
|
8
|
-
module LoadBalancer; end
|
9
|
-
module Server; end
|
10
|
-
module ServerGroup; end
|
11
|
-
module User; end
|
12
|
-
module Zone; end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
Hash.send :include, Fog::Brightbox::Nullable::Account
|
18
|
-
NilClass.send :include, Fog::Brightbox::Nullable::Account
|
19
|
-
|
20
|
-
Hash.send :include, Fog::Brightbox::Nullable::FirewallPolicy
|
21
|
-
NilClass.send :include, Fog::Brightbox::Nullable::FirewallPolicy
|
22
|
-
|
23
|
-
Hash.send :include, Fog::Brightbox::Nullable::Image
|
24
|
-
NilClass.send :include, Fog::Brightbox::Nullable::Image
|
25
|
-
|
26
|
-
Hash.send :include, Fog::Brightbox::Nullable::Interface
|
27
|
-
NilClass.send :include, Fog::Brightbox::Nullable::Interface
|
28
|
-
|
29
|
-
Hash.send :include, Fog::Brightbox::Nullable::LoadBalancer
|
30
|
-
NilClass.send :include, Fog::Brightbox::Nullable::LoadBalancer
|
31
|
-
|
32
|
-
Hash.send :include, Fog::Brightbox::Nullable::Server
|
33
|
-
NilClass.send :include, Fog::Brightbox::Nullable::Server
|
34
|
-
|
35
|
-
Hash.send :include, Fog::Brightbox::Nullable::ServerGroup
|
36
|
-
NilClass.send :include, Fog::Brightbox::Nullable::ServerGroup
|
37
|
-
|
38
|
-
Hash.send :include, Fog::Brightbox::Nullable::User
|
39
|
-
NilClass.send :include, Fog::Brightbox::Nullable::User
|
40
|
-
|
41
|
-
Hash.send :include, Fog::Brightbox::Nullable::Zone
|
42
|
-
NilClass.send :include, Fog::Brightbox::Nullable::Zone
|
43
|
-
|
44
1
|
class Brightbox
|
45
2
|
module Compute
|
46
3
|
module TestSupport
|
@@ -80,650 +37,5 @@ class Brightbox
|
|
80
37
|
images.select { |img| img["official"] && img["virtual_size"] != 0 }.sort_by { |img| img["disk_size"] }.first || images.first
|
81
38
|
end
|
82
39
|
end
|
83
|
-
|
84
|
-
module Formats
|
85
|
-
module Struct
|
86
|
-
CIP_PORT_TRANSLATOR = {
|
87
|
-
"protocol" => String,
|
88
|
-
"incoming" => Integer,
|
89
|
-
"outgoing" => Integer
|
90
|
-
}
|
91
|
-
LB_LISTENER = {
|
92
|
-
"in" => Integer,
|
93
|
-
"out" => Integer,
|
94
|
-
"protocol" => String,
|
95
|
-
"timeout" => Integer
|
96
|
-
}
|
97
|
-
LB_HEALTHCHECK = {
|
98
|
-
"type" => String,
|
99
|
-
"request" => String,
|
100
|
-
"port" => Integer,
|
101
|
-
"interval" => Integer,
|
102
|
-
"timeout" => Integer,
|
103
|
-
"threshold_up" => Integer,
|
104
|
-
"threshold_down" => Integer
|
105
|
-
}
|
106
|
-
end
|
107
|
-
|
108
|
-
module Nested
|
109
|
-
ACCOUNT = {
|
110
|
-
"name" => String,
|
111
|
-
"resource_type" => String,
|
112
|
-
"url" => String,
|
113
|
-
"id" => String,
|
114
|
-
"status" => String
|
115
|
-
}
|
116
|
-
|
117
|
-
API_CLIENT = {
|
118
|
-
"id" => String,
|
119
|
-
"resource_type" => String,
|
120
|
-
"url" => String,
|
121
|
-
"name" => String,
|
122
|
-
"description" => String,
|
123
|
-
"revoked_at" => Fog::Nullable::String
|
124
|
-
}
|
125
|
-
|
126
|
-
CLOUD_IP = {
|
127
|
-
"id" => String,
|
128
|
-
"resource_type" => String,
|
129
|
-
"url" => String,
|
130
|
-
"name" => Fog::Nullable::String,
|
131
|
-
"public_ip" => String,
|
132
|
-
"status" => String,
|
133
|
-
"reverse_dns" => String
|
134
|
-
}
|
135
|
-
|
136
|
-
FIREWALL_POLICY = {
|
137
|
-
"id" => String,
|
138
|
-
"resource_type" => String,
|
139
|
-
"url" => String,
|
140
|
-
"name" => Fog::Nullable::String,
|
141
|
-
"default" => Fog::Boolean,
|
142
|
-
"created_at" => String,
|
143
|
-
"description" => Fog::Nullable::String
|
144
|
-
}
|
145
|
-
|
146
|
-
FIREWALL_RULE = {
|
147
|
-
"id" => String,
|
148
|
-
"resource_type" => String,
|
149
|
-
"url" => String,
|
150
|
-
"created_at" => String,
|
151
|
-
"source" => Fog::Nullable::String,
|
152
|
-
"source_port" => Fog::Nullable::String,
|
153
|
-
"destination" => Fog::Nullable::String,
|
154
|
-
"destination_port" => Fog::Nullable::String,
|
155
|
-
"protocol" => Fog::Nullable::String,
|
156
|
-
"icmp_type_name" => Fog::Nullable::String,
|
157
|
-
"description" => Fog::Nullable::String
|
158
|
-
}
|
159
|
-
|
160
|
-
IMAGE = {
|
161
|
-
"name" => String,
|
162
|
-
"created_at" => String,
|
163
|
-
"resource_type" => String,
|
164
|
-
"arch" => String,
|
165
|
-
"url" => String,
|
166
|
-
"id" => String,
|
167
|
-
"description" => String,
|
168
|
-
"source" => String,
|
169
|
-
"status" => String,
|
170
|
-
"owner" => String,
|
171
|
-
"username" => Fog::Nullable::String
|
172
|
-
}
|
173
|
-
|
174
|
-
INTERFACE = {
|
175
|
-
"resource_type" => String,
|
176
|
-
"url" => String,
|
177
|
-
"id" => String,
|
178
|
-
"ipv4_address" => String,
|
179
|
-
"ipv6_address" => Fog::Nullable::String,
|
180
|
-
"mac_address" => String
|
181
|
-
}
|
182
|
-
|
183
|
-
LOAD_BALANCER = {
|
184
|
-
"id" => String,
|
185
|
-
"resource_type" => String,
|
186
|
-
"url" => String,
|
187
|
-
"name" => String,
|
188
|
-
"status" => String,
|
189
|
-
"created_at" => String,
|
190
|
-
"deleted_at" => Fog::Nullable::String
|
191
|
-
}
|
192
|
-
|
193
|
-
SERVER = {
|
194
|
-
"id" => String,
|
195
|
-
"resource_type" => String,
|
196
|
-
"url" => String,
|
197
|
-
"name" => String,
|
198
|
-
"status" => String,
|
199
|
-
"hostname" => String,
|
200
|
-
"fqdn" => String,
|
201
|
-
"created_at" => String,
|
202
|
-
"started_at" => Fog::Nullable::String,
|
203
|
-
"deleted_at" => Fog::Nullable::String,
|
204
|
-
"username" => Fog::Nullable::String
|
205
|
-
}
|
206
|
-
|
207
|
-
SERVER_GROUP = {
|
208
|
-
"id" => String,
|
209
|
-
"resource_type" => String,
|
210
|
-
"url" => String,
|
211
|
-
"name" => Fog::Nullable::String,
|
212
|
-
"created_at" => String,
|
213
|
-
"default" => Fog::Boolean,
|
214
|
-
"description" => Fog::Nullable::String,
|
215
|
-
"created_at" => String
|
216
|
-
}
|
217
|
-
|
218
|
-
SERVER_TYPE = {
|
219
|
-
"name" => String,
|
220
|
-
"handle" => Fog::Nullable::String,
|
221
|
-
"cores" => Integer,
|
222
|
-
"resource_type" => String,
|
223
|
-
"disk_size" => Integer,
|
224
|
-
"url" => String,
|
225
|
-
"id" => String,
|
226
|
-
"ram" => Integer,
|
227
|
-
"status" => String
|
228
|
-
}
|
229
|
-
|
230
|
-
USER = {
|
231
|
-
"id" => String,
|
232
|
-
"resource_type" => String,
|
233
|
-
"url" => String,
|
234
|
-
"name" => String,
|
235
|
-
"email_address" => String
|
236
|
-
}
|
237
|
-
|
238
|
-
|
239
|
-
COLLABORATION = {
|
240
|
-
"id" => String,
|
241
|
-
"resource_type" => String,
|
242
|
-
"url" => String,
|
243
|
-
"status" => String,
|
244
|
-
"email" => Fog::Nullable::String,
|
245
|
-
"role" => String,
|
246
|
-
"role_label" => String,
|
247
|
-
"user" => Fog::Brightbox::Nullable::User,
|
248
|
-
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
249
|
-
"inviter" => Brightbox::Compute::Formats::Nested::USER
|
250
|
-
}
|
251
|
-
|
252
|
-
ZONE = {
|
253
|
-
"id" => String,
|
254
|
-
"resource_type" => String,
|
255
|
-
"url" => String,
|
256
|
-
"handle" => Fog::Nullable::String
|
257
|
-
}
|
258
|
-
end
|
259
|
-
|
260
|
-
module Collected
|
261
|
-
ACCOUNT = {
|
262
|
-
"id" => String,
|
263
|
-
"resource_type" => String,
|
264
|
-
"url" => String,
|
265
|
-
"name" => String,
|
266
|
-
"status" => String,
|
267
|
-
"vat_registration_number" => Fog::Nullable::String,
|
268
|
-
"telephone_number" => Fog::Nullable::String,
|
269
|
-
"telephone_verified" => Fog::Nullable::Boolean,
|
270
|
-
"ram_limit" => Integer,
|
271
|
-
"ram_used" => Integer,
|
272
|
-
"cloud_ips_limit" => Integer,
|
273
|
-
"cloud_ips_used" => Integer,
|
274
|
-
"load_balancers_limit" => Integer,
|
275
|
-
"load_balancers_used" => Integer,
|
276
|
-
"library_ftp_password" => Fog::Nullable::String,
|
277
|
-
"verified_telephone" => Fog::Nullable::String,
|
278
|
-
"verified_at" => Fog::Nullable::String,
|
279
|
-
"verified_ip" => Fog::Nullable::String,
|
280
|
-
"owner" => Brightbox::Compute::Formats::Nested::USER,
|
281
|
-
"users" => [Brightbox::Compute::Formats::Nested::USER],
|
282
|
-
"clients" => [Brightbox::Compute::Formats::Nested::API_CLIENT],
|
283
|
-
"servers" => [Brightbox::Compute::Formats::Nested::SERVER],
|
284
|
-
"load_balancers" => [Brightbox::Compute::Formats::Nested::LOAD_BALANCER],
|
285
|
-
"cloud_ips" => [Brightbox::Compute::Formats::Nested::CLOUD_IP],
|
286
|
-
"server_groups" => [Brightbox::Compute::Formats::Nested::SERVER_GROUP],
|
287
|
-
"firewall_policies" => [Brightbox::Compute::Formats::Nested::FIREWALL_POLICY],
|
288
|
-
"images" => [Brightbox::Compute::Formats::Nested::IMAGE],
|
289
|
-
"zones" => [Brightbox::Compute::Formats::Nested::ZONE]
|
290
|
-
}
|
291
|
-
|
292
|
-
API_CLIENT = {
|
293
|
-
"id" => String,
|
294
|
-
"resource_type" => String,
|
295
|
-
"url" => String,
|
296
|
-
"name" => String,
|
297
|
-
"description" => String,
|
298
|
-
"revoked_at" => Fog::Nullable::String,
|
299
|
-
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT
|
300
|
-
}
|
301
|
-
|
302
|
-
APPLICATION = {
|
303
|
-
"id" => String,
|
304
|
-
"resource_type" => String,
|
305
|
-
"url" => String,
|
306
|
-
"name" => Fog::Nullable::String
|
307
|
-
}
|
308
|
-
|
309
|
-
CLOUD_IP = {
|
310
|
-
"id" => String,
|
311
|
-
"resource_type" => String,
|
312
|
-
"url" => String,
|
313
|
-
"name" => Fog::Nullable::String,
|
314
|
-
"public_ip" => String,
|
315
|
-
"status" => String,
|
316
|
-
"reverse_dns" => String,
|
317
|
-
"port_translators" => [Brightbox::Compute::Formats::Struct::CIP_PORT_TRANSLATOR],
|
318
|
-
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
319
|
-
"interface" => Fog::Brightbox::Nullable::Interface,
|
320
|
-
"load_balancer" => Fog::Brightbox::Nullable::LoadBalancer,
|
321
|
-
"server" => Fog::Brightbox::Nullable::Server,
|
322
|
-
"server_group" => Fog::Brightbox::Nullable::ServerGroup
|
323
|
-
}
|
324
|
-
|
325
|
-
FIREWALL_POLICY = {
|
326
|
-
"id" => String,
|
327
|
-
"resource_type" => String,
|
328
|
-
"url" => String,
|
329
|
-
"name" => Fog::Nullable::String,
|
330
|
-
"description" => Fog::Nullable::String,
|
331
|
-
"default" => Fog::Boolean,
|
332
|
-
"created_at" => String,
|
333
|
-
"server_group" => Fog::Brightbox::Nullable::ServerGroup,
|
334
|
-
"rules" => [Brightbox::Compute::Formats::Nested::FIREWALL_RULE]
|
335
|
-
}
|
336
|
-
|
337
|
-
IMAGE = {
|
338
|
-
"name" => String,
|
339
|
-
"created_at" => String,
|
340
|
-
"resource_type" => String,
|
341
|
-
"arch" => String,
|
342
|
-
"url" => String,
|
343
|
-
"id" => String,
|
344
|
-
"description" => String,
|
345
|
-
"source" => String,
|
346
|
-
"source_type" => String,
|
347
|
-
"status" => String,
|
348
|
-
"owner" => String,
|
349
|
-
"username" => Fog::Nullable::String,
|
350
|
-
"public" => Fog::Boolean,
|
351
|
-
"official" => Fog::Boolean,
|
352
|
-
"compatibility_mode" => Fog::Boolean,
|
353
|
-
"virtual_size" => Integer,
|
354
|
-
"disk_size" => Integer,
|
355
|
-
"min_ram" => Fog::Nullable::Integer,
|
356
|
-
"ancestor" => Fog::Brightbox::Nullable::Image,
|
357
|
-
"username" => Fog::Nullable::String
|
358
|
-
}
|
359
|
-
|
360
|
-
LOAD_BALANCER = {
|
361
|
-
"id" => String,
|
362
|
-
"resource_type" => String,
|
363
|
-
"url" => String,
|
364
|
-
"name" => String,
|
365
|
-
"status" => String,
|
366
|
-
"created_at" => String,
|
367
|
-
"deleted_at" => Fog::Nullable::String,
|
368
|
-
"cloud_ips" => [Brightbox::Compute::Formats::Nested::CLOUD_IP],
|
369
|
-
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
370
|
-
"listeners" => [Brightbox::Compute::Formats::Struct::LB_LISTENER],
|
371
|
-
"nodes" => [Brightbox::Compute::Formats::Nested::SERVER]
|
372
|
-
}
|
373
|
-
|
374
|
-
SERVER = {
|
375
|
-
"id" => String,
|
376
|
-
"resource_type" => String,
|
377
|
-
"url" => String,
|
378
|
-
"name" => String,
|
379
|
-
"status" => String,
|
380
|
-
"hostname" => String,
|
381
|
-
"fqdn" => String,
|
382
|
-
"created_at" => String,
|
383
|
-
"started_at" => Fog::Nullable::String,
|
384
|
-
"deleted_at" => Fog::Nullable::String,
|
385
|
-
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
386
|
-
"server_type" => Brightbox::Compute::Formats::Nested::SERVER_TYPE,
|
387
|
-
"cloud_ips" => [Brightbox::Compute::Formats::Nested::CLOUD_IP],
|
388
|
-
"image" => Brightbox::Compute::Formats::Nested::IMAGE,
|
389
|
-
"server_groups" => [Brightbox::Compute::Formats::Nested::SERVER_GROUP],
|
390
|
-
"snapshots" => [Brightbox::Compute::Formats::Nested::IMAGE],
|
391
|
-
"interfaces" => [Brightbox::Compute::Formats::Nested::INTERFACE],
|
392
|
-
"zone" => Fog::Brightbox::Nullable::Zone,
|
393
|
-
"username" => Fog::Nullable::String,
|
394
|
-
"compatibility_mode" => Fog::Boolean
|
395
|
-
}
|
396
|
-
|
397
|
-
SERVER_GROUP = {
|
398
|
-
"created_at" => String,
|
399
|
-
"id" => String,
|
400
|
-
"resource_type" => String,
|
401
|
-
"url" => String,
|
402
|
-
"name" => Fog::Nullable::String,
|
403
|
-
"description" => Fog::Nullable::String,
|
404
|
-
"default" => Fog::Boolean,
|
405
|
-
"created_at" => String,
|
406
|
-
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
407
|
-
"servers" => [Brightbox::Compute::Formats::Nested::SERVER],
|
408
|
-
"firewall_policy" => Fog::Brightbox::Nullable::FirewallPolicy
|
409
|
-
}
|
410
|
-
|
411
|
-
SERVER_TYPE = {
|
412
|
-
"id" => String,
|
413
|
-
"resource_type" => String,
|
414
|
-
"url" => String,
|
415
|
-
"handle" => Fog::Nullable::String,
|
416
|
-
"name" => String,
|
417
|
-
"status" => String,
|
418
|
-
"cores" => Integer,
|
419
|
-
"ram" => Integer,
|
420
|
-
"disk_size" => Integer
|
421
|
-
}
|
422
|
-
|
423
|
-
USER = {
|
424
|
-
"id" => String,
|
425
|
-
"resource_type" => String,
|
426
|
-
"url" => String,
|
427
|
-
"name" => String,
|
428
|
-
"email_address" => String,
|
429
|
-
"email_verified" => Fog::Boolean,
|
430
|
-
"accounts" => [Brightbox::Compute::Formats::Nested::ACCOUNT],
|
431
|
-
"default_account" => NilClass
|
432
|
-
}
|
433
|
-
|
434
|
-
COLLABORATION = {
|
435
|
-
"id" => String,
|
436
|
-
"resource_type" => String,
|
437
|
-
"url" => String,
|
438
|
-
"status" => String,
|
439
|
-
"role" => String,
|
440
|
-
"role_label" => String,
|
441
|
-
"email" => Fog::Nullable::String,
|
442
|
-
"user" => Fog::Brightbox::Nullable::User,
|
443
|
-
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
444
|
-
"inviter" => Brightbox::Compute::Formats::Nested::USER
|
445
|
-
}
|
446
|
-
|
447
|
-
ZONE = {
|
448
|
-
"id" => String,
|
449
|
-
"resource_type" => String,
|
450
|
-
"url" => String,
|
451
|
-
"handle" => Fog::Nullable::String
|
452
|
-
}
|
453
|
-
end
|
454
|
-
|
455
|
-
module Full
|
456
|
-
ACCOUNT = {
|
457
|
-
"id" => String,
|
458
|
-
"resource_type" => String,
|
459
|
-
"url" => String,
|
460
|
-
"name" => String,
|
461
|
-
"status" => String,
|
462
|
-
"address_1" => String,
|
463
|
-
"address_2" => String,
|
464
|
-
"city" => String,
|
465
|
-
"county" => String,
|
466
|
-
"postcode" => String,
|
467
|
-
"country_code" => String,
|
468
|
-
"country_name" => String,
|
469
|
-
"vat_registration_number" => Fog::Nullable::String,
|
470
|
-
"telephone_number" => String,
|
471
|
-
"telephone_verified" => Fog::Boolean,
|
472
|
-
"created_at" => String,
|
473
|
-
"ram_limit" => Integer,
|
474
|
-
"ram_used" => Integer,
|
475
|
-
"cloud_ips_limit" => Integer,
|
476
|
-
"cloud_ips_used" => Integer,
|
477
|
-
"load_balancers_limit" => Integer,
|
478
|
-
"load_balancers_used" => Integer,
|
479
|
-
"library_ftp_host" => String,
|
480
|
-
"library_ftp_user" => String,
|
481
|
-
"library_ftp_password" => Fog::Nullable::String,
|
482
|
-
"verified_telephone" => Fog::Nullable::String,
|
483
|
-
"verified_at" => Fog::Nullable::String,
|
484
|
-
"verified_ip" => Fog::Nullable::String,
|
485
|
-
"valid_credit_card" => Fog::Boolean,
|
486
|
-
"owner" => Brightbox::Compute::Formats::Nested::USER,
|
487
|
-
"users" => [Brightbox::Compute::Formats::Nested::USER],
|
488
|
-
"clients" => [Brightbox::Compute::Formats::Nested::API_CLIENT],
|
489
|
-
"servers" => [Brightbox::Compute::Formats::Nested::SERVER],
|
490
|
-
"load_balancers" => [Brightbox::Compute::Formats::Nested::LOAD_BALANCER],
|
491
|
-
"cloud_ips" => [Brightbox::Compute::Formats::Nested::CLOUD_IP],
|
492
|
-
"server_groups" => [Brightbox::Compute::Formats::Nested::SERVER_GROUP],
|
493
|
-
"firewall_policies" => [Brightbox::Compute::Formats::Nested::FIREWALL_POLICY],
|
494
|
-
"images" => [Brightbox::Compute::Formats::Nested::IMAGE],
|
495
|
-
"zones" => [Brightbox::Compute::Formats::Nested::ZONE]
|
496
|
-
}
|
497
|
-
|
498
|
-
API_CLIENT = {
|
499
|
-
"id" => String,
|
500
|
-
"resource_type" => String,
|
501
|
-
"url" => String,
|
502
|
-
"name" => String,
|
503
|
-
"description" => String,
|
504
|
-
"revoked_at" => Fog::Nullable::String,
|
505
|
-
"secret" => Fog::Nullable::String,
|
506
|
-
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT
|
507
|
-
}
|
508
|
-
|
509
|
-
APPLICATION = {
|
510
|
-
"id" => String,
|
511
|
-
"resource_type" => String,
|
512
|
-
"url" => String,
|
513
|
-
"name" => Fog::Nullable::String,
|
514
|
-
"secret" => Fog::Nullable::String
|
515
|
-
}
|
516
|
-
|
517
|
-
CLOUD_IP = {
|
518
|
-
"id" => String,
|
519
|
-
"resource_type" => String,
|
520
|
-
"url" => String,
|
521
|
-
"name" => Fog::Nullable::String,
|
522
|
-
"public_ip" => String,
|
523
|
-
"status" => String,
|
524
|
-
"reverse_dns" => String,
|
525
|
-
"port_translators" => [Brightbox::Compute::Formats::Struct::CIP_PORT_TRANSLATOR],
|
526
|
-
"account" => Fog::Brightbox::Nullable::Account,
|
527
|
-
"interface" => Fog::Brightbox::Nullable::Interface,
|
528
|
-
"load_balancer" => Fog::Brightbox::Nullable::LoadBalancer,
|
529
|
-
"server" => Fog::Brightbox::Nullable::Server,
|
530
|
-
"server_group" => Fog::Brightbox::Nullable::ServerGroup
|
531
|
-
}
|
532
|
-
|
533
|
-
FIREWALL_POLICY = {
|
534
|
-
"id" => String,
|
535
|
-
"resource_type" => String,
|
536
|
-
"url" => String,
|
537
|
-
"name" => Fog::Nullable::String,
|
538
|
-
"description" => Fog::Nullable::String,
|
539
|
-
"default" => Fog::Boolean,
|
540
|
-
"created_at" => String,
|
541
|
-
"server_group" => Fog::Brightbox::Nullable::ServerGroup,
|
542
|
-
"rules" => [Brightbox::Compute::Formats::Nested::FIREWALL_RULE]
|
543
|
-
}
|
544
|
-
|
545
|
-
FIREWALL_RULE = {
|
546
|
-
"id" => String,
|
547
|
-
"resource_type" => String,
|
548
|
-
"url" => String,
|
549
|
-
"created_at" => String,
|
550
|
-
"source" => Fog::Nullable::String,
|
551
|
-
"source_port" => Fog::Nullable::String,
|
552
|
-
"destination" => Fog::Nullable::String,
|
553
|
-
"destination_port" => Fog::Nullable::String,
|
554
|
-
"protocol" => Fog::Nullable::String,
|
555
|
-
"icmp_type_name" => Fog::Nullable::String,
|
556
|
-
"description" => Fog::Nullable::String,
|
557
|
-
"firewall_policy" => Brightbox::Compute::Formats::Nested::FIREWALL_POLICY
|
558
|
-
}
|
559
|
-
|
560
|
-
#FIREWALL_RULE = {
|
561
|
-
#"id" => String,
|
562
|
-
#"resource_type" => String,
|
563
|
-
#"url" => String,
|
564
|
-
#"source" => String,
|
565
|
-
#"source_port" => String,
|
566
|
-
#"destination" => String,
|
567
|
-
#"destination_port" => String,
|
568
|
-
#"protocol" => String,
|
569
|
-
#"icmp_type_name" => String,
|
570
|
-
#"description" => Fog::Nullable::String
|
571
|
-
#}
|
572
|
-
|
573
|
-
IMAGE = {
|
574
|
-
"name" => String,
|
575
|
-
"created_at" => String,
|
576
|
-
"resource_type" => String,
|
577
|
-
"arch" => String,
|
578
|
-
"url" => String,
|
579
|
-
"id" => String,
|
580
|
-
"description" => String,
|
581
|
-
"source" => String,
|
582
|
-
"source_type" => String,
|
583
|
-
"status" => String,
|
584
|
-
"owner" => String, # Account ID not object
|
585
|
-
"username" => Fog::Nullable::String,
|
586
|
-
"public" => Fog::Boolean,
|
587
|
-
"official" => Fog::Boolean,
|
588
|
-
"compatibility_mode" => Fog::Boolean,
|
589
|
-
"virtual_size" => Integer,
|
590
|
-
"disk_size" => Integer,
|
591
|
-
"min_ram" => Fog::Nullable::Integer,
|
592
|
-
"ancestor" => Fog::Brightbox::Nullable::Image,
|
593
|
-
"username" => Fog::Nullable::String,
|
594
|
-
"licence_name" => Fog::Nullable::String
|
595
|
-
}
|
596
|
-
|
597
|
-
INTERFACE = {
|
598
|
-
"resource_type" => String,
|
599
|
-
"url" => String,
|
600
|
-
"id" => String,
|
601
|
-
"ipv4_address" => String,
|
602
|
-
"ipv6_address" => Fog::Nullable::String,
|
603
|
-
"mac_address" => String,
|
604
|
-
"server" => Brightbox::Compute::Formats::Nested::SERVER
|
605
|
-
}
|
606
|
-
|
607
|
-
LOAD_BALANCER = {
|
608
|
-
"id" => String,
|
609
|
-
"resource_type" => String,
|
610
|
-
"url" => String,
|
611
|
-
"name" => String,
|
612
|
-
"status" => String,
|
613
|
-
"listeners" => [Brightbox::Compute::Formats::Struct::LB_LISTENER],
|
614
|
-
"policy" => String,
|
615
|
-
"healthcheck" => Brightbox::Compute::Formats::Struct::LB_HEALTHCHECK,
|
616
|
-
"created_at" => String,
|
617
|
-
"deleted_at" => Fog::Nullable::String,
|
618
|
-
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
619
|
-
"nodes" => [Brightbox::Compute::Formats::Nested::SERVER],
|
620
|
-
"cloud_ips" => [Brightbox::Compute::Formats::Nested::CLOUD_IP]
|
621
|
-
}
|
622
|
-
|
623
|
-
SERVER = {
|
624
|
-
"id" => String,
|
625
|
-
"resource_type" => String,
|
626
|
-
"url" => String,
|
627
|
-
"name" => String,
|
628
|
-
"status" => String,
|
629
|
-
"hostname" => String,
|
630
|
-
"fqdn" => String,
|
631
|
-
"created_at" => String,
|
632
|
-
"started_at" => Fog::Nullable::String,
|
633
|
-
"deleted_at" => Fog::Nullable::String,
|
634
|
-
"user_data" => Fog::Nullable::String,
|
635
|
-
"console_url" => Fog::Nullable::String,
|
636
|
-
"console_token" => Fog::Nullable::String,
|
637
|
-
"console_token_expires" => Fog::Nullable::String,
|
638
|
-
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
639
|
-
"server_type" => Brightbox::Compute::Formats::Nested::SERVER_TYPE,
|
640
|
-
"cloud_ips" => [Brightbox::Compute::Formats::Nested::CLOUD_IP],
|
641
|
-
"image" => Brightbox::Compute::Formats::Nested::IMAGE,
|
642
|
-
"snapshots" => [Brightbox::Compute::Formats::Nested::IMAGE],
|
643
|
-
"server_groups" => [Brightbox::Compute::Formats::Nested::SERVER_GROUP],
|
644
|
-
"interfaces" => [Brightbox::Compute::Formats::Nested::INTERFACE],
|
645
|
-
"zone" => Fog::Brightbox::Nullable::Zone,
|
646
|
-
"licence_name" => Fog::Nullable::String,
|
647
|
-
"username" => Fog::Nullable::String,
|
648
|
-
"compatibility_mode" => Fog::Boolean
|
649
|
-
}
|
650
|
-
|
651
|
-
SERVER_GROUP = {
|
652
|
-
"created_at" => String,
|
653
|
-
"id" => String,
|
654
|
-
"resource_type" => String,
|
655
|
-
"url" => String,
|
656
|
-
"name" => String,
|
657
|
-
"description" => Fog::Nullable::String,
|
658
|
-
"default" => Fog::Boolean,
|
659
|
-
"created_at" => String,
|
660
|
-
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
661
|
-
"servers" => [Brightbox::Compute::Formats::Nested::SERVER],
|
662
|
-
"firewall_policy" => Fog::Brightbox::Nullable::FirewallPolicy
|
663
|
-
}
|
664
|
-
|
665
|
-
SERVER_TYPE = {
|
666
|
-
"id" => String,
|
667
|
-
"resource_type" => String,
|
668
|
-
"url" => String,
|
669
|
-
"handle" => Fog::Nullable::String,
|
670
|
-
"name" => String,
|
671
|
-
"status" => String,
|
672
|
-
"cores" => Integer,
|
673
|
-
"ram" => Integer,
|
674
|
-
"disk_size" => Integer
|
675
|
-
}
|
676
|
-
|
677
|
-
USER = {
|
678
|
-
"id" => String,
|
679
|
-
"resource_type" => String,
|
680
|
-
"url" => String,
|
681
|
-
"name" => String,
|
682
|
-
"email_address" => String,
|
683
|
-
"email_verified" => Fog::Boolean,
|
684
|
-
"accounts" => [Brightbox::Compute::Formats::Nested::ACCOUNT],
|
685
|
-
"default_account" => Fog::Brightbox::Nullable::Account,
|
686
|
-
"ssh_key" => Fog::Nullable::String,
|
687
|
-
"messaging_pref" => Fog::Boolean
|
688
|
-
}
|
689
|
-
|
690
|
-
COLLABORATION = {
|
691
|
-
"id" => String,
|
692
|
-
"resource_type" => String,
|
693
|
-
"url" => String,
|
694
|
-
"status" => String,
|
695
|
-
"role" => String,
|
696
|
-
"role_label" => String,
|
697
|
-
"email" => Fog::Nullable::String,
|
698
|
-
"user" => Fog::Brightbox::Nullable::User,
|
699
|
-
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
|
700
|
-
"inviter" => Brightbox::Compute::Formats::Nested::USER
|
701
|
-
}
|
702
|
-
|
703
|
-
ZONE = {
|
704
|
-
"id" => String,
|
705
|
-
"resource_type" => String,
|
706
|
-
"url" => String,
|
707
|
-
"handle" => String
|
708
|
-
}
|
709
|
-
end
|
710
|
-
|
711
|
-
module Collection
|
712
|
-
ACCOUNTS = [Brightbox::Compute::Formats::Collected::ACCOUNT]
|
713
|
-
API_CLIENTS = [Brightbox::Compute::Formats::Collected::API_CLIENT]
|
714
|
-
APPLICATION = [Brightbox::Compute::Formats::Collected::APPLICATION]
|
715
|
-
CLOUD_IPS = [Brightbox::Compute::Formats::Collected::CLOUD_IP]
|
716
|
-
IMAGES = [Brightbox::Compute::Formats::Collected::IMAGE]
|
717
|
-
FIREWALL_POLICIES = [Brightbox::Compute::Formats::Collected::FIREWALL_POLICY]
|
718
|
-
LOAD_BALANCERS = [Brightbox::Compute::Formats::Collected::LOAD_BALANCER]
|
719
|
-
SERVERS = [Brightbox::Compute::Formats::Collected::SERVER]
|
720
|
-
SERVER_GROUPS = [Brightbox::Compute::Formats::Collected::SERVER_GROUP]
|
721
|
-
SERVER_TYPES = [Brightbox::Compute::Formats::Collected::SERVER_TYPE]
|
722
|
-
USERS = [Brightbox::Compute::Formats::Collected::USER]
|
723
|
-
ZONES = [Brightbox::Compute::Formats::Collected::ZONE]
|
724
|
-
COLLABORATIONS = [Brightbox::Compute::Formats::Collected::COLLABORATION]
|
725
|
-
end
|
726
|
-
|
727
|
-
end
|
728
40
|
end
|
729
41
|
end
|