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,55 @@
|
|
1
|
+
module Fog
|
2
|
+
module AWS
|
3
|
+
class Redshift
|
4
|
+
class Real
|
5
|
+
require 'fog/aws/parsers/redshift/describe_orderable_cluster_options'
|
6
|
+
|
7
|
+
# ==== Parameters
|
8
|
+
#
|
9
|
+
# @param [Hash] options
|
10
|
+
# * :cluster_version - (String)
|
11
|
+
# The version filter value. Specify this parameter to show only the available
|
12
|
+
# offerings matching the specified version. Default: All versions. Constraints:
|
13
|
+
# Must be one of the version returned from DescribeClusterVersions.
|
14
|
+
# * :node_type - (String)
|
15
|
+
# The node type filter value. Specify this parameter to show only the available
|
16
|
+
# offerings matching the specified node type.
|
17
|
+
# * :max_records - (Integer)
|
18
|
+
# The maximum number of records to include in the response. If more than the
|
19
|
+
# MaxRecords value is available, a marker is included in the response so that the
|
20
|
+
# following results can be retrieved. Constrained between [20,100]. Default is 100.
|
21
|
+
# * :marker - (String)
|
22
|
+
# The marker returned from a previous request. If this parameter is specified, the
|
23
|
+
# response includes records beyond the marker only, up to MaxRecords.
|
24
|
+
#
|
25
|
+
# ==== See Also
|
26
|
+
# http://docs.aws.amazon.com/redshift/latest/APIReference/API_DescribeOrderableClusterOptions.html
|
27
|
+
def describe_orderable_cluster_options(options = {})
|
28
|
+
cluster_version = options[:cluster_version]
|
29
|
+
node_type = options[:node_type]
|
30
|
+
marker = options[:marker]
|
31
|
+
max_records = options[:max_records]
|
32
|
+
|
33
|
+
path = "/"
|
34
|
+
params = {
|
35
|
+
:idempotent => true,
|
36
|
+
:headers => {},
|
37
|
+
:path => path,
|
38
|
+
:method => :get,
|
39
|
+
:query => {},
|
40
|
+
:parser => Fog::Parsers::Redshift::AWS::DescribeOrderableClusterOptions.new
|
41
|
+
}
|
42
|
+
|
43
|
+
params[:query]['Action'] = 'DescribeOrderableClusterOptions'
|
44
|
+
params[:query]['ClusterVersion'] = cluster_version if cluster_version
|
45
|
+
params[:query]['NodeType'] = node_type if node_type
|
46
|
+
params[:query]['Marker'] = marker if marker
|
47
|
+
params[:query]['MaxRecords'] = max_records if max_records
|
48
|
+
|
49
|
+
request(params)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
module Fog
|
2
|
+
module AWS
|
3
|
+
class Redshift
|
4
|
+
class Real
|
5
|
+
require 'fog/aws/parsers/redshift/describe_reserved_node_offerings'
|
6
|
+
|
7
|
+
# ==== Parameters
|
8
|
+
#
|
9
|
+
# @param [Hash] options
|
10
|
+
# * :reserved_node_offering_id - (String)
|
11
|
+
# The unique identifier for the offering.
|
12
|
+
# * :max_records - (Integer)
|
13
|
+
# The maximum number of records to include in the response. If more than the
|
14
|
+
# MaxRecords value is available, a marker is included in the response so that the
|
15
|
+
# following results can be retrieved. Constrained between [20,100]. Default is 100.
|
16
|
+
# * :marker - (String)
|
17
|
+
# The marker returned from a previous request. If this parameter is specified, the
|
18
|
+
# response includes records beyond the marker only, up to MaxRecords.
|
19
|
+
#
|
20
|
+
# ==== See Also
|
21
|
+
# http://docs.aws.amazon.com/redshift/latest/APIReference/API_DescribeReservedNodeOfferings.html
|
22
|
+
def describe_reserved_node_offerings(options = {})
|
23
|
+
reserved_node_offering_id = options[:reserved_node_offering_id]
|
24
|
+
marker = options[:marker]
|
25
|
+
max_records = options[:max_records]
|
26
|
+
|
27
|
+
path = "/"
|
28
|
+
params = {
|
29
|
+
:idempotent => true,
|
30
|
+
:headers => {},
|
31
|
+
:path => path,
|
32
|
+
:method => :get,
|
33
|
+
:query => {},
|
34
|
+
:parser => Fog::Parsers::Redshift::AWS::DescribeReservedNodeOfferings.new
|
35
|
+
}
|
36
|
+
|
37
|
+
params[:query]['Action'] = 'DescribeReservedNodeOfferings'
|
38
|
+
params[:query]['ReservedNodeOfferingId'] = reserved_node_offering_id if reserved_node_offering_id
|
39
|
+
params[:query]['Marker'] = marker if marker
|
40
|
+
params[:query]['MaxRecords'] = max_records if max_records
|
41
|
+
|
42
|
+
request(params)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
module Fog
|
2
|
+
module AWS
|
3
|
+
class Redshift
|
4
|
+
class Real
|
5
|
+
require 'fog/aws/parsers/redshift/describe_reserved_nodes'
|
6
|
+
|
7
|
+
# ==== Parameters
|
8
|
+
#
|
9
|
+
# @param [Hash] options
|
10
|
+
# * :reserved_node_id - (String)
|
11
|
+
# The unique identifier for the node reservation.
|
12
|
+
# * :max_records - (Integer)
|
13
|
+
# The maximum number of records to include in the response. If more than the
|
14
|
+
# MaxRecords value is available, a marker is included in the response so that the
|
15
|
+
# following results can be retrieved. Constrained between [20,100]. Default is 100.
|
16
|
+
# * :marker - (String)
|
17
|
+
# The marker returned from a previous request. If this parameter is specified, the
|
18
|
+
# response includes records beyond the marker only, up to MaxRecords.
|
19
|
+
#
|
20
|
+
# ==== See Also
|
21
|
+
# http://docs.aws.amazon.com/redshift/latest/APIReference/API_DescribeReservedNodes.html
|
22
|
+
def describe_reserved_nodes(options = {})
|
23
|
+
reserved_node_id = options[:reserved_node_id]
|
24
|
+
marker = options[:marker]
|
25
|
+
max_records = options[:max_records]
|
26
|
+
|
27
|
+
path = "/"
|
28
|
+
params = {
|
29
|
+
:idempotent => true,
|
30
|
+
:headers => {},
|
31
|
+
:path => path,
|
32
|
+
:method => :get,
|
33
|
+
:query => {},
|
34
|
+
:parser => Fog::Parsers::Redshift::AWS::DescribeReservedNodes.new
|
35
|
+
}
|
36
|
+
|
37
|
+
params[:query]['Action'] = 'DescribeReservedNodes'
|
38
|
+
params[:query]['ReservedNodeId'] = reserved_node_id if reserved_node_id
|
39
|
+
params[:query]['Marker'] = marker if marker
|
40
|
+
params[:query]['MaxRecords'] = max_records if max_records
|
41
|
+
|
42
|
+
request(params)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
module Fog
|
2
|
+
module AWS
|
3
|
+
class Redshift
|
4
|
+
class Real
|
5
|
+
require 'fog/aws/parsers/redshift/describe_resize'
|
6
|
+
|
7
|
+
# ==== Parameters
|
8
|
+
#
|
9
|
+
# @param [Hash] options
|
10
|
+
# * :cluster_identifier - required - (String)
|
11
|
+
# The unique identifier of a cluster whose resize progress you are requesting.
|
12
|
+
# This parameter isn't case-sensitive. By default, resize operations for all
|
13
|
+
# clusters defined for an AWS account are returned.
|
14
|
+
#
|
15
|
+
# ==== See Also
|
16
|
+
# http://docs.aws.amazon.com/redshift/latest/APIReference/API_DescribeResize.html
|
17
|
+
def describe_resize(options = {})
|
18
|
+
cluster_identifier = options[:cluster_identifier]
|
19
|
+
|
20
|
+
path = "/"
|
21
|
+
params = {
|
22
|
+
:idempotent => true,
|
23
|
+
:headers => {},
|
24
|
+
:path => path,
|
25
|
+
:method => :get,
|
26
|
+
:query => {},
|
27
|
+
:parser => Fog::Parsers::Redshift::AWS::DescribeResize.new
|
28
|
+
}
|
29
|
+
|
30
|
+
params[:query]['Action'] = 'DescribeResize'
|
31
|
+
params[:query]['ClusterIdentifier'] = cluster_identifier if cluster_identifier
|
32
|
+
|
33
|
+
request(params)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,111 @@
|
|
1
|
+
module Fog
|
2
|
+
module AWS
|
3
|
+
class Redshift
|
4
|
+
class Real
|
5
|
+
require 'fog/aws/parsers/redshift/cluster'
|
6
|
+
|
7
|
+
# ==== Parameters
|
8
|
+
#
|
9
|
+
# @param [Hash] options
|
10
|
+
# * :cluster_identifier - required - (String)
|
11
|
+
# A unique identifier for the cluster. You use this identifier to refer to the cluster
|
12
|
+
# for any subsequent cluster operations such as deleting or modifying. Must be unique
|
13
|
+
# for all clusters within an AWS account. Example: myexamplecluster
|
14
|
+
# * :allow_version_upgrade - (Boolean)
|
15
|
+
# If `true` , upgrades can be applied during the maintenance window to the Amazon
|
16
|
+
# Redshift engine that is running on the cluster. Default: `true`
|
17
|
+
# * :automated_snapshot_retention_period - (Integer)
|
18
|
+
# Number of days that automated snapshots are retained. If the value is 0, automated
|
19
|
+
# snapshots are disabled. Default: 1 Constraints: Must be a value from 0 to 35.
|
20
|
+
# * :cluster_parameter_group_name - (String)
|
21
|
+
# The name of the parameter group to be associated with this cluster. Default: The
|
22
|
+
# default Amazon Redshift cluster parameter group. Constraints: Must be 1 to 255
|
23
|
+
# alphanumeric characters or hyphens. First character must be a letter. Cannot end
|
24
|
+
# with a hyphen or contain two consecutive hyphens.
|
25
|
+
# * :cluster_security_groups - (Array<String>)
|
26
|
+
# A list of security groups to be associated with this cluster. Default: The default
|
27
|
+
# cluster security group for Amazon Redshift.
|
28
|
+
# * :cluster_type - (String)
|
29
|
+
# Type of the cluster. When cluster type is specified as single-node, the NumberOfNodes
|
30
|
+
# parameter is not required. multi-node, the NumberOfNodes parameter is required. Valid
|
31
|
+
# Values: multi-node | single-node Default: multi-node
|
32
|
+
# * :cluster_version - (String)
|
33
|
+
# The version of the Amazon Redshift engine software that you want to deploy on the
|
34
|
+
# cluster. The version selected runs on all the nodes in the cluster. Constraints:
|
35
|
+
# Only version 1.0 is currently available. Example: 1.0
|
36
|
+
# * :master_user_password - required - (String)
|
37
|
+
# The password associated with the master user account for the cluster that is being
|
38
|
+
# created. Constraints: Must be between 8 and 64 characters in length. Must contain at
|
39
|
+
# least one uppercase letter. Must contain at least one lowercase letter. Must contain
|
40
|
+
# one number.
|
41
|
+
# * :node_type - required - (String)
|
42
|
+
# The node type to be provisioned. Valid Values: dw.hs1.xlarge | dw.hs1.8xlarge.
|
43
|
+
# * :number_of_nodes - (Integer)
|
44
|
+
# The number of compute nodes in the cluster. This parameter is required when the
|
45
|
+
# ClusterType parameter is specified as multi-node. If you don't specify this parameter,
|
46
|
+
# you get a single-node cluster. When requesting a multi-node cluster, you must specify
|
47
|
+
# the number of nodes that you want in the cluster. Default: 1 Constraints: Value must
|
48
|
+
# be at least 1 and no more than 100.
|
49
|
+
# * :preferred_maintenance_window - (String)
|
50
|
+
# The weekly time range (in UTC) during which automated cluster maintenance can occur.
|
51
|
+
# Format: ddd:hh24:mi-ddd:hh24:mi Default: A 30-minute window selected at random from
|
52
|
+
# an 8-hour block of time per region, occurring on a random day of the week.
|
53
|
+
# Constraints: Minimum 30-minute window.
|
54
|
+
# * :vpc_security_group_ids - (Array<String>)
|
55
|
+
# A list of Virtual Private Cloud (VPC) security groups to be associated with the
|
56
|
+
# cluster. Default: The default VPC security group is associated with the cluster.
|
57
|
+
#
|
58
|
+
# ==== See Also
|
59
|
+
# http://docs.aws.amazon.com/redshift/latest/APIReference/API_CreateCluster.html
|
60
|
+
def modify_cluster(options = {})
|
61
|
+
cluster_identifier = options[:cluster_identifier]
|
62
|
+
cluster_type = options[:cluster_type]
|
63
|
+
node_type = options[:node_type]
|
64
|
+
master_user_password = options[:master_user_password]
|
65
|
+
preferred_maintenance_window = options[:preferred_maintenance_window]
|
66
|
+
cluster_parameter_group_name = options[:cluster_parameter_group_name]
|
67
|
+
automated_snapshot_retention_period = options[:automated_snapshot_retention_period]
|
68
|
+
cluster_version = options[:cluster_version]
|
69
|
+
allow_version_upgrade = options[:allow_version_upgrade]
|
70
|
+
number_of_nodes = options[:number_of_nodes]
|
71
|
+
|
72
|
+
path = "/"
|
73
|
+
params = {
|
74
|
+
:idempotent => true,
|
75
|
+
:headers => {},
|
76
|
+
:path => path,
|
77
|
+
:method => :put,
|
78
|
+
:query => {},
|
79
|
+
:parser => Fog::Parsers::Redshift::AWS::Cluster.new
|
80
|
+
}
|
81
|
+
|
82
|
+
if cluster_security_groups = options.delete(:ClusterSecurityGroups)
|
83
|
+
params[:query].merge!(Fog::AWS.indexed_param('ClusterSecurityGroups.member.%d', [*cluster_security_groups]))
|
84
|
+
end
|
85
|
+
|
86
|
+
if vpc_security_group_ids = options.delete(:VpcSecurityGroupIds)
|
87
|
+
params[:query].merge!(Fog::AWS.indexed_param('VpcSecurityGroupIds.member.%d', [*vpc_security_group_ids]))
|
88
|
+
end
|
89
|
+
|
90
|
+
|
91
|
+
params[:query]['Action'] = 'ModifyCluster'
|
92
|
+
params[:query]['ClusterIdentifier'] = cluster_identifier if cluster_identifier
|
93
|
+
params[:query]['ClusterParameterGroupName'] = cluster_parameter_group_name if cluster_parameter_group_name
|
94
|
+
params[:query]['ClusterType'] = cluster_type if cluster_type
|
95
|
+
params[:query]['NodeType'] = node_type if node_type
|
96
|
+
params[:query]['MasterUserPassword'] = master_user_password if master_user_password
|
97
|
+
params[:query]['PreferredMaintenanceWindow'] = preferred_maintenance_window if preferred_maintenance_window
|
98
|
+
params[:query]['AutomatedSnapshotRetentionPeriod'] = automated_snapshot_retention_period if automated_snapshot_retention_period
|
99
|
+
params[:query]['ClusterVersion'] = cluster_version if cluster_version
|
100
|
+
params[:query]['AllowVersionUpgrade'] = allow_version_upgrade if allow_version_upgrade
|
101
|
+
params[:query]['NumberOfNodes'] = number_of_nodes if number_of_nodes
|
102
|
+
params[:query]['ClusterSecurityGroups'] = cluster_security_groups if cluster_security_groups
|
103
|
+
params[:query]['VpcSecurityGroupIds'] = vpc_security_group_ids if vpc_security_group_ids
|
104
|
+
|
105
|
+
request(params)
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module Fog
|
2
|
+
module AWS
|
3
|
+
class Redshift
|
4
|
+
class Real
|
5
|
+
require 'fog/aws/parsers/redshift/update_cluster_parameter_group_parser'
|
6
|
+
|
7
|
+
# ==== Parameters
|
8
|
+
#
|
9
|
+
# @param [Hash] options
|
10
|
+
# * :parameter_group_name - required - (String)
|
11
|
+
# The name of the parameter group to be deleted. Constraints: Must be the name of an
|
12
|
+
# existing cluster parameter group. Cannot delete a default cluster parameter group.
|
13
|
+
#
|
14
|
+
# ==== See Also
|
15
|
+
# http://docs.aws.amazon.com/redshift/latest/APIReference/API_ModifyClusterParameterGroup.html
|
16
|
+
def modify_cluster_parameter_group(options = {})
|
17
|
+
parameter_group_name = options[:parameter_group_name]
|
18
|
+
|
19
|
+
path = "/"
|
20
|
+
params = {
|
21
|
+
:headers => {},
|
22
|
+
:path => path,
|
23
|
+
:method => :put,
|
24
|
+
:query => {},
|
25
|
+
:parser => Fog::Parsers::Redshift::AWS::UpdateClusterParameterGroupParser.new
|
26
|
+
}
|
27
|
+
|
28
|
+
params[:query]['Action'] = 'ModifyClusterParameterGroup'
|
29
|
+
params[:query]['ParameterGroupName'] = parameter_group_name if parameter_group_name
|
30
|
+
|
31
|
+
if options['Parameters']
|
32
|
+
options['Parameters'].keys.each_with_index do |name, index|
|
33
|
+
params[:query].merge!({
|
34
|
+
"Parameters.member.#{index+1}.#{name}" => options['Parameters'][name]
|
35
|
+
})
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
request(params)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
module Fog
|
2
|
+
module AWS
|
3
|
+
class Redshift
|
4
|
+
class Real
|
5
|
+
require 'fog/aws/parsers/redshift/cluster_subnet_group_parser'
|
6
|
+
|
7
|
+
# ==== Parameters
|
8
|
+
#
|
9
|
+
# @param [Hash] options
|
10
|
+
# * :cluster_subnet_group_name - required - (String)
|
11
|
+
# The name for the subnet group. Amazon Redshift stores the value as a lowercase string.
|
12
|
+
# Constraints: Must contain no more than 255 alphanumeric characters or hyphens. Must not
|
13
|
+
# be "Default". Must be unique for all subnet groups that are created by your AWS account.
|
14
|
+
# Example: examplesubnetgroup
|
15
|
+
# * :description - required - (String)
|
16
|
+
# A description of the parameter group.
|
17
|
+
# * :subnet_ids - required - (Array<)
|
18
|
+
# An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.
|
19
|
+
#
|
20
|
+
# ==== See Also
|
21
|
+
# http://docs.aws.amazon.com/redshift/latest/APIReference/API_ModifyClusterSubnetGroup.html
|
22
|
+
def modify_cluster_subnet_group(options = {})
|
23
|
+
cluster_subnet_group_name = options[:cluster_subnet_group_name]
|
24
|
+
description = options[:description]
|
25
|
+
|
26
|
+
path = "/"
|
27
|
+
params = {
|
28
|
+
:idempotent => true,
|
29
|
+
:headers => {},
|
30
|
+
:path => path,
|
31
|
+
:method => :put,
|
32
|
+
:query => {},
|
33
|
+
:parser => Fog::Parsers::Redshift::AWS::ClusterSubnetGroupParser.new
|
34
|
+
}
|
35
|
+
|
36
|
+
if subnet_ids = options.delete(:subnet_ids)
|
37
|
+
params[:query].merge!(Fog::AWS.indexed_param('SubnetIds.member.%d', [*subnet_ids]))
|
38
|
+
end
|
39
|
+
|
40
|
+
params[:query]['Action'] = 'ModifyClusterSubnetGroup'
|
41
|
+
params[:query]['ClusterSubnetGroupName'] = cluster_subnet_group_name if cluster_subnet_group_name
|
42
|
+
params[:query]['Description'] = description if description
|
43
|
+
|
44
|
+
request(params)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module Fog
|
2
|
+
module AWS
|
3
|
+
class Redshift
|
4
|
+
class Real
|
5
|
+
require 'fog/aws/parsers/redshift/purchase_reserved_node_offering'
|
6
|
+
|
7
|
+
# ==== Parameters
|
8
|
+
#
|
9
|
+
# @param [Hash] options
|
10
|
+
# * :reserved_node_offering_id - required - (String)
|
11
|
+
# The unique identifier of the reserved node offering you want to purchase.
|
12
|
+
# * :node_count - (Integer)
|
13
|
+
# The number of reserved nodes you want to purchase. Default: 1
|
14
|
+
#
|
15
|
+
# ==== See Also
|
16
|
+
# http://docs.aws.amazon.com/redshift/latest/APIReference/API_PurchaseReservedNodeOffering.html
|
17
|
+
def purchase_reserved_node_offering(options = {})
|
18
|
+
reserved_node_offering_id = options[:reserved_node_offering_id]
|
19
|
+
node_count = options[:node_count]
|
20
|
+
|
21
|
+
path = "/"
|
22
|
+
params = {
|
23
|
+
:headers => {},
|
24
|
+
:path => path,
|
25
|
+
:method => :put,
|
26
|
+
:query => {},
|
27
|
+
:parser => Fog::Parsers::Redshift::AWS::PurchaseReservedNodeOffering.new
|
28
|
+
}
|
29
|
+
|
30
|
+
params[:query]['Action'] = 'PurchaseReservedNodeOffering'
|
31
|
+
params[:query]['ReservedNodeOfferingId'] = reserved_node_offering_id if reserved_node_offering_id
|
32
|
+
params[:query]['NodeCount'] = node_count if node_count
|
33
|
+
|
34
|
+
request(params)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|