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
@@ -0,0 +1,48 @@
|
|
1
|
+
module Fog
|
2
|
+
module Google
|
3
|
+
class SQL
|
4
|
+
##
|
5
|
+
# Retrieves a resource containing information about a Cloud SQL instance
|
6
|
+
#
|
7
|
+
# @see https://developers.google.com/cloud-sql/docs/admin-api/v1beta3/instances/get
|
8
|
+
|
9
|
+
class Real
|
10
|
+
def get_instance(instance_id)
|
11
|
+
api_method = @sql.instances.get
|
12
|
+
parameters = {
|
13
|
+
'project' => @project,
|
14
|
+
'instance' => instance_id,
|
15
|
+
}
|
16
|
+
|
17
|
+
request(api_method, parameters)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
class Mock
|
22
|
+
def get_instance(instance_id)
|
23
|
+
if self.data[:instances].has_key?(instance_id)
|
24
|
+
body = self.data[:instances][instance_id]
|
25
|
+
status = 200
|
26
|
+
else
|
27
|
+
body = {
|
28
|
+
'error' => {
|
29
|
+
'errors' => [
|
30
|
+
{
|
31
|
+
'domain' => 'global',
|
32
|
+
'reason' => 'notAuthorized',
|
33
|
+
'message' => 'The client is not authorized to make this request.',
|
34
|
+
}
|
35
|
+
],
|
36
|
+
'code' => 403,
|
37
|
+
'message' => 'The client is not authorized to make this request.',
|
38
|
+
}
|
39
|
+
}
|
40
|
+
status = 403
|
41
|
+
end
|
42
|
+
|
43
|
+
build_excon_response(body, status)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
module Fog
|
2
|
+
module Google
|
3
|
+
class SQL
|
4
|
+
##
|
5
|
+
# Retrieves an instance operation that has been performed on an instance
|
6
|
+
#
|
7
|
+
# @see https://developers.google.com/cloud-sql/docs/admin-api/v1beta3/operations/get
|
8
|
+
|
9
|
+
class Real
|
10
|
+
def get_operation(instance_id, operation_id)
|
11
|
+
api_method = @sql.operations.get
|
12
|
+
parameters = {
|
13
|
+
'project' => @project,
|
14
|
+
'instance' => instance_id,
|
15
|
+
'operation' => operation_id,
|
16
|
+
}
|
17
|
+
|
18
|
+
request(api_method, parameters)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
class Mock
|
23
|
+
def get_operation(instance_id, operation_id)
|
24
|
+
if self.data[:operations].has_key?(instance_id)
|
25
|
+
if self.data[:operations][instance_id].has_key?(operation_id)
|
26
|
+
body = self.data[:operations][instance_id][operation_id]
|
27
|
+
status = 200
|
28
|
+
else
|
29
|
+
body = {
|
30
|
+
'error' => {
|
31
|
+
'errors' => [
|
32
|
+
{
|
33
|
+
'domain' => 'global',
|
34
|
+
'reason' => 'operationDoesNotExist',
|
35
|
+
'message' => 'The Cloud SQL instance operation does not exist.',
|
36
|
+
}
|
37
|
+
],
|
38
|
+
'code' => 404,
|
39
|
+
'message' => 'The Cloud SQL instance operation does not exist.',
|
40
|
+
}
|
41
|
+
}
|
42
|
+
status = 404
|
43
|
+
end
|
44
|
+
else
|
45
|
+
body = {
|
46
|
+
'error' => {
|
47
|
+
'errors' => [
|
48
|
+
{
|
49
|
+
'domain' => 'global',
|
50
|
+
'reason' => 'notAuthorized',
|
51
|
+
'message' => 'The client is not authorized to make this request.',
|
52
|
+
}
|
53
|
+
],
|
54
|
+
'code' => 403,
|
55
|
+
'message' => 'The client is not authorized to make this request.',
|
56
|
+
}
|
57
|
+
}
|
58
|
+
status = 403
|
59
|
+
end
|
60
|
+
|
61
|
+
build_excon_response(body, status)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
module Fog
|
2
|
+
module Google
|
3
|
+
class SQL
|
4
|
+
##
|
5
|
+
# Retrieves a particular SSL certificate (does not include the private key)
|
6
|
+
#
|
7
|
+
# @see https://developers.google.com/cloud-sql/docs/admin-api/v1beta3/sslCerts/get
|
8
|
+
|
9
|
+
class Real
|
10
|
+
def get_ssl_cert(instance_id, sha1_fingerprint)
|
11
|
+
api_method = @sql.ssl_certs.get
|
12
|
+
parameters = {
|
13
|
+
'project' => @project,
|
14
|
+
'instance' => instance_id,
|
15
|
+
'sha1Fingerprint' => sha1_fingerprint,
|
16
|
+
}
|
17
|
+
|
18
|
+
request(api_method, parameters)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
class Mock
|
23
|
+
def get_ssl_cert(instance_id, sha1_fingerprint)
|
24
|
+
if self.data[:ssl_certs].has_key?(instance_id)
|
25
|
+
if self.data[:ssl_certs][instance_id].has_key?(sha1_fingerprint)
|
26
|
+
body = self.data[:ssl_certs][instance_id][sha1_fingerprint]
|
27
|
+
status = 200
|
28
|
+
else
|
29
|
+
body = {
|
30
|
+
'error' => {
|
31
|
+
'errors' => [
|
32
|
+
{
|
33
|
+
'domain' => 'global',
|
34
|
+
'reason' => 'sslCertificateDoesNotExist',
|
35
|
+
'message' => 'The SSL certificate does not exist.',
|
36
|
+
}
|
37
|
+
],
|
38
|
+
'code' => 404,
|
39
|
+
'message' => 'The SSL certificate does not exist.',
|
40
|
+
}
|
41
|
+
}
|
42
|
+
status = 404
|
43
|
+
end
|
44
|
+
else
|
45
|
+
body = {
|
46
|
+
'error' => {
|
47
|
+
'errors' => [
|
48
|
+
{
|
49
|
+
'domain' => 'global',
|
50
|
+
'reason' => 'notAuthorized',
|
51
|
+
'message' => 'The client is not authorized to make this request.',
|
52
|
+
}
|
53
|
+
],
|
54
|
+
'code' => 403,
|
55
|
+
'message' => 'The client is not authorized to make this request.',
|
56
|
+
}
|
57
|
+
}
|
58
|
+
status = 403
|
59
|
+
end
|
60
|
+
|
61
|
+
build_excon_response(body, status)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
module Fog
|
2
|
+
module Google
|
3
|
+
class SQL
|
4
|
+
##
|
5
|
+
# Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud Storage
|
6
|
+
#
|
7
|
+
# @see https://developers.google.com/cloud-sql/docs/admin-api/v1beta3/instances/import
|
8
|
+
|
9
|
+
class Real
|
10
|
+
def import_instance(instance_id, uri, options = {})
|
11
|
+
api_method = @sql.instances.import
|
12
|
+
parameters = {
|
13
|
+
'project' => @project,
|
14
|
+
'instance' => instance_id,
|
15
|
+
}
|
16
|
+
|
17
|
+
body = {
|
18
|
+
'importContext' => {
|
19
|
+
'kind' => 'sql#importContext',
|
20
|
+
'uri' => Array(uri),
|
21
|
+
'database' => options[:database],
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
request(api_method, parameters, body)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
class Mock
|
30
|
+
def import_instance(instance_id, uri, options = {})
|
31
|
+
operation = self.random_operation
|
32
|
+
self.data[:operations][instance_id] ||= {}
|
33
|
+
self.data[:operations][instance_id][operation] = {
|
34
|
+
'kind' => 'sql#instanceOperation',
|
35
|
+
'instance' => instance_id,
|
36
|
+
'operation' => operation,
|
37
|
+
'operationType' => 'IMPORT',
|
38
|
+
'state' => Fog::Google::SQL::Operation::DONE_STATE,
|
39
|
+
'userEmailAddress' => 'google_client_email@developer.gserviceaccount.com',
|
40
|
+
'enqueuedTime' => Time.now.iso8601,
|
41
|
+
'startTime' => Time.now.iso8601,
|
42
|
+
'endTime' => Time.now.iso8601,
|
43
|
+
}
|
44
|
+
|
45
|
+
body = {
|
46
|
+
'kind' => 'sql#instancesImport',
|
47
|
+
'operation' => operation,
|
48
|
+
}
|
49
|
+
|
50
|
+
build_excon_response(body)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,165 @@
|
|
1
|
+
module Fog
|
2
|
+
module Google
|
3
|
+
class SQL
|
4
|
+
##
|
5
|
+
# Creates a new Cloud SQL instance
|
6
|
+
#
|
7
|
+
# @see https://developers.google.com/cloud-sql/docs/admin-api/v1beta3/instances/insert
|
8
|
+
|
9
|
+
class Real
|
10
|
+
def insert_instance(name, tier, options = {})
|
11
|
+
api_method = @sql.instances.insert
|
12
|
+
parameters = {
|
13
|
+
'project' => @project,
|
14
|
+
}
|
15
|
+
|
16
|
+
body = {
|
17
|
+
'project' => @project,
|
18
|
+
'instance' => name,
|
19
|
+
'settings' => {
|
20
|
+
'tier' => tier,
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
if options[:region]
|
25
|
+
body['region'] = options[:region]
|
26
|
+
end
|
27
|
+
if options[:activation_policy]
|
28
|
+
body['settings']['activationPolicy'] = options[:activation_policy]
|
29
|
+
end
|
30
|
+
if options[:autorized_gae_applications]
|
31
|
+
body['settings']['authorizedGaeApplications'] = Array(options[:autorized_gae_applications])
|
32
|
+
end
|
33
|
+
if options[:backup_configuration]
|
34
|
+
body['settings']['backupConfiguration'] = options[:backup_configuration]
|
35
|
+
end
|
36
|
+
if options[:ip_configuration_authorized_networks]
|
37
|
+
body['settings']['ipConfiguration'] ||= {}
|
38
|
+
body['settings']['ipConfiguration']['authorizedNetworks'] = Array(options[:ip_configuration_authorized_networks])
|
39
|
+
end
|
40
|
+
if options[:ip_configuration_enabled]
|
41
|
+
body['settings']['ipConfiguration'] ||= {}
|
42
|
+
body['settings']['ipConfiguration']['enabled'] = options[:ip_configuration_enabled]
|
43
|
+
end
|
44
|
+
if options[:ip_configuration_require_ssl]
|
45
|
+
body['settings']['ipConfiguration'] ||= {}
|
46
|
+
body['settings']['ipConfiguration']['requireSsl'] = options[:ip_configuration_require_ssl]
|
47
|
+
end
|
48
|
+
if options[:location_preference_zone_follow_gae_application]
|
49
|
+
body['settings']['locationPreference'] ||= {}
|
50
|
+
body['settings']['locationPreference']['followGaeApplication'] = options[:location_preference_zone_follow_gae_application]
|
51
|
+
end
|
52
|
+
if options[:location_preference_zone]
|
53
|
+
body['settings']['locationPreference'] ||= {}
|
54
|
+
body['settings']['locationPreference']['zone'] = options[:location_preference_zone]
|
55
|
+
end
|
56
|
+
if options[:pricing_plan]
|
57
|
+
body['settings']['pricingPlan'] = options[:pricing_plan]
|
58
|
+
end
|
59
|
+
if options[:replication_type]
|
60
|
+
body['settings']['replicationType'] = options[:replication_type]
|
61
|
+
end
|
62
|
+
|
63
|
+
request(api_method, parameters, body)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
class Mock
|
68
|
+
def insert_instance(name, tier, options = {})
|
69
|
+
data = {
|
70
|
+
'kind' => 'sql#instance',
|
71
|
+
'instance' => name,
|
72
|
+
'etag' => Fog::Mock.random_base64(32),
|
73
|
+
'project' => @project,
|
74
|
+
'state' => Fog::Google::SQL::Instance::RUNNABLE_STATE ,
|
75
|
+
'databaseVersion' => 'MYSQL_5_5',
|
76
|
+
'region' => options[:region] || 'us-central',
|
77
|
+
'currentDiskSize' => '86245269',
|
78
|
+
'maxDiskSize' => '268435456000',
|
79
|
+
'settings' => {
|
80
|
+
'kind' => 'sql#settings',
|
81
|
+
'settingsVersion' => '1',
|
82
|
+
'tier' => tier,
|
83
|
+
'backupConfiguration' => [
|
84
|
+
{
|
85
|
+
'kind' => 'sql#backupConfiguration',
|
86
|
+
'startTime' => '04:00',
|
87
|
+
'enabled' => false,
|
88
|
+
'id' => Fog::Mock.random_hex(32),
|
89
|
+
'binaryLogEnabled' => false
|
90
|
+
}
|
91
|
+
],
|
92
|
+
'pricingPlan' => options[:pricing_plan] || 'PER_USE',
|
93
|
+
'replicationType' => options[:replication_type] || 'SYNCHRONOUS',
|
94
|
+
'activationPolicy' => options[:activation_policy] || 'ON_DEMAND',
|
95
|
+
'ipConfiguration' => {
|
96
|
+
'enabled' => false,
|
97
|
+
},
|
98
|
+
'locationPreference' => {
|
99
|
+
'kind' => 'sql#locationPreference',
|
100
|
+
}
|
101
|
+
},
|
102
|
+
'serverCaCert' => {
|
103
|
+
'kind' => 'sql#sslCert',
|
104
|
+
'instance' => name,
|
105
|
+
'sha1Fingerprint' => Fog::Mock.random_hex(40),
|
106
|
+
'commonName' => 'C=US,O=Google\\, Inc,CN=Google Cloud SQL Server CA',
|
107
|
+
'certSerialNumber' => '0',
|
108
|
+
'cert' => "-----BEGIN CERTIFICATE-----\nMIIDITCCAgmgAwIBAgIBADANBgkqhkiG9w0BAQUFADBIMSMwIQYDVQQDExpHb29n\nbGUgQ2xvdWQgU1FMIFNlcnZlciBDQTEUMBIGA1UEChMLR29vZ2xlLCBJbmMxCzAJ\nBgNVBAYTAlVTMB4XDTE0MDYwNDA1MjkxMVoXDTI0MDYwMTA1MjkxMVowSDEjMCEG\nA1UEAxMaR29vZ2xlIENsb3VkIFNRTCBTZXJ2ZXIgQ0ExFDASBgNVBAoTC0dvb2ds\nZSwgSW5jMQswCQYDVQQGEwJVUzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC\nggEBALlRjq3zccH5ed6NMfCFcTYd9XxYXyvLurxxjDIA6A7/ymVM9qdQC0uckf7C\nsi4uMi2yfK+PHZ0jXC+g0uPx5RTm+nbKl4I++VOh2g6oZHeNdFt4rVJpr+jzGUMf\nr67SymUr70TQOTEVpx2Ud3rBB2szulxWUSXEy2AGA3uNUGe/IgENh7p56s00Sr97\nTRP1S5/JVMalncgNVLH2nNqBQJZTx9t9qvGatoUfmHUU0+M//J5sXLbgdzeEeeot\nHJUyoXjA2sRkH1+F/d6PpFrcr1I8dVmCBEbTAnm7HpKh5Mx2nRYi+t/y9D2Mblwx\n9dBRfr3WIJ1JDxzt3L8CtBGZbvUCAwEAAaMWMBQwEgYDVR0TAQH/BAgwBgEB/wIB\nADANBgkqhkiG9w0BAQUFAAOCAQEAmHuBecPc265sbd26B1HXUAD6FHdzoZLrAZVW\n+1eIK4E669P4y6LkLuoCkLd64/YwA4K2FioksqgHOahbYWJJYPymy4ae+IPXzXcY\nPv3gmBsKk++sHb64D9Cj/k5n8BEiVmmrsUCUiL75nJAzK+El3hvKKWWl76XX/qHP\nk8ZAxIrn8bCiVOaj6NR4+p1OmcZSPNWxz7j/EwQxoABRxgPgt+B/YRseevww7an2\n/rGs0sk7RE0QDjLfZblYGh+xVPBBLuLmf4L5JNJkFEoeGSWrxTzvXnS+2LZeHdM/\nJ9nsiKu5JKPhMUS0vOcTymOkh8tJ6Np8gwg6ca4g6dT3llE6uQ==\n-----END CERTIFICATE-----",
|
109
|
+
'createTime' => Time.now.iso8601,
|
110
|
+
'expirationTime' => Time.now.iso8601,
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
if options[:autorized_gae_applications]
|
115
|
+
data['settings']['authorizedGaeApplications'] = Array(options[:autorized_gae_applications])
|
116
|
+
end
|
117
|
+
if options[:backup_configuration]
|
118
|
+
data['settings']['backupConfiguration'] = options[:backup_configuration]
|
119
|
+
end
|
120
|
+
if options[:ip_configuration_authorized_networks]
|
121
|
+
data['settings']['ipConfiguration']['authorizedNetworks'] = Array(options[:ip_configuration_authorized_networks])
|
122
|
+
end
|
123
|
+
if options[:ip_configuration_enabled]
|
124
|
+
data['settings']['ipConfiguration']['enabled'] = options[:ip_configuration_enabled]
|
125
|
+
end
|
126
|
+
if options[:ip_configuration_require_ssl]
|
127
|
+
data['settings']['ipConfiguration']['requireSsl'] = options[:ip_configuration_require_ssl]
|
128
|
+
end
|
129
|
+
if options[:location_preference_zone_follow_gae_application]
|
130
|
+
data['settings']['locationPreference']['followGaeApplication'] = options[:location_preference_zone_follow_gae_application]
|
131
|
+
end
|
132
|
+
if options[:location_preference_zone]
|
133
|
+
data['settings']['locationPreference']['zone'] = options[:location_preference_zone]
|
134
|
+
end
|
135
|
+
|
136
|
+
self.data[:instances][name] = data
|
137
|
+
self.data[:ssl_certs][name] = {}
|
138
|
+
self.data[:backup_runs][name] = {}
|
139
|
+
|
140
|
+
operation = self.random_operation
|
141
|
+
self.data[:operations][name] ||= {}
|
142
|
+
self.data[:operations][name][operation] = {
|
143
|
+
'kind' => 'sql#instanceOperation',
|
144
|
+
'instance' => name,
|
145
|
+
'operation' => operation,
|
146
|
+
'operationType' => 'CREATE',
|
147
|
+
'state' => Fog::Google::SQL::Operation::DONE_STATE,
|
148
|
+
'userEmailAddress' => 'google_client_email@developer.gserviceaccount.com',
|
149
|
+
'enqueuedTime' => Time.now.iso8601,
|
150
|
+
'startTime' => Time.now.iso8601,
|
151
|
+
'endTime' => Time.now.iso8601,
|
152
|
+
}
|
153
|
+
|
154
|
+
body = {
|
155
|
+
'kind' => 'sql#instancesInsert',
|
156
|
+
'operation' => operation,
|
157
|
+
}
|
158
|
+
status = 200
|
159
|
+
|
160
|
+
build_excon_response(body, status)
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
module Fog
|
2
|
+
module Google
|
3
|
+
class SQL
|
4
|
+
##
|
5
|
+
# Creates an SSL certificate. The new certificate will not be usable until the instance is restarted.
|
6
|
+
#
|
7
|
+
# @see https://developers.google.com/cloud-sql/docs/admin-api/v1beta3/sslCerts/insert
|
8
|
+
|
9
|
+
class Real
|
10
|
+
def insert_ssl_cert(instance_id, common_name)
|
11
|
+
api_method = @sql.ssl_certs.insert
|
12
|
+
parameters = {
|
13
|
+
'project' => @project,
|
14
|
+
'instance' => instance_id,
|
15
|
+
}
|
16
|
+
|
17
|
+
body = {
|
18
|
+
'commonName' => common_name
|
19
|
+
}
|
20
|
+
|
21
|
+
request(api_method, parameters, body)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
class Mock
|
26
|
+
def insert_ssl_cert(instance_id, common_name)
|
27
|
+
if self.data[:ssl_certs].has_key?(instance_id)
|
28
|
+
sha1_fingerprint = Fog::Mock.random_hex(40)
|
29
|
+
data = {
|
30
|
+
'kind' => 'sql#sslCert',
|
31
|
+
'instance' => instance_id,
|
32
|
+
'sha1Fingerprint' => sha1_fingerprint,
|
33
|
+
'commonName' => common_name,
|
34
|
+
'certSerialNumber' => Fog::Mock.random_numbers(9),
|
35
|
+
'cert' => "-----BEGIN CERTIFICATE-----\nMIIC/zCCAeegAwIBAgIELAk5vzANBgkqhkiG9w0BAQUFADBNMSgwJgYDVQQDEx9H\nb29nbGUgQ2xvdWQgU1FMIENsaWVudCBDQSB0ZXN0MRQwEgYDVQQKEwtHb29nbGUs\nIEluYzELMAkGA1UEBhMCVVMwHhcNMTQwNjA0MDY1MjAwWhcNMjQwNjAxMDY1MjAw\nWjAyMQ0wCwYDVQQDEwR0ZXN0MRQwEgYDVQQKEwtHb29nbGUsIEluYzELMAkGA1UE\nBhMCVVMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC9G9ZG19n978EW\n5bQ/TM1Fnb4fd/FRT8XMs2D5C7+dKLEgbeUOvZQt4EsQ6cC+UVhoK7N6DvnXAZ1M\ng+B159Xlqjv8Mh5RihfGjPCdlw2pF7Pu68LyYghvQLhi7yhuNeaN+FBeKvjcW9k0\ni54AM8Ub2a/kxAwMtXm1kGtgc1+qkUlyBxfn1UoKI5Dhvw/InxgI1kS/VUkkk9kv\n0q/oyPrboE/vuSitDq+pHjRFwrIQcS6Pz9DYHhZVyDDkTIh7vLXM0JEQRT1SiA8k\n+4hwXI3WBqPRZRI4H1KmYSSIKvZtci63SbM/rHitXkGipFF1lw0gSqfpM8gG36fl\naITBPI97AgMBAAGjAjAAMA0GCSqGSIb3DQEBBQUAA4IBAQCOvRWYdcaYl/qHgif8\nvD4QEQLiy3+Hn5zSLQEcqP/BymhUw4LSGhu8NJxJ26PvlHzAnWa2/OkTCkgSpM4k\nkebO2vyuU8XY/7FeRO3uNktEAp2Aw1RYJ/IqSDvjpg5/hJTHKADrAkiu2SyCJvoO\nqblzBO7TvLj5BBdvcr1/hfWRuAt5NykOww9AMEAzrfLzrF7f98RntOZzIwwX+UvF\nLXQZwc/b55d97Y249pLRQCBnHdaEtZLQTEQulj1zMx2lkH5CrQWGwDCVFuIyt/rN\nzFJGN09McKrWkBZuwPtkkyb+sBVXZX6cEFgHHA+7D91QRH4lbEjjO8OjQgaA6qWN\n5iGN\n-----END CERTIFICATE-----",
|
36
|
+
'createTime' => Time.now.iso8601,
|
37
|
+
'expirationTime' => Time.now.iso8601,
|
38
|
+
}
|
39
|
+
self.data[:ssl_certs][instance_id][sha1_fingerprint] = data
|
40
|
+
body = {
|
41
|
+
'kind' => 'sql#sslCertsInsert',
|
42
|
+
'serverCaCert' => {
|
43
|
+
'kind' => 'sql#sslCert',
|
44
|
+
'instance' => instance_id,
|
45
|
+
'sha1Fingerprint' => Fog::Mock.random_hex(40),
|
46
|
+
'commonName' => 'C=US,O=Google\\, Inc,CN=Google Cloud SQL Server CA',
|
47
|
+
'certSerialNumber' => '0',
|
48
|
+
'cert' => "-----BEGIN CERTIFICATE-----\nMIIDITCCAgmgAwIBAgIBADANBgkqhkiG9w0BAQUFADBIMSMwIQYDVQQDExpHb29n\nbGUgQ2xvdWQgU1FMIFNlcnZlciBDQTEUMBIGA1UEChMLR29vZ2xlLCBJbmMxCzAJ\nBgNVBAYTAlVTMB4XDTE0MDYwNDA1MjkxMVoXDTI0MDYwMTA1MjkxMVowSDEjMCEG\nA1UEAxMaR29vZ2xlIENsb3VkIFNRTCBTZXJ2ZXIgQ0ExFDASBgNVBAoTC0dvb2ds\nZSwgSW5jMQswCQYDVQQGEwJVUzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC\nggEBALlRjq3zccH5ed6NMfCFcTYd9XxYXyvLurxxjDIA6A7/ymVM9qdQC0uckf7C\nsi4uMi2yfK+PHZ0jXC+g0uPx5RTm+nbKl4I++VOh2g6oZHeNdFt4rVJpr+jzGUMf\nr67SymUr70TQOTEVpx2Ud3rBB2szulxWUSXEy2AGA3uNUGe/IgENh7p56s00Sr97\nTRP1S5/JVMalncgNVLH2nNqBQJZTx9t9qvGatoUfmHUU0+M//J5sXLbgdzeEeeot\nHJUyoXjA2sRkH1+F/d6PpFrcr1I8dVmCBEbTAnm7HpKh5Mx2nRYi+t/y9D2Mblwx\n9dBRfr3WIJ1JDxzt3L8CtBGZbvUCAwEAAaMWMBQwEgYDVR0TAQH/BAgwBgEB/wIB\nADANBgkqhkiG9w0BAQUFAAOCAQEAmHuBecPc265sbd26B1HXUAD6FHdzoZLrAZVW\n+1eIK4E669P4y6LkLuoCkLd64/YwA4K2FioksqgHOahbYWJJYPymy4ae+IPXzXcY\nPv3gmBsKk++sHb64D9Cj/k5n8BEiVmmrsUCUiL75nJAzK+El3hvKKWWl76XX/qHP\nk8ZAxIrn8bCiVOaj6NR4+p1OmcZSPNWxz7j/EwQxoABRxgPgt+B/YRseevww7an2\n/rGs0sk7RE0QDjLfZblYGh+xVPBBLuLmf4L5JNJkFEoeGSWrxTzvXnS+2LZeHdM/\nJ9nsiKu5JKPhMUS0vOcTymOkh8tJ6Np8gwg6ca4g6dT3llE6uQ==\n-----END CERTIFICATE-----",
|
49
|
+
'createTime' => Time.now.iso8601,
|
50
|
+
'expirationTime' => Time.now.iso8601,
|
51
|
+
},
|
52
|
+
'clientCert' => {
|
53
|
+
'certInfo' => data,
|
54
|
+
'certPrivateKey' => "-----BEGIN RSA PRIVATE KEY-----\nMIIEpAIBAAKCAQEAvRvWRtfZ/e/BFuW0P0zNRZ2+H3fxUU/FzLNg+Qu/nSixIG3l\nDr2ULeBLEOnAvlFYaCuzeg751wGdTIPgdefV5ao7/DIeUYoXxozwnZcNqRez7uvC\n8mIIb0C4Yu8objXmjfhQXir43FvZNIueADPFG9mv5MQMDLV5tZBrYHNfqpFJcgcX\n59VKCiOQ4b8PyJ8YCNZEv1VJJJPZL9Kv6Mj626BP77korQ6vqR40RcKyEHEuj8/Q\n2B4WVcgw5EyIe7y1zNCREEU9UogPJPuIcFyN1gaj0WUSOB9SpmEkiCr2bXIut0mz\nP6x4rV5BoqRRdZcNIEqn6TPIBt+n5WiEwTyPewIDAQABAoIBAH89e6+vDL4P05vU\ncrMkufldac9CpNxREIXrLBRmE0drWcK4Lqb8Z/d2MwvuPAHSOendfaVi7jf8nhod\noamzk/gz0qieEEhM4jJ2Im/mcwqTKD5Z45Gy5Hn20hm/UTTWj4p2yZySzV93bW4t\nguIf80AJ+I+0WWczs/C2e4kqF/RrIf4ff7UF/2TPS+sEmkTA74APWIMqjkr0cjTP\nrIJCp8jFn/639dVLeHcw2abduZSV8PkQSNdqPeH2P+GpqkYLREPMAw/jPGZYoVli\npQ57cB1THj/juYFYMS7dlJ3hr0pDo6Vw30L6EcE63dvXzJvhOfPXtFufdfanPiey\nUSICtAECgYEA/qP7ZJ9ohqg4D5v9TM4fVlUpo68/jMaWlPPoLQwNXZ81rTN4yOxm\nUJLhDvQCWYZie1jwn9+UA1bdp4PceSbEWh4iM0h4TcxmhHmos6pxGYb/uw6jGLw4\nqjCqDP69/Jgmkfobs4u/h9xtZEHo6u5rrbDZIu0EezL7ArMrSOYVRsMCgYEAvh5K\n4H5EVMhiHnjvbpToOzGjMpqoBr0XSq63Cx45U5on5Bp8oc/iQPnCzpwcrJb4vwRV\nVYYtD/PWpdjzhTVy6SgVnkTKoo6N/Y9vFAYCf67eb4Yu4L8MonlYU2IY7bA3SChw\nesHlwsVZdlNqieWmOuacA8IbgXW4ftbtZDzBuOkCgYEArA8rn+simtJxxwJVHp+s\nhw5Wa3bQDxRkzVMdz8p0AY3BnD3KYKFz5P/KOOth5xIp20TWmoBdKAB7F2S/BdHP\nHUF9RH+0YoU5xEvcVUJW17PjeobCZ8VO2Ji3Xr6Gq3Y3oa2JKEHGckvcUsFCW/Qs\nKBn2LmZO/9wLxeBA4CovuDcCgYAVGTWEDl807Xv+F7uykPHox8xtrD4jaU6xagxE\nPplsDrqIlOvp5TEdttoIpciE2shGIov5zscncw8KHrZ/vPvApkMn6kh2m81kK0vP\ndA9I7jYfOEvxgyI60a6cqlFL53drGZnJ9cSyxcX03LMBFKxK8xazUBJPXqoX4XA8\n5IU3KQKBgQDCPVBZbZcwcfI+fGRZX8DLE61tscK1uy0ySQPmz/tm3ixDAdQNgGvD\nXjyPvMCEtHx7+ZbykLS7SJZG4924LKyGxF9bw5AYTPyxietOUfoqaS8v3kJ03Ebu\nkVDmZkAiMk5E+oGchYsD613QRFjF4nlmrHfxtRqTPqa/OpNDimdG+w==\n-----END RSA PRIVATE KEY-----",
|
55
|
+
}
|
56
|
+
}
|
57
|
+
status = 200
|
58
|
+
else
|
59
|
+
body = {
|
60
|
+
'error' => {
|
61
|
+
'errors' => [
|
62
|
+
{
|
63
|
+
'domain' => 'global',
|
64
|
+
'reason' => 'notAuthorized',
|
65
|
+
'message' => 'The client is not authorized to make this request.',
|
66
|
+
}
|
67
|
+
],
|
68
|
+
'code' => 403,
|
69
|
+
'message' => 'The client is not authorized to make this request.',
|
70
|
+
}
|
71
|
+
}
|
72
|
+
status = 403
|
73
|
+
end
|
74
|
+
|
75
|
+
build_excon_response(body, status)
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|