fog 1.23.0 → 1.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +275 -2
- data/CONTRIBUTORS.md +27 -0
- data/fog.gemspec +5 -2
- data/lib/fog/atmos/models/storage/files.rb +1 -1
- data/lib/fog/atmos/requests/storage/get_namespace.rb +6 -1
- data/lib/fog/aws/beanstalk.rb +29 -19
- data/lib/fog/aws/cdn.rb +14 -1
- data/lib/fog/aws/cloud_formation.rb +29 -19
- data/lib/fog/aws/compute.rb +20 -4
- data/lib/fog/aws/data_pipeline.rb +14 -4
- data/lib/fog/aws/dns.rb +19 -1
- data/lib/fog/aws/dynamodb.rb +14 -1
- data/lib/fog/aws/elasticache.rb +33 -23
- data/lib/fog/aws/emr.rb +20 -13
- data/lib/fog/aws/glacier.rb +13 -1
- data/lib/fog/aws/iam.rb +3 -0
- data/lib/fog/aws/models/auto_scaling/configuration.rb +1 -0
- data/lib/fog/aws/models/auto_scaling/instance.rb +1 -1
- data/lib/fog/aws/models/compute/server.rb +1 -2
- data/lib/fog/aws/models/compute/servers.rb +2 -2
- data/lib/fog/aws/models/dns/record.rb +19 -13
- data/lib/fog/aws/models/storage/file.rb +11 -2
- data/lib/fog/aws/parsers/compute/spot_instance_requests.rb +4 -2
- data/lib/fog/aws/parsers/dns/create_health_check.rb +0 -0
- data/lib/fog/aws/parsers/dns/health_check.rb +33 -0
- data/lib/fog/aws/parsers/dns/list_health_checks.rb +41 -0
- data/lib/fog/aws/parsers/dns/list_resource_record_sets.rb +8 -2
- data/lib/fog/aws/parsers/iam/get_account_password_policy.rb +26 -0
- data/lib/fog/aws/rds.rb +39 -29
- data/lib/fog/aws/redshift.rb +16 -4
- data/lib/fog/aws/region_methods.rb +2 -2
- data/lib/fog/aws/requests/auto_scaling/create_launch_configuration.rb +3 -0
- data/lib/fog/aws/requests/compute/describe_instances.rb +3 -0
- data/lib/fog/aws/requests/dns/change_resource_record_sets.rb +20 -1
- data/lib/fog/aws/requests/dns/create_health_check.rb +64 -0
- data/lib/fog/aws/requests/dns/delete_health_check.rb +24 -0
- data/lib/fog/aws/requests/dns/get_health_check.rb +41 -0
- data/lib/fog/aws/requests/dns/list_health_checks.rb +36 -0
- data/lib/fog/aws/requests/dns/list_hosted_zones.rb +1 -1
- data/lib/fog/aws/requests/iam/delete_account_password_policy.rb +36 -0
- data/lib/fog/aws/requests/iam/get_account_password_policy.rb +36 -0
- data/lib/fog/aws/requests/iam/update_account_password_policy.rb +56 -0
- data/lib/fog/aws/requests/storage/head_bucket.rb +38 -0
- data/lib/fog/aws/ses.rb +31 -23
- data/lib/fog/aws/simpledb.rb +14 -4
- data/lib/fog/aws/sns.rb +14 -4
- data/lib/fog/aws/sqs.rb +17 -7
- data/lib/fog/aws/storage.rb +18 -9
- data/lib/fog/aws/sts.rb +29 -19
- data/lib/fog/bin/google.rb +16 -4
- data/lib/fog/cloudstack/compute.rb +49 -19
- data/lib/fog/cloudstack/requests/compute/activate_project.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/add_account_to_project.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/add_baremetal_dhcp.rb +14 -10
- data/lib/fog/cloudstack/requests/compute/add_baremetal_host.rb +15 -11
- data/lib/fog/cloudstack/requests/compute/add_baremetal_pxe_kick_start_server.rb +15 -11
- data/lib/fog/cloudstack/requests/compute/add_baremetal_pxe_ping_server.rb +17 -13
- data/lib/fog/cloudstack/requests/compute/add_big_switch_vns_device.rb +26 -0
- data/lib/fog/cloudstack/requests/compute/add_cisco_asa1000v_resource.rb +13 -9
- data/lib/fog/cloudstack/requests/compute/add_cisco_vnmc_resource.rb +13 -9
- data/lib/fog/cloudstack/requests/compute/add_cluster.rb +14 -10
- data/lib/fog/cloudstack/requests/compute/add_external_firewall.rb +13 -9
- data/lib/fog/cloudstack/requests/compute/add_external_load_balancer.rb +13 -9
- data/lib/fog/cloudstack/requests/compute/add_f5_load_balancer.rb +14 -10
- data/lib/fog/cloudstack/requests/compute/add_guest_os.rb +26 -0
- data/lib/fog/cloudstack/requests/compute/add_guest_os_mapping.rb +27 -0
- data/lib/fog/cloudstack/requests/compute/add_host.rb +15 -11
- data/lib/fog/cloudstack/requests/compute/add_image_store.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/add_ip_to_nic.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/add_ldap_configuration.rb +26 -0
- data/lib/fog/cloudstack/requests/compute/add_netscaler_load_balancer.rb +14 -10
- data/lib/fog/cloudstack/requests/compute/add_network_device.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/add_network_service_provider.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/add_nic_to_virtual_machine.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/add_nicira_nvp_device.rb +14 -10
- data/lib/fog/cloudstack/requests/compute/add_open_daylight_controller.rb +28 -0
- data/lib/fog/cloudstack/requests/compute/add_palo_alto_firewall.rb +29 -0
- data/lib/fog/cloudstack/requests/compute/add_region.rb +12 -8
- data/lib/fog/cloudstack/requests/compute/add_resource_detail.rb +12 -8
- data/lib/fog/cloudstack/requests/compute/add_s3.rb +12 -8
- data/lib/fog/cloudstack/requests/compute/add_secondary_storage.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/add_srx_firewall.rb +14 -10
- data/lib/fog/cloudstack/requests/compute/add_stratosphere_ssp.rb +27 -0
- data/lib/fog/cloudstack/requests/compute/add_swift.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/add_traffic_monitor.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/add_traffic_type.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/add_ucs_manager.rb +13 -9
- data/lib/fog/cloudstack/requests/compute/add_vmware_dc.rb +12 -8
- data/lib/fog/cloudstack/requests/compute/add_vpn_user.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/archive_alerts.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/archive_events.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/assign_cert_to_load_balancer.rb +26 -0
- data/lib/fog/cloudstack/requests/compute/assign_to_global_load_balancer_rule.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/assign_to_load_balancer_rule.rb +10 -7
- data/lib/fog/cloudstack/requests/compute/assign_virtual_machine.rb +12 -8
- data/lib/fog/cloudstack/requests/compute/associate_ip_address.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/associate_ucs_profile_to_blade.rb +12 -8
- data/lib/fog/cloudstack/requests/compute/attach_iso.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/attach_volume.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/authorize_security_group_egress.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/authorize_security_group_ingress.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/cancel_host_maintenance.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/cancel_storage_maintenance.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/change_service_for_router.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/change_service_for_system_vm.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/change_service_for_virtual_machine.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/clean_vmreservations.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/configure_f5_load_balancer.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/configure_internal_load_balancer_element.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/configure_netscaler_load_balancer.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/configure_ovs_element.rb +26 -0
- data/lib/fog/cloudstack/requests/compute/configure_palo_alto_firewall.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/configure_srx_firewall.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/configure_virtual_router_element.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/copy_iso.rb +11 -8
- data/lib/fog/cloudstack/requests/compute/copy_template.rb +11 -8
- data/lib/fog/cloudstack/requests/compute/create_account.rb +15 -11
- data/lib/fog/cloudstack/requests/compute/create_affinity_group.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/create_auto_scale_policy.rb +12 -8
- data/lib/fog/cloudstack/requests/compute/create_auto_scale_vm_group.rb +15 -11
- data/lib/fog/cloudstack/requests/compute/create_auto_scale_vm_profile.rb +12 -8
- data/lib/fog/cloudstack/requests/compute/create_condition.rb +12 -8
- data/lib/fog/cloudstack/requests/compute/create_counter.rb +12 -8
- data/lib/fog/cloudstack/requests/compute/create_disk_offering.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/create_domain.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/create_egress_firewall_rule.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/create_firewall_rule.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/create_global_load_balancer_rule.rb +13 -9
- data/lib/fog/cloudstack/requests/compute/create_instance_group.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/create_internal_load_balancer_element.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/create_ip_forwarding_rule.rb +12 -8
- data/lib/fog/cloudstack/requests/compute/create_lb_health_check_policy.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/create_lb_stickiness_policy.rb +12 -8
- data/lib/fog/cloudstack/requests/compute/create_load_balancer.rb +16 -12
- data/lib/fog/cloudstack/requests/compute/create_load_balancer_rule.rb +13 -9
- data/lib/fog/cloudstack/requests/compute/create_network.rb +13 -9
- data/lib/fog/cloudstack/requests/compute/create_network_acl.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/create_network_acl_list.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/create_network_offering.rb +14 -10
- data/lib/fog/cloudstack/requests/compute/create_physical_network.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/create_pod.rb +14 -10
- data/lib/fog/cloudstack/requests/compute/create_port_forwarding_rule.rb +14 -10
- data/lib/fog/cloudstack/requests/compute/create_portable_ip_range.rb +14 -10
- data/lib/fog/cloudstack/requests/compute/create_private_gateway.rb +14 -10
- data/lib/fog/cloudstack/requests/compute/create_project.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/create_remote_access_vpn.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/create_secondary_staging_store.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/create_security_group.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/create_service_instance.rb +30 -0
- data/lib/fog/cloudstack/requests/compute/create_service_offering.rb +11 -10
- data/lib/fog/cloudstack/requests/compute/create_snapshot.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/create_snapshot_policy.rb +14 -10
- data/lib/fog/cloudstack/requests/compute/create_ssh_key_pair.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/create_static_route.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/create_storage_network_ip_range.rb +13 -9
- data/lib/fog/cloudstack/requests/compute/create_storage_pool.rb +12 -8
- data/lib/fog/cloudstack/requests/compute/create_tags.rb +12 -8
- data/lib/fog/cloudstack/requests/compute/create_template.rb +12 -8
- data/lib/fog/cloudstack/requests/compute/create_user.rb +15 -11
- data/lib/fog/cloudstack/requests/compute/create_virtual_router_element.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/create_vlan_ip_range.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/create_vm_snapshot.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/create_volume.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/create_vpc.rb +14 -10
- data/lib/fog/cloudstack/requests/compute/create_vpcoffering.rb +12 -8
- data/lib/fog/cloudstack/requests/compute/create_vpn_connection.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/create_vpn_customer_gateway.rb +14 -10
- data/lib/fog/cloudstack/requests/compute/create_vpn_gateway.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/create_zone.rb +13 -9
- data/lib/fog/cloudstack/requests/compute/dedicate_cluster.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/dedicate_guest_vlan_range.rb +13 -9
- data/lib/fog/cloudstack/requests/compute/dedicate_host.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/dedicate_pod.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/dedicate_public_ip_range.rb +12 -8
- data/lib/fog/cloudstack/requests/compute/dedicate_zone.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/delete_account.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_account_from_project.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/delete_affinity_group.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/delete_alerts.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/delete_auto_scale_policy.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_auto_scale_vm_group.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_auto_scale_vm_profile.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_big_switch_vns_device.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/delete_cisco_asa1000v_resource.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_cisco_nexus_vsm.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_cisco_vnmc_resource.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_cluster.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_condition.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_counter.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_disk_offering.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_domain.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_egress_firewall_rule.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_events.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/delete_external_firewall.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_external_load_balancer.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_f5_load_balancer.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_firewall_rule.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_global_load_balancer_rule.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_host.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_image_store.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_instance_group.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_ip_forwarding_rule.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_iso.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_lb_health_check_policy.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_lb_stickiness_policy.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_ldap_configuration.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/delete_load_balancer.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_load_balancer_rule.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_netscaler_load_balancer.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_network.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_network_acl.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_network_acl_list.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_network_device.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_network_offering.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_network_service_provider.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_nicira_nvp_device.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_open_daylight_controller.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/delete_palo_alto_firewall.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/delete_physical_network.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_pod.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_port_forwarding_rule.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_portable_ip_range.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_private_gateway.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_project.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_project_invitation.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_remote_access_vpn.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_secondary_staging_store.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_security_group.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/delete_service_offering.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_snapshot.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_snapshot_policies.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/delete_srx_firewall.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_ssh_key_pair.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_ssl_cert.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/delete_static_route.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_storage_network_ip_range.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_storage_pool.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_tags.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/delete_template.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_traffic_monitor.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_traffic_type.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_user.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_vlan_ip_range.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_vm_snapshot.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_volume.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_vpc.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_vpcoffering.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_vpn_connection.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_vpn_customer_gateway.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_vpn_gateway.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/delete_zone.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/deploy_virtual_machine.rb +12 -8
- data/lib/fog/cloudstack/requests/compute/destroy_router.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/destroy_system_vm.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/destroy_virtual_machine.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/detach_iso.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/detach_volume.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/disable_account.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/disable_auto_scale_vm_group.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/disable_cisco_nexus_vsm.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/disable_static_nat.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/disable_user.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/disassociate_ip_address.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/enable_account.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/enable_auto_scale_vm_group.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/enable_cisco_nexus_vsm.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/enable_static_nat.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/enable_storage_maintenance.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/enable_user.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/expunge_virtual_machine.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/extract_iso.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/extract_template.rb +50 -7
- data/lib/fog/cloudstack/requests/compute/extract_volume.rb +12 -8
- data/lib/fog/cloudstack/requests/compute/find_hosts_for_migration.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/find_storage_pools_for_migration.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/generate_alert.rb +27 -0
- data/lib/fog/cloudstack/requests/compute/generate_usage_records.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/get_api_limit.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/get_cloud_identifier.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/get_user.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/get_virtual_machine_user_data.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/get_vm_password.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/import_ldap_users.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/ldap_create_account.rb +26 -0
- data/lib/fog/cloudstack/requests/compute/list_accounts.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_affinity_group_types.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_affinity_groups.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_alerts.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_apis.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_async_jobs.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_auto_scale_policies.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_auto_scale_vm_groups.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_auto_scale_vm_profiles.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_baremetal_dhcp.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_baremetal_pxe_servers.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_big_switch_vns_devices.rb +24 -0
- data/lib/fog/cloudstack/requests/compute/list_capabilities.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_capacity.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_cisco_asa1000v_resources.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_cisco_nexus_vsms.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_cisco_vnmc_resources.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_clusters.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_conditions.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_configurations.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_counters.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_dedicated_clusters.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_dedicated_guest_vlan_ranges.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_dedicated_hosts.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_dedicated_pods.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_dedicated_zones.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_deployment_planners.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_disk_offerings.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_domain_children.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_domains.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_egress_firewall_rules.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_event_types.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_events.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_external_firewalls.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/list_external_load_balancers.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_f5_load_balancer_networks.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/list_f5_load_balancers.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_firewall_rules.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_global_load_balancer_rules.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_guest_os_mapping.rb +24 -0
- data/lib/fog/cloudstack/requests/compute/list_hosts.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_hypervisor_capabilities.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_hypervisors.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_image_stores.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_instance_groups.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_internal_load_balancer_elements.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_internal_load_balancer_vms.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_ip_forwarding_rules.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_iso_permissions.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/list_isos.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_lb_health_check_policies.rb +9 -6
- data/lib/fog/cloudstack/requests/compute/list_lb_stickiness_policies.rb +9 -6
- data/lib/fog/cloudstack/requests/compute/list_ldap_configurations.rb +24 -0
- data/lib/fog/cloudstack/requests/compute/list_ldap_users.rb +24 -0
- data/lib/fog/cloudstack/requests/compute/list_load_balancer_rule_instances.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/list_load_balancer_rules.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_load_balancers.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_netscaler_load_balancer_networks.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/list_netscaler_load_balancers.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_network_acl_lists.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_network_acls.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_network_device.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_network_isolation_methods.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_network_offerings.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_network_service_providers.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_networks.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_nicira_nvp_device_networks.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/list_nicira_nvp_devices.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_nics.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/list_open_daylight_controllers.rb +24 -0
- data/lib/fog/cloudstack/requests/compute/list_os_categories.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_os_types.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_ovs_elements.rb +24 -0
- data/lib/fog/cloudstack/requests/compute/list_palo_alto_firewall_networks.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/list_palo_alto_firewalls.rb +24 -0
- data/lib/fog/cloudstack/requests/compute/list_physical_networks.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_pods.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_port_forwarding_rules.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_portable_ip_ranges.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_private_gateways.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_project_accounts.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/list_project_invitations.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_projects.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_public_ip_addresses.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_regions.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_remote_access_vpns.rb +9 -6
- data/lib/fog/cloudstack/requests/compute/list_resource_details.rb +10 -5
- data/lib/fog/cloudstack/requests/compute/list_resource_limits.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_routers.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_s3s.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_secondary_staging_stores.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_security_groups.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_service_offerings.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_snapshot_policies.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/list_snapshots.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_srx_firewall_networks.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/list_srx_firewalls.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_ssh_key_pairs.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_ssl_certs.rb +24 -0
- data/lib/fog/cloudstack/requests/compute/list_static_routes.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_storage_network_ip_range.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_storage_pools.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_storage_providers.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/list_supported_network_services.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_swifts.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_system_vms.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_tags.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_template_permissions.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/list_templates.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/list_traffic_monitors.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/list_traffic_type_implementors.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_traffic_types.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/list_ucs_blades.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/list_ucs_managers.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_ucs_profiles.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/list_usage_records.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/list_usage_types.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_users.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_virtual_machines.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_virtual_router_elements.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_vlan_ip_ranges.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_vm_snapshot.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_vmware_dcs.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/list_volumes.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_vpc_offerings.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_vpcs.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_vpn_connections.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_vpn_customer_gateways.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_vpn_gateways.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_vpn_users.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_zones.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/lock_account.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/lock_user.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/mark_default_zone_for_account.rb +12 -8
- data/lib/fog/cloudstack/requests/compute/migrate_system_vm.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/migrate_virtual_machine.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/migrate_virtual_machine_with_volume.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/migrate_volume.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/prepare_host_for_maintenance.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/prepare_template.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/query_async_job_result.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/reboot_router.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/reboot_system_vm.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/reboot_virtual_machine.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/reconnect_host.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/recover_virtual_machine.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/register_iso.rb +13 -9
- data/lib/fog/cloudstack/requests/compute/register_ssh_key_pair.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/register_template.rb +16 -12
- data/lib/fog/cloudstack/requests/compute/register_user_keys.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/release_dedicated_cluster.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/release_dedicated_guest_vlan_range.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/release_dedicated_host.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/release_dedicated_pod.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/release_dedicated_zone.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/release_host_reservation.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/release_public_ip_range.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/remove_cert_from_load_balancer.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/remove_from_global_load_balancer_rule.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/remove_from_load_balancer_rule.rb +10 -7
- data/lib/fog/cloudstack/requests/compute/remove_guest_os.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/remove_guest_os_mapping.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/remove_ip_from_nic.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/remove_nic_from_virtual_machine.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/remove_region.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/remove_resource_detail.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/remove_vmware_dc.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/remove_vpn_user.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/replace_network_acl_list.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/reset_api_limit.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/reset_password_for_virtual_machine.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/reset_ssh_key_for_virtual_machine.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/reset_vpn_connection.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/resize_volume.rb +10 -5
- data/lib/fog/cloudstack/requests/compute/restart_network.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/restart_vpc.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/restore_virtual_machine.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/revert_snapshot.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/revert_to_vm_snapshot.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/revoke_security_group_egress.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/revoke_security_group_ingress.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/scale_system_vm.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/scale_virtual_machine.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/start_internal_load_balancer_vm.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/start_router.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/start_system_vm.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/start_virtual_machine.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/stop_internal_load_balancer_vm.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/stop_router.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/stop_system_vm.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/stop_virtual_machine.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/suspend_project.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_account.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_auto_scale_policy.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_auto_scale_vm_group.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_auto_scale_vm_profile.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_cloud_to_use_object_store.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/update_cluster.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_configuration.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_default_nic_for_virtual_machine.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/update_disk_offering.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_domain.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_egress_firewall_rule.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/update_firewall_rule.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/update_global_load_balancer_rule.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_guest_os.rb +26 -0
- data/lib/fog/cloudstack/requests/compute/update_guest_os_mapping.rb +26 -0
- data/lib/fog/cloudstack/requests/compute/update_host.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_host_password.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/update_hypervisor_capabilities.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/update_instance_group.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_ip_address.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/update_iso.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_iso_permissions.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_lb_health_check_policy.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/update_lb_stickiness_policy.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/update_load_balancer.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/update_load_balancer_rule.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_network.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_network_acl_item.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_network_acl_list.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/update_network_offering.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/update_network_service_provider.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_physical_network.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_pod.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_port_forwarding_rule.rb +10 -9
- data/lib/fog/cloudstack/requests/compute/update_project.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_project_invitation.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_region.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_remote_access_vpn.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/update_resource_count.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_resource_limit.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_service_offering.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_storage_network_ip_range.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_storage_pool.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_template.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_template_permissions.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_traffic_type.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_user.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_virtual_machine.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_vm_affinity_group.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_volume.rb +9 -7
- data/lib/fog/cloudstack/requests/compute/update_vpc.rb +10 -7
- data/lib/fog/cloudstack/requests/compute/update_vpcoffering.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/update_vpn_connection.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/update_vpn_customer_gateway.rb +15 -11
- data/lib/fog/cloudstack/requests/compute/update_vpn_gateway.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/update_zone.rb +10 -6
- data/lib/fog/cloudstack/requests/compute/upgrade_router_template.rb +24 -0
- data/lib/fog/cloudstack/requests/compute/upload_custom_certificate.rb +11 -7
- data/lib/fog/cloudstack/requests/compute/upload_ssl_cert.rb +26 -0
- data/lib/fog/cloudstack/requests/compute/upload_volume.rb +13 -9
- data/lib/fog/digitalocean/compute.rb +1 -1
- data/lib/fog/dynect/dns.rb +11 -10
- data/lib/fog/google.rb +3 -0
- data/lib/fog/google/compute.rb +247 -146
- data/lib/fog/google/core.rb +160 -2
- data/lib/fog/google/dns.rb +63 -0
- data/lib/fog/google/examples/backend_services.rb +22 -0
- data/lib/fog/google/examples/create.rb +1 -1
- data/lib/fog/google/examples/eric-fail.rb +1 -1
- data/lib/fog/google/examples/image_create.rb +1 -1
- data/lib/fog/google/examples/l7_load_balance.rb +73 -0
- data/lib/fog/google/examples/monitoring/metric_descriptors.rb +11 -0
- data/lib/fog/google/examples/monitoring/timeseries_collection.rb +15 -0
- data/lib/fog/google/examples/monitoring/timeseries_descriptors.rb +15 -0
- data/lib/fog/google/examples/sql/flags.rb +7 -0
- data/lib/fog/google/examples/sql/instances.rb +38 -0
- data/lib/fog/google/examples/sql/operations.rb +20 -0
- data/lib/fog/google/examples/sql/ssl_certs.rb +28 -0
- data/lib/fog/google/examples/sql/tiers.rb +7 -0
- data/lib/fog/google/models/compute/backend_service.rb +92 -0
- data/lib/fog/google/models/compute/backend_services.rb +22 -0
- data/lib/fog/google/models/compute/global_forwarding_rule.rb +86 -0
- data/lib/fog/google/models/compute/global_forwarding_rules.rb +23 -0
- data/lib/fog/google/models/compute/http_health_checks.rb +5 -1
- data/lib/fog/google/models/compute/images.rb +7 -4
- data/lib/fog/google/models/compute/resource_view.rb +116 -0
- data/lib/fog/google/models/compute/resource_views.rb +57 -0
- data/lib/fog/google/models/compute/target_http_proxies.rb +22 -0
- data/lib/fog/google/models/compute/target_http_proxy.rb +75 -0
- data/lib/fog/google/models/compute/target_instance.rb +74 -0
- data/lib/fog/google/models/compute/target_instances.rb +28 -0
- data/lib/fog/google/models/compute/target_pool.rb +4 -0
- data/lib/fog/google/models/compute/target_pools.rb +2 -2
- data/lib/fog/google/models/compute/url_map.rb +95 -0
- data/lib/fog/google/models/compute/url_maps.rb +22 -0
- data/lib/fog/google/models/monitoring/metric_descriptor.rb +20 -0
- data/lib/fog/google/models/monitoring/metric_descriptors.rb +28 -0
- data/lib/fog/google/models/monitoring/timeseries.rb +17 -0
- data/lib/fog/google/models/monitoring/timeseries_collection.rb +31 -0
- data/lib/fog/google/models/monitoring/timeseries_descriptor.rb +20 -0
- data/lib/fog/google/models/monitoring/timeseries_descriptors.rb +31 -0
- data/lib/fog/google/models/sql/backup_run.rb +34 -0
- data/lib/fog/google/models/sql/backup_runs.rb +38 -0
- data/lib/fog/google/models/sql/flag.rb +22 -0
- data/lib/fog/google/models/sql/flags.rb +21 -0
- data/lib/fog/google/models/sql/instance.rb +353 -0
- data/lib/fog/google/models/sql/instances.rb +39 -0
- data/lib/fog/google/models/sql/operation.rb +61 -0
- data/lib/fog/google/models/sql/operations.rb +49 -0
- data/lib/fog/google/models/sql/ssl_cert.rb +73 -0
- data/lib/fog/google/models/sql/ssl_certs.rb +49 -0
- data/lib/fog/google/models/sql/tier.rb +20 -0
- data/lib/fog/google/models/sql/tiers.rb +21 -0
- data/lib/fog/google/models/storage/files.rb +5 -1
- data/lib/fog/google/monitoring.rb +89 -0
- data/lib/fog/google/requests/compute/add_backend_service_backends.rb +29 -0
- data/lib/fog/google/requests/compute/add_region_view_resources.rb +27 -0
- data/lib/fog/google/requests/compute/add_server_access_config.rb +1 -2
- data/lib/fog/google/requests/compute/add_target_pool_health_checks.rb +1 -2
- data/lib/fog/google/requests/compute/add_target_pool_instances.rb +1 -2
- data/lib/fog/google/requests/compute/add_url_map_host_rules.rb +25 -0
- data/lib/fog/google/requests/compute/add_url_map_path_matchers.rb +29 -0
- data/lib/fog/google/requests/compute/add_zone_view_resources.rb +27 -0
- data/lib/fog/google/requests/compute/attach_disk.rb +1 -2
- data/lib/fog/google/requests/compute/delete_address.rb +1 -2
- data/lib/fog/google/requests/compute/delete_backend_service.rb +43 -0
- data/lib/fog/google/requests/compute/delete_disk.rb +2 -3
- data/lib/fog/google/requests/compute/delete_firewall.rb +1 -2
- data/lib/fog/google/requests/compute/delete_forwarding_rule.rb +22 -4
- data/lib/fog/google/requests/compute/delete_global_forwarding_rule.rb +48 -0
- data/lib/fog/google/requests/compute/delete_global_operation.rb +1 -2
- data/lib/fog/google/requests/compute/delete_http_health_check.rb +20 -3
- data/lib/fog/google/requests/compute/delete_image.rb +21 -3
- data/lib/fog/google/requests/compute/delete_network.rb +1 -2
- data/lib/fog/google/requests/compute/delete_region_operation.rb +1 -2
- data/lib/fog/google/requests/compute/delete_region_view.rb +24 -0
- data/lib/fog/google/requests/compute/delete_route.rb +1 -2
- data/lib/fog/google/requests/compute/delete_server.rb +2 -3
- data/lib/fog/google/requests/compute/delete_server_access_config.rb +1 -2
- data/lib/fog/google/requests/compute/delete_snapshot.rb +1 -2
- data/lib/fog/google/requests/compute/delete_target_http_proxy.rb +43 -0
- data/lib/fog/google/requests/compute/delete_target_instance.rb +48 -0
- data/lib/fog/google/requests/compute/delete_target_pool.rb +22 -4
- data/lib/fog/google/requests/compute/delete_url_map.rb +43 -0
- data/lib/fog/google/requests/compute/delete_zone_operation.rb +1 -2
- data/lib/fog/google/requests/compute/delete_zone_view.rb +24 -0
- data/lib/fog/google/requests/compute/detach_disk.rb +1 -2
- data/lib/fog/google/requests/compute/get_address.rb +1 -2
- data/lib/fog/google/requests/compute/get_backend_service.rb +26 -0
- data/lib/fog/google/requests/compute/get_backend_service_health.rb +27 -0
- data/lib/fog/google/requests/compute/get_backend_services.rb +23 -0
- data/lib/fog/google/requests/compute/get_disk.rb +3 -4
- data/lib/fog/google/requests/compute/get_disk_type.rb +3 -4
- data/lib/fog/google/requests/compute/get_firewall.rb +1 -2
- data/lib/fog/google/requests/compute/get_forwarding_rule.rb +21 -4
- data/lib/fog/google/requests/compute/get_global_forwarding_rule.rb +32 -0
- data/lib/fog/google/requests/compute/get_global_operation.rb +27 -3
- data/lib/fog/google/requests/compute/get_http_health_check.rb +18 -3
- data/lib/fog/google/requests/compute/get_image.rb +2 -3
- data/lib/fog/google/requests/compute/get_machine_type.rb +2 -3
- data/lib/fog/google/requests/compute/get_network.rb +1 -2
- data/lib/fog/google/requests/compute/get_project.rb +1 -2
- data/lib/fog/google/requests/compute/get_region.rb +16 -7
- data/lib/fog/google/requests/compute/get_region_operation.rb +27 -3
- data/lib/fog/google/requests/compute/get_region_view.rb +24 -0
- data/lib/fog/google/requests/compute/get_route.rb +1 -2
- data/lib/fog/google/requests/compute/get_server.rb +3 -4
- data/lib/fog/google/requests/compute/get_server_serial_port_output.rb +1 -2
- data/lib/fog/google/requests/compute/get_snapshot.rb +1 -2
- data/lib/fog/google/requests/compute/get_target_http_proxy.rb +27 -0
- data/lib/fog/google/requests/compute/get_target_instance.rb +32 -0
- data/lib/fog/google/requests/compute/get_target_pool.rb +15 -4
- data/lib/fog/google/requests/compute/get_target_pool_health.rb +1 -1
- data/lib/fog/google/requests/compute/get_url_map.rb +27 -0
- data/lib/fog/google/requests/compute/get_zone.rb +2 -3
- data/lib/fog/google/requests/compute/get_zone_operation.rb +3 -4
- data/lib/fog/google/requests/compute/get_zone_view.rb +24 -0
- data/lib/fog/google/requests/compute/insert_address.rb +1 -2
- data/lib/fog/google/requests/compute/insert_backend_service.rb +63 -0
- data/lib/fog/google/requests/compute/insert_disk.rb +2 -4
- data/lib/fog/google/requests/compute/insert_firewall.rb +3 -4
- data/lib/fog/google/requests/compute/insert_forwarding_rule.rb +38 -5
- data/lib/fog/google/requests/compute/insert_global_forwarding_rule.rb +56 -0
- data/lib/fog/google/requests/compute/insert_http_health_check.rb +36 -3
- data/lib/fog/google/requests/compute/insert_image.rb +36 -7
- data/lib/fog/google/requests/compute/insert_network.rb +1 -2
- data/lib/fog/google/requests/compute/insert_region_view.rb +25 -0
- data/lib/fog/google/requests/compute/insert_route.rb +1 -2
- data/lib/fog/google/requests/compute/insert_server.rb +4 -7
- data/lib/fog/google/requests/compute/insert_snapshot.rb +1 -3
- data/lib/fog/google/requests/compute/insert_target_http_proxy.rb +52 -0
- data/lib/fog/google/requests/compute/insert_target_instance.rb +55 -0
- data/lib/fog/google/requests/compute/insert_target_pool.rb +36 -5
- data/lib/fog/google/requests/compute/insert_url_map.rb +55 -0
- data/lib/fog/google/requests/compute/insert_zone_view.rb +27 -0
- data/lib/fog/google/requests/compute/list_addresses.rb +1 -2
- data/lib/fog/google/requests/compute/list_aggregated_addresses.rb +1 -2
- data/lib/fog/google/requests/compute/list_aggregated_disk_types.rb +2 -3
- data/lib/fog/google/requests/compute/list_aggregated_disks.rb +2 -3
- data/lib/fog/google/requests/compute/list_aggregated_machine_types.rb +1 -2
- data/lib/fog/google/requests/compute/list_aggregated_servers.rb +2 -3
- data/lib/fog/google/requests/compute/list_backend_services.rb +29 -0
- data/lib/fog/google/requests/compute/list_disk_types.rb +2 -3
- data/lib/fog/google/requests/compute/list_disks.rb +2 -3
- data/lib/fog/google/requests/compute/list_firewalls.rb +1 -2
- data/lib/fog/google/requests/compute/list_forwarding_rules.rb +2 -3
- data/lib/fog/google/requests/compute/list_global_forwarding_rules.rb +30 -0
- data/lib/fog/google/requests/compute/list_global_operations.rb +1 -2
- data/lib/fog/google/requests/compute/list_http_health_checks.rb +9 -3
- data/lib/fog/google/requests/compute/list_images.rb +2 -3
- data/lib/fog/google/requests/compute/list_machine_types.rb +2 -3
- data/lib/fog/google/requests/compute/list_networks.rb +1 -2
- data/lib/fog/google/requests/compute/list_region_operations.rb +1 -2
- data/lib/fog/google/requests/compute/list_region_view_resources.rb +25 -0
- data/lib/fog/google/requests/compute/list_region_views.rb +23 -0
- data/lib/fog/google/requests/compute/list_regions.rb +2 -3
- data/lib/fog/google/requests/compute/list_routes.rb +1 -2
- data/lib/fog/google/requests/compute/list_servers.rb +2 -3
- data/lib/fog/google/requests/compute/list_snapshots.rb +1 -2
- data/lib/fog/google/requests/compute/list_target_http_proxies.rb +30 -0
- data/lib/fog/google/requests/compute/list_target_instances.rb +30 -0
- data/lib/fog/google/requests/compute/list_target_pools.rb +8 -3
- data/lib/fog/google/requests/compute/list_url_maps.rb +29 -0
- data/lib/fog/google/requests/compute/list_zone_operations.rb +1 -2
- data/lib/fog/google/requests/compute/list_zone_view_resources.rb +25 -0
- data/lib/fog/google/requests/compute/list_zone_views.rb +23 -0
- data/lib/fog/google/requests/compute/list_zones.rb +2 -3
- data/lib/fog/google/requests/compute/remove_target_pool_health_checks.rb +1 -2
- data/lib/fog/google/requests/compute/remove_target_pool_instance.rb +1 -2
- data/lib/fog/google/requests/compute/remove_target_pool_instances.rb +1 -2
- data/lib/fog/google/requests/compute/reset_server.rb +1 -2
- data/lib/fog/google/requests/compute/set_common_instance_metadata.rb +1 -2
- data/lib/fog/google/requests/compute/set_forwarding_rule_target.rb +1 -2
- data/lib/fog/google/requests/compute/set_global_forwarding_rule_target.rb +27 -0
- data/lib/fog/google/requests/compute/set_metadata.rb +1 -6
- data/lib/fog/google/requests/compute/set_server_disk_auto_delete.rb +1 -2
- data/lib/fog/google/requests/compute/set_server_scheduling.rb +1 -2
- data/lib/fog/google/requests/compute/set_tags.rb +1 -6
- data/lib/fog/google/requests/compute/set_target_http_proxy_url_map.rb +27 -0
- data/lib/fog/google/requests/compute/update_url_map.rb +39 -0
- data/lib/fog/google/requests/compute/validate_url_map.rb +24 -0
- data/lib/fog/google/requests/dns/create_managed_zone.rb +49 -0
- data/lib/fog/google/requests/dns/delete_managed_zone.rb +39 -0
- data/lib/fog/google/requests/dns/get_managed_zone.rb +31 -0
- data/lib/fog/google/requests/dns/list_managed_zones.rb +26 -0
- data/lib/fog/google/requests/monitoring/list_metric_descriptors.rb +191 -0
- data/lib/fog/google/requests/monitoring/list_timeseries.rb +68 -0
- data/lib/fog/google/requests/monitoring/list_timeseries_descriptors.rb +87 -0
- data/lib/fog/google/requests/sql/clone_instance.rb +84 -0
- data/lib/fog/google/requests/sql/delete_instance.rb +67 -0
- data/lib/fog/google/requests/sql/delete_ssl_cert.rb +68 -0
- data/lib/fog/google/requests/sql/export_instance.rb +56 -0
- data/lib/fog/google/requests/sql/get_backup_run.rb +30 -0
- data/lib/fog/google/requests/sql/get_instance.rb +48 -0
- data/lib/fog/google/requests/sql/get_operation.rb +66 -0
- data/lib/fog/google/requests/sql/get_ssl_cert.rb +66 -0
- data/lib/fog/google/requests/sql/import_instance.rb +55 -0
- data/lib/fog/google/requests/sql/insert_instance.rb +165 -0
- data/lib/fog/google/requests/sql/insert_ssl_cert.rb +80 -0
- data/lib/fog/google/requests/sql/list_backup_runs.rb +30 -0
- data/lib/fog/google/requests/sql/list_flags.rb +143 -0
- data/lib/fog/google/requests/sql/list_instances.rb +32 -0
- data/lib/fog/google/requests/sql/list_operations.rb +52 -0
- data/lib/fog/google/requests/sql/list_ssl_certs.rb +51 -0
- data/lib/fog/google/requests/sql/list_tiers.rb +82 -0
- data/lib/fog/google/requests/sql/reset_instance_ssl_config.rb +49 -0
- data/lib/fog/google/requests/sql/restart_instance.rb +47 -0
- data/lib/fog/google/requests/sql/restore_instance_backup.rb +30 -0
- data/lib/fog/google/requests/sql/set_instance_root_password.rb +54 -0
- data/lib/fog/google/requests/sql/update_instance.rb +132 -0
- data/lib/fog/google/sql.rb +132 -0
- data/lib/fog/hp/block_storage_v2.rb +1 -1
- data/lib/fog/hp/compute_v2.rb +1 -1
- data/lib/fog/hp/core.rb +8 -6
- data/lib/fog/hp/dns.rb +1 -1
- data/lib/fog/hp/docs/connect.md +2 -2
- data/lib/fog/hp/lb.rb +1 -1
- data/lib/fog/hp/network.rb +10 -2
- data/lib/fog/hp/requests/network/list_networks.rb +19 -6
- data/lib/fog/hp/storage.rb +1 -1
- data/lib/fog/linode/models/compute/disks.rb +1 -1
- data/lib/fog/linode/models/compute/flavor.rb +1 -25
- data/lib/fog/linode/models/compute/flavors.rb +1 -1
- data/lib/fog/linode/models/compute/server.rb +6 -2
- data/lib/fog/linode/requests/compute/avail_linodeplans.rb +1 -2
- data/lib/fog/local/models/storage/file.rb +3 -1
- data/lib/fog/openstack/models/storage/directory.rb +3 -5
- data/lib/fog/openstack/network.rb +1 -1
- data/lib/fog/openstack/requests/storage/put_container.rb +5 -2
- data/lib/fog/openstack/storage.rb +5 -3
- data/lib/fog/ovirt/models/compute/server.rb +1 -0
- data/lib/fog/rackspace/block_storage.rb +1 -5
- data/lib/fog/rackspace/cdn.rb +1 -1
- data/lib/fog/rackspace/compute_v2.rb +1 -5
- data/lib/fog/rackspace/databases.rb +4 -6
- data/lib/fog/rackspace/docs/storage.md +4 -4
- data/lib/fog/rackspace/load_balancers.rb +1 -5
- data/lib/fog/rackspace/models/auto_scale/group_builder.rb +2 -0
- data/lib/fog/rackspace/models/block_storage/volume.rb +6 -1
- data/lib/fog/rackspace/models/compute_v2/server.rb +15 -1
- data/lib/fog/rackspace/models/databases/database.rb +11 -0
- data/lib/fog/rackspace/models/databases/user.rb +2 -1
- data/lib/fog/rackspace/models/load_balancers/load_balancer.rb +21 -4
- data/lib/fog/rackspace/queues.rb +9 -2
- data/lib/fog/rackspace/requests/block_storage/create_volume.rb +4 -0
- data/lib/fog/rackspace/requests/compute_v2/create_server.rb +43 -0
- data/lib/fog/rackspace/requests/compute_v2/create_virtual_interface.rb +1 -1
- data/lib/fog/rackspace/requests/compute_v2/delete_metadata_item.rb +1 -1
- data/lib/fog/rackspace/requests/compute_v2/delete_virtual_interface.rb +1 -1
- data/lib/fog/rackspace/requests/compute_v2/get_metadata_item.rb +1 -1
- data/lib/fog/rackspace/requests/compute_v2/list_keypairs.rb +1 -1
- data/lib/fog/rackspace/requests/compute_v2/list_metadata.rb +1 -1
- data/lib/fog/rackspace/requests/compute_v2/list_virtual_interfaces.rb +1 -1
- data/lib/fog/rackspace/requests/compute_v2/set_metadata.rb +1 -1
- data/lib/fog/rackspace/requests/compute_v2/set_metadata_item.rb +1 -1
- data/lib/fog/rackspace/requests/compute_v2/update_metadata.rb +1 -1
- data/lib/fog/rackspace/requests/databases/create_user.rb +2 -1
- data/lib/fog/rackspace/requests/databases/grant_user_access.rb +32 -0
- data/lib/fog/rackspace/requests/databases/revoke_user_access.rb +26 -0
- data/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb +84 -16
- data/lib/fog/rackspace/requests/load_balancers/get_load_balancer.rb +6 -5
- data/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb +2 -1
- data/lib/fog/rackspace/requests/storage/get_object_https_url.rb +2 -1
- data/lib/fog/rackspace/storage.rb +7 -1
- data/lib/fog/vcloud_director/README.md +1 -0
- data/lib/fog/vcloud_director/compute.rb +23 -1
- data/lib/fog/vcloud_director/generators/compute/edge_gateway_service_configuration.rb +22 -0
- data/lib/fog/vcloud_director/models/compute/networks.rb +7 -0
- data/lib/fog/vcloud_director/models/compute/tasks.rb +7 -0
- data/lib/fog/vcloud_director/models/compute/vapps.rb +8 -0
- data/lib/fog/vcloud_director/models/compute/vdcs.rb +7 -0
- data/lib/fog/vcloud_director/models/compute/vms.rb +7 -0
- data/lib/fog/vcloud_director/query.rb +59 -0
- data/lib/fog/vcloud_director/requests/compute/get_execute_query.rb +91 -1
- data/lib/fog/vcloud_director/requests/compute/post_configure_edge_gateway_services.rb +8 -2
- data/lib/fog/vcloud_director/requests/compute/put_network.rb +7 -3
- data/lib/fog/version.rb +1 -1
- data/lib/fog/vsphere/requests/compute/vm_clone.rb +2 -1
- data/lib/fog/xenserver/compute.rb +3 -0
- data/lib/fog/xenserver/core.rb +2 -0
- data/lib/tasks/changelog_task.rb +2 -0
- data/tests/aws/models/auto_scaling/instance_tests.rb +15 -0
- data/tests/aws/models/storage/file_tests.rb +10 -0
- data/tests/aws/requests/compute/region_tests.rb +19 -1
- data/tests/aws/requests/dns/health_check_tests.rb +159 -0
- data/tests/aws/requests/iam/account_policy_tests.rb +20 -0
- data/tests/aws/requests/storage/bucket_tests.rb +4 -0
- data/tests/google/helpers/google_tests_helper.rb +68 -0
- data/tests/google/models/compute/backend_service_tests.rb +6 -0
- data/tests/google/models/compute/backend_services_tests.rb +8 -0
- data/tests/google/models/compute/forwarding_rule_tests.rb +8 -0
- data/tests/google/models/compute/forwarding_rules_tests.rb +8 -0
- data/tests/google/models/compute/global_forwarding_rule_tests.rb +7 -0
- data/tests/google/models/compute/global_forwarding_rules_tests.rb +7 -0
- data/tests/google/models/compute/http_health_check_tests.rb +5 -0
- data/tests/google/models/compute/http_health_checks_tests.rb +5 -0
- data/tests/google/models/compute/image_tests.rb +6 -0
- data/tests/google/models/compute/images_tests.rb +6 -0
- data/tests/google/models/compute/target_http_proxies_tests.rb +7 -0
- data/tests/google/models/compute/target_http_proxy_test.rb +6 -0
- data/tests/google/models/compute/target_instance_tests.rb +7 -0
- data/tests/google/models/compute/target_instances_tests.rb +7 -0
- data/tests/google/models/compute/target_pool_tests.rb +12 -0
- data/tests/google/models/compute/target_pools_tests.rb +11 -0
- data/tests/google/models/compute/url_map_tests.rb +6 -0
- data/tests/google/models/compute/url_maps_tests.rb +7 -0
- data/tests/google/models/monitoring/metric_descriptors_tests.rb +12 -0
- data/tests/google/models/monitoring/timeseries_collection_tests.rb +12 -0
- data/tests/google/models/monitoring/timeseries_descriptors_tests.rb +13 -0
- data/tests/google/models/sql/flags_tests.rb +12 -0
- data/tests/google/models/sql/instance_tests.rb +56 -0
- data/tests/google/models/sql/instances_tests.rb +32 -0
- data/tests/google/models/sql/operation_tests.rb +25 -0
- data/tests/google/models/sql/operations_tests.rb +38 -0
- data/tests/google/models/sql/ssl_cert_tests.rb +24 -0
- data/tests/google/models/sql/ssl_certs_tests.rb +39 -0
- data/tests/google/models/sql/tiers_tests.rb +12 -0
- data/tests/google/requests/compute/backend_service_tests.rb +83 -0
- data/tests/google/requests/compute/forwarding_rules_tests.rb +83 -0
- data/tests/google/requests/compute/global_forwarding_rules_tests.rb +83 -0
- data/tests/google/requests/compute/http_health_checks_tests.rb +83 -0
- data/tests/google/requests/compute/image_tests.rb +9 -13
- data/tests/google/requests/compute/target_http_proxies_test.rb +79 -0
- data/tests/google/requests/compute/target_instances_tests.rb +83 -0
- data/tests/google/requests/compute/target_pools_tests.rb +82 -0
- data/tests/google/requests/compute/url_maps_tests.rb +82 -0
- data/tests/google/requests/dns/managed_zone_tests.rb +66 -0
- data/tests/google/requests/monitoring/metric_descriptor_tests.rb +25 -0
- data/tests/google/requests/monitoring/timeseries_collection_tests.rb +25 -0
- data/tests/google/requests/monitoring/timeseries_descriptor_tests.rb +26 -0
- data/tests/google/requests/sql/flag_tests.rb +27 -0
- data/tests/google/requests/sql/instance_tests.rb +129 -0
- data/tests/google/requests/sql/operation_tests.rb +42 -0
- data/tests/google/requests/sql/ssl_cert_tests.rb +61 -0
- data/tests/google/requests/sql/tier_tests.rb +25 -0
- data/tests/google/requests/storage/object_tests.rb +1 -1
- data/tests/helpers/collection_helper.rb +1 -1
- data/tests/helpers/mock_helper.rb +1 -0
- data/tests/hp/storage_tests.rb +26 -23
- data/tests/linode/requests/compute/linodeplans_tests.rb +2 -1
- data/tests/openstack/authenticate_tests.rb +20 -0
- data/tests/rackspace/helper.rb +13 -0
- data/tests/rackspace/models/databases/database_tests.rb +12 -0
- data/tests/rackspace/models/load_balancers/load_balancer_tests.rb +48 -15
- data/tests/rackspace/requests/block_storage/volume_tests.rb +22 -6
- data/tests/rackspace/requests/compute_v2/server_tests.rb +27 -0
- data/tests/rackspace/requests/load_balancers/helper.rb +1 -1
- data/tests/rackspace/requests/load_balancers/load_balancer_tests.rb +15 -5
- data/tests/vcloud_director/models/compute/network_tests.rb +17 -0
- data/tests/vcloud_director/models/compute/tasks_tests.rb +33 -3
- data/tests/vcloud_director/models/compute/vapp_tests.rb +13 -1
- data/tests/vcloud_director/models/compute/vdcs_tests.rb +14 -1
- data/tests/vcloud_director/models/compute/vms_tests.rb +13 -0
- data/tests/vcloud_director/requests/compute/edge_gateway_tests.rb +30 -0
- metadata +319 -54
- data/lib/fog/bin/sakuracloud.rb +0 -34
- data/lib/fog/core/deprecated_connection_accessors.rb +0 -40
- data/lib/fog/sakuracloud.rb +0 -16
- data/lib/fog/sakuracloud/compute.rb +0 -65
- data/lib/fog/sakuracloud/docs/getting_started.md +0 -450
- data/lib/fog/sakuracloud/models/compute/plan.rb +0 -15
- data/lib/fog/sakuracloud/models/compute/plans.rb +0 -22
- data/lib/fog/sakuracloud/models/compute/server.rb +0 -40
- data/lib/fog/sakuracloud/models/compute/servers.rb +0 -63
- data/lib/fog/sakuracloud/models/compute/ssh_key.rb +0 -13
- data/lib/fog/sakuracloud/models/compute/ssh_keys.rb +0 -22
- data/lib/fog/sakuracloud/models/compute/zone.rb +0 -13
- data/lib/fog/sakuracloud/models/compute/zones.rb +0 -22
- data/lib/fog/sakuracloud/models/volume/archive.rb +0 -14
- data/lib/fog/sakuracloud/models/volume/archives.rb +0 -22
- data/lib/fog/sakuracloud/models/volume/disk.rb +0 -37
- data/lib/fog/sakuracloud/models/volume/disks.rb +0 -27
- data/lib/fog/sakuracloud/models/volume/plan.rb +0 -12
- data/lib/fog/sakuracloud/models/volume/plans.rb +0 -22
- data/lib/fog/sakuracloud/requests/compute/boot_server.rb +0 -31
- data/lib/fog/sakuracloud/requests/compute/create_server.rb +0 -41
- data/lib/fog/sakuracloud/requests/compute/delete_server.rb +0 -33
- data/lib/fog/sakuracloud/requests/compute/list_plans.rb +0 -46
- data/lib/fog/sakuracloud/requests/compute/list_servers.rb +0 -44
- data/lib/fog/sakuracloud/requests/compute/list_ssh_keys.rb +0 -40
- data/lib/fog/sakuracloud/requests/compute/list_zones.rb +0 -40
- data/lib/fog/sakuracloud/requests/compute/stop_server.rb +0 -37
- data/lib/fog/sakuracloud/requests/volume/attach_disk.rb +0 -30
- data/lib/fog/sakuracloud/requests/volume/configure_disk.rb +0 -35
- data/lib/fog/sakuracloud/requests/volume/create_disk.rb +0 -43
- data/lib/fog/sakuracloud/requests/volume/delete_disk.rb +0 -30
- data/lib/fog/sakuracloud/requests/volume/list_archives.rb +0 -46
- data/lib/fog/sakuracloud/requests/volume/list_disks.rb +0 -50
- data/lib/fog/sakuracloud/requests/volume/list_plans.rb +0 -40
- data/lib/fog/sakuracloud/volume.rb +0 -88
- data/lib/fog/schema/data_validator.rb +0 -153
- data/tests/sakuracloud/helper.rb +0 -7
- data/tests/sakuracloud/requests/compute/plans_tests.rb +0 -32
- data/tests/sakuracloud/requests/compute/servers_tests.rb +0 -46
- data/tests/sakuracloud/requests/compute/ssh_keys_tests.rb +0 -30
- data/tests/sakuracloud/requests/compute/zones_tests.rb +0 -30
- data/tests/sakuracloud/requests/volume/archives_tests.rb +0 -31
- data/tests/sakuracloud/requests/volume/disks_tests.rb +0 -47
- data/tests/sakuracloud/requests/volume/plans_tests.rb +0 -30
@@ -5,15 +5,19 @@ module Fog
|
|
5
5
|
class Real
|
6
6
|
# Uploads a data disk.
|
7
7
|
#
|
8
|
-
# {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.
|
9
|
-
def upload_volume(
|
10
|
-
options
|
11
|
-
|
12
|
-
|
13
|
-
'
|
14
|
-
|
15
|
-
'
|
16
|
-
|
8
|
+
# {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/uploadVolume.html]
|
9
|
+
def upload_volume(*args)
|
10
|
+
options = {}
|
11
|
+
if args[0].is_a? Hash
|
12
|
+
options = args[0]
|
13
|
+
options.merge!('command' => 'uploadVolume')
|
14
|
+
else
|
15
|
+
options.merge!('command' => 'uploadVolume',
|
16
|
+
'url' => args[0],
|
17
|
+
'format' => args[1],
|
18
|
+
'zoneid' => args[2],
|
19
|
+
'name' => args[3])
|
20
|
+
end
|
17
21
|
request(options)
|
18
22
|
end
|
19
23
|
end
|
data/lib/fog/dynect/dns.rb
CHANGED
@@ -65,12 +65,13 @@ module Fog
|
|
65
65
|
@dynect_password = options[:dynect_password]
|
66
66
|
|
67
67
|
@connection_options = options[:connection_options] || {}
|
68
|
-
@host
|
69
|
-
@port
|
70
|
-
@path
|
71
|
-
@persistent
|
72
|
-
@scheme
|
73
|
-
@version
|
68
|
+
@host = 'api-v4.dynect.net'
|
69
|
+
@port = options[:port] || 443
|
70
|
+
@path = options[:path] || '/REST'
|
71
|
+
@persistent = options[:persistent] || false
|
72
|
+
@scheme = options[:scheme] || 'https'
|
73
|
+
@version = options[:version] || '3.5.2'
|
74
|
+
@job_poll_timeout = options[:job_poll_timeout] || 10
|
74
75
|
@connection = Fog::XML::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options)
|
75
76
|
end
|
76
77
|
|
@@ -102,7 +103,7 @@ module Fog
|
|
102
103
|
end
|
103
104
|
|
104
105
|
if response.status == 307 && params[:path] !~ %r{^/REST/Job/}
|
105
|
-
response = poll_job(response, params[:expects])
|
106
|
+
response = poll_job(response, params[:expects], @job_poll_timeout)
|
106
107
|
end
|
107
108
|
|
108
109
|
response
|
@@ -118,9 +119,9 @@ module Fog
|
|
118
119
|
response
|
119
120
|
end
|
120
121
|
|
121
|
-
def poll_job(response, original_expects, time_to_wait
|
122
|
+
def poll_job(response, original_expects, time_to_wait)
|
122
123
|
job_location = response.headers['Location']
|
123
|
-
|
124
|
+
|
124
125
|
begin
|
125
126
|
Fog.wait_for(time_to_wait) do
|
126
127
|
response = request(
|
@@ -131,7 +132,7 @@ module Fog
|
|
131
132
|
)
|
132
133
|
response.body['status'] != 'incomplete'
|
133
134
|
end
|
134
|
-
|
135
|
+
|
135
136
|
rescue Errors::TimeoutError => error
|
136
137
|
if response.body['status'] == 'incomplete'
|
137
138
|
raise JobIncomplete.new("Job #{response.body['job_id']} is still incomplete")
|
data/lib/fog/google.rb
CHANGED
data/lib/fog/google/compute.rb
CHANGED
@@ -6,6 +6,14 @@ module Fog
|
|
6
6
|
requires :google_project
|
7
7
|
recognizes :app_name, :app_version, :google_client_email, :google_key_location, :google_key_string, :google_client
|
8
8
|
|
9
|
+
GOOGLE_COMPUTE_API_VERSION = 'v1'
|
10
|
+
GOOGLE_COMPUTE_BASE_URL = 'https://www.googleapis.com/compute/'
|
11
|
+
GOOGLE_COMPUTE_API_SCOPE_URLS = %w(https://www.googleapis.com/auth/compute
|
12
|
+
https://www.googleapis.com/auth/devstorage.read_write
|
13
|
+
https://www.googleapis.com/auth/ndev.cloudman
|
14
|
+
https://www.googleapis.com/auth/cloud-platform)
|
15
|
+
GOOGLE_COMPUTE_DEFAULT_NETWORK = 'default'
|
16
|
+
|
9
17
|
request_path 'fog/google/requests/compute'
|
10
18
|
request :list_servers
|
11
19
|
request :list_aggregated_servers
|
@@ -30,6 +38,15 @@ module Fog
|
|
30
38
|
request :list_target_pools
|
31
39
|
request :list_forwarding_rules
|
32
40
|
request :list_routes
|
41
|
+
request :list_backend_services
|
42
|
+
request :list_global_forwarding_rules
|
43
|
+
request :list_url_maps
|
44
|
+
request :list_target_http_proxies
|
45
|
+
request :list_zone_views
|
46
|
+
request :list_region_views
|
47
|
+
request :list_region_view_resources
|
48
|
+
request :list_zone_view_resources
|
49
|
+
request :list_target_instances
|
33
50
|
|
34
51
|
request :get_server
|
35
52
|
request :get_address
|
@@ -51,6 +68,14 @@ module Fog
|
|
51
68
|
request :get_forwarding_rule
|
52
69
|
request :get_project
|
53
70
|
request :get_route
|
71
|
+
request :get_backend_service
|
72
|
+
request :get_backend_service_health
|
73
|
+
request :get_url_map
|
74
|
+
request :get_global_forwarding_rule
|
75
|
+
request :get_target_http_proxy
|
76
|
+
request :get_zone_view
|
77
|
+
request :get_region_view
|
78
|
+
request :get_target_instance
|
54
79
|
|
55
80
|
request :delete_address
|
56
81
|
request :delete_disk
|
@@ -66,6 +91,13 @@ module Fog
|
|
66
91
|
request :delete_target_pool
|
67
92
|
request :delete_forwarding_rule
|
68
93
|
request :delete_route
|
94
|
+
request :delete_backend_service
|
95
|
+
request :delete_url_map
|
96
|
+
request :delete_target_http_proxy
|
97
|
+
request :delete_global_forwarding_rule
|
98
|
+
request :delete_zone_view
|
99
|
+
request :delete_region_view
|
100
|
+
request :delete_target_instance
|
69
101
|
|
70
102
|
request :insert_address
|
71
103
|
request :insert_disk
|
@@ -78,13 +110,27 @@ module Fog
|
|
78
110
|
request :insert_target_pool
|
79
111
|
request :insert_forwarding_rule
|
80
112
|
request :insert_route
|
113
|
+
request :insert_backend_service
|
114
|
+
request :insert_url_map
|
115
|
+
request :insert_target_http_proxy
|
116
|
+
request :insert_global_forwarding_rule
|
117
|
+
request :insert_zone_view
|
118
|
+
request :insert_region_view
|
119
|
+
request :insert_target_instance
|
81
120
|
|
82
121
|
request :set_metadata
|
83
122
|
request :set_tags
|
84
123
|
request :set_forwarding_rule_target
|
124
|
+
request :set_global_forwarding_rule_target
|
125
|
+
request :set_target_http_proxy_url_map
|
85
126
|
|
86
127
|
request :add_target_pool_instances
|
87
128
|
request :add_target_pool_health_checks
|
129
|
+
request :add_backend_service_backends
|
130
|
+
request :add_url_map_host_rules
|
131
|
+
request :add_url_map_path_matchers
|
132
|
+
request :add_zone_view_resources
|
133
|
+
request :add_region_view_resources
|
88
134
|
|
89
135
|
request :remove_target_pool_instances
|
90
136
|
request :remove_target_pool_health_checks
|
@@ -98,6 +144,8 @@ module Fog
|
|
98
144
|
request :set_server_scheduling
|
99
145
|
request :add_server_access_config
|
100
146
|
request :delete_server_access_config
|
147
|
+
request :update_url_map
|
148
|
+
request :validate_url_map
|
101
149
|
|
102
150
|
model_path 'fog/google/models/compute'
|
103
151
|
model :server
|
@@ -151,52 +199,29 @@ module Fog
|
|
151
199
|
model :route
|
152
200
|
collection :routes
|
153
201
|
|
154
|
-
|
155
|
-
|
202
|
+
model :backend_service
|
203
|
+
collection :backend_services
|
156
204
|
|
157
|
-
|
158
|
-
|
159
|
-
@api_version = 'v1'
|
160
|
-
base_url = 'https://www.googleapis.com/compute/'
|
161
|
-
@api_url = base_url + api_version + '/projects/'
|
162
|
-
@default_network = 'default'
|
163
|
-
end
|
205
|
+
model :target_http_proxy
|
206
|
+
collection :target_http_proxies
|
164
207
|
|
165
|
-
|
166
|
-
|
167
|
-
response.body = body
|
168
|
-
if response.body and response.body["error"]
|
169
|
-
response.status = response.body["error"]["code"]
|
170
|
-
if response.body["error"]["errors"]
|
171
|
-
msg = response.body["error"]["errors"].map{|error| error["message"]}.join(", ")
|
172
|
-
else
|
173
|
-
msg = "Error [#{response.body["error"]["code"]}]: #{response.body["error"]["message"] || "GCE didn't return an error message"}"
|
174
|
-
end
|
175
|
-
case response.status
|
176
|
-
when 404
|
177
|
-
raise Fog::Errors::NotFound.new(msg)
|
178
|
-
else
|
179
|
-
raise Fog::Errors::Error.new(msg)
|
180
|
-
end
|
181
|
-
else
|
182
|
-
response.status = status
|
183
|
-
end
|
184
|
-
response
|
185
|
-
end
|
208
|
+
model :url_map
|
209
|
+
collection :url_maps
|
186
210
|
|
187
|
-
|
211
|
+
model :global_forwarding_rule
|
212
|
+
collection :global_forwarding_rules
|
188
213
|
|
189
|
-
|
190
|
-
|
191
|
-
include Shared
|
214
|
+
model :resource_view
|
215
|
+
collection :resource_views
|
192
216
|
|
193
|
-
|
194
|
-
|
195
|
-
|
217
|
+
model :target_instance
|
218
|
+
collection :target_instances
|
219
|
+
|
220
|
+
class Mock
|
221
|
+
include Fog::Google::Shared
|
196
222
|
|
197
|
-
def
|
198
|
-
|
199
|
-
build_excon_response(body)
|
223
|
+
def initialize(options)
|
224
|
+
shared_initialize(options[:google_project], GOOGLE_COMPUTE_API_VERSION, GOOGLE_COMPUTE_BASE_URL)
|
200
225
|
end
|
201
226
|
|
202
227
|
def self.data(api_version)
|
@@ -285,6 +310,117 @@ module Fog
|
|
285
310
|
}
|
286
311
|
else
|
287
312
|
hash[key] = {
|
313
|
+
:target_http_proxies => {
|
314
|
+
"test-target-http-proxy" => {
|
315
|
+
"kind" => "compute#targetHttpProxy",
|
316
|
+
"id" => "1361932147851415729",
|
317
|
+
"creationTimestamp" => '2014-08-23T10:06:13.951-07:00',
|
318
|
+
"name" => "test-target-http-proxy",
|
319
|
+
"description" => '',
|
320
|
+
"selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/global/targetHttpProxies/test-target-http-proxy",
|
321
|
+
"urlMap" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/global/urlMaps/test-url-map"
|
322
|
+
}
|
323
|
+
},
|
324
|
+
:url_maps => {
|
325
|
+
"test-url-map" => {
|
326
|
+
"kind" => "compute#urlMap",
|
327
|
+
"id" => "1361932147851415729",
|
328
|
+
"creationTimestamp" => '2014-08-23T10:06:13.951-07:00',
|
329
|
+
"name" => 'test-url-map',
|
330
|
+
"description" => '',
|
331
|
+
"hostRules" => [],
|
332
|
+
"pathMatchers" => [],
|
333
|
+
"tests" => [],
|
334
|
+
"defaultService" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/global/backendServices/fog-backend-service-test",
|
335
|
+
"selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/global/urlMaps/test-url-map"
|
336
|
+
}
|
337
|
+
},
|
338
|
+
:target_pools => {
|
339
|
+
"test-target-pool" => {
|
340
|
+
'kind' => "compute#targetPool",
|
341
|
+
"id" => "1361932147851415729",
|
342
|
+
"selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/regions/us-central1/targetPools/test-target-pool",
|
343
|
+
"creationTimestamp" => '2014-08-23T10:06:13.951-07:00',
|
344
|
+
'name' => "test-target-pool",
|
345
|
+
"region" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/regions/us-central1",
|
346
|
+
"healthChecks" => ["https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/global/httpHealthChecks/test-check"],
|
347
|
+
"instances" => ["https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/zones/us-central1-a/instances/test-instance"],
|
348
|
+
}
|
349
|
+
},
|
350
|
+
|
351
|
+
:http_health_checks => {
|
352
|
+
"test-http-health-check" => {
|
353
|
+
"checkIntervalSec" => 5,
|
354
|
+
"creationTimestamp" => '2014-08-23T10:06:13.951-07:00',
|
355
|
+
"healthyThreshold" => 2,
|
356
|
+
"id" => "1361932147851415729",
|
357
|
+
"kind" => "compute#httphealthCheck",
|
358
|
+
"name" => "test-http-health-check",
|
359
|
+
"port" => 80,
|
360
|
+
"requestPath" => '/',
|
361
|
+
"selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/global/httpHealthChecks/test-http-health-check",
|
362
|
+
"timeoutSec" => 5,
|
363
|
+
"unhealthyThreshold" => 2
|
364
|
+
}
|
365
|
+
},
|
366
|
+
:global_forwarding_rules => {
|
367
|
+
"test-global-forwarding-rule" => {
|
368
|
+
"kind" => "compute#forwardingRule",
|
369
|
+
"id" => "1361932147851415729",
|
370
|
+
"creationTimestamp" => '2014-08-23T10:06:13.951-07:00',
|
371
|
+
"name" => 'test-global-forwarding-rule',
|
372
|
+
"IPAddress" => '107.178.255.155',
|
373
|
+
"IPProtocol" => 'TCP',
|
374
|
+
"portRange" => '80-80',
|
375
|
+
"target" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/global/targetHttpProxies/proxy",
|
376
|
+
"selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/global/forwardngRules/test-global-forwarding-rule"
|
377
|
+
}
|
378
|
+
},
|
379
|
+
:forwarding_rules => {
|
380
|
+
"test-forwarding-rule" => {
|
381
|
+
"kind" => "compute#forwardingRule",
|
382
|
+
"id" => "1361932147851415729",
|
383
|
+
"creationTimestamp" => '2014-08-23T10:06:13.951-07:00',
|
384
|
+
"name" => 'test-forwarding-rule',
|
385
|
+
"IPAddress" => '107.178.255.155',
|
386
|
+
"IPProtocol" => 'TCP',
|
387
|
+
"portRange" => '80-80',
|
388
|
+
"target" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/regions/us-central1/targetPools/target_pool",
|
389
|
+
"selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/regions/us-central1/forwardngRules/test-forwarding-rule",
|
390
|
+
"region" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/regions/us-central1"
|
391
|
+
}
|
392
|
+
},
|
393
|
+
:target_instances => {
|
394
|
+
"test-target-instance" => {
|
395
|
+
"kind" => "compute#targetInstance",
|
396
|
+
"name" => "test-target-instance",
|
397
|
+
"natPolicy" => "NO_NAT",
|
398
|
+
"zone" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/zones/us-central1-a",
|
399
|
+
"instance" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/zones/us-central1-a/instances/test-instance",
|
400
|
+
"selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/zones/us-central1-a/targetInstances/test-target-instance",
|
401
|
+
"id" => "1361932147851415729",
|
402
|
+
"creationTimestamp" => '2014-08-23T10:06:13.951-07:00',
|
403
|
+
|
404
|
+
}
|
405
|
+
},
|
406
|
+
:backend_services =>{
|
407
|
+
"test-backend-service" => {
|
408
|
+
"kind" => "compute#backend_service",
|
409
|
+
"id" => "1361932147851415729",
|
410
|
+
"creationTimestamp" => '2014-08-23T10:06:13.951-07:00',
|
411
|
+
"name" => "test-backend-service",
|
412
|
+
"description" => '',
|
413
|
+
"backends" => [
|
414
|
+
{
|
415
|
+
"description" => '',
|
416
|
+
"group" => "https://www.googleapis.com/resourceviews/v1beta1/projects#{@project}/zones/us-central1-a/zoneViews/name",
|
417
|
+
"balancingMode" => "RATE",
|
418
|
+
"capacityScaler" => 1.1,
|
419
|
+
"maxRate" => 0.5,
|
420
|
+
}],
|
421
|
+
"selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/global/backendServices/test-backend-service"
|
422
|
+
}
|
423
|
+
},
|
288
424
|
:servers => {
|
289
425
|
"fog-1" => {
|
290
426
|
"kind" => "compute#instance",
|
@@ -422,6 +558,71 @@ module Fog
|
|
422
558
|
"region" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/regions/us-central2"
|
423
559
|
}
|
424
560
|
},
|
561
|
+
:regions => {
|
562
|
+
"us-central1" => {
|
563
|
+
"creationTimestamp" => '2014-01-21T10:30:54.895-08:00',
|
564
|
+
"description" => 'us-central1',
|
565
|
+
"id" => '18201118976141502843',
|
566
|
+
"kind" => "compute#region",
|
567
|
+
"name" =>"us-central1",
|
568
|
+
"quotas" => [
|
569
|
+
{"metric" =>"CPUS", "limit" => 1050.0, "usage" => 28.0},
|
570
|
+
{"metric" =>"DISKS_TOTAL_GB", "limit" => 10000.0, "usage" => 292.0},
|
571
|
+
{"metric" =>"STATIC_ADDRESSES", "limit" => 10.0, "usage" => 0.0},
|
572
|
+
{"metric" =>"IN_USE_ADDRESSES", "limit" => 1050.0, "usage" => 30.0},
|
573
|
+
{"metric" =>"SSD_TOTAL_GB", "limit" => 1024.0, "usage" => 0.0}
|
574
|
+
],
|
575
|
+
"selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/regions/us-central1",
|
576
|
+
"status" => "UP",
|
577
|
+
"zones" => [
|
578
|
+
"https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/us-central1-a",
|
579
|
+
"https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/us-central1-b",
|
580
|
+
"https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/us-central1-f",
|
581
|
+
]
|
582
|
+
},
|
583
|
+
"europe-west1" => {
|
584
|
+
"creationTimestamp" => '2014-01-21T10:30:54.891-08:00',
|
585
|
+
"description" => 'europe-west1',
|
586
|
+
"id" => '18201118976141502843',
|
587
|
+
"kind" => "compute#region",
|
588
|
+
"name" =>"europe-west1",
|
589
|
+
"quotas" => [
|
590
|
+
{"metric" =>"CPUS", "limit" => 24.0, "usage" => 0.0},
|
591
|
+
{"metric" =>"DISKS_TOTAL_GB", "limit" => 2048.0, "usage" => 0.0},
|
592
|
+
{"metric" =>"STATIC_ADDRESSES", "limit" => 7.0, "usage" => 0.0},
|
593
|
+
{"metric" =>"IN_USE_ADDRESSES", "limit" => 23.0, "usage" => 0.0},
|
594
|
+
{"metric" =>"SSD_TOTAL_GB", "limit" => 1024.0, "usage" => 0.0}
|
595
|
+
],
|
596
|
+
"selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/regions/erope-west1",
|
597
|
+
"status" => "UP",
|
598
|
+
"zones" => [
|
599
|
+
"https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/europe-west1-a",
|
600
|
+
"https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/europe-west1-b",
|
601
|
+
]
|
602
|
+
},
|
603
|
+
"asia-east1" => {
|
604
|
+
"creationTimestamp" => '2014-01-21T10:30:54.895-08:00',
|
605
|
+
"description" => 'asia-east1',
|
606
|
+
"id" => '18201118976141502843',
|
607
|
+
"kind" => "compute#region",
|
608
|
+
"name" =>"asia-east1",
|
609
|
+
"quotas" => [
|
610
|
+
{"metric" =>"CPUS", "limit" => 1050.0, "usage" => 28.0},
|
611
|
+
{"metric" =>"DISKS_TOTAL_GB", "limit" => 10000.0, "usage" => 292.0},
|
612
|
+
{"metric" =>"STATIC_ADDRESSES", "limit" => 10.0, "usage" => 0.0},
|
613
|
+
{"metric" =>"IN_USE_ADDRESSES", "limit" => 1050.0, "usage" => 30.0},
|
614
|
+
{"metric" =>"SSD_TOTAL_GB", "limit" => 1024.0, "usage" => 0.0}
|
615
|
+
],
|
616
|
+
"selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{key}/regions/asia-east1",
|
617
|
+
"status" => "UP",
|
618
|
+
"zones" => [
|
619
|
+
"https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/asia-east1-a",
|
620
|
+
"https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/asia-east1-b",
|
621
|
+
"https://www.googleapis.com/compute/#{api_version}/projects/#{key}/zones/asia-east1-c",
|
622
|
+
]
|
623
|
+
}
|
624
|
+
},
|
625
|
+
|
425
626
|
:machine_types => Hash.new do |machine_types_hash, zone|
|
426
627
|
machine_types_hash[zone] = {
|
427
628
|
"f1-micro" => {
|
@@ -845,118 +1046,18 @@ module Fog
|
|
845
1046
|
end
|
846
1047
|
|
847
1048
|
class Real
|
848
|
-
include
|
849
|
-
include Shared
|
1049
|
+
include Fog::Google::Shared
|
850
1050
|
|
851
1051
|
attr_accessor :client
|
852
|
-
attr_reader :compute
|
1052
|
+
attr_reader :compute
|
853
1053
|
|
854
1054
|
def initialize(options)
|
855
|
-
|
856
|
-
|
857
|
-
require 'google/api_client'
|
858
|
-
rescue LoadError => error
|
859
|
-
Fog::Logger.warning("Please install the google-api-client gem before using this provider.")
|
860
|
-
raise error
|
861
|
-
end
|
862
|
-
shared_initialize(options)
|
863
|
-
|
864
|
-
if !options[:google_client].nil?
|
865
|
-
@client = options[:google_client]
|
866
|
-
end
|
867
|
-
|
868
|
-
if @client.nil?
|
869
|
-
if !options[:google_key_location].nil?
|
870
|
-
google_key = File.expand_path(options[:google_key_location])
|
871
|
-
elsif !options[:google_key_string].nil?
|
872
|
-
google_key = options[:google_key_string]
|
873
|
-
end
|
874
|
-
|
875
|
-
if !options[:google_client_email].nil? and !google_key.nil?
|
876
|
-
@client = self.new_pk12_google_client(
|
877
|
-
options[:google_client_email],
|
878
|
-
google_key,
|
879
|
-
options[:app_name],
|
880
|
-
options[:app_verion])
|
881
|
-
else
|
882
|
-
Fog::Logger.debug("Fog::Compute::Google.client has not been initialized nor are the :google_client_email and :google_key_location or :google_key_string options set, so we can not create one for you.")
|
883
|
-
raise ArgumentError.new("No Google API Client has been initialized.")
|
884
|
-
end
|
885
|
-
end
|
886
|
-
|
887
|
-
# We want to always mention we're using Fog.
|
888
|
-
if @client.user_agent.nil? or @client.user_agent.empty?
|
889
|
-
@client.user_agent = ""
|
890
|
-
elsif !@client.user_agent.include? "fog"
|
891
|
-
@client.user_agent += "fog/#{Fog::VERSION}"
|
892
|
-
end
|
1055
|
+
shared_initialize(options[:google_project], GOOGLE_COMPUTE_API_VERSION, GOOGLE_COMPUTE_BASE_URL)
|
1056
|
+
options.merge!(:google_api_scope_url => GOOGLE_COMPUTE_API_SCOPE_URLS.join(' '))
|
893
1057
|
|
1058
|
+
@client = initialize_google_client(options)
|
894
1059
|
@compute = @client.discovered_api('compute', api_version)
|
895
|
-
|
896
|
-
|
897
|
-
# Public: Create a Google::APIClient with a pkcs12 key and a user email.
|
898
|
-
#
|
899
|
-
# google_client_email - an @developer.gserviceaccount.com email address to use.
|
900
|
-
# google_key - an absolute location to a pkcs12 key file or the content of the file itself.
|
901
|
-
# app_name - an optional string to set as the app name in the user agent.
|
902
|
-
# app_version - an optional string to set as the app version in the user agent.
|
903
|
-
#
|
904
|
-
# Returns a new Google::APIClient
|
905
|
-
def new_pk12_google_client(google_client_email, google_key, app_name=nil, app_version=nil)
|
906
|
-
# The devstorage scope is needed to be able to insert images
|
907
|
-
# devstorage.read_only scope is not sufficient like you'd hope
|
908
|
-
api_scope_url = 'https://www.googleapis.com/auth/compute https://www.googleapis.com/auth/devstorage.read_write'
|
909
|
-
|
910
|
-
user_agent = ""
|
911
|
-
if app_name
|
912
|
-
user_agent = "#{app_name}/#{app_version || '0.0.0'} "
|
913
|
-
end
|
914
|
-
user_agent += "fog/#{Fog::VERSION}"
|
915
|
-
|
916
|
-
api_client_options = {
|
917
|
-
# https://github.com/google/google-api-ruby-client/blob/master/lib/google/api_client.rb#L98
|
918
|
-
:application_name => "suppress warning",
|
919
|
-
# https://github.com/google/google-api-ruby-client/blob/master/lib/google/api_client.rb#L100
|
920
|
-
:user_agent => user_agent
|
921
|
-
}
|
922
|
-
local_client = ::Google::APIClient.new(api_client_options)
|
923
|
-
|
924
|
-
key = ::Google::APIClient::KeyUtils.load_from_pkcs12(google_key, 'notasecret')
|
925
|
-
|
926
|
-
local_client.authorization = Signet::OAuth2::Client.new({
|
927
|
-
:audience => 'https://accounts.google.com/o/oauth2/token',
|
928
|
-
:auth_provider_x509_cert_url => "https://www.googleapis.com/oauth2/v1/certs",
|
929
|
-
:client_x509_cert_url => "https://www.googleapis.com/robot/v1/metadata/x509/#{google_client_email}",
|
930
|
-
:issuer => google_client_email,
|
931
|
-
:scope => api_scope_url,
|
932
|
-
:signing_key => key,
|
933
|
-
:token_credential_uri => 'https://accounts.google.com/o/oauth2/token',
|
934
|
-
})
|
935
|
-
|
936
|
-
local_client.authorization.fetch_access_token!
|
937
|
-
|
938
|
-
return local_client
|
939
|
-
end
|
940
|
-
|
941
|
-
def build_result(api_method, parameters, body_object=nil)
|
942
|
-
if body_object
|
943
|
-
result = @client.execute(
|
944
|
-
:api_method => api_method,
|
945
|
-
:parameters => parameters,
|
946
|
-
:body_object => body_object
|
947
|
-
)
|
948
|
-
else
|
949
|
-
result = @client.execute(
|
950
|
-
:api_method => api_method,
|
951
|
-
:parameters => parameters
|
952
|
-
)
|
953
|
-
end
|
954
|
-
end
|
955
|
-
|
956
|
-
# result = Google::APIClient::Result
|
957
|
-
# returns Excon::Response
|
958
|
-
def build_response(result)
|
959
|
-
build_excon_response(result.body.nil? || result.body.empty? ? nil : Fog::JSON.decode(result.body), result.status)
|
1060
|
+
@resourceviews = @client.discovered_api('resourceviews', 'v1beta1')
|
960
1061
|
end
|
961
1062
|
end
|
962
1063
|
|