fog-zj 0.1.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.hound.yml +2 -0
- data/.rubocop.yml +110 -0
- data/.ruby-gemset +1 -0
- data/.travis.yml +32 -0
- data/.zuul.yaml +35 -0
- data/CHANGELOG.md +47 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/CONTRIBUTING.md +18 -0
- data/Gemfile +4 -0
- data/LICENSE.md +20 -0
- data/README.md +572 -0
- data/Rakefile +31 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/docker-compose.yml +44 -0
- data/docs/common/connection_params.md +45 -0
- data/docs/common/resources.md +11 -0
- data/docs/compute.md +636 -0
- data/docs/getting_started.md +82 -0
- data/docs/introspection.md +251 -0
- data/docs/metering.md +43 -0
- data/docs/network.md +238 -0
- data/docs/nfv.md +144 -0
- data/docs/orchestration.md +360 -0
- data/docs/planning.md +225 -0
- data/docs/shared_file_system.md +82 -0
- data/docs/storage.md +406 -0
- data/docs/workflow.md +131 -0
- data/examples/compute/basics.rb +50 -0
- data/examples/compute/block_device_mapping_v2.rb +30 -0
- data/examples/container_infra/basics.rb +61 -0
- data/examples/event/basics.rb +22 -0
- data/examples/identity/basics.rb +67 -0
- data/examples/identity/basics_v3.rb +83 -0
- data/examples/image/upload-test-image.rb +74 -0
- data/examples/introspection/basics.rb +75 -0
- data/examples/metric/basics.rb +42 -0
- data/examples/network/network_add_port.rb +21 -0
- data/examples/network/network_rbac.rb +69 -0
- data/examples/network/network_subnets_routers.rb +62 -0
- data/examples/planning/basics.rb +53 -0
- data/examples/shared_file_system/basics.rb +68 -0
- data/examples/storage/set-account-quota.rb +64 -0
- data/examples/volume/backups.rb +41 -0
- data/examples/workflow/workflow-examples.rb +387 -0
- data/fog-openstack.gemspec +38 -0
- data/lib/fog/baremetal/openstack.rb +284 -0
- data/lib/fog/baremetal/openstack/models/chassis.rb +49 -0
- data/lib/fog/baremetal/openstack/models/chassis_collection.rb +44 -0
- data/lib/fog/baremetal/openstack/models/driver.rb +24 -0
- data/lib/fog/baremetal/openstack/models/drivers.rb +21 -0
- data/lib/fog/baremetal/openstack/models/node.rb +96 -0
- data/lib/fog/baremetal/openstack/models/nodes.rb +44 -0
- data/lib/fog/baremetal/openstack/models/port.rb +50 -0
- data/lib/fog/baremetal/openstack/models/ports.rb +44 -0
- data/lib/fog/baremetal/openstack/requests/create_chassis.rb +44 -0
- data/lib/fog/baremetal/openstack/requests/create_node.rb +54 -0
- data/lib/fog/baremetal/openstack/requests/create_port.rb +46 -0
- data/lib/fog/baremetal/openstack/requests/delete_chassis.rb +25 -0
- data/lib/fog/baremetal/openstack/requests/delete_node.rb +25 -0
- data/lib/fog/baremetal/openstack/requests/delete_port.rb +25 -0
- data/lib/fog/baremetal/openstack/requests/get_chassis.rb +24 -0
- data/lib/fog/baremetal/openstack/requests/get_driver.rb +24 -0
- data/lib/fog/baremetal/openstack/requests/get_driver_properties.rb +40 -0
- data/lib/fog/baremetal/openstack/requests/get_node.rb +24 -0
- data/lib/fog/baremetal/openstack/requests/get_port.rb +24 -0
- data/lib/fog/baremetal/openstack/requests/list_chassis.rb +42 -0
- data/lib/fog/baremetal/openstack/requests/list_chassis_detailed.rb +25 -0
- data/lib/fog/baremetal/openstack/requests/list_drivers.rb +25 -0
- data/lib/fog/baremetal/openstack/requests/list_nodes.rb +34 -0
- data/lib/fog/baremetal/openstack/requests/list_nodes_detailed.rb +25 -0
- data/lib/fog/baremetal/openstack/requests/list_ports.rb +42 -0
- data/lib/fog/baremetal/openstack/requests/list_ports_detailed.rb +25 -0
- data/lib/fog/baremetal/openstack/requests/patch_chassis.rb +41 -0
- data/lib/fog/baremetal/openstack/requests/patch_node.rb +41 -0
- data/lib/fog/baremetal/openstack/requests/patch_port.rb +41 -0
- data/lib/fog/baremetal/openstack/requests/set_node_maintenance.rb +30 -0
- data/lib/fog/baremetal/openstack/requests/set_node_power_state.rb +35 -0
- data/lib/fog/baremetal/openstack/requests/set_node_provision_state.rb +38 -0
- data/lib/fog/baremetal/openstack/requests/unset_node_maintenance.rb +30 -0
- data/lib/fog/compute/openstack.rb +413 -0
- data/lib/fog/compute/openstack/models/address.rb +67 -0
- data/lib/fog/compute/openstack/models/addresses.rb +28 -0
- data/lib/fog/compute/openstack/models/aggregate.rb +59 -0
- data/lib/fog/compute/openstack/models/aggregates.rb +26 -0
- data/lib/fog/compute/openstack/models/availability_zone.rb +19 -0
- data/lib/fog/compute/openstack/models/availability_zones.rb +22 -0
- data/lib/fog/compute/openstack/models/flavor.rb +64 -0
- data/lib/fog/compute/openstack/models/flavors.rb +29 -0
- data/lib/fog/compute/openstack/models/host.rb +28 -0
- data/lib/fog/compute/openstack/models/hosts.rb +26 -0
- data/lib/fog/compute/openstack/models/image.rb +47 -0
- data/lib/fog/compute/openstack/models/images.rb +38 -0
- data/lib/fog/compute/openstack/models/key_pair.rb +56 -0
- data/lib/fog/compute/openstack/models/key_pairs.rb +29 -0
- data/lib/fog/compute/openstack/models/metadata.rb +65 -0
- data/lib/fog/compute/openstack/models/metadatum.rb +27 -0
- data/lib/fog/compute/openstack/models/network.rb +13 -0
- data/lib/fog/compute/openstack/models/networks.rb +30 -0
- data/lib/fog/compute/openstack/models/os_interface.rb +15 -0
- data/lib/fog/compute/openstack/models/os_interfaces.rb +28 -0
- data/lib/fog/compute/openstack/models/security_group.rb +57 -0
- data/lib/fog/compute/openstack/models/security_group_rule.rb +32 -0
- data/lib/fog/compute/openstack/models/security_group_rules.rb +21 -0
- data/lib/fog/compute/openstack/models/security_groups.rb +24 -0
- data/lib/fog/compute/openstack/models/server.rb +410 -0
- data/lib/fog/compute/openstack/models/server_group.rb +22 -0
- data/lib/fog/compute/openstack/models/server_groups.rb +28 -0
- data/lib/fog/compute/openstack/models/servers.rb +59 -0
- data/lib/fog/compute/openstack/models/service.rb +42 -0
- data/lib/fog/compute/openstack/models/services.rb +35 -0
- data/lib/fog/compute/openstack/models/snapshot.rb +32 -0
- data/lib/fog/compute/openstack/models/snapshots.rb +37 -0
- data/lib/fog/compute/openstack/models/tenant.rb +24 -0
- data/lib/fog/compute/openstack/models/tenants.rb +24 -0
- data/lib/fog/compute/openstack/models/volume.rb +52 -0
- data/lib/fog/compute/openstack/models/volume_attachment.rb +15 -0
- data/lib/fog/compute/openstack/models/volume_attachments.rb +20 -0
- data/lib/fog/compute/openstack/models/volumes.rb +37 -0
- data/lib/fog/compute/openstack/requests/add_aggregate_host.rb +30 -0
- data/lib/fog/compute/openstack/requests/add_fixed_ip.rb +29 -0
- data/lib/fog/compute/openstack/requests/add_flavor_access.rb +29 -0
- data/lib/fog/compute/openstack/requests/add_security_group.rb +20 -0
- data/lib/fog/compute/openstack/requests/allocate_address.rb +39 -0
- data/lib/fog/compute/openstack/requests/associate_address.rb +30 -0
- data/lib/fog/compute/openstack/requests/attach_volume.rb +39 -0
- data/lib/fog/compute/openstack/requests/boot_from_snapshot.rb +41 -0
- data/lib/fog/compute/openstack/requests/change_server_password.rb +20 -0
- data/lib/fog/compute/openstack/requests/confirm_resize_server.rb +20 -0
- data/lib/fog/compute/openstack/requests/create_aggregate.rb +42 -0
- data/lib/fog/compute/openstack/requests/create_flavor.rb +85 -0
- data/lib/fog/compute/openstack/requests/create_flavor_metadata.rb +37 -0
- data/lib/fog/compute/openstack/requests/create_image.rb +44 -0
- data/lib/fog/compute/openstack/requests/create_key_pair.rb +48 -0
- data/lib/fog/compute/openstack/requests/create_os_interface.rb +42 -0
- data/lib/fog/compute/openstack/requests/create_security_group.rb +51 -0
- data/lib/fog/compute/openstack/requests/create_security_group_rule.rb +57 -0
- data/lib/fog/compute/openstack/requests/create_server.rb +187 -0
- data/lib/fog/compute/openstack/requests/create_server_group.rb +31 -0
- data/lib/fog/compute/openstack/requests/create_snapshot.rb +51 -0
- data/lib/fog/compute/openstack/requests/create_volume.rb +58 -0
- data/lib/fog/compute/openstack/requests/delete_aggregate.rb +28 -0
- data/lib/fog/compute/openstack/requests/delete_flavor.rb +28 -0
- data/lib/fog/compute/openstack/requests/delete_flavor_metadata.rb +30 -0
- data/lib/fog/compute/openstack/requests/delete_image.rb +36 -0
- data/lib/fog/compute/openstack/requests/delete_key_pair.rb +31 -0
- data/lib/fog/compute/openstack/requests/delete_meta.rb +35 -0
- data/lib/fog/compute/openstack/requests/delete_metadata.rb +23 -0
- data/lib/fog/compute/openstack/requests/delete_os_interface.rb +24 -0
- data/lib/fog/compute/openstack/requests/delete_security_group.rb +31 -0
- data/lib/fog/compute/openstack/requests/delete_security_group_rule.rb +31 -0
- data/lib/fog/compute/openstack/requests/delete_server.rb +40 -0
- data/lib/fog/compute/openstack/requests/delete_server_group.rb +28 -0
- data/lib/fog/compute/openstack/requests/delete_service.rb +32 -0
- data/lib/fog/compute/openstack/requests/delete_snapshot.rb +28 -0
- data/lib/fog/compute/openstack/requests/delete_volume.rb +28 -0
- data/lib/fog/compute/openstack/requests/detach_volume.rb +29 -0
- data/lib/fog/compute/openstack/requests/disable_service.rb +37 -0
- data/lib/fog/compute/openstack/requests/disable_service_log_reason.rb +38 -0
- data/lib/fog/compute/openstack/requests/disassociate_address.rb +25 -0
- data/lib/fog/compute/openstack/requests/enable_service.rb +37 -0
- data/lib/fog/compute/openstack/requests/evacuate_server.rb +26 -0
- data/lib/fog/compute/openstack/requests/get_address.rb +38 -0
- data/lib/fog/compute/openstack/requests/get_aggregate.rb +25 -0
- data/lib/fog/compute/openstack/requests/get_console_output.rb +24 -0
- data/lib/fog/compute/openstack/requests/get_flavor_details.rb +39 -0
- data/lib/fog/compute/openstack/requests/get_flavor_metadata.rb +26 -0
- data/lib/fog/compute/openstack/requests/get_host_details.rb +60 -0
- data/lib/fog/compute/openstack/requests/get_hypervisor.rb +64 -0
- data/lib/fog/compute/openstack/requests/get_hypervisor_statistics.rb +39 -0
- data/lib/fog/compute/openstack/requests/get_image_details.rb +29 -0
- data/lib/fog/compute/openstack/requests/get_key_pair.rb +50 -0
- data/lib/fog/compute/openstack/requests/get_limits.rb +94 -0
- data/lib/fog/compute/openstack/requests/get_metadata.rb +24 -0
- data/lib/fog/compute/openstack/requests/get_os_interface.rb +24 -0
- data/lib/fog/compute/openstack/requests/get_quota.rb +26 -0
- data/lib/fog/compute/openstack/requests/get_quota_defaults.rb +26 -0
- data/lib/fog/compute/openstack/requests/get_security_group.rb +37 -0
- data/lib/fog/compute/openstack/requests/get_security_group_rule.rb +38 -0
- data/lib/fog/compute/openstack/requests/get_server_details.rb +29 -0
- data/lib/fog/compute/openstack/requests/get_server_group.rb +38 -0
- data/lib/fog/compute/openstack/requests/get_server_password.rb +29 -0
- data/lib/fog/compute/openstack/requests/get_server_volumes.rb +27 -0
- data/lib/fog/compute/openstack/requests/get_snapshot_details.rb +30 -0
- data/lib/fog/compute/openstack/requests/get_usage.rb +48 -0
- data/lib/fog/compute/openstack/requests/get_vnc_console.rb +49 -0
- data/lib/fog/compute/openstack/requests/get_volume_details.rb +32 -0
- data/lib/fog/compute/openstack/requests/list_address_pools.rb +28 -0
- data/lib/fog/compute/openstack/requests/list_addresses.rb +29 -0
- data/lib/fog/compute/openstack/requests/list_aggregates.rb +37 -0
- data/lib/fog/compute/openstack/requests/list_all_addresses.rb +62 -0
- data/lib/fog/compute/openstack/requests/list_availability_zones.rb +23 -0
- data/lib/fog/compute/openstack/requests/list_flavors.rb +35 -0
- data/lib/fog/compute/openstack/requests/list_flavors_detail.rb +35 -0
- data/lib/fog/compute/openstack/requests/list_hosts.rb +27 -0
- data/lib/fog/compute/openstack/requests/list_hypervisor_servers.rb +42 -0
- data/lib/fog/compute/openstack/requests/list_hypervisors.rb +27 -0
- data/lib/fog/compute/openstack/requests/list_hypervisors_detail.rb +71 -0
- data/lib/fog/compute/openstack/requests/list_images.rb +29 -0
- data/lib/fog/compute/openstack/requests/list_images_detail.rb +36 -0
- data/lib/fog/compute/openstack/requests/list_key_pairs.rb +39 -0
- data/lib/fog/compute/openstack/requests/list_metadata.rb +24 -0
- data/lib/fog/compute/openstack/requests/list_os_interfaces.rb +24 -0
- data/lib/fog/compute/openstack/requests/list_private_addresses.rb +29 -0
- data/lib/fog/compute/openstack/requests/list_public_addresses.rb +29 -0
- data/lib/fog/compute/openstack/requests/list_security_groups.rb +67 -0
- data/lib/fog/compute/openstack/requests/list_server_groups.rb +28 -0
- data/lib/fog/compute/openstack/requests/list_servers.rb +36 -0
- data/lib/fog/compute/openstack/requests/list_servers_detail.rb +43 -0
- data/lib/fog/compute/openstack/requests/list_services.rb +66 -0
- data/lib/fog/compute/openstack/requests/list_snapshots.rb +40 -0
- data/lib/fog/compute/openstack/requests/list_snapshots_detail.rb +26 -0
- data/lib/fog/compute/openstack/requests/list_tenants.rb +43 -0
- data/lib/fog/compute/openstack/requests/list_tenants_with_flavor_access.rb +26 -0
- data/lib/fog/compute/openstack/requests/list_usages.rb +38 -0
- data/lib/fog/compute/openstack/requests/list_volume_attachments.rb +31 -0
- data/lib/fog/compute/openstack/requests/list_volumes.rb +39 -0
- data/lib/fog/compute/openstack/requests/list_volumes_detail.rb +25 -0
- data/lib/fog/compute/openstack/requests/list_zones.rb +33 -0
- data/lib/fog/compute/openstack/requests/list_zones_detailed.rb +68 -0
- data/lib/fog/compute/openstack/requests/live_migrate_server.rb +26 -0
- data/lib/fog/compute/openstack/requests/migrate_server.rb +20 -0
- data/lib/fog/compute/openstack/requests/pause_server.rb +24 -0
- data/lib/fog/compute/openstack/requests/reboot_server.rb +20 -0
- data/lib/fog/compute/openstack/requests/rebuild_server.rb +34 -0
- data/lib/fog/compute/openstack/requests/release_address.rb +29 -0
- data/lib/fog/compute/openstack/requests/remote_consoles.rb +54 -0
- data/lib/fog/compute/openstack/requests/remove_aggregate_host.rb +30 -0
- data/lib/fog/compute/openstack/requests/remove_fixed_ip.rb +29 -0
- data/lib/fog/compute/openstack/requests/remove_flavor_access.rb +29 -0
- data/lib/fog/compute/openstack/requests/remove_security_group.rb +20 -0
- data/lib/fog/compute/openstack/requests/rescue_server.rb +24 -0
- data/lib/fog/compute/openstack/requests/reset_server_state.rb +20 -0
- data/lib/fog/compute/openstack/requests/resize_server.rb +20 -0
- data/lib/fog/compute/openstack/requests/resume_server.rb +24 -0
- data/lib/fog/compute/openstack/requests/revert_resize_server.rb +26 -0
- data/lib/fog/compute/openstack/requests/server_action.rb +16 -0
- data/lib/fog/compute/openstack/requests/server_actions.rb +38 -0
- data/lib/fog/compute/openstack/requests/server_diagnostics.rb +25 -0
- data/lib/fog/compute/openstack/requests/set_metadata.rb +37 -0
- data/lib/fog/compute/openstack/requests/set_tenant.rb +19 -0
- data/lib/fog/compute/openstack/requests/shelve_offload_server.rb +24 -0
- data/lib/fog/compute/openstack/requests/shelve_server.rb +24 -0
- data/lib/fog/compute/openstack/requests/start_server.rb +24 -0
- data/lib/fog/compute/openstack/requests/stop_server.rb +24 -0
- data/lib/fog/compute/openstack/requests/suspend_server.rb +24 -0
- data/lib/fog/compute/openstack/requests/unpause_server.rb +24 -0
- data/lib/fog/compute/openstack/requests/unshelve_server.rb +24 -0
- data/lib/fog/compute/openstack/requests/update_aggregate.rb +37 -0
- data/lib/fog/compute/openstack/requests/update_aggregate_metadata.rb +30 -0
- data/lib/fog/compute/openstack/requests/update_flavor_metadata.rb +33 -0
- data/lib/fog/compute/openstack/requests/update_meta.rb +38 -0
- data/lib/fog/compute/openstack/requests/update_metadata.rb +38 -0
- data/lib/fog/compute/openstack/requests/update_quota.rb +27 -0
- data/lib/fog/compute/openstack/requests/update_server.rb +32 -0
- data/lib/fog/container_infra/openstack.rb +163 -0
- data/lib/fog/container_infra/openstack/models/base.rb +19 -0
- data/lib/fog/container_infra/openstack/models/bay.rb +56 -0
- data/lib/fog/container_infra/openstack/models/bay_model.rb +62 -0
- data/lib/fog/container_infra/openstack/models/bay_models.rb +23 -0
- data/lib/fog/container_infra/openstack/models/bays.rb +23 -0
- data/lib/fog/container_infra/openstack/models/certificate.rb +20 -0
- data/lib/fog/container_infra/openstack/models/certificates.rb +25 -0
- data/lib/fog/container_infra/openstack/models/cluster.rb +56 -0
- data/lib/fog/container_infra/openstack/models/cluster_template.rb +61 -0
- data/lib/fog/container_infra/openstack/models/cluster_templates.rb +24 -0
- data/lib/fog/container_infra/openstack/models/clusters.rb +24 -0
- data/lib/fog/container_infra/openstack/requests/create_bay.rb +27 -0
- data/lib/fog/container_infra/openstack/requests/create_bay_model.rb +56 -0
- data/lib/fog/container_infra/openstack/requests/create_certificate.rb +29 -0
- data/lib/fog/container_infra/openstack/requests/create_cluster.rb +27 -0
- data/lib/fog/container_infra/openstack/requests/create_cluster_template.rb +56 -0
- data/lib/fog/container_infra/openstack/requests/delete_bay.rb +24 -0
- data/lib/fog/container_infra/openstack/requests/delete_bay_model.rb +24 -0
- data/lib/fog/container_infra/openstack/requests/delete_cluster.rb +24 -0
- data/lib/fog/container_infra/openstack/requests/delete_cluster_template.rb +24 -0
- data/lib/fog/container_infra/openstack/requests/get_bay.rb +51 -0
- data/lib/fog/container_infra/openstack/requests/get_bay_model.rb +55 -0
- data/lib/fog/container_infra/openstack/requests/get_certificate.rb +27 -0
- data/lib/fog/container_infra/openstack/requests/get_cluster.rb +41 -0
- data/lib/fog/container_infra/openstack/requests/get_cluster_template.rb +55 -0
- data/lib/fog/container_infra/openstack/requests/list_bay_models.rb +69 -0
- data/lib/fog/container_infra/openstack/requests/list_bays.rb +55 -0
- data/lib/fog/container_infra/openstack/requests/list_cluster_templates.rb +59 -0
- data/lib/fog/container_infra/openstack/requests/list_clusters.rb +37 -0
- data/lib/fog/container_infra/openstack/requests/update_bay.rb +27 -0
- data/lib/fog/container_infra/openstack/requests/update_bay_model.rb +56 -0
- data/lib/fog/container_infra/openstack/requests/update_cluster.rb +27 -0
- data/lib/fog/container_infra/openstack/requests/update_cluster_template.rb +56 -0
- data/lib/fog/dns/openstack.rb +21 -0
- data/lib/fog/dns/openstack/v1.rb +128 -0
- data/lib/fog/dns/openstack/v1/requests/get_quota.rb +26 -0
- data/lib/fog/dns/openstack/v1/requests/list_domains.rb +27 -0
- data/lib/fog/dns/openstack/v1/requests/update_quota.rb +31 -0
- data/lib/fog/dns/openstack/v2.rb +342 -0
- data/lib/fog/dns/openstack/v2/models/pool.rb +21 -0
- data/lib/fog/dns/openstack/v2/models/pools.rb +25 -0
- data/lib/fog/dns/openstack/v2/models/recordset.rb +55 -0
- data/lib/fog/dns/openstack/v2/models/recordsets.rb +30 -0
- data/lib/fog/dns/openstack/v2/models/zone.rb +50 -0
- data/lib/fog/dns/openstack/v2/models/zone_transfer_accept.rb +29 -0
- data/lib/fog/dns/openstack/v2/models/zone_transfer_accepts.rb +25 -0
- data/lib/fog/dns/openstack/v2/models/zone_transfer_request.rb +50 -0
- data/lib/fog/dns/openstack/v2/models/zone_transfer_requests.rb +30 -0
- data/lib/fog/dns/openstack/v2/models/zones.rb +30 -0
- data/lib/fog/dns/openstack/v2/requests/create_recordset.rb +54 -0
- data/lib/fog/dns/openstack/v2/requests/create_zone.rb +49 -0
- data/lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb +35 -0
- data/lib/fog/dns/openstack/v2/requests/create_zone_transfer_request.rb +34 -0
- data/lib/fog/dns/openstack/v2/requests/delete_recordset.rb +36 -0
- data/lib/fog/dns/openstack/v2/requests/delete_zone.rb +35 -0
- data/lib/fog/dns/openstack/v2/requests/delete_zone_transfer_request.rb +26 -0
- data/lib/fog/dns/openstack/v2/requests/get_pool.rb +30 -0
- data/lib/fog/dns/openstack/v2/requests/get_quota.rb +29 -0
- data/lib/fog/dns/openstack/v2/requests/get_recordset.rb +36 -0
- data/lib/fog/dns/openstack/v2/requests/get_zone.rb +30 -0
- data/lib/fog/dns/openstack/v2/requests/get_zone_transfer_accept.rb +28 -0
- data/lib/fog/dns/openstack/v2/requests/get_zone_transfer_request.rb +29 -0
- data/lib/fog/dns/openstack/v2/requests/list_pools.rb +30 -0
- data/lib/fog/dns/openstack/v2/requests/list_recordsets.rb +54 -0
- data/lib/fog/dns/openstack/v2/requests/list_zone_transfer_accepts.rb +27 -0
- data/lib/fog/dns/openstack/v2/requests/list_zone_transfer_requests.rb +27 -0
- data/lib/fog/dns/openstack/v2/requests/list_zones.rb +30 -0
- data/lib/fog/dns/openstack/v2/requests/update_quota.rb +34 -0
- data/lib/fog/dns/openstack/v2/requests/update_recordset.rb +40 -0
- data/lib/fog/dns/openstack/v2/requests/update_zone.rb +39 -0
- data/lib/fog/dns/openstack/v2/requests/update_zone_transfer_request.rb +36 -0
- data/lib/fog/event/openstack.rb +120 -0
- data/lib/fog/event/openstack/models/event.rb +16 -0
- data/lib/fog/event/openstack/models/events.rb +23 -0
- data/lib/fog/event/openstack/requests/get_event.rb +27 -0
- data/lib/fog/event/openstack/requests/list_events.rb +42 -0
- data/lib/fog/identity/openstack.rb +117 -0
- data/lib/fog/identity/openstack/v2.rb +181 -0
- data/lib/fog/identity/openstack/v2/models/ec2_credential.rb +39 -0
- data/lib/fog/identity/openstack/v2/models/ec2_credentials.rb +56 -0
- data/lib/fog/identity/openstack/v2/models/role.rb +53 -0
- data/lib/fog/identity/openstack/v2/models/roles.rb +22 -0
- data/lib/fog/identity/openstack/v2/models/tenant.rb +63 -0
- data/lib/fog/identity/openstack/v2/models/tenants.rb +32 -0
- data/lib/fog/identity/openstack/v2/models/user.rb +69 -0
- data/lib/fog/identity/openstack/v2/models/users.rb +45 -0
- data/lib/fog/identity/openstack/v2/requests/add_user_to_tenant.rb +36 -0
- data/lib/fog/identity/openstack/v2/requests/check_token.rb +22 -0
- data/lib/fog/identity/openstack/v2/requests/create_ec2_credential.rb +59 -0
- data/lib/fog/identity/openstack/v2/requests/create_role.rb +38 -0
- data/lib/fog/identity/openstack/v2/requests/create_tenant.rb +34 -0
- data/lib/fog/identity/openstack/v2/requests/create_user.rb +45 -0
- data/lib/fog/identity/openstack/v2/requests/create_user_role.rb +26 -0
- data/lib/fog/identity/openstack/v2/requests/delete_ec2_credential.rb +43 -0
- data/lib/fog/identity/openstack/v2/requests/delete_role.rb +30 -0
- data/lib/fog/identity/openstack/v2/requests/delete_tenant.rb +33 -0
- data/lib/fog/identity/openstack/v2/requests/delete_user.rb +31 -0
- data/lib/fog/identity/openstack/v2/requests/delete_user_role.rb +25 -0
- data/lib/fog/identity/openstack/v2/requests/get_ec2_credential.rb +50 -0
- data/lib/fog/identity/openstack/v2/requests/get_role.rb +30 -0
- data/lib/fog/identity/openstack/v2/requests/get_tenant.rb +33 -0
- data/lib/fog/identity/openstack/v2/requests/get_tenants_by_id.rb +20 -0
- data/lib/fog/identity/openstack/v2/requests/get_tenants_by_name.rb +20 -0
- data/lib/fog/identity/openstack/v2/requests/get_user_by_id.rb +34 -0
- data/lib/fog/identity/openstack/v2/requests/get_user_by_name.rb +29 -0
- data/lib/fog/identity/openstack/v2/requests/list_ec2_credentials.rb +61 -0
- data/lib/fog/identity/openstack/v2/requests/list_endpoints_for_token.rb +20 -0
- data/lib/fog/identity/openstack/v2/requests/list_roles.rb +34 -0
- data/lib/fog/identity/openstack/v2/requests/list_roles_for_user_on_tenant.rb +32 -0
- data/lib/fog/identity/openstack/v2/requests/list_tenants.rb +53 -0
- data/lib/fog/identity/openstack/v2/requests/list_user_global_roles.rb +20 -0
- data/lib/fog/identity/openstack/v2/requests/list_users.rb +47 -0
- data/lib/fog/identity/openstack/v2/requests/remove_user_from_tenant.rb +22 -0
- data/lib/fog/identity/openstack/v2/requests/set_tenant.rb +21 -0
- data/lib/fog/identity/openstack/v2/requests/update_tenant.rb +30 -0
- data/lib/fog/identity/openstack/v2/requests/update_user.rb +34 -0
- data/lib/fog/identity/openstack/v2/requests/validate_token.rb +22 -0
- data/lib/fog/identity/openstack/v3.rb +162 -0
- data/lib/fog/identity/openstack/v3/models/domain.rb +59 -0
- data/lib/fog/identity/openstack/v3/models/domains.rb +63 -0
- data/lib/fog/identity/openstack/v3/models/endpoint.rb +47 -0
- data/lib/fog/identity/openstack/v3/models/endpoints.rb +27 -0
- data/lib/fog/identity/openstack/v3/models/group.rb +94 -0
- data/lib/fog/identity/openstack/v3/models/groups.rb +32 -0
- data/lib/fog/identity/openstack/v3/models/os_credential.rb +74 -0
- data/lib/fog/identity/openstack/v3/models/os_credentials.rb +32 -0
- data/lib/fog/identity/openstack/v3/models/policies.rb +32 -0
- data/lib/fog/identity/openstack/v3/models/policy.rb +43 -0
- data/lib/fog/identity/openstack/v3/models/project.rb +116 -0
- data/lib/fog/identity/openstack/v3/models/projects.rb +75 -0
- data/lib/fog/identity/openstack/v3/models/role.rb +41 -0
- data/lib/fog/identity/openstack/v3/models/role_assignment.rb +21 -0
- data/lib/fog/identity/openstack/v3/models/role_assignments.rb +25 -0
- data/lib/fog/identity/openstack/v3/models/roles.rb +40 -0
- data/lib/fog/identity/openstack/v3/models/service.rb +48 -0
- data/lib/fog/identity/openstack/v3/models/services.rb +32 -0
- data/lib/fog/identity/openstack/v3/models/token.rb +24 -0
- data/lib/fog/identity/openstack/v3/models/tokens.rb +40 -0
- data/lib/fog/identity/openstack/v3/models/user.rb +82 -0
- data/lib/fog/identity/openstack/v3/models/users.rb +36 -0
- data/lib/fog/identity/openstack/v3/requests/add_user_to_group.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/auth_domains.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/auth_projects.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/check_domain_group_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/check_domain_user_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/check_project_group_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/check_project_user_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/create_domain.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/create_endpoint.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/create_group.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/create_os_credential.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/create_policy.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/create_project.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/create_role.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/create_service.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/create_user.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/delete_domain.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/delete_endpoint.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/delete_group.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/delete_os_credential.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/delete_policy.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/delete_project.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/delete_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/delete_service.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/delete_user.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/get_domain.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/get_endpoint.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/get_group.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/get_os_credential.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/get_policy.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/get_project.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/get_role.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/get_service.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/get_user.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/grant_domain_group_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/grant_domain_user_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/grant_project_group_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/grant_project_user_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/group_user_check.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/list_domain_group_roles.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/list_domain_user_roles.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/list_domains.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/list_endpoints.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/list_group_users.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/list_groups.rb +31 -0
- data/lib/fog/identity/openstack/v3/requests/list_os_credentials.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/list_policies.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/list_project_group_roles.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/list_project_user_roles.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/list_projects.rb +30 -0
- data/lib/fog/identity/openstack/v3/requests/list_role_assignments.rb +38 -0
- data/lib/fog/identity/openstack/v3/requests/list_roles.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/list_services.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/list_user_groups.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/list_user_projects.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/list_users.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/remove_user_from_group.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/revoke_domain_group_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/revoke_domain_user_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/revoke_project_group_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/revoke_project_user_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/token_authenticate.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/token_check.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/token_revoke.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/token_validate.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/update_domain.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/update_endpoint.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/update_group.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/update_os_credential.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/update_policy.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/update_project.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/update_role.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/update_service.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/update_user.rb +21 -0
- data/lib/fog/image/openstack.rb +23 -0
- data/lib/fog/image/openstack/v1.rb +133 -0
- data/lib/fog/image/openstack/v1/models/image.rb +78 -0
- data/lib/fog/image/openstack/v1/models/images.rb +106 -0
- data/lib/fog/image/openstack/v1/requests/add_member_to_image.rb +25 -0
- data/lib/fog/image/openstack/v1/requests/create_image.rb +78 -0
- data/lib/fog/image/openstack/v1/requests/delete_image.rb +25 -0
- data/lib/fog/image/openstack/v1/requests/get_image.rb +47 -0
- data/lib/fog/image/openstack/v1/requests/get_image_by_id.rb +44 -0
- data/lib/fog/image/openstack/v1/requests/get_image_members.rb +31 -0
- data/lib/fog/image/openstack/v1/requests/get_shared_images.rb +31 -0
- data/lib/fog/image/openstack/v1/requests/list_public_images.rb +36 -0
- data/lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb +37 -0
- data/lib/fog/image/openstack/v1/requests/remove_member_from_image.rb +25 -0
- data/lib/fog/image/openstack/v1/requests/set_tenant.rb +21 -0
- data/lib/fog/image/openstack/v1/requests/update_image.rb +66 -0
- data/lib/fog/image/openstack/v1/requests/update_image_members.rb +39 -0
- data/lib/fog/image/openstack/v2.rb +141 -0
- data/lib/fog/image/openstack/v2/models/image.rb +214 -0
- data/lib/fog/image/openstack/v2/models/images.rb +66 -0
- data/lib/fog/image/openstack/v2/requests/add_member_to_image.rb +26 -0
- data/lib/fog/image/openstack/v2/requests/add_tag_to_image.rb +25 -0
- data/lib/fog/image/openstack/v2/requests/create_image.rb +51 -0
- data/lib/fog/image/openstack/v2/requests/deactivate_image.rb +25 -0
- data/lib/fog/image/openstack/v2/requests/delete_image.rb +25 -0
- data/lib/fog/image/openstack/v2/requests/download_image.rb +29 -0
- data/lib/fog/image/openstack/v2/requests/get_image.rb +47 -0
- data/lib/fog/image/openstack/v2/requests/get_image_by_id.rb +35 -0
- data/lib/fog/image/openstack/v2/requests/get_image_members.rb +31 -0
- data/lib/fog/image/openstack/v2/requests/get_member_details.rb +33 -0
- data/lib/fog/image/openstack/v2/requests/get_shared_images.rb +31 -0
- data/lib/fog/image/openstack/v2/requests/list_images.rb +36 -0
- data/lib/fog/image/openstack/v2/requests/reactivate_image.rb +25 -0
- data/lib/fog/image/openstack/v2/requests/remove_member_from_image.rb +25 -0
- data/lib/fog/image/openstack/v2/requests/remove_tag_from_image.rb +25 -0
- data/lib/fog/image/openstack/v2/requests/set_tenant.rb +21 -0
- data/lib/fog/image/openstack/v2/requests/update_image.rb +49 -0
- data/lib/fog/image/openstack/v2/requests/update_image_member.rb +34 -0
- data/lib/fog/image/openstack/v2/requests/upload_image.rb +30 -0
- data/lib/fog/introspection/openstack.rb +103 -0
- data/lib/fog/introspection/openstack/models/rules.rb +29 -0
- data/lib/fog/introspection/openstack/models/rules_collection.rb +32 -0
- data/lib/fog/introspection/openstack/requests/abort_introspection.rb +25 -0
- data/lib/fog/introspection/openstack/requests/create_introspection.rb +35 -0
- data/lib/fog/introspection/openstack/requests/create_rules.rb +37 -0
- data/lib/fog/introspection/openstack/requests/delete_rules.rb +23 -0
- data/lib/fog/introspection/openstack/requests/delete_rules_all.rb +23 -0
- data/lib/fog/introspection/openstack/requests/get_introspection.rb +24 -0
- data/lib/fog/introspection/openstack/requests/get_introspection_details.rb +24 -0
- data/lib/fog/introspection/openstack/requests/get_rules.rb +24 -0
- data/lib/fog/introspection/openstack/requests/list_rules.rb +24 -0
- data/lib/fog/key_manager/openstack.rb +151 -0
- data/lib/fog/key_manager/openstack/models/acl.rb +23 -0
- data/lib/fog/key_manager/openstack/models/container.rb +44 -0
- data/lib/fog/key_manager/openstack/models/containers.rb +25 -0
- data/lib/fog/key_manager/openstack/models/secret.rb +53 -0
- data/lib/fog/key_manager/openstack/models/secrets.rb +25 -0
- data/lib/fog/key_manager/openstack/requests/create_container.rb +19 -0
- data/lib/fog/key_manager/openstack/requests/create_secret.rb +19 -0
- data/lib/fog/key_manager/openstack/requests/delete_container.rb +18 -0
- data/lib/fog/key_manager/openstack/requests/delete_container_acl.rb +24 -0
- data/lib/fog/key_manager/openstack/requests/delete_secret.rb +18 -0
- data/lib/fog/key_manager/openstack/requests/delete_secret_acl.rb +24 -0
- data/lib/fog/key_manager/openstack/requests/get_container.rb +18 -0
- data/lib/fog/key_manager/openstack/requests/get_container_acl.rb +31 -0
- data/lib/fog/key_manager/openstack/requests/get_secret.rb +18 -0
- data/lib/fog/key_manager/openstack/requests/get_secret_acl.rb +31 -0
- data/lib/fog/key_manager/openstack/requests/get_secret_metadata.rb +18 -0
- data/lib/fog/key_manager/openstack/requests/get_secret_payload.rb +21 -0
- data/lib/fog/key_manager/openstack/requests/list_containers.rb +19 -0
- data/lib/fog/key_manager/openstack/requests/list_secrets.rb +19 -0
- data/lib/fog/key_manager/openstack/requests/replace_container_acl.rb +27 -0
- data/lib/fog/key_manager/openstack/requests/replace_secret_acl.rb +27 -0
- data/lib/fog/key_manager/openstack/requests/update_container_acl.rb +26 -0
- data/lib/fog/key_manager/openstack/requests/update_secret_acl.rb +26 -0
- data/lib/fog/metering/openstack.rb +132 -0
- data/lib/fog/metering/openstack/models/event.rb +16 -0
- data/lib/fog/metering/openstack/models/events.rb +23 -0
- data/lib/fog/metering/openstack/models/meter.rb +0 -0
- data/lib/fog/metering/openstack/models/meters.rb +0 -0
- data/lib/fog/metering/openstack/models/resource.rb +15 -0
- data/lib/fog/metering/openstack/models/resources.rb +23 -0
- data/lib/fog/metering/openstack/requests/get_event.rb +27 -0
- data/lib/fog/metering/openstack/requests/get_resource.rb +29 -0
- data/lib/fog/metering/openstack/requests/get_samples.rb +52 -0
- data/lib/fog/metering/openstack/requests/get_statistics.rb +52 -0
- data/lib/fog/metering/openstack/requests/list_events.rb +42 -0
- data/lib/fog/metering/openstack/requests/list_meters.rb +46 -0
- data/lib/fog/metering/openstack/requests/list_resources.rb +29 -0
- data/lib/fog/metric/openstack.rb +126 -0
- data/lib/fog/metric/openstack/models/metric.rb +18 -0
- data/lib/fog/metric/openstack/models/metrics.rb +31 -0
- data/lib/fog/metric/openstack/models/resource.rb +16 -0
- data/lib/fog/metric/openstack/models/resources.rb +24 -0
- data/lib/fog/metric/openstack/requests/get_metric.rb +62 -0
- data/lib/fog/metric/openstack/requests/get_metric_measures.rb +38 -0
- data/lib/fog/metric/openstack/requests/get_resource.rb +37 -0
- data/lib/fog/metric/openstack/requests/get_resource_metric_measures.rb +46 -0
- data/lib/fog/metric/openstack/requests/list_metrics.rb +104 -0
- data/lib/fog/metric/openstack/requests/list_resources.rb +70 -0
- data/lib/fog/monitoring/openstack.rb +96 -0
- data/lib/fog/monitoring/openstack/models/alarm.rb +47 -0
- data/lib/fog/monitoring/openstack/models/alarm_count.rb +17 -0
- data/lib/fog/monitoring/openstack/models/alarm_counts.rb +16 -0
- data/lib/fog/monitoring/openstack/models/alarm_definition.rb +57 -0
- data/lib/fog/monitoring/openstack/models/alarm_definitions.rb +42 -0
- data/lib/fog/monitoring/openstack/models/alarm_state.rb +32 -0
- data/lib/fog/monitoring/openstack/models/alarm_states.rb +20 -0
- data/lib/fog/monitoring/openstack/models/alarms.rb +30 -0
- data/lib/fog/monitoring/openstack/models/dimension_value.rb +19 -0
- data/lib/fog/monitoring/openstack/models/dimension_values.rb +16 -0
- data/lib/fog/monitoring/openstack/models/measurement.rb +20 -0
- data/lib/fog/monitoring/openstack/models/measurements.rb +16 -0
- data/lib/fog/monitoring/openstack/models/metric.rb +27 -0
- data/lib/fog/monitoring/openstack/models/metrics.rb +36 -0
- data/lib/fog/monitoring/openstack/models/notification_method.rb +47 -0
- data/lib/fog/monitoring/openstack/models/notification_methods.rb +42 -0
- data/lib/fog/monitoring/openstack/models/statistic.rb +20 -0
- data/lib/fog/monitoring/openstack/models/statistics.rb +16 -0
- data/lib/fog/monitoring/openstack/requests/create_alarm_definition.rb +19 -0
- data/lib/fog/monitoring/openstack/requests/create_metric.rb +29 -0
- data/lib/fog/monitoring/openstack/requests/create_metric_array.rb +19 -0
- data/lib/fog/monitoring/openstack/requests/create_notification_method.rb +19 -0
- data/lib/fog/monitoring/openstack/requests/delete_alarm.rb +18 -0
- data/lib/fog/monitoring/openstack/requests/delete_alarm_definition.rb +18 -0
- data/lib/fog/monitoring/openstack/requests/delete_notification_method.rb +18 -0
- data/lib/fog/monitoring/openstack/requests/find_measurements.rb +22 -0
- data/lib/fog/monitoring/openstack/requests/get_alarm.rb +21 -0
- data/lib/fog/monitoring/openstack/requests/get_alarm_counts.rb +22 -0
- data/lib/fog/monitoring/openstack/requests/get_alarm_definition.rb +18 -0
- data/lib/fog/monitoring/openstack/requests/get_notification_method.rb +18 -0
- data/lib/fog/monitoring/openstack/requests/list_alarm_definitions.rb +22 -0
- data/lib/fog/monitoring/openstack/requests/list_alarm_state_history_for_all_alarms.rb +22 -0
- data/lib/fog/monitoring/openstack/requests/list_alarm_state_history_for_specific_alarm.rb +22 -0
- data/lib/fog/monitoring/openstack/requests/list_alarms.rb +22 -0
- data/lib/fog/monitoring/openstack/requests/list_dimension_values.rb +21 -0
- data/lib/fog/monitoring/openstack/requests/list_metric_names.rb +22 -0
- data/lib/fog/monitoring/openstack/requests/list_metrics.rb +22 -0
- data/lib/fog/monitoring/openstack/requests/list_notification_method_types.rb +21 -0
- data/lib/fog/monitoring/openstack/requests/list_notification_methods.rb +22 -0
- data/lib/fog/monitoring/openstack/requests/list_statistics.rb +22 -0
- data/lib/fog/monitoring/openstack/requests/patch_alarm.rb +19 -0
- data/lib/fog/monitoring/openstack/requests/patch_alarm_definition.rb +19 -0
- data/lib/fog/monitoring/openstack/requests/patch_notification_method.rb +19 -0
- data/lib/fog/monitoring/openstack/requests/put_notification_method.rb +19 -0
- data/lib/fog/monitoring/openstack/requests/update_alarm.rb +19 -0
- data/lib/fog/monitoring/openstack/requests/update_alarm_definition.rb +19 -0
- data/lib/fog/network/openstack.rb +479 -0
- data/lib/fog/network/openstack/models/extension.rb +15 -0
- data/lib/fog/network/openstack/models/extensions.rb +32 -0
- data/lib/fog/network/openstack/models/floating_ip.rb +64 -0
- data/lib/fog/network/openstack/models/floating_ips.rb +32 -0
- data/lib/fog/network/openstack/models/ike_policies.rb +32 -0
- data/lib/fog/network/openstack/models/ike_policy.rb +43 -0
- data/lib/fog/network/openstack/models/ipsec_policies.rb +32 -0
- data/lib/fog/network/openstack/models/ipsec_policy.rb +45 -0
- data/lib/fog/network/openstack/models/ipsec_site_connection.rb +51 -0
- data/lib/fog/network/openstack/models/ipsec_site_connections.rb +33 -0
- data/lib/fog/network/openstack/models/lb_health_monitor.rb +57 -0
- data/lib/fog/network/openstack/models/lb_health_monitors.rb +32 -0
- data/lib/fog/network/openstack/models/lb_member.rb +42 -0
- data/lib/fog/network/openstack/models/lb_members.rb +32 -0
- data/lib/fog/network/openstack/models/lb_pool.rb +67 -0
- data/lib/fog/network/openstack/models/lb_pools.rb +32 -0
- data/lib/fog/network/openstack/models/lb_vip.rb +48 -0
- data/lib/fog/network/openstack/models/lb_vips.rb +32 -0
- data/lib/fog/network/openstack/models/network.rb +43 -0
- data/lib/fog/network/openstack/models/network_ip_availabilities.rb +24 -0
- data/lib/fog/network/openstack/models/network_ip_availability.rb +17 -0
- data/lib/fog/network/openstack/models/networks.rb +32 -0
- data/lib/fog/network/openstack/models/port.rb +42 -0
- data/lib/fog/network/openstack/models/ports.rb +32 -0
- data/lib/fog/network/openstack/models/rbac_policies.rb +33 -0
- data/lib/fog/network/openstack/models/rbac_policy.rb +34 -0
- data/lib/fog/network/openstack/models/router.rb +61 -0
- data/lib/fog/network/openstack/models/routers.rb +32 -0
- data/lib/fog/network/openstack/models/security_group.rb +37 -0
- data/lib/fog/network/openstack/models/security_group_rule.rb +33 -0
- data/lib/fog/network/openstack/models/security_group_rules.rb +32 -0
- data/lib/fog/network/openstack/models/security_groups.rb +32 -0
- data/lib/fog/network/openstack/models/subnet.rb +44 -0
- data/lib/fog/network/openstack/models/subnet_pool.rb +47 -0
- data/lib/fog/network/openstack/models/subnet_pools.rb +33 -0
- data/lib/fog/network/openstack/models/subnets.rb +32 -0
- data/lib/fog/network/openstack/models/vpn_service.rb +42 -0
- data/lib/fog/network/openstack/models/vpn_services.rb +32 -0
- data/lib/fog/network/openstack/requests/add_router_interface.rb +52 -0
- data/lib/fog/network/openstack/requests/associate_floating_ip.rb +47 -0
- data/lib/fog/network/openstack/requests/associate_lb_health_monitor.rb +37 -0
- data/lib/fog/network/openstack/requests/create_floating_ip.rb +45 -0
- data/lib/fog/network/openstack/requests/create_ike_policy.rb +52 -0
- data/lib/fog/network/openstack/requests/create_ipsec_policy.rb +52 -0
- data/lib/fog/network/openstack/requests/create_ipsec_site_connection.rb +65 -0
- data/lib/fog/network/openstack/requests/create_lb_health_monitor.rb +54 -0
- data/lib/fog/network/openstack/requests/create_lb_member.rb +51 -0
- data/lib/fog/network/openstack/requests/create_lb_pool.rb +58 -0
- data/lib/fog/network/openstack/requests/create_lb_vip.rb +58 -0
- data/lib/fog/network/openstack/requests/create_lbaas_healthmonitor.rb +57 -0
- data/lib/fog/network/openstack/requests/create_lbaas_l7policy.rb +50 -0
- data/lib/fog/network/openstack/requests/create_lbaas_l7rule.rb +50 -0
- data/lib/fog/network/openstack/requests/create_lbaas_listener.rb +55 -0
- data/lib/fog/network/openstack/requests/create_lbaas_loadbalancer.rb +52 -0
- data/lib/fog/network/openstack/requests/create_lbaas_pool.rb +53 -0
- data/lib/fog/network/openstack/requests/create_lbaas_pool_member.rb +49 -0
- data/lib/fog/network/openstack/requests/create_network.rb +88 -0
- data/lib/fog/network/openstack/requests/create_port.rb +53 -0
- data/lib/fog/network/openstack/requests/create_rbac_policy.rb +42 -0
- data/lib/fog/network/openstack/requests/create_router.rb +76 -0
- data/lib/fog/network/openstack/requests/create_security_group.rb +92 -0
- data/lib/fog/network/openstack/requests/create_security_group_rule.rb +79 -0
- data/lib/fog/network/openstack/requests/create_subnet.rb +54 -0
- data/lib/fog/network/openstack/requests/create_subnet_pool.rb +56 -0
- data/lib/fog/network/openstack/requests/create_vpn_service.rb +51 -0
- data/lib/fog/network/openstack/requests/delete_floating_ip.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_ike_policy.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_ipsec_policy.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_ipsec_site_connection.rb +29 -0
- data/lib/fog/network/openstack/requests/delete_lb_health_monitor.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_lb_member.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_lb_pool.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_lb_vip.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_lbaas_healthmonitor.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_lbaas_l7policy.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_lbaas_l7rule.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_lbaas_listener.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_lbaas_loadbalancer.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_lbaas_pool.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_lbaas_pool_member.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_network.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_port.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_quota.rb +23 -0
- data/lib/fog/network/openstack/requests/delete_rbac_policy.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_router.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_security_group.rb +32 -0
- data/lib/fog/network/openstack/requests/delete_security_group_rule.rb +32 -0
- data/lib/fog/network/openstack/requests/delete_subnet.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_subnet_pool.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_vpn_service.rb +28 -0
- data/lib/fog/network/openstack/requests/disassociate_floating_ip.rb +47 -0
- data/lib/fog/network/openstack/requests/disassociate_lb_health_monitor.rb +29 -0
- data/lib/fog/network/openstack/requests/get_extension.rb +28 -0
- data/lib/fog/network/openstack/requests/get_floating_ip.rb +39 -0
- data/lib/fog/network/openstack/requests/get_ike_policy.rb +28 -0
- data/lib/fog/network/openstack/requests/get_ipsec_policy.rb +28 -0
- data/lib/fog/network/openstack/requests/get_ipsec_site_connection.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lb_health_monitor.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lb_member.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lb_pool.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lb_pool_stats.rb +33 -0
- data/lib/fog/network/openstack/requests/get_lb_vip.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lbaas_healthmonitor.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lbaas_l7policy.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lbaas_l7rule.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lbaas_listener.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lbaas_loadbalancer.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lbaas_pool.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lbaas_pool_member.rb +28 -0
- data/lib/fog/network/openstack/requests/get_network.rb +28 -0
- data/lib/fog/network/openstack/requests/get_network_ip_availability.rb +28 -0
- data/lib/fog/network/openstack/requests/get_port.rb +51 -0
- data/lib/fog/network/openstack/requests/get_quota.rb +26 -0
- data/lib/fog/network/openstack/requests/get_quotas.rb +26 -0
- data/lib/fog/network/openstack/requests/get_rbac_policy.rb +28 -0
- data/lib/fog/network/openstack/requests/get_router.rb +30 -0
- data/lib/fog/network/openstack/requests/get_security_group.rb +52 -0
- data/lib/fog/network/openstack/requests/get_security_group_rule.rb +47 -0
- data/lib/fog/network/openstack/requests/get_subnet.rb +47 -0
- data/lib/fog/network/openstack/requests/get_subnet_pool.rb +29 -0
- data/lib/fog/network/openstack/requests/get_vpn_service.rb +28 -0
- data/lib/fog/network/openstack/requests/list_extensions.rb +25 -0
- data/lib/fog/network/openstack/requests/list_floating_ips.rb +25 -0
- data/lib/fog/network/openstack/requests/list_ike_policies.rb +25 -0
- data/lib/fog/network/openstack/requests/list_ipsec_policies.rb +25 -0
- data/lib/fog/network/openstack/requests/list_ipsec_site_connections.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lb_health_monitors.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lb_members.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lb_pools.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lb_vips.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lbaas_healthmonitors.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lbaas_l7policies.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lbaas_l7rules.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lbaas_listeners.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lbaas_loadbalancers.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lbaas_pool_members.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lbaas_pools.rb +25 -0
- data/lib/fog/network/openstack/requests/list_network_ip_availabilities.rb +28 -0
- data/lib/fog/network/openstack/requests/list_networks.rb +25 -0
- data/lib/fog/network/openstack/requests/list_ports.rb +25 -0
- data/lib/fog/network/openstack/requests/list_rbac_policies.rb +25 -0
- data/lib/fog/network/openstack/requests/list_routers.rb +25 -0
- data/lib/fog/network/openstack/requests/list_security_group_rules.rb +48 -0
- data/lib/fog/network/openstack/requests/list_security_groups.rb +53 -0
- data/lib/fog/network/openstack/requests/list_subnet_pools.rb +25 -0
- data/lib/fog/network/openstack/requests/list_subnets.rb +25 -0
- data/lib/fog/network/openstack/requests/list_vpn_services.rb +25 -0
- data/lib/fog/network/openstack/requests/remove_router_interface.rb +34 -0
- data/lib/fog/network/openstack/requests/set_tenant.rb +20 -0
- data/lib/fog/network/openstack/requests/update_ike_policy.rb +48 -0
- data/lib/fog/network/openstack/requests/update_ipsec_policy.rb +51 -0
- data/lib/fog/network/openstack/requests/update_ipsec_site_connection.rb +63 -0
- data/lib/fog/network/openstack/requests/update_lb_health_monitor.rb +43 -0
- data/lib/fog/network/openstack/requests/update_lb_member.rb +39 -0
- data/lib/fog/network/openstack/requests/update_lb_pool.rb +40 -0
- data/lib/fog/network/openstack/requests/update_lb_vip.rb +42 -0
- data/lib/fog/network/openstack/requests/update_lbaas_healthmonitor.rb +43 -0
- data/lib/fog/network/openstack/requests/update_lbaas_l7policy.rb +43 -0
- data/lib/fog/network/openstack/requests/update_lbaas_l7rule.rb +42 -0
- data/lib/fog/network/openstack/requests/update_lbaas_listener.rb +44 -0
- data/lib/fog/network/openstack/requests/update_lbaas_loadbalancer.rb +41 -0
- data/lib/fog/network/openstack/requests/update_lbaas_pool.rb +40 -0
- data/lib/fog/network/openstack/requests/update_lbaas_pool_member.rb +39 -0
- data/lib/fog/network/openstack/requests/update_network.rb +58 -0
- data/lib/fog/network/openstack/requests/update_port.rb +44 -0
- data/lib/fog/network/openstack/requests/update_quota.rb +27 -0
- data/lib/fog/network/openstack/requests/update_rbac_policy.rb +41 -0
- data/lib/fog/network/openstack/requests/update_router.rb +71 -0
- data/lib/fog/network/openstack/requests/update_security_group.rb +41 -0
- data/lib/fog/network/openstack/requests/update_subnet.rb +43 -0
- data/lib/fog/network/openstack/requests/update_subnet_pool.rb +46 -0
- data/lib/fog/network/openstack/requests/update_vpn_service.rb +46 -0
- data/lib/fog/nfv/openstack.rb +133 -0
- data/lib/fog/nfv/openstack/models/vnf.rb +58 -0
- data/lib/fog/nfv/openstack/models/vnfd.rb +53 -0
- data/lib/fog/nfv/openstack/models/vnfds.rb +28 -0
- data/lib/fog/nfv/openstack/models/vnfs.rb +28 -0
- data/lib/fog/nfv/openstack/requests/create_vnf.rb +37 -0
- data/lib/fog/nfv/openstack/requests/create_vnfd.rb +35 -0
- data/lib/fog/nfv/openstack/requests/delete_vnf.rb +23 -0
- data/lib/fog/nfv/openstack/requests/delete_vnfd.rb +23 -0
- data/lib/fog/nfv/openstack/requests/get_vnf.rb +24 -0
- data/lib/fog/nfv/openstack/requests/get_vnfd.rb +24 -0
- data/lib/fog/nfv/openstack/requests/list_vnfds.rb +25 -0
- data/lib/fog/nfv/openstack/requests/list_vnfs.rb +25 -0
- data/lib/fog/nfv/openstack/requests/update_vnf.rb +35 -0
- data/lib/fog/openstack.rb +622 -0
- data/lib/fog/openstack/core.rb +218 -0
- data/lib/fog/openstack/errors.rb +42 -0
- data/lib/fog/openstack/models/collection.rb +48 -0
- data/lib/fog/openstack/models/meta_parent.rb +31 -0
- data/lib/fog/openstack/models/model.rb +44 -0
- data/lib/fog/openstack/version.rb +5 -0
- data/lib/fog/orchestration/openstack.rb +156 -0
- data/lib/fog/orchestration/openstack/models/event.rb +18 -0
- data/lib/fog/orchestration/openstack/models/events.rb +31 -0
- data/lib/fog/orchestration/openstack/models/resource.rb +30 -0
- data/lib/fog/orchestration/openstack/models/resource_schemas.rb +15 -0
- data/lib/fog/orchestration/openstack/models/resources.rb +35 -0
- data/lib/fog/orchestration/openstack/models/stack.rb +128 -0
- data/lib/fog/orchestration/openstack/models/stacks.rb +64 -0
- data/lib/fog/orchestration/openstack/models/template.rb +13 -0
- data/lib/fog/orchestration/openstack/models/templates.rb +45 -0
- data/lib/fog/orchestration/openstack/requests/abandon_stack.rb +15 -0
- data/lib/fog/orchestration/openstack/requests/build_info.rb +15 -0
- data/lib/fog/orchestration/openstack/requests/cancel_update.rb +26 -0
- data/lib/fog/orchestration/openstack/requests/create_stack.rb +99 -0
- data/lib/fog/orchestration/openstack/requests/delete_stack.rb +58 -0
- data/lib/fog/orchestration/openstack/requests/get_stack_template.rb +20 -0
- data/lib/fog/orchestration/openstack/requests/list_events.rb +46 -0
- data/lib/fog/orchestration/openstack/requests/list_resource_events.rb +28 -0
- data/lib/fog/orchestration/openstack/requests/list_resource_types.rb +27 -0
- data/lib/fog/orchestration/openstack/requests/list_resources.rb +46 -0
- data/lib/fog/orchestration/openstack/requests/list_stack_data.rb +27 -0
- data/lib/fog/orchestration/openstack/requests/list_stack_data_detailed.rb +49 -0
- data/lib/fog/orchestration/openstack/requests/list_stack_events.rb +27 -0
- data/lib/fog/orchestration/openstack/requests/patch_stack.rb +37 -0
- data/lib/fog/orchestration/openstack/requests/preview_stack.rb +16 -0
- data/lib/fog/orchestration/openstack/requests/show_event_details.rb +26 -0
- data/lib/fog/orchestration/openstack/requests/show_resource_data.rb +26 -0
- data/lib/fog/orchestration/openstack/requests/show_resource_metadata.rb +26 -0
- data/lib/fog/orchestration/openstack/requests/show_resource_schema.rb +15 -0
- data/lib/fog/orchestration/openstack/requests/show_resource_template.rb +20 -0
- data/lib/fog/orchestration/openstack/requests/show_stack_details.rb +26 -0
- data/lib/fog/orchestration/openstack/requests/update_stack.rb +88 -0
- data/lib/fog/orchestration/openstack/requests/validate_template.rb +16 -0
- data/lib/fog/orchestration/util/recursive_hot_file_loader.rb +220 -0
- data/lib/fog/planning/openstack.rb +149 -0
- data/lib/fog/planning/openstack/models/plan.rb +69 -0
- data/lib/fog/planning/openstack/models/plans.rb +31 -0
- data/lib/fog/planning/openstack/models/role.rb +23 -0
- data/lib/fog/planning/openstack/models/roles.rb +16 -0
- data/lib/fog/planning/openstack/requests/add_role_to_plan.rb +40 -0
- data/lib/fog/planning/openstack/requests/create_plan.rb +33 -0
- data/lib/fog/planning/openstack/requests/delete_plan.rb +23 -0
- data/lib/fog/planning/openstack/requests/get_plan.rb +58 -0
- data/lib/fog/planning/openstack/requests/get_plan_templates.rb +28 -0
- data/lib/fog/planning/openstack/requests/list_plans.rb +61 -0
- data/lib/fog/planning/openstack/requests/list_roles.rb +32 -0
- data/lib/fog/planning/openstack/requests/patch_plan.rb +51 -0
- data/lib/fog/planning/openstack/requests/remove_role_from_plan.rb +32 -0
- data/lib/fog/shared_file_system/openstack.rb +389 -0
- data/lib/fog/shared_file_system/openstack/models/availability_zone.rb +15 -0
- data/lib/fog/shared_file_system/openstack/models/availability_zones.rb +16 -0
- data/lib/fog/shared_file_system/openstack/models/network.rb +42 -0
- data/lib/fog/shared_file_system/openstack/models/networks.rb +28 -0
- data/lib/fog/shared_file_system/openstack/models/share.rb +95 -0
- data/lib/fog/shared_file_system/openstack/models/share_access_rule.rb +35 -0
- data/lib/fog/shared_file_system/openstack/models/share_access_rules.rb +30 -0
- data/lib/fog/shared_file_system/openstack/models/share_export_location.rb +16 -0
- data/lib/fog/shared_file_system/openstack/models/share_export_locations.rb +31 -0
- data/lib/fog/shared_file_system/openstack/models/shares.rb +28 -0
- data/lib/fog/shared_file_system/openstack/models/snapshot.rb +45 -0
- data/lib/fog/shared_file_system/openstack/models/snapshots.rb +28 -0
- data/lib/fog/shared_file_system/openstack/requests/add_security_service_to_share_network.rb +28 -0
- data/lib/fog/shared_file_system/openstack/requests/create_security_service.rb +47 -0
- data/lib/fog/shared_file_system/openstack/requests/create_share.rb +49 -0
- data/lib/fog/shared_file_system/openstack/requests/create_share_network.rb +41 -0
- data/lib/fog/shared_file_system/openstack/requests/create_snapshot.rb +46 -0
- data/lib/fog/shared_file_system/openstack/requests/delete_security_service.rb +24 -0
- data/lib/fog/shared_file_system/openstack/requests/delete_share.rb +29 -0
- data/lib/fog/shared_file_system/openstack/requests/delete_share_network.rb +28 -0
- data/lib/fog/shared_file_system/openstack/requests/delete_snapshot.rb +30 -0
- data/lib/fog/shared_file_system/openstack/requests/extend_share.rb +24 -0
- data/lib/fog/shared_file_system/openstack/requests/get_limits.rb +45 -0
- data/lib/fog/shared_file_system/openstack/requests/get_quota.rb +26 -0
- data/lib/fog/shared_file_system/openstack/requests/get_security_service.rb +26 -0
- data/lib/fog/shared_file_system/openstack/requests/get_share.rb +26 -0
- data/lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb +29 -0
- data/lib/fog/shared_file_system/openstack/requests/get_share_network.rb +26 -0
- data/lib/fog/shared_file_system/openstack/requests/get_snapshot.rb +26 -0
- data/lib/fog/shared_file_system/openstack/requests/grant_share_access.rb +34 -0
- data/lib/fog/shared_file_system/openstack/requests/list_availability_zones.rb +24 -0
- data/lib/fog/shared_file_system/openstack/requests/list_security_services.rb +25 -0
- data/lib/fog/shared_file_system/openstack/requests/list_security_services_detail.rb +25 -0
- data/lib/fog/shared_file_system/openstack/requests/list_share_access_rules.rb +29 -0
- data/lib/fog/shared_file_system/openstack/requests/list_share_export_locations.rb +27 -0
- data/lib/fog/shared_file_system/openstack/requests/list_share_networks.rb +25 -0
- data/lib/fog/shared_file_system/openstack/requests/list_share_networks_detail.rb +25 -0
- data/lib/fog/shared_file_system/openstack/requests/list_shares.rb +25 -0
- data/lib/fog/shared_file_system/openstack/requests/list_shares_detail.rb +25 -0
- data/lib/fog/shared_file_system/openstack/requests/list_snapshots.rb +25 -0
- data/lib/fog/shared_file_system/openstack/requests/list_snapshots_detail.rb +25 -0
- data/lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb +28 -0
- data/lib/fog/shared_file_system/openstack/requests/revoke_share_access.rb +24 -0
- data/lib/fog/shared_file_system/openstack/requests/share_action.rb +16 -0
- data/lib/fog/shared_file_system/openstack/requests/share_network_action.rb +16 -0
- data/lib/fog/shared_file_system/openstack/requests/shrink_share.rb +24 -0
- data/lib/fog/shared_file_system/openstack/requests/update_quota.rb +30 -0
- data/lib/fog/shared_file_system/openstack/requests/update_security_service.rb +31 -0
- data/lib/fog/shared_file_system/openstack/requests/update_share.rb +39 -0
- data/lib/fog/shared_file_system/openstack/requests/update_share_network.rb +31 -0
- data/lib/fog/shared_file_system/openstack/requests/update_snapshot.rb +31 -0
- data/lib/fog/storage/openstack.rb +177 -0
- data/lib/fog/storage/openstack/models/directories.rb +36 -0
- data/lib/fog/storage/openstack/models/directory.rb +50 -0
- data/lib/fog/storage/openstack/models/file.rb +195 -0
- data/lib/fog/storage/openstack/models/files.rb +95 -0
- data/lib/fog/storage/openstack/requests/copy_object.rb +23 -0
- data/lib/fog/storage/openstack/requests/delete_container.rb +20 -0
- data/lib/fog/storage/openstack/requests/delete_multiple_objects.rb +65 -0
- data/lib/fog/storage/openstack/requests/delete_object.rb +21 -0
- data/lib/fog/storage/openstack/requests/delete_static_large_object.rb +41 -0
- data/lib/fog/storage/openstack/requests/get_container.rb +42 -0
- data/lib/fog/storage/openstack/requests/get_containers.rb +31 -0
- data/lib/fog/storage/openstack/requests/get_object.rb +27 -0
- data/lib/fog/storage/openstack/requests/get_object_http_url.rb +21 -0
- data/lib/fog/storage/openstack/requests/get_object_https_url.rb +81 -0
- data/lib/fog/storage/openstack/requests/head_container.rb +26 -0
- data/lib/fog/storage/openstack/requests/head_containers.rb +23 -0
- data/lib/fog/storage/openstack/requests/head_object.rb +21 -0
- data/lib/fog/storage/openstack/requests/post_object.rb +26 -0
- data/lib/fog/storage/openstack/requests/post_set_meta_temp_url_key.rb +33 -0
- data/lib/fog/storage/openstack/requests/public_url.rb +34 -0
- data/lib/fog/storage/openstack/requests/put_container.rb +24 -0
- data/lib/fog/storage/openstack/requests/put_dynamic_obj_manifest.rb +41 -0
- data/lib/fog/storage/openstack/requests/put_object.rb +65 -0
- data/lib/fog/storage/openstack/requests/put_object_manifest.rb +14 -0
- data/lib/fog/storage/openstack/requests/put_static_obj_manifest.rb +55 -0
- data/lib/fog/volume/openstack.rb +33 -0
- data/lib/fog/volume/openstack/models/availability_zone.rb +10 -0
- data/lib/fog/volume/openstack/models/availability_zones.rb +14 -0
- data/lib/fog/volume/openstack/models/backup.rb +46 -0
- data/lib/fog/volume/openstack/models/backups.rb +26 -0
- data/lib/fog/volume/openstack/models/snapshot.rb +38 -0
- data/lib/fog/volume/openstack/models/snapshots.rb +26 -0
- data/lib/fog/volume/openstack/models/transfer.rb +28 -0
- data/lib/fog/volume/openstack/models/transfers.rb +34 -0
- data/lib/fog/volume/openstack/models/volume.rb +66 -0
- data/lib/fog/volume/openstack/models/volume_type.rb +35 -0
- data/lib/fog/volume/openstack/models/volume_types.rb +22 -0
- data/lib/fog/volume/openstack/models/volumes.rb +35 -0
- data/lib/fog/volume/openstack/requests/accept_transfer.rb +22 -0
- data/lib/fog/volume/openstack/requests/action.rb +16 -0
- data/lib/fog/volume/openstack/requests/create_backup.rb +49 -0
- data/lib/fog/volume/openstack/requests/create_snapshot.rb +18 -0
- data/lib/fog/volume/openstack/requests/create_transfer.rb +25 -0
- data/lib/fog/volume/openstack/requests/create_volume.rb +23 -0
- data/lib/fog/volume/openstack/requests/create_volume_type.rb +41 -0
- data/lib/fog/volume/openstack/requests/delete_backup.rb +23 -0
- data/lib/fog/volume/openstack/requests/delete_metadata.rb +15 -0
- data/lib/fog/volume/openstack/requests/delete_snapshot.rb +23 -0
- data/lib/fog/volume/openstack/requests/delete_snapshot_metadata.rb +15 -0
- data/lib/fog/volume/openstack/requests/delete_transfer.rb +15 -0
- data/lib/fog/volume/openstack/requests/delete_volume.rb +23 -0
- data/lib/fog/volume/openstack/requests/delete_volume_type.rb +23 -0
- data/lib/fog/volume/openstack/requests/extend_volume.rb +25 -0
- data/lib/fog/volume/openstack/requests/get_backup_details.rb +34 -0
- data/lib/fog/volume/openstack/requests/get_quota.rb +26 -0
- data/lib/fog/volume/openstack/requests/get_quota_defaults.rb +26 -0
- data/lib/fog/volume/openstack/requests/get_quota_usage.rb +43 -0
- data/lib/fog/volume/openstack/requests/get_snapshot_details.rb +15 -0
- data/lib/fog/volume/openstack/requests/get_transfer_details.rb +17 -0
- data/lib/fog/volume/openstack/requests/get_volume_details.rb +15 -0
- data/lib/fog/volume/openstack/requests/get_volume_type_details.rb +32 -0
- data/lib/fog/volume/openstack/requests/list_backups.rb +16 -0
- data/lib/fog/volume/openstack/requests/list_backups_detailed.rb +45 -0
- data/lib/fog/volume/openstack/requests/list_snapshots.rb +41 -0
- data/lib/fog/volume/openstack/requests/list_snapshots_detailed.rb +27 -0
- data/lib/fog/volume/openstack/requests/list_transfers.rb +18 -0
- data/lib/fog/volume/openstack/requests/list_transfers_detailed.rb +18 -0
- data/lib/fog/volume/openstack/requests/list_volume_types.rb +41 -0
- data/lib/fog/volume/openstack/requests/list_volumes.rb +30 -0
- data/lib/fog/volume/openstack/requests/list_volumes_detailed.rb +16 -0
- data/lib/fog/volume/openstack/requests/list_zones.rb +32 -0
- data/lib/fog/volume/openstack/requests/replace_metadata.rb +20 -0
- data/lib/fog/volume/openstack/requests/restore_backup.rb +17 -0
- data/lib/fog/volume/openstack/requests/set_tenant.rb +19 -0
- data/lib/fog/volume/openstack/requests/snapshot_action.rb +16 -0
- data/lib/fog/volume/openstack/requests/update_metadata.rb +20 -0
- data/lib/fog/volume/openstack/requests/update_quota.rb +27 -0
- data/lib/fog/volume/openstack/requests/update_snapshot.rb +37 -0
- data/lib/fog/volume/openstack/requests/update_snapshot_metadata.rb +20 -0
- data/lib/fog/volume/openstack/requests/update_volume.rb +25 -0
- data/lib/fog/volume/openstack/requests/update_volume_type.rb +41 -0
- data/lib/fog/volume/openstack/v1.rb +183 -0
- data/lib/fog/volume/openstack/v1/models/availability_zone.rb +15 -0
- data/lib/fog/volume/openstack/v1/models/availability_zones.rb +16 -0
- data/lib/fog/volume/openstack/v1/models/backup.rb +15 -0
- data/lib/fog/volume/openstack/v1/models/backups.rb +16 -0
- data/lib/fog/volume/openstack/v1/models/snapshot.rb +44 -0
- data/lib/fog/volume/openstack/v1/models/snapshots.rb +16 -0
- data/lib/fog/volume/openstack/v1/models/transfer.rb +18 -0
- data/lib/fog/volume/openstack/v1/models/transfers.rb +16 -0
- data/lib/fog/volume/openstack/v1/models/volume.rb +37 -0
- data/lib/fog/volume/openstack/v1/models/volume_type.rb +16 -0
- data/lib/fog/volume/openstack/v1/models/volume_types.rb +16 -0
- data/lib/fog/volume/openstack/v1/models/volumes.rb +16 -0
- data/lib/fog/volume/openstack/v1/requests/accept_transfer.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/action.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/create_backup.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/create_snapshot.rb +45 -0
- data/lib/fog/volume/openstack/v1/requests/create_transfer.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/create_volume.rb +49 -0
- data/lib/fog/volume/openstack/v1/requests/create_volume_type.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/delete_backup.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/delete_metadata.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/delete_snapshot.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/delete_snapshot_metadata.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/delete_transfer.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/delete_volume.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/delete_volume_type.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/extend_volume.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/get_backup_details.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/get_quota.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/get_quota_defaults.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/get_quota_usage.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/get_snapshot_details.rb +32 -0
- data/lib/fog/volume/openstack/v1/requests/get_transfer_details.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/get_volume_details.rb +35 -0
- data/lib/fog/volume/openstack/v1/requests/get_volume_type_details.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/list_backups.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/list_backups_detailed.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/list_snapshots.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/list_snapshots_detailed.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/list_transfers.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/list_transfers_detailed.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/list_volume_types.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/list_volumes.rb +46 -0
- data/lib/fog/volume/openstack/v1/requests/list_volumes_detailed.rb +46 -0
- data/lib/fog/volume/openstack/v1/requests/list_zones.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/real.rb +11 -0
- data/lib/fog/volume/openstack/v1/requests/real_mock.rb +14 -0
- data/lib/fog/volume/openstack/v1/requests/replace_metadata.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/restore_backup.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/set_tenant.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/update_metadata.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/update_quota.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/update_snapshot.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/update_snapshot_metadata.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/update_volume.rb +2 -0
- data/lib/fog/volume/openstack/v2.rb +185 -0
- data/lib/fog/volume/openstack/v2/models/availability_zone.rb +15 -0
- data/lib/fog/volume/openstack/v2/models/availability_zones.rb +16 -0
- data/lib/fog/volume/openstack/v2/models/backup.rb +15 -0
- data/lib/fog/volume/openstack/v2/models/backups.rb +16 -0
- data/lib/fog/volume/openstack/v2/models/snapshot.rb +44 -0
- data/lib/fog/volume/openstack/v2/models/snapshots.rb +16 -0
- data/lib/fog/volume/openstack/v2/models/transfer.rb +18 -0
- data/lib/fog/volume/openstack/v2/models/transfers.rb +16 -0
- data/lib/fog/volume/openstack/v2/models/volume.rb +37 -0
- data/lib/fog/volume/openstack/v2/models/volume_type.rb +16 -0
- data/lib/fog/volume/openstack/v2/models/volume_types.rb +16 -0
- data/lib/fog/volume/openstack/v2/models/volumes.rb +16 -0
- data/lib/fog/volume/openstack/v2/requests/accept_transfer.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/action.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/create_backup.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/create_snapshot.rb +45 -0
- data/lib/fog/volume/openstack/v2/requests/create_transfer.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/create_volume.rb +49 -0
- data/lib/fog/volume/openstack/v2/requests/create_volume_type.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/delete_backup.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/delete_metadata.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/delete_snapshot.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/delete_snapshot_metadata.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/delete_transfer.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/delete_volume.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/delete_volume_type.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/extend_volume.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/get_backup_details.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/get_quota.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/get_quota_defaults.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/get_quota_usage.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/get_snapshot_details.rb +32 -0
- data/lib/fog/volume/openstack/v2/requests/get_transfer_details.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/get_volume_details.rb +35 -0
- data/lib/fog/volume/openstack/v2/requests/get_volume_type_details.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/list_backups.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/list_backups_detailed.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/list_snapshots.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/list_snapshots_detailed.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/list_transfers.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/list_transfers_detailed.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/list_volume_types.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/list_volumes.rb +46 -0
- data/lib/fog/volume/openstack/v2/requests/list_volumes_detailed.rb +46 -0
- data/lib/fog/volume/openstack/v2/requests/list_zones.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/real.rb +11 -0
- data/lib/fog/volume/openstack/v2/requests/real_mock.rb +14 -0
- data/lib/fog/volume/openstack/v2/requests/replace_metadata.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/restore_backup.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/set_tenant.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/snapshot_action.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/update_metadata.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/update_quota.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/update_snapshot.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/update_snapshot_metadata.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/update_volume.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/update_volume_type.rb +2 -0
- data/lib/fog/workflow/openstack.rb +12 -0
- data/lib/fog/workflow/openstack/v2.rb +160 -0
- data/lib/fog/workflow/openstack/v2/requests/create_action.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/create_action_execution.rb +31 -0
- data/lib/fog/workflow/openstack/v2/requests/create_cron_trigger.rb +55 -0
- data/lib/fog/workflow/openstack/v2/requests/create_environment.rb +31 -0
- data/lib/fog/workflow/openstack/v2/requests/create_execution.rb +30 -0
- data/lib/fog/workflow/openstack/v2/requests/create_workbook.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/create_workflow.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/delete_action.rb +25 -0
- data/lib/fog/workflow/openstack/v2/requests/delete_action_execution.rb +25 -0
- data/lib/fog/workflow/openstack/v2/requests/delete_cron_trigger.rb +25 -0
- data/lib/fog/workflow/openstack/v2/requests/delete_environment.rb +25 -0
- data/lib/fog/workflow/openstack/v2/requests/delete_execution.rb +25 -0
- data/lib/fog/workflow/openstack/v2/requests/delete_workbook.rb +25 -0
- data/lib/fog/workflow/openstack/v2/requests/delete_workflow.rb +25 -0
- data/lib/fog/workflow/openstack/v2/requests/get_action.rb +27 -0
- data/lib/fog/workflow/openstack/v2/requests/get_action_execution.rb +26 -0
- data/lib/fog/workflow/openstack/v2/requests/get_cron_trigger.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/get_environment.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/get_execution.rb +26 -0
- data/lib/fog/workflow/openstack/v2/requests/get_task.rb +27 -0
- data/lib/fog/workflow/openstack/v2/requests/get_workbook.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/get_workflow.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/list_action_executions.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/list_actions.rb +30 -0
- data/lib/fog/workflow/openstack/v2/requests/list_cron_triggers.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/list_environments.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/list_executions.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/list_services.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/list_tasks.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/list_workbooks.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/list_workflows.rb +30 -0
- data/lib/fog/workflow/openstack/v2/requests/rerun_task.rb +33 -0
- data/lib/fog/workflow/openstack/v2/requests/update_action.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/update_action_execution.rb +33 -0
- data/lib/fog/workflow/openstack/v2/requests/update_environment.rb +31 -0
- data/lib/fog/workflow/openstack/v2/requests/update_execution.rb +33 -0
- data/lib/fog/workflow/openstack/v2/requests/update_workbook.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/update_workflow.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/validate_action.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/validate_workbook.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/validate_workflow.rb +28 -0
- data/playbooks/.gitkeep +0 -0
- data/playbooks/fog-openstack-unittest-spec/run.yaml +57 -0
- data/playbooks/fog-openstack-unittest-test/run.yaml +57 -0
- data/supported.md +56 -0
- metadata +1381 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7667308472e1ff7d40481adcfa2fd5ec503d60fe
|
4
|
+
data.tar.gz: 1a60c57e09e31f2b85dfa705f7bfbf87b68d4033
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fcbd5b08b996c265859285e368cdfbbca492ef1e8af3e97edc3bb623927652b99bd1e054a678ee45ae89afe46a4f787e9d4ce3e5de7baea2ced50450c8f8ef25
|
7
|
+
data.tar.gz: 00c1caedca50a6fa0a4d1cc0dfe67dd78fcdf406406fa1014a227752846578d1fcb4dc60bb8cc4ec89e5b85af89633c478b09c5b93b90bf039a5bff33d5c866b
|
data/.gitignore
ADDED
data/.hound.yml
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
#
|
2
|
+
# Overrides
|
3
|
+
#
|
4
|
+
AbcSize:
|
5
|
+
Severity: refactor
|
6
|
+
AlignHash:
|
7
|
+
EnforcedHashRocketStyle: table
|
8
|
+
EnforcedColonStyle: table
|
9
|
+
BlockNesting:
|
10
|
+
Severity: refactor
|
11
|
+
ClassLength:
|
12
|
+
Max: 150
|
13
|
+
Severity: refactor
|
14
|
+
ClassCheck:
|
15
|
+
EnforcedStyle: kind_of?
|
16
|
+
CollectionMethods:
|
17
|
+
PreferredMethods:
|
18
|
+
find: detect
|
19
|
+
find_all: select
|
20
|
+
map: collect
|
21
|
+
reduce: inject
|
22
|
+
CyclomaticComplexity:
|
23
|
+
Severity: refactor
|
24
|
+
FormatString:
|
25
|
+
EnforcedStyle: percent
|
26
|
+
HashSyntax:
|
27
|
+
EnforcedStyle: hash_rockets
|
28
|
+
LineLength:
|
29
|
+
Max: 120
|
30
|
+
Severity: refactor
|
31
|
+
MethodLength:
|
32
|
+
Max: 25
|
33
|
+
Severity: refactor
|
34
|
+
# Exclude test methods from BlockLength.
|
35
|
+
Metrics/BlockLength:
|
36
|
+
ExcludedMethods:
|
37
|
+
- after
|
38
|
+
- before
|
39
|
+
- context
|
40
|
+
- describe
|
41
|
+
- it
|
42
|
+
- model_tests
|
43
|
+
- namespace
|
44
|
+
- draw
|
45
|
+
ParameterLists:
|
46
|
+
Severity: refactor
|
47
|
+
PerceivedComplexity:
|
48
|
+
Severity: refactor
|
49
|
+
RedundantReturn:
|
50
|
+
AllowMultipleReturnValues: true
|
51
|
+
SignalException:
|
52
|
+
EnforcedStyle: only_raise
|
53
|
+
SingleLineMethods:
|
54
|
+
AllowIfMethodIsEmpty: false
|
55
|
+
SpaceInsideHashLiteralBraces:
|
56
|
+
EnforcedStyle: no_space
|
57
|
+
TrivialAccessors:
|
58
|
+
AllowPredicates: true
|
59
|
+
#
|
60
|
+
# Enabled/Disabled
|
61
|
+
#
|
62
|
+
ClassAndModuleChildren:
|
63
|
+
Enabled: false
|
64
|
+
DefEndAlignment:
|
65
|
+
AutoCorrect: true
|
66
|
+
Documentation:
|
67
|
+
Enabled: false
|
68
|
+
Encoding:
|
69
|
+
Enabled: false
|
70
|
+
EndAlignment:
|
71
|
+
AutoCorrect: true
|
72
|
+
ExtraSpacing:
|
73
|
+
AutoCorrect: false # https://github.com/bbatsov/rubocop/issues/2280
|
74
|
+
FindEach:
|
75
|
+
Enabled: false
|
76
|
+
GuardClause:
|
77
|
+
Enabled: false
|
78
|
+
IfUnlessModifier:
|
79
|
+
Enabled: false
|
80
|
+
NumericLiterals:
|
81
|
+
AutoCorrect: false
|
82
|
+
MinDigits: 7
|
83
|
+
ParallelAssignment:
|
84
|
+
Enabled: false
|
85
|
+
PerlBackrefs:
|
86
|
+
Enabled: false
|
87
|
+
ReadWriteAttribute:
|
88
|
+
AutoCorrect: false
|
89
|
+
RescueModifier:
|
90
|
+
AutoCorrect: false
|
91
|
+
SingleLineBlockParams:
|
92
|
+
Enabled: false
|
93
|
+
SpaceBeforeFirstArg:
|
94
|
+
Enabled: false
|
95
|
+
SpecialGlobalVars:
|
96
|
+
AutoCorrect: false
|
97
|
+
Style/FrozenStringLiteralComment:
|
98
|
+
Enabled: false
|
99
|
+
StringLiterals:
|
100
|
+
Enabled: false
|
101
|
+
StringLiteralsInInterpolation:
|
102
|
+
Enabled: false
|
103
|
+
TrailingCommaInArrayLiteral:
|
104
|
+
Enabled: false
|
105
|
+
TrailingCommaInHashLiteral:
|
106
|
+
Enabled: false
|
107
|
+
WhileUntilModifier:
|
108
|
+
Enabled: false
|
109
|
+
WordArray:
|
110
|
+
AutoCorrect: false
|
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
fog-openstack
|
data/.travis.yml
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
language: ruby
|
2
|
+
sudo: false
|
3
|
+
before_install:
|
4
|
+
- gem update bundler
|
5
|
+
script:
|
6
|
+
- bundle exec rake test TESTOPTS="--verbose"
|
7
|
+
- bundle exec rake spec
|
8
|
+
env:
|
9
|
+
- JRUBY_OPTS=--debug
|
10
|
+
matrix:
|
11
|
+
fast_finish: true
|
12
|
+
include:
|
13
|
+
- rvm: 2.2.10
|
14
|
+
gemfile: Gemfile
|
15
|
+
- rvm: 2.3.7
|
16
|
+
gemfile: Gemfile
|
17
|
+
- rvm: 2.4.4
|
18
|
+
gemfile: Gemfile
|
19
|
+
- rvm: 2.5.1
|
20
|
+
gemfile: Gemfile
|
21
|
+
- rvm: jruby-head
|
22
|
+
gemfile: Gemfile
|
23
|
+
allow_failures:
|
24
|
+
- rvm: jruby-head
|
25
|
+
notifications:
|
26
|
+
webhooks:
|
27
|
+
urls:
|
28
|
+
- https://webhooks.gitter.im/e/af95aadff4470a9732b9
|
29
|
+
on_success: change
|
30
|
+
on_failure: always
|
31
|
+
on_start: never
|
32
|
+
email: false
|
data/.zuul.yaml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
- project:
|
2
|
+
check:
|
3
|
+
jobs:
|
4
|
+
- fog-openstack-unittest-test
|
5
|
+
- fog-openstack-unittest-spec
|
6
|
+
|
7
|
+
- job:
|
8
|
+
name: fog-openstack-unittest-test
|
9
|
+
parent: init-test
|
10
|
+
description: |
|
11
|
+
fog-openstack unittest test tests
|
12
|
+
run: playbooks/fog-openstack-unittest-test/run.yaml
|
13
|
+
vars:
|
14
|
+
rvm:
|
15
|
+
2.2.10
|
16
|
+
2.3.7
|
17
|
+
2.4.4
|
18
|
+
2.5.1
|
19
|
+
jruby-head
|
20
|
+
nodeset: ubuntu-xenial
|
21
|
+
|
22
|
+
- job:
|
23
|
+
name: fog-openstack-unittest-spec
|
24
|
+
parent: init-test
|
25
|
+
description: |
|
26
|
+
fog-openstack unittest spec tests
|
27
|
+
run: playbooks/fog-openstack-unittest-spec/run.yaml
|
28
|
+
vars:
|
29
|
+
rvm:
|
30
|
+
2.2.10
|
31
|
+
2.3.7
|
32
|
+
2.4.4
|
33
|
+
2.5.1
|
34
|
+
jruby-head
|
35
|
+
nodeset: ubuntu-xenial
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# 1.10.1 2013/04/04
|
2
|
+
|
3
|
+
## Storage
|
4
|
+
|
5
|
+
* Added storage (Swift) example to set account quotas:
|
6
|
+
|
7
|
+
https://github.com/fog/fog/blob/master/lib/fog/openstack/examples/storage/set-account-quota.rb
|
8
|
+
|
9
|
+
* Added account impersonation to the storage service
|
10
|
+
|
11
|
+
Now it's possible to use an admin account with a reseller
|
12
|
+
role to impersonate other accounts and set account metadata
|
13
|
+
headers. See the account quotas example included in this release
|
14
|
+
|
15
|
+
## Network
|
16
|
+
|
17
|
+
* create_network request updated
|
18
|
+
|
19
|
+
Implements provider extensions when creating networks.
|
20
|
+
|
21
|
+
See http://docs.openstack.org/trunk/openstack-network/admin/content/provider_attributes.html
|
22
|
+
|
23
|
+
* Network Router support (Quantum)
|
24
|
+
|
25
|
+
Added router model/collection and related requests.
|
26
|
+
|
27
|
+
* New network service example
|
28
|
+
|
29
|
+
See https://github.com/fog/fog/blob/master/lib/fog/openstack/examples/network/network_subnets_routers.rb
|
30
|
+
|
31
|
+
* :openstack_endpoint_type parameter was added to the network service
|
32
|
+
|
33
|
+
## Image
|
34
|
+
|
35
|
+
* Added basic image service example (Glance)
|
36
|
+
|
37
|
+
Download CirrOS 0.3.0 image from launchpad (~6.5MB) to /tmp
|
38
|
+
and upload it to Glance.
|
39
|
+
|
40
|
+
See https://github.com/fog/fog/blob/master/lib/fog/openstack/examples/image/upload-test-image.rb
|
41
|
+
|
42
|
+
* Check for glance version (fog only supports v1)
|
43
|
+
|
44
|
+
## Compute
|
45
|
+
|
46
|
+
* create_server and the Server model where updated to allow booting a VM
|
47
|
+
with NICs (net_id, port_id, fixed_ip).
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at matt.darby@rackspace.com. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
## Getting Involved
|
2
|
+
|
3
|
+
New contributors are always welcome, when it doubt please ask questions. We strive to be an open and welcoming community. Please be nice to one another.
|
4
|
+
|
5
|
+
### Coding
|
6
|
+
|
7
|
+
* Pick a task:
|
8
|
+
* Offer feedback on open [pull requests](https://github.com/fog/fog-openstack/pulls).
|
9
|
+
* Review open [issues](https://github.com/fog/fog-openstack/issues) for things to help on.
|
10
|
+
* [Create an issue](https://github.com/fog/fog-openstack/issues/new) to start a discussion on additions or features.
|
11
|
+
* Fork the project, add your changes and tests to cover them in a topic branch.
|
12
|
+
* Commit your changes and rebase against `fog/fog-openstack` to ensure everything is up to date.
|
13
|
+
* [Submit a pull request](https://github.com/fog/fog-openstack/compare/).
|
14
|
+
|
15
|
+
### Non-Coding
|
16
|
+
|
17
|
+
* Offer feedback on open [issues](https://github.com/fog/fog-openstack/issues).
|
18
|
+
* Organize or volunteer at events.
|
data/Gemfile
ADDED
data/LICENSE.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2014-2015 [CONTRIBUTORS.md](https://github.com/fog/fog-rackspace/blob/master/CONTRIBUTORS.md)
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
+
subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,572 @@
|
|
1
|
+
# Fog::OpenStack
|
2
|
+
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/fog-openstack.svg)](http://badge.fury.io/rb/fog-openstack) [![Build Status](https://travis-ci.org/fog/fog-openstack.svg?branch=master)](https://travis-ci.org/fog/fog-openstack) [![Dependency Status](https://gemnasium.com/fog/fog-openstack.svg)](https://gemnasium.com/fog/fog-openstack) [![Coverage Status](https://coveralls.io/repos/github/fog/fog-openstack/badge.svg?branch=master)](https://coveralls.io/github/fog/fog-openstack?branch=master) [![Code Climate](https://codeclimate.com/github/fog/fog-openstack.svg)](https://codeclimate.com/github/fog/fog-openstack) [![Join the chat at https://gitter.im/fog/fog-openstack](https://badges.gitter.im/fog/fog-openstack.svg)](https://gitter.im/fog/fog-openstack?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
4
|
+
|
5
|
+
This is the plugin Gem to talk to [OpenStack](http://openstack.org) clouds via fog.
|
6
|
+
|
7
|
+
The main maintainers for the OpenStack sections are @dhague, @Ladas, @seanhandley, @mdarby and @jjasghar. Please send CC them on pull requests.
|
8
|
+
|
9
|
+
## Supported OpenStack APIs
|
10
|
+
|
11
|
+
See the list of [supported OpenStack projects](supported.md).
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
Add this line to your application's Gemfile:
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
gem 'fog-openstack'
|
19
|
+
```
|
20
|
+
|
21
|
+
And then execute:
|
22
|
+
|
23
|
+
$ bundle
|
24
|
+
|
25
|
+
Or install it yourself as:
|
26
|
+
|
27
|
+
$ gem install fog-openstack
|
28
|
+
|
29
|
+
## Usage
|
30
|
+
|
31
|
+
### Initial Setup
|
32
|
+
|
33
|
+
Require the gem:
|
34
|
+
|
35
|
+
```ruby
|
36
|
+
require "fog/openstack"
|
37
|
+
```
|
38
|
+
|
39
|
+
Checklist:
|
40
|
+
|
41
|
+
* Before you can do anything with an OpenStack cloud, you need to authenticate yourself with the identity service, "Keystone".
|
42
|
+
* All following examples assume that `@connection_params` is a hash of valid connection information for an OpenStack cloud.
|
43
|
+
* The `:openstack_username` and `:openstack_api_key` keys must map to a valid user/password combination in Keystone.
|
44
|
+
* If you don't know what domain your user belongs to, chances are it's the `default` domain. By default, all users are a member of the `default` domain unless otherwise specified.
|
45
|
+
|
46
|
+
Connection parameters:
|
47
|
+
|
48
|
+
```ruby
|
49
|
+
@connection_params = {
|
50
|
+
openstack_auth_url: "http://devstack.test:5000/v3/auth/tokens",
|
51
|
+
openstack_username: "admin",
|
52
|
+
openstack_api_key: "password",
|
53
|
+
openstack_project_name: "admin",
|
54
|
+
openstack_domain_id: "default"
|
55
|
+
}
|
56
|
+
```
|
57
|
+
|
58
|
+
If you're using Keystone V2, you don't need to supply domain details but ensure the `openstack_auth_url` parameter references the correct endpoint.
|
59
|
+
|
60
|
+
```ruby
|
61
|
+
@connection_params = {
|
62
|
+
openstack_auth_url: "http://devstack.test:5000/v2.0/tokens",
|
63
|
+
openstack_username: "admin",
|
64
|
+
openstack_api_key: "password",
|
65
|
+
openstack_project_name: "admin"
|
66
|
+
}
|
67
|
+
```
|
68
|
+
|
69
|
+
If you're not sure whether your OpenStack cloud uses Keystone V2 or V3 then you can find out by logging into the dashboard (Horizon) and navigating to "Access & Security" under the "Project" section. Select "API Access" and find the line for the Identity Service. If the endpoint has "v3" in it, you're on Keystone V3, if it has "v2" then (surprise) you're on Keystone V2.
|
70
|
+
|
71
|
+
If you need a version of OpenStack to test against, get youself a copy of [DevStack](http://docs.openstack.org/developer/devstack/).
|
72
|
+
|
73
|
+
### Networking Gotcha
|
74
|
+
|
75
|
+
Note that tenants (aka projects) in OpenStack usually require that you create a default gateway router in order to allow external access to your instances.
|
76
|
+
|
77
|
+
The exception is if you're using Nova (and not Neutron) for your instance networking. If you're using Neutron, you'll want to [set up your default gateway](https://github.com/fog/fog-openstack/blob/usage_doc/README.md#networking-neutron) before you try to give instances public addresses (aka floating IPs).
|
78
|
+
|
79
|
+
### Compute (Nova)
|
80
|
+
|
81
|
+
Initialise a connection to the compute service:
|
82
|
+
|
83
|
+
```ruby
|
84
|
+
compute = Fog::Compute::OpenStack.new(@connection_params)
|
85
|
+
```
|
86
|
+
|
87
|
+
Get a list of available images for use with booting new instances:
|
88
|
+
|
89
|
+
```ruby
|
90
|
+
p compute.images
|
91
|
+
# => <Fog::Compute::OpenStack::Images
|
92
|
+
# filters={},
|
93
|
+
# server=nil
|
94
|
+
# [
|
95
|
+
# <Fog::Compute::OpenStack::Image
|
96
|
+
# id="57a67f8a-7bae-4578-b684-b9b4dcd48d7f",
|
97
|
+
# ...
|
98
|
+
# >
|
99
|
+
# ]
|
100
|
+
# >
|
101
|
+
```
|
102
|
+
|
103
|
+
List available flavors so we can decide how powerful to make this instance:
|
104
|
+
|
105
|
+
```ruby
|
106
|
+
p compute.flavors
|
107
|
+
# => <Fog::Compute::OpenStack::Flavors
|
108
|
+
# [
|
109
|
+
# <Fog::Compute::OpenStack::Flavor
|
110
|
+
# id="1",
|
111
|
+
# name="m1.tiny",
|
112
|
+
# ram=512,
|
113
|
+
# disk=1,
|
114
|
+
# vcpus=1,
|
115
|
+
# ...
|
116
|
+
# >,
|
117
|
+
# <Fog::Compute::OpenStack::Flavor
|
118
|
+
# id="2",
|
119
|
+
# name="m1.small",
|
120
|
+
# ram=2048,
|
121
|
+
# disk=20,
|
122
|
+
# vcpus=1,
|
123
|
+
# ...
|
124
|
+
# >,
|
125
|
+
# ...
|
126
|
+
|
127
|
+
```
|
128
|
+
|
129
|
+
Now we know the `id` numbers of a valid image and a valid flavor, we can instantiate an instance:
|
130
|
+
|
131
|
+
```ruby
|
132
|
+
flavor = compute.flavors[0]
|
133
|
+
image = compute.images[0]
|
134
|
+
instance = compute.servers.create name: 'test',
|
135
|
+
image_ref: image.id,
|
136
|
+
flavor_ref: flavor.id
|
137
|
+
|
138
|
+
# Optionally, wait for the instance to provision before continuing
|
139
|
+
instance.wait_for { ready? }
|
140
|
+
# => {:duration=>17.359134}
|
141
|
+
|
142
|
+
p instance
|
143
|
+
# => <Fog::Compute::OpenStack::Server
|
144
|
+
# id="63633125-26b5-4fe1-a909-0f44d1ab3337",
|
145
|
+
# instance_name=nil,
|
146
|
+
# addresses={"public"=>[{"OS-EXT-IPS-MAC:mac_addr"=>"fa:16:3e:f4:75:ab", "version"=>4, "addr"=>"1.2.3.4", "OS-EXT-IPS:type"=>"fixed"}]},
|
147
|
+
# flavor={"id"=>"2"},
|
148
|
+
# host_id="f5ea01262720d02e886508bc4fa994782c516557d232c72aeb79638e",
|
149
|
+
# image={"id"=>"57a67f8a-7bae-4578-b684-b9b4dcd48d7f"},
|
150
|
+
# name="test",
|
151
|
+
# personality=nil,
|
152
|
+
# progress=0,
|
153
|
+
# accessIPv4="",
|
154
|
+
# accessIPv6="",
|
155
|
+
# availability_zone="nova",
|
156
|
+
# user_data_encoded=nil,
|
157
|
+
# state="ACTIVE",
|
158
|
+
# created=2016-03-07 08:07:36 UTC,
|
159
|
+
# updated=2016-03-07 08:07:52 UTC,
|
160
|
+
# tenant_id="06a9a90c60074cdeae5f7fdd0048d9ac"
|
161
|
+
# ...
|
162
|
+
# >
|
163
|
+
```
|
164
|
+
|
165
|
+
And destroy it when we're done:
|
166
|
+
|
167
|
+
```ruby
|
168
|
+
instance.destroy
|
169
|
+
# => true
|
170
|
+
```
|
171
|
+
|
172
|
+
You'll probably need your instances to be accessible via SSH. [Learn more about SSH keypairs](https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/).
|
173
|
+
|
174
|
+
Allow TCP traffic through port 22:
|
175
|
+
|
176
|
+
```ruby
|
177
|
+
security_group = compute.security_groups.create name: "Test SSH",
|
178
|
+
description: "Allow access to port 22"
|
179
|
+
# => <Fog::Compute::OpenStack::SecurityGroup
|
180
|
+
# id="e5d53d00-b3f9-471a-b90f-985694b966ed",
|
181
|
+
# name="Test SSH",
|
182
|
+
# description="Allow access to port 22",
|
183
|
+
# security_group_rules= <Fog::Compute::OpenStack::SecurityGroupRules
|
184
|
+
# [
|
185
|
+
|
186
|
+
# ]
|
187
|
+
# >,
|
188
|
+
# tenant_id="06a9a90c60074cdeae5f7fdd0048d9ac"
|
189
|
+
# >
|
190
|
+
|
191
|
+
compute.security_group_rules.create parent_group_id: security_group.id,
|
192
|
+
ip_protocol: "tcp",
|
193
|
+
from_port: 22,
|
194
|
+
to_port: 22
|
195
|
+
|
196
|
+
key_pair = compute.key_pairs.create name: "My Public Key",
|
197
|
+
public_key: "/full/path/to/ssh.pub"
|
198
|
+
# => <Fog::Compute::OpenStack::KeyPair
|
199
|
+
# name="My Public Key",
|
200
|
+
# ...
|
201
|
+
# user_id="20746f49211e4037a91269df6a3fbf7b",
|
202
|
+
# id=nil
|
203
|
+
# >
|
204
|
+
```
|
205
|
+
|
206
|
+
Now create a new server using the security group and keypair we created:
|
207
|
+
|
208
|
+
```ruby
|
209
|
+
instance = compute.servers.create name: "Test 2",
|
210
|
+
image_ref: image.id,
|
211
|
+
flavor_ref: flavor.id,
|
212
|
+
key_name: key_pair.name,
|
213
|
+
security_groups: security_group
|
214
|
+
# => <Fog::Compute::OpenStack::Server
|
215
|
+
# id="e18ebdfb-e5f5-4a45-929f-4cc9926dc2c7",
|
216
|
+
# name="Test 2",
|
217
|
+
# state="ACTIVE",
|
218
|
+
# tenant_id="06a9a90c60074cdeae5f7fdd0048d9ac",
|
219
|
+
# key_name="My Public Key",
|
220
|
+
# >
|
221
|
+
# (some data omitted for brevity)
|
222
|
+
```
|
223
|
+
|
224
|
+
Finally, assign a floating IP address to make this instance sit under a world-visible public IP address:
|
225
|
+
|
226
|
+
```ruby
|
227
|
+
pool_name = compute.addresses.get_address_pools[0]['name']
|
228
|
+
floating_ip_address = compute.addresses.create pool: pool_name
|
229
|
+
instance.associate_address floating_ip_address.ip
|
230
|
+
|
231
|
+
p floating_ip_address
|
232
|
+
# => <Fog::Compute::OpenStack::Address
|
233
|
+
# id="54064324-ce7d-448d-9753-94497b29dc91",
|
234
|
+
# ip="1.2.3.4",
|
235
|
+
# pool="external",
|
236
|
+
# fixed_ip="192.168.0.96",
|
237
|
+
# instance_id="e18ebdfb-e5f5-4a45-929f-4cc9926dc2c7"
|
238
|
+
# >
|
239
|
+
```
|
240
|
+
|
241
|
+
Now you can SSH into the instance:
|
242
|
+
|
243
|
+
```
|
244
|
+
$ ssh cirros@1.2.3.4
|
245
|
+
The authenticity of host '1.2.3.4 (1.2.3.4)' can't be established.
|
246
|
+
RSA key fingerprint is SHA256:cB0L/owUtcHsMhFhsuSZXxK4oRg/uqP/6IriUomQnQQ.
|
247
|
+
Are you sure you want to continue connecting (yes/no)? yes
|
248
|
+
Warning: Permanently added '1.2.3.4' (RSA) to the list of known hosts.
|
249
|
+
$ pwd
|
250
|
+
/home/cirros
|
251
|
+
```
|
252
|
+
|
253
|
+
### Volume (Cinder)
|
254
|
+
|
255
|
+
Create and attach a volume to a running instance:
|
256
|
+
|
257
|
+
```ruby
|
258
|
+
compute = Fog::Compute::OpenStack.new(@connection_params)
|
259
|
+
|
260
|
+
volume = compute.volumes.create name: "Test",
|
261
|
+
description: "Testing",
|
262
|
+
size: 1
|
263
|
+
# => <Fog::Compute::OpenStack::Volume
|
264
|
+
# id="4a212986-c6b6-4a93-8319-c6a98e347750",
|
265
|
+
# name="Test",
|
266
|
+
# description="Testing",
|
267
|
+
# size=1,
|
268
|
+
# availability_zone="Production",
|
269
|
+
# created_at="2016-03-07T13:40:43.914063",
|
270
|
+
# attachments=[{}]
|
271
|
+
# >
|
272
|
+
|
273
|
+
flavor = compute.flavors[3]
|
274
|
+
image = compute.images[0]
|
275
|
+
instance = compute.servers.create name: "test",
|
276
|
+
image_ref: image.id,
|
277
|
+
flavor_ref: flavor.id
|
278
|
+
instance.wait_for { ready? }
|
279
|
+
|
280
|
+
volume.reload
|
281
|
+
|
282
|
+
instance.attach_volume(volume.id, "/dev/vdb")
|
283
|
+
```
|
284
|
+
|
285
|
+
Detach volume and create a snapshot:
|
286
|
+
|
287
|
+
```ruby
|
288
|
+
instance.detach_volume(volume.id)
|
289
|
+
volume.reload
|
290
|
+
|
291
|
+
compute.snapshots.create volume_id: volume.id,
|
292
|
+
name: "test",
|
293
|
+
description: "test"
|
294
|
+
# => <Fog::Compute::OpenStack::Snapshot
|
295
|
+
# id="7a8c9192-25ee-4364-be91-070b7a6d9855",
|
296
|
+
# name="test",
|
297
|
+
# description="test",
|
298
|
+
# volume_id="4a212986-c6b6-4a93-8319-c6a98e347750",
|
299
|
+
# status="creating",
|
300
|
+
# size=1,
|
301
|
+
# created_at="2016-03-07T13:47:11.543814"
|
302
|
+
# >
|
303
|
+
```
|
304
|
+
|
305
|
+
Destroy a volume:
|
306
|
+
```ruby
|
307
|
+
volume.destroy
|
308
|
+
# => true
|
309
|
+
```
|
310
|
+
|
311
|
+
### Image (Glance)
|
312
|
+
|
313
|
+
Download Glance image:
|
314
|
+
|
315
|
+
```ruby
|
316
|
+
|
317
|
+
image = Fog::Image::OpenStack.new(@connection_params)
|
318
|
+
|
319
|
+
image_out = File.open("/tmp/cirros-image-download", 'wb')
|
320
|
+
|
321
|
+
streamer = lambda do |chunk, _, _|
|
322
|
+
image_out.write chunk
|
323
|
+
end
|
324
|
+
|
325
|
+
image.download_image(image.images.first.id, response_block: streamer)
|
326
|
+
|
327
|
+
```
|
328
|
+
|
329
|
+
Create Glance image from file or URL:
|
330
|
+
|
331
|
+
```ruby
|
332
|
+
|
333
|
+
cirros_location = "http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img"
|
334
|
+
image_out = File.open("/tmp/cirros-image-#{SecureRandom.hex}", 'wb')
|
335
|
+
|
336
|
+
streamer = lambda do |chunk, _, _|
|
337
|
+
image_out.write chunk
|
338
|
+
end
|
339
|
+
|
340
|
+
Excon.get cirros_location, response_block: streamer
|
341
|
+
image_out.close
|
342
|
+
|
343
|
+
image_handle = image.images.create name: "cirros",
|
344
|
+
disk_format: "qcow2",
|
345
|
+
container_format: "bare"
|
346
|
+
|
347
|
+
# => <Fog::Image::OpenStack::V2::Image
|
348
|
+
# id="67c4d02c-5601-4619-bd14-d2f7f96a046c",
|
349
|
+
# name="cirros",
|
350
|
+
# visibility="private",
|
351
|
+
# tags=[],
|
352
|
+
# self="/v2/images/67c4d02c-5601-4619-bd14-d2f7f96a046c",
|
353
|
+
# size=nil,
|
354
|
+
# disk_format="qcow2",
|
355
|
+
# container_format="bare",
|
356
|
+
# id="67c4d02c-5601-4619-bd14-d2f7f96a046c",
|
357
|
+
# checksum=nil,
|
358
|
+
# self="/v2/images/67c4d02c-5601-4619-bd14-d2f7f96a046c",
|
359
|
+
# file="/v2/images/67c4d02c-5601-4619-bd14-d2f7f96a046c/file",
|
360
|
+
# min_disk=0,
|
361
|
+
# created_at="2016-10-31T03:38:28Z",
|
362
|
+
# updated_at="2016-10-31T03:38:28Z",
|
363
|
+
# protected=false,
|
364
|
+
# status="queued",
|
365
|
+
# min_ram=0,
|
366
|
+
# owner="6b9ec8080b8443c5afe2267a39b9bf74",
|
367
|
+
# properties=nil,
|
368
|
+
# metadata=nil,
|
369
|
+
# location=nil,
|
370
|
+
# network_allocated=nil,
|
371
|
+
# base_image_ref=nil,
|
372
|
+
# image_type=nil,
|
373
|
+
# instance_uuid=nil,
|
374
|
+
# user_id=nil
|
375
|
+
# >
|
376
|
+
|
377
|
+
|
378
|
+
image_handle.upload_data File.binread(image_out.path)
|
379
|
+
|
380
|
+
```
|
381
|
+
|
382
|
+
Destroy image:
|
383
|
+
|
384
|
+
```ruby
|
385
|
+
cirros = image.images.get("4beedb46-e32f-4ef3-a87b-7f1234294dc1")
|
386
|
+
cirros.destroy
|
387
|
+
```
|
388
|
+
|
389
|
+
### Identity (Keystone)
|
390
|
+
|
391
|
+
List domains (Keystone V3 only):
|
392
|
+
|
393
|
+
```ruby
|
394
|
+
identity = Fog::Identity::OpenStack.new(@connection_params)
|
395
|
+
|
396
|
+
identity.domains
|
397
|
+
# => <Fog::Identity::OpenStack::V3::Domains
|
398
|
+
# [
|
399
|
+
# <Fog::Identity::OpenStack::V3::Domain
|
400
|
+
# id="default",
|
401
|
+
# description="",
|
402
|
+
# enabled=true,
|
403
|
+
# name="Default",
|
404
|
+
# >
|
405
|
+
# ]
|
406
|
+
# >
|
407
|
+
```
|
408
|
+
|
409
|
+
List projects (aka tenants):
|
410
|
+
|
411
|
+
```ruby
|
412
|
+
identity.projects
|
413
|
+
# => <Fog::Identity::OpenStack::V3::Projects
|
414
|
+
# [
|
415
|
+
# <Fog::Identity::OpenStack::V3::Project
|
416
|
+
# id="008e5537d3424295a03560abc923693c",
|
417
|
+
# domain_id="default",
|
418
|
+
# description="Project 1",
|
419
|
+
# enabled=true,
|
420
|
+
# name="project_1",
|
421
|
+
# >,
|
422
|
+
# ...
|
423
|
+
# ]
|
424
|
+
|
425
|
+
# On Keystone V2
|
426
|
+
identity.tenants
|
427
|
+
# => <Fog::Identity::OpenStack::V2::Tenants
|
428
|
+
# [ ... ]
|
429
|
+
```
|
430
|
+
|
431
|
+
List users:
|
432
|
+
|
433
|
+
```ruby
|
434
|
+
identity.users
|
435
|
+
# => <Fog::Identity::OpenStack::V3::Users
|
436
|
+
# [ ... ]
|
437
|
+
```
|
438
|
+
|
439
|
+
Create/destroy new user:
|
440
|
+
|
441
|
+
```ruby
|
442
|
+
project_id = identity.projects[0].id
|
443
|
+
|
444
|
+
user = identity.users.create name: "test",
|
445
|
+
project_id: project_id,
|
446
|
+
email: "test@test.com",
|
447
|
+
password: "test"
|
448
|
+
# => <Fog::Identity::OpenStack::V3::User
|
449
|
+
# id="474a59153ebd4e709938e5e9b614dc57",
|
450
|
+
# default_project_id=nil,
|
451
|
+
# description=nil,
|
452
|
+
# domain_id="default",
|
453
|
+
# email="test@test.com",
|
454
|
+
# enabled=true,
|
455
|
+
# name="test",
|
456
|
+
# password="test"
|
457
|
+
# >
|
458
|
+
|
459
|
+
user.destroy
|
460
|
+
# => true
|
461
|
+
```
|
462
|
+
|
463
|
+
Create/destroy new tenant:
|
464
|
+
|
465
|
+
```ruby
|
466
|
+
|
467
|
+
project = identity.projects.create name: "test",
|
468
|
+
description: "test"
|
469
|
+
# => <Fog::Identity::OpenStack::V3::Project
|
470
|
+
# id="423559128a7249f2973cdb7d5d581c4d",
|
471
|
+
# domain_id="default",
|
472
|
+
# description="test",
|
473
|
+
# enabled=true,
|
474
|
+
# name="test",
|
475
|
+
# parent_id=nil,
|
476
|
+
# subtree=nil,
|
477
|
+
# parents=nil
|
478
|
+
# >
|
479
|
+
|
480
|
+
project.destroy
|
481
|
+
# => true
|
482
|
+
```
|
483
|
+
|
484
|
+
Grant user role on tenant and revoke it:
|
485
|
+
|
486
|
+
```ruby
|
487
|
+
role = identity.roles.select{|role| role.name == "_member_"}[0]
|
488
|
+
# => <Fog::Identity::OpenStack::V3::Role
|
489
|
+
# id="9fe2ff9ee4384b1894a90878d3e92bab",
|
490
|
+
# name="_member_",
|
491
|
+
# >
|
492
|
+
|
493
|
+
project.grant_role_to_user(role.id, user.id)
|
494
|
+
|
495
|
+
project.revoke_role_from_user(role.id, user.id)
|
496
|
+
```
|
497
|
+
|
498
|
+
### Networking (Neutron)
|
499
|
+
|
500
|
+
Set up a project's public gateway (needed for external access):
|
501
|
+
|
502
|
+
```ruby
|
503
|
+
|
504
|
+
identity = Fog::Identity::OpenStack.new(@connection_params)
|
505
|
+
|
506
|
+
tenants = identity.projects.select do |project|
|
507
|
+
project.name == @connection_params[:openstack_project_name]
|
508
|
+
end
|
509
|
+
|
510
|
+
tenant_id = tenants[0].id
|
511
|
+
|
512
|
+
neutron = Fog::Network::OpenStack.new(@connection_params)
|
513
|
+
|
514
|
+
network = neutron.networks.create name: "default",
|
515
|
+
tenant_id: tenant_id
|
516
|
+
|
517
|
+
subnet = network.subnets.create name: "default",
|
518
|
+
cidr: "192.168.0.0/24",
|
519
|
+
network_id: network.id,
|
520
|
+
ip_version: 4,
|
521
|
+
dns_nameservers: ["8.8.8.8", "8.8.4.4"],
|
522
|
+
tenant_id: tenant_id
|
523
|
+
|
524
|
+
external_network = neutron.networks.select(&:router_external)[0]
|
525
|
+
|
526
|
+
router = neutron.routers.create name: 'default',
|
527
|
+
tenant_id: tenant_id,
|
528
|
+
external_gateway_info: external_network.id
|
529
|
+
|
530
|
+
neutron.add_router_interface router.id, subnet.id
|
531
|
+
|
532
|
+
```
|
533
|
+
|
534
|
+
### Further Reading
|
535
|
+
|
536
|
+
* See [the documentation directory](https://github.com/fog/fog-openstack/tree/master/lib/fog/openstack/docs) for more examples.
|
537
|
+
* Read the [OpenStack API documentation](http://developer.openstack.org/api-ref.html).
|
538
|
+
* Also, remember that reading the code itself is the best way to educate yourself on how best to interact with this gem.
|
539
|
+
|
540
|
+
## Development
|
541
|
+
|
542
|
+
```
|
543
|
+
$ git clone https://github.com/fog/fog-openstack.git # Clone repository
|
544
|
+
$ cd fog-openstack; bin/setup # Install dependencies from project directory
|
545
|
+
$ bundle exec rake test # Run tests
|
546
|
+
$ bundle exec rake spec # Run tests
|
547
|
+
$ bin/console # Run interactive prompt that allows you to experiment (optional)
|
548
|
+
$ bundle exec rake install # Install gem to your local machine (optional)
|
549
|
+
```
|
550
|
+
|
551
|
+
You can also use a docker image for development and running tests. Once you have
|
552
|
+
cloned the repository, it can be run with:
|
553
|
+
```
|
554
|
+
$ docker-compose up test
|
555
|
+
$ docker-compose up ruby # Start a container with the ruby environment
|
556
|
+
```
|
557
|
+
|
558
|
+
In order to release a new version, perform the following steps:
|
559
|
+
|
560
|
+
1. Update version number in `version.rb`.
|
561
|
+
2. Run `bundle exec rake release`, which will create a git tag for the version.
|
562
|
+
3. Push git commits and tags.
|
563
|
+
4. Push the `.gem` file to [rubygems.org](https://rubygems.org).
|
564
|
+
|
565
|
+
## Contributing
|
566
|
+
|
567
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/fog/fog-openstack. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
568
|
+
|
569
|
+
|
570
|
+
## License
|
571
|
+
|
572
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|