fog-openstack-fork 99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.github/workflows/linting.yml +20 -0
- data/.github/workflows/main.yml +37 -0
- data/.gitignore +14 -0
- data/.hound.yml +2 -0
- data/.rubocop.yml +114 -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 +573 -0
- data/Rakefile +41 -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 +69 -0
- data/examples/identity/basics_v3.rb +81 -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-fork.gemspec +38 -0
- data/lib/fog/openstack/auth/catalog/v2.rb +23 -0
- data/lib/fog/openstack/auth/catalog/v3.rb +23 -0
- data/lib/fog/openstack/auth/catalog.rb +64 -0
- data/lib/fog/openstack/auth/name.rb +65 -0
- data/lib/fog/openstack/auth/token/v2.rb +76 -0
- data/lib/fog/openstack/auth/token/v3.rb +135 -0
- data/lib/fog/openstack/auth/token.rb +73 -0
- data/lib/fog/openstack/baremetal/models/chassis.rb +49 -0
- data/lib/fog/openstack/baremetal/models/chassis_collection.rb +44 -0
- data/lib/fog/openstack/baremetal/models/driver.rb +24 -0
- data/lib/fog/openstack/baremetal/models/drivers.rb +21 -0
- data/lib/fog/openstack/baremetal/models/node.rb +96 -0
- data/lib/fog/openstack/baremetal/models/nodes.rb +44 -0
- data/lib/fog/openstack/baremetal/models/port.rb +50 -0
- data/lib/fog/openstack/baremetal/models/ports.rb +44 -0
- data/lib/fog/openstack/baremetal/requests/create_chassis.rb +44 -0
- data/lib/fog/openstack/baremetal/requests/create_node.rb +54 -0
- data/lib/fog/openstack/baremetal/requests/create_port.rb +46 -0
- data/lib/fog/openstack/baremetal/requests/delete_chassis.rb +25 -0
- data/lib/fog/openstack/baremetal/requests/delete_node.rb +25 -0
- data/lib/fog/openstack/baremetal/requests/delete_port.rb +25 -0
- data/lib/fog/openstack/baremetal/requests/get_chassis.rb +24 -0
- data/lib/fog/openstack/baremetal/requests/get_driver.rb +24 -0
- data/lib/fog/openstack/baremetal/requests/get_driver_properties.rb +40 -0
- data/lib/fog/openstack/baremetal/requests/get_node.rb +24 -0
- data/lib/fog/openstack/baremetal/requests/get_port.rb +24 -0
- data/lib/fog/openstack/baremetal/requests/list_chassis.rb +42 -0
- data/lib/fog/openstack/baremetal/requests/list_chassis_detailed.rb +25 -0
- data/lib/fog/openstack/baremetal/requests/list_drivers.rb +25 -0
- data/lib/fog/openstack/baremetal/requests/list_nodes.rb +34 -0
- data/lib/fog/openstack/baremetal/requests/list_nodes_detailed.rb +25 -0
- data/lib/fog/openstack/baremetal/requests/list_ports.rb +42 -0
- data/lib/fog/openstack/baremetal/requests/list_ports_detailed.rb +25 -0
- data/lib/fog/openstack/baremetal/requests/patch_chassis.rb +41 -0
- data/lib/fog/openstack/baremetal/requests/patch_node.rb +41 -0
- data/lib/fog/openstack/baremetal/requests/patch_port.rb +41 -0
- data/lib/fog/openstack/baremetal/requests/set_node_maintenance.rb +30 -0
- data/lib/fog/openstack/baremetal/requests/set_node_power_state.rb +35 -0
- data/lib/fog/openstack/baremetal/requests/set_node_provision_state.rb +38 -0
- data/lib/fog/openstack/baremetal/requests/unset_node_maintenance.rb +30 -0
- data/lib/fog/openstack/baremetal.rb +260 -0
- data/lib/fog/openstack/compute/models/address.rb +67 -0
- data/lib/fog/openstack/compute/models/addresses.rb +28 -0
- data/lib/fog/openstack/compute/models/aggregate.rb +59 -0
- data/lib/fog/openstack/compute/models/aggregates.rb +26 -0
- data/lib/fog/openstack/compute/models/availability_zone.rb +19 -0
- data/lib/fog/openstack/compute/models/availability_zones.rb +22 -0
- data/lib/fog/openstack/compute/models/flavor.rb +64 -0
- data/lib/fog/openstack/compute/models/flavors.rb +29 -0
- data/lib/fog/openstack/compute/models/host.rb +28 -0
- data/lib/fog/openstack/compute/models/hosts.rb +26 -0
- data/lib/fog/openstack/compute/models/image.rb +47 -0
- data/lib/fog/openstack/compute/models/images.rb +38 -0
- data/lib/fog/openstack/compute/models/key_pair.rb +56 -0
- data/lib/fog/openstack/compute/models/key_pairs.rb +29 -0
- data/lib/fog/openstack/compute/models/metadata.rb +65 -0
- data/lib/fog/openstack/compute/models/metadatum.rb +27 -0
- data/lib/fog/openstack/compute/models/network.rb +13 -0
- data/lib/fog/openstack/compute/models/networks.rb +30 -0
- data/lib/fog/openstack/compute/models/os_interface.rb +15 -0
- data/lib/fog/openstack/compute/models/os_interfaces.rb +28 -0
- data/lib/fog/openstack/compute/models/security_group.rb +57 -0
- data/lib/fog/openstack/compute/models/security_group_rule.rb +32 -0
- data/lib/fog/openstack/compute/models/security_group_rules.rb +21 -0
- data/lib/fog/openstack/compute/models/security_groups.rb +24 -0
- data/lib/fog/openstack/compute/models/server.rb +410 -0
- data/lib/fog/openstack/compute/models/server_group.rb +22 -0
- data/lib/fog/openstack/compute/models/server_groups.rb +28 -0
- data/lib/fog/openstack/compute/models/servers.rb +59 -0
- data/lib/fog/openstack/compute/models/service.rb +42 -0
- data/lib/fog/openstack/compute/models/services.rb +35 -0
- data/lib/fog/openstack/compute/models/snapshot.rb +32 -0
- data/lib/fog/openstack/compute/models/snapshots.rb +37 -0
- data/lib/fog/openstack/compute/models/tenant.rb +24 -0
- data/lib/fog/openstack/compute/models/tenants.rb +24 -0
- data/lib/fog/openstack/compute/models/volume.rb +52 -0
- data/lib/fog/openstack/compute/models/volume_attachment.rb +15 -0
- data/lib/fog/openstack/compute/models/volume_attachments.rb +20 -0
- data/lib/fog/openstack/compute/models/volumes.rb +37 -0
- data/lib/fog/openstack/compute/requests/add_aggregate_host.rb +30 -0
- data/lib/fog/openstack/compute/requests/add_fixed_ip.rb +29 -0
- data/lib/fog/openstack/compute/requests/add_flavor_access.rb +29 -0
- data/lib/fog/openstack/compute/requests/add_security_group.rb +20 -0
- data/lib/fog/openstack/compute/requests/allocate_address.rb +39 -0
- data/lib/fog/openstack/compute/requests/associate_address.rb +30 -0
- data/lib/fog/openstack/compute/requests/attach_volume.rb +39 -0
- data/lib/fog/openstack/compute/requests/boot_from_snapshot.rb +41 -0
- data/lib/fog/openstack/compute/requests/change_server_password.rb +20 -0
- data/lib/fog/openstack/compute/requests/confirm_resize_server.rb +20 -0
- data/lib/fog/openstack/compute/requests/create_aggregate.rb +42 -0
- data/lib/fog/openstack/compute/requests/create_flavor.rb +75 -0
- data/lib/fog/openstack/compute/requests/create_flavor_metadata.rb +37 -0
- data/lib/fog/openstack/compute/requests/create_image.rb +44 -0
- data/lib/fog/openstack/compute/requests/create_key_pair.rb +48 -0
- data/lib/fog/openstack/compute/requests/create_os_interface.rb +42 -0
- data/lib/fog/openstack/compute/requests/create_security_group.rb +51 -0
- data/lib/fog/openstack/compute/requests/create_security_group_rule.rb +57 -0
- data/lib/fog/openstack/compute/requests/create_server.rb +187 -0
- data/lib/fog/openstack/compute/requests/create_server_group.rb +31 -0
- data/lib/fog/openstack/compute/requests/create_snapshot.rb +51 -0
- data/lib/fog/openstack/compute/requests/create_volume.rb +58 -0
- data/lib/fog/openstack/compute/requests/delete_aggregate.rb +28 -0
- data/lib/fog/openstack/compute/requests/delete_flavor.rb +28 -0
- data/lib/fog/openstack/compute/requests/delete_flavor_metadata.rb +30 -0
- data/lib/fog/openstack/compute/requests/delete_image.rb +36 -0
- data/lib/fog/openstack/compute/requests/delete_key_pair.rb +31 -0
- data/lib/fog/openstack/compute/requests/delete_meta.rb +35 -0
- data/lib/fog/openstack/compute/requests/delete_metadata.rb +23 -0
- data/lib/fog/openstack/compute/requests/delete_os_interface.rb +24 -0
- data/lib/fog/openstack/compute/requests/delete_security_group.rb +31 -0
- data/lib/fog/openstack/compute/requests/delete_security_group_rule.rb +31 -0
- data/lib/fog/openstack/compute/requests/delete_server.rb +40 -0
- data/lib/fog/openstack/compute/requests/delete_server_group.rb +28 -0
- data/lib/fog/openstack/compute/requests/delete_service.rb +32 -0
- data/lib/fog/openstack/compute/requests/delete_snapshot.rb +28 -0
- data/lib/fog/openstack/compute/requests/delete_volume.rb +28 -0
- data/lib/fog/openstack/compute/requests/detach_volume.rb +29 -0
- data/lib/fog/openstack/compute/requests/disable_service.rb +37 -0
- data/lib/fog/openstack/compute/requests/disable_service_log_reason.rb +38 -0
- data/lib/fog/openstack/compute/requests/disassociate_address.rb +25 -0
- data/lib/fog/openstack/compute/requests/enable_service.rb +37 -0
- data/lib/fog/openstack/compute/requests/evacuate_server.rb +30 -0
- data/lib/fog/openstack/compute/requests/get_address.rb +38 -0
- data/lib/fog/openstack/compute/requests/get_aggregate.rb +25 -0
- data/lib/fog/openstack/compute/requests/get_console_output.rb +24 -0
- data/lib/fog/openstack/compute/requests/get_flavor_details.rb +39 -0
- data/lib/fog/openstack/compute/requests/get_flavor_metadata.rb +26 -0
- data/lib/fog/openstack/compute/requests/get_host_details.rb +60 -0
- data/lib/fog/openstack/compute/requests/get_hypervisor.rb +64 -0
- data/lib/fog/openstack/compute/requests/get_hypervisor_statistics.rb +39 -0
- data/lib/fog/openstack/compute/requests/get_image_details.rb +29 -0
- data/lib/fog/openstack/compute/requests/get_key_pair.rb +50 -0
- data/lib/fog/openstack/compute/requests/get_limits.rb +94 -0
- data/lib/fog/openstack/compute/requests/get_metadata.rb +24 -0
- data/lib/fog/openstack/compute/requests/get_os_interface.rb +24 -0
- data/lib/fog/openstack/compute/requests/get_quota.rb +26 -0
- data/lib/fog/openstack/compute/requests/get_quota_defaults.rb +26 -0
- data/lib/fog/openstack/compute/requests/get_security_group.rb +37 -0
- data/lib/fog/openstack/compute/requests/get_security_group_rule.rb +38 -0
- data/lib/fog/openstack/compute/requests/get_server_details.rb +29 -0
- data/lib/fog/openstack/compute/requests/get_server_group.rb +38 -0
- data/lib/fog/openstack/compute/requests/get_server_password.rb +29 -0
- data/lib/fog/openstack/compute/requests/get_server_volumes.rb +27 -0
- data/lib/fog/openstack/compute/requests/get_snapshot_details.rb +30 -0
- data/lib/fog/openstack/compute/requests/get_usage.rb +48 -0
- data/lib/fog/openstack/compute/requests/get_vnc_console.rb +49 -0
- data/lib/fog/openstack/compute/requests/get_volume_details.rb +32 -0
- data/lib/fog/openstack/compute/requests/list_address_pools.rb +28 -0
- data/lib/fog/openstack/compute/requests/list_addresses.rb +29 -0
- data/lib/fog/openstack/compute/requests/list_aggregates.rb +37 -0
- data/lib/fog/openstack/compute/requests/list_all_addresses.rb +62 -0
- data/lib/fog/openstack/compute/requests/list_availability_zones.rb +23 -0
- data/lib/fog/openstack/compute/requests/list_flavors.rb +35 -0
- data/lib/fog/openstack/compute/requests/list_flavors_detail.rb +35 -0
- data/lib/fog/openstack/compute/requests/list_hosts.rb +27 -0
- data/lib/fog/openstack/compute/requests/list_hypervisor_servers.rb +42 -0
- data/lib/fog/openstack/compute/requests/list_hypervisors.rb +27 -0
- data/lib/fog/openstack/compute/requests/list_hypervisors_detail.rb +71 -0
- data/lib/fog/openstack/compute/requests/list_images.rb +29 -0
- data/lib/fog/openstack/compute/requests/list_images_detail.rb +36 -0
- data/lib/fog/openstack/compute/requests/list_key_pairs.rb +39 -0
- data/lib/fog/openstack/compute/requests/list_metadata.rb +24 -0
- data/lib/fog/openstack/compute/requests/list_os_interfaces.rb +24 -0
- data/lib/fog/openstack/compute/requests/list_private_addresses.rb +29 -0
- data/lib/fog/openstack/compute/requests/list_public_addresses.rb +29 -0
- data/lib/fog/openstack/compute/requests/list_security_groups.rb +67 -0
- data/lib/fog/openstack/compute/requests/list_server_groups.rb +28 -0
- data/lib/fog/openstack/compute/requests/list_servers.rb +36 -0
- data/lib/fog/openstack/compute/requests/list_servers_detail.rb +43 -0
- data/lib/fog/openstack/compute/requests/list_services.rb +66 -0
- data/lib/fog/openstack/compute/requests/list_snapshots.rb +40 -0
- data/lib/fog/openstack/compute/requests/list_snapshots_detail.rb +26 -0
- data/lib/fog/openstack/compute/requests/list_tenants_with_flavor_access.rb +26 -0
- data/lib/fog/openstack/compute/requests/list_usages.rb +38 -0
- data/lib/fog/openstack/compute/requests/list_volume_attachments.rb +31 -0
- data/lib/fog/openstack/compute/requests/list_volumes.rb +39 -0
- data/lib/fog/openstack/compute/requests/list_volumes_detail.rb +25 -0
- data/lib/fog/openstack/compute/requests/list_zones.rb +33 -0
- data/lib/fog/openstack/compute/requests/list_zones_detailed.rb +68 -0
- data/lib/fog/openstack/compute/requests/live_migrate_server.rb +26 -0
- data/lib/fog/openstack/compute/requests/migrate_server.rb +20 -0
- data/lib/fog/openstack/compute/requests/pause_server.rb +24 -0
- data/lib/fog/openstack/compute/requests/reboot_server.rb +20 -0
- data/lib/fog/openstack/compute/requests/rebuild_server.rb +34 -0
- data/lib/fog/openstack/compute/requests/release_address.rb +29 -0
- data/lib/fog/openstack/compute/requests/remote_consoles.rb +54 -0
- data/lib/fog/openstack/compute/requests/remove_aggregate_host.rb +30 -0
- data/lib/fog/openstack/compute/requests/remove_fixed_ip.rb +29 -0
- data/lib/fog/openstack/compute/requests/remove_flavor_access.rb +29 -0
- data/lib/fog/openstack/compute/requests/remove_security_group.rb +20 -0
- data/lib/fog/openstack/compute/requests/rescue_server.rb +24 -0
- data/lib/fog/openstack/compute/requests/reset_server_state.rb +20 -0
- data/lib/fog/openstack/compute/requests/resize_server.rb +20 -0
- data/lib/fog/openstack/compute/requests/resume_server.rb +24 -0
- data/lib/fog/openstack/compute/requests/revert_resize_server.rb +26 -0
- data/lib/fog/openstack/compute/requests/server_action.rb +16 -0
- data/lib/fog/openstack/compute/requests/server_actions.rb +38 -0
- data/lib/fog/openstack/compute/requests/server_diagnostics.rb +25 -0
- data/lib/fog/openstack/compute/requests/set_metadata.rb +37 -0
- data/lib/fog/openstack/compute/requests/set_tenant.rb +19 -0
- data/lib/fog/openstack/compute/requests/shelve_offload_server.rb +24 -0
- data/lib/fog/openstack/compute/requests/shelve_server.rb +24 -0
- data/lib/fog/openstack/compute/requests/start_server.rb +24 -0
- data/lib/fog/openstack/compute/requests/stop_server.rb +24 -0
- data/lib/fog/openstack/compute/requests/suspend_server.rb +24 -0
- data/lib/fog/openstack/compute/requests/unpause_server.rb +24 -0
- data/lib/fog/openstack/compute/requests/unshelve_server.rb +24 -0
- data/lib/fog/openstack/compute/requests/update_aggregate.rb +37 -0
- data/lib/fog/openstack/compute/requests/update_aggregate_metadata.rb +30 -0
- data/lib/fog/openstack/compute/requests/update_flavor_metadata.rb +33 -0
- data/lib/fog/openstack/compute/requests/update_meta.rb +38 -0
- data/lib/fog/openstack/compute/requests/update_metadata.rb +38 -0
- data/lib/fog/openstack/compute/requests/update_quota.rb +27 -0
- data/lib/fog/openstack/compute/requests/update_server.rb +32 -0
- data/lib/fog/openstack/compute.rb +393 -0
- data/lib/fog/openstack/container_infra/models/base.rb +19 -0
- data/lib/fog/openstack/container_infra/models/bay.rb +56 -0
- data/lib/fog/openstack/container_infra/models/bay_model.rb +62 -0
- data/lib/fog/openstack/container_infra/models/bay_models.rb +23 -0
- data/lib/fog/openstack/container_infra/models/bays.rb +23 -0
- data/lib/fog/openstack/container_infra/models/certificate.rb +20 -0
- data/lib/fog/openstack/container_infra/models/certificates.rb +25 -0
- data/lib/fog/openstack/container_infra/models/cluster.rb +56 -0
- data/lib/fog/openstack/container_infra/models/cluster_template.rb +61 -0
- data/lib/fog/openstack/container_infra/models/cluster_templates.rb +24 -0
- data/lib/fog/openstack/container_infra/models/clusters.rb +24 -0
- data/lib/fog/openstack/container_infra/requests/create_bay.rb +27 -0
- data/lib/fog/openstack/container_infra/requests/create_bay_model.rb +56 -0
- data/lib/fog/openstack/container_infra/requests/create_certificate.rb +29 -0
- data/lib/fog/openstack/container_infra/requests/create_cluster.rb +27 -0
- data/lib/fog/openstack/container_infra/requests/create_cluster_template.rb +56 -0
- data/lib/fog/openstack/container_infra/requests/delete_bay.rb +24 -0
- data/lib/fog/openstack/container_infra/requests/delete_bay_model.rb +24 -0
- data/lib/fog/openstack/container_infra/requests/delete_cluster.rb +24 -0
- data/lib/fog/openstack/container_infra/requests/delete_cluster_template.rb +24 -0
- data/lib/fog/openstack/container_infra/requests/get_bay.rb +51 -0
- data/lib/fog/openstack/container_infra/requests/get_bay_model.rb +55 -0
- data/lib/fog/openstack/container_infra/requests/get_certificate.rb +27 -0
- data/lib/fog/openstack/container_infra/requests/get_cluster.rb +41 -0
- data/lib/fog/openstack/container_infra/requests/get_cluster_template.rb +55 -0
- data/lib/fog/openstack/container_infra/requests/list_bay_models.rb +69 -0
- data/lib/fog/openstack/container_infra/requests/list_bays.rb +55 -0
- data/lib/fog/openstack/container_infra/requests/list_cluster_templates.rb +59 -0
- data/lib/fog/openstack/container_infra/requests/list_clusters.rb +37 -0
- data/lib/fog/openstack/container_infra/requests/update_bay.rb +27 -0
- data/lib/fog/openstack/container_infra/requests/update_bay_model.rb +56 -0
- data/lib/fog/openstack/container_infra/requests/update_cluster.rb +27 -0
- data/lib/fog/openstack/container_infra/requests/update_cluster_template.rb +56 -0
- data/lib/fog/openstack/container_infra.rb +144 -0
- data/lib/fog/openstack/core.rb +254 -0
- data/lib/fog/openstack/dns/v1/requests/get_quota.rb +26 -0
- data/lib/fog/openstack/dns/v1/requests/list_domains.rb +27 -0
- data/lib/fog/openstack/dns/v1/requests/update_quota.rb +31 -0
- data/lib/fog/openstack/dns/v1.rb +116 -0
- data/lib/fog/openstack/dns/v2/models/pool.rb +21 -0
- data/lib/fog/openstack/dns/v2/models/pools.rb +25 -0
- data/lib/fog/openstack/dns/v2/models/recordset.rb +55 -0
- data/lib/fog/openstack/dns/v2/models/recordsets.rb +30 -0
- data/lib/fog/openstack/dns/v2/models/zone.rb +50 -0
- data/lib/fog/openstack/dns/v2/models/zone_transfer_accept.rb +29 -0
- data/lib/fog/openstack/dns/v2/models/zone_transfer_accepts.rb +25 -0
- data/lib/fog/openstack/dns/v2/models/zone_transfer_request.rb +50 -0
- data/lib/fog/openstack/dns/v2/models/zone_transfer_requests.rb +30 -0
- data/lib/fog/openstack/dns/v2/models/zones.rb +30 -0
- data/lib/fog/openstack/dns/v2/requests/create_recordset.rb +54 -0
- data/lib/fog/openstack/dns/v2/requests/create_zone.rb +49 -0
- data/lib/fog/openstack/dns/v2/requests/create_zone_transfer_accept.rb +35 -0
- data/lib/fog/openstack/dns/v2/requests/create_zone_transfer_request.rb +34 -0
- data/lib/fog/openstack/dns/v2/requests/delete_recordset.rb +36 -0
- data/lib/fog/openstack/dns/v2/requests/delete_zone.rb +35 -0
- data/lib/fog/openstack/dns/v2/requests/delete_zone_transfer_request.rb +26 -0
- data/lib/fog/openstack/dns/v2/requests/get_pool.rb +30 -0
- data/lib/fog/openstack/dns/v2/requests/get_quota.rb +29 -0
- data/lib/fog/openstack/dns/v2/requests/get_recordset.rb +36 -0
- data/lib/fog/openstack/dns/v2/requests/get_zone.rb +30 -0
- data/lib/fog/openstack/dns/v2/requests/get_zone_transfer_accept.rb +28 -0
- data/lib/fog/openstack/dns/v2/requests/get_zone_transfer_request.rb +29 -0
- data/lib/fog/openstack/dns/v2/requests/list_pools.rb +30 -0
- data/lib/fog/openstack/dns/v2/requests/list_recordsets.rb +54 -0
- data/lib/fog/openstack/dns/v2/requests/list_zone_transfer_accepts.rb +27 -0
- data/lib/fog/openstack/dns/v2/requests/list_zone_transfer_requests.rb +27 -0
- data/lib/fog/openstack/dns/v2/requests/list_zones.rb +30 -0
- data/lib/fog/openstack/dns/v2/requests/update_quota.rb +34 -0
- data/lib/fog/openstack/dns/v2/requests/update_recordset.rb +40 -0
- data/lib/fog/openstack/dns/v2/requests/update_zone.rb +39 -0
- data/lib/fog/openstack/dns/v2/requests/update_zone_transfer_request.rb +36 -0
- data/lib/fog/openstack/dns/v2.rb +325 -0
- data/lib/fog/openstack/dns.rb +21 -0
- data/lib/fog/openstack/errors.rb +42 -0
- data/lib/fog/openstack/event/models/event.rb +16 -0
- data/lib/fog/openstack/event/models/events.rb +23 -0
- data/lib/fog/openstack/event/requests/get_event.rb +27 -0
- data/lib/fog/openstack/event/requests/list_events.rb +42 -0
- data/lib/fog/openstack/event.rb +101 -0
- data/lib/fog/openstack/identity/v2/models/ec2_credential.rb +39 -0
- data/lib/fog/openstack/identity/v2/models/ec2_credentials.rb +56 -0
- data/lib/fog/openstack/identity/v2/models/role.rb +53 -0
- data/lib/fog/openstack/identity/v2/models/roles.rb +22 -0
- data/lib/fog/openstack/identity/v2/models/tenant.rb +63 -0
- data/lib/fog/openstack/identity/v2/models/tenants.rb +32 -0
- data/lib/fog/openstack/identity/v2/models/user.rb +69 -0
- data/lib/fog/openstack/identity/v2/models/users.rb +45 -0
- data/lib/fog/openstack/identity/v2/requests/add_user_to_tenant.rb +36 -0
- data/lib/fog/openstack/identity/v2/requests/check_token.rb +22 -0
- data/lib/fog/openstack/identity/v2/requests/create_ec2_credential.rb +59 -0
- data/lib/fog/openstack/identity/v2/requests/create_role.rb +38 -0
- data/lib/fog/openstack/identity/v2/requests/create_tenant.rb +34 -0
- data/lib/fog/openstack/identity/v2/requests/create_user.rb +45 -0
- data/lib/fog/openstack/identity/v2/requests/create_user_role.rb +26 -0
- data/lib/fog/openstack/identity/v2/requests/delete_ec2_credential.rb +43 -0
- data/lib/fog/openstack/identity/v2/requests/delete_role.rb +30 -0
- data/lib/fog/openstack/identity/v2/requests/delete_tenant.rb +33 -0
- data/lib/fog/openstack/identity/v2/requests/delete_user.rb +31 -0
- data/lib/fog/openstack/identity/v2/requests/delete_user_role.rb +25 -0
- data/lib/fog/openstack/identity/v2/requests/get_ec2_credential.rb +50 -0
- data/lib/fog/openstack/identity/v2/requests/get_role.rb +30 -0
- data/lib/fog/openstack/identity/v2/requests/get_tenant.rb +33 -0
- data/lib/fog/openstack/identity/v2/requests/get_tenants_by_id.rb +20 -0
- data/lib/fog/openstack/identity/v2/requests/get_tenants_by_name.rb +20 -0
- data/lib/fog/openstack/identity/v2/requests/get_user_by_id.rb +34 -0
- data/lib/fog/openstack/identity/v2/requests/get_user_by_name.rb +29 -0
- data/lib/fog/openstack/identity/v2/requests/list_ec2_credentials.rb +61 -0
- data/lib/fog/openstack/identity/v2/requests/list_endpoints_for_token.rb +20 -0
- data/lib/fog/openstack/identity/v2/requests/list_roles.rb +34 -0
- data/lib/fog/openstack/identity/v2/requests/list_roles_for_user_on_tenant.rb +32 -0
- data/lib/fog/openstack/identity/v2/requests/list_tenants.rb +53 -0
- data/lib/fog/openstack/identity/v2/requests/list_user_global_roles.rb +20 -0
- data/lib/fog/openstack/identity/v2/requests/list_users.rb +47 -0
- data/lib/fog/openstack/identity/v2/requests/remove_user_from_tenant.rb +22 -0
- data/lib/fog/openstack/identity/v2/requests/set_tenant.rb +21 -0
- data/lib/fog/openstack/identity/v2/requests/update_tenant.rb +30 -0
- data/lib/fog/openstack/identity/v2/requests/update_user.rb +34 -0
- data/lib/fog/openstack/identity/v2/requests/validate_token.rb +22 -0
- data/lib/fog/openstack/identity/v2.rb +192 -0
- data/lib/fog/openstack/identity/v3/models/domain.rb +59 -0
- data/lib/fog/openstack/identity/v3/models/domains.rb +63 -0
- data/lib/fog/openstack/identity/v3/models/endpoint.rb +47 -0
- data/lib/fog/openstack/identity/v3/models/endpoints.rb +27 -0
- data/lib/fog/openstack/identity/v3/models/group.rb +94 -0
- data/lib/fog/openstack/identity/v3/models/groups.rb +32 -0
- data/lib/fog/openstack/identity/v3/models/os_credential.rb +74 -0
- data/lib/fog/openstack/identity/v3/models/os_credentials.rb +32 -0
- data/lib/fog/openstack/identity/v3/models/policies.rb +32 -0
- data/lib/fog/openstack/identity/v3/models/policy.rb +43 -0
- data/lib/fog/openstack/identity/v3/models/project.rb +116 -0
- data/lib/fog/openstack/identity/v3/models/projects.rb +75 -0
- data/lib/fog/openstack/identity/v3/models/role.rb +41 -0
- data/lib/fog/openstack/identity/v3/models/role_assignment.rb +21 -0
- data/lib/fog/openstack/identity/v3/models/role_assignments.rb +25 -0
- data/lib/fog/openstack/identity/v3/models/roles.rb +40 -0
- data/lib/fog/openstack/identity/v3/models/service.rb +48 -0
- data/lib/fog/openstack/identity/v3/models/services.rb +32 -0
- data/lib/fog/openstack/identity/v3/models/token.rb +24 -0
- data/lib/fog/openstack/identity/v3/models/tokens.rb +40 -0
- data/lib/fog/openstack/identity/v3/models/user.rb +82 -0
- data/lib/fog/openstack/identity/v3/models/users.rb +36 -0
- data/lib/fog/openstack/identity/v3/requests/add_user_to_group.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/auth_domains.rb +23 -0
- data/lib/fog/openstack/identity/v3/requests/auth_projects.rb +23 -0
- data/lib/fog/openstack/identity/v3/requests/check_domain_group_role.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/check_domain_user_role.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/check_project_group_role.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/check_project_user_role.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/create_domain.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/create_endpoint.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/create_group.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/create_os_credential.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/create_policy.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/create_project.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/create_role.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/create_service.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/create_user.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/delete_domain.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/delete_endpoint.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/delete_group.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/delete_os_credential.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/delete_policy.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/delete_project.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/delete_role.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/delete_service.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/delete_user.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/get_domain.rb +22 -0
- data/lib/fog/openstack/identity/v3/requests/get_endpoint.rb +22 -0
- data/lib/fog/openstack/identity/v3/requests/get_group.rb +22 -0
- data/lib/fog/openstack/identity/v3/requests/get_os_credential.rb +22 -0
- data/lib/fog/openstack/identity/v3/requests/get_policy.rb +22 -0
- data/lib/fog/openstack/identity/v3/requests/get_project.rb +23 -0
- data/lib/fog/openstack/identity/v3/requests/get_role.rb +22 -0
- data/lib/fog/openstack/identity/v3/requests/get_service.rb +22 -0
- data/lib/fog/openstack/identity/v3/requests/get_user.rb +22 -0
- data/lib/fog/openstack/identity/v3/requests/grant_domain_group_role.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/grant_domain_user_role.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/grant_project_group_role.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/grant_project_user_role.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/group_user_check.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/list_domain_group_roles.rb +22 -0
- data/lib/fog/openstack/identity/v3/requests/list_domain_user_roles.rb +22 -0
- data/lib/fog/openstack/identity/v3/requests/list_domains.rb +23 -0
- data/lib/fog/openstack/identity/v3/requests/list_endpoints.rb +23 -0
- data/lib/fog/openstack/identity/v3/requests/list_group_users.rb +23 -0
- data/lib/fog/openstack/identity/v3/requests/list_groups.rb +31 -0
- data/lib/fog/openstack/identity/v3/requests/list_os_credentials.rb +23 -0
- data/lib/fog/openstack/identity/v3/requests/list_policies.rb +23 -0
- data/lib/fog/openstack/identity/v3/requests/list_project_group_roles.rb +22 -0
- data/lib/fog/openstack/identity/v3/requests/list_project_user_roles.rb +22 -0
- data/lib/fog/openstack/identity/v3/requests/list_projects.rb +30 -0
- data/lib/fog/openstack/identity/v3/requests/list_role_assignments.rb +38 -0
- data/lib/fog/openstack/identity/v3/requests/list_roles.rb +23 -0
- data/lib/fog/openstack/identity/v3/requests/list_services.rb +23 -0
- data/lib/fog/openstack/identity/v3/requests/list_user_groups.rb +22 -0
- data/lib/fog/openstack/identity/v3/requests/list_user_projects.rb +23 -0
- data/lib/fog/openstack/identity/v3/requests/list_users.rb +23 -0
- data/lib/fog/openstack/identity/v3/requests/remove_user_from_group.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/revoke_domain_group_role.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/revoke_domain_user_role.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/revoke_project_group_role.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/revoke_project_user_role.rb +20 -0
- data/lib/fog/openstack/identity/v3/requests/token_authenticate.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/token_check.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/token_revoke.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/token_validate.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/update_domain.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/update_endpoint.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/update_group.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/update_os_credential.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/update_policy.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/update_project.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/update_role.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/update_service.rb +21 -0
- data/lib/fog/openstack/identity/v3/requests/update_user.rb +21 -0
- data/lib/fog/openstack/identity/v3.rb +166 -0
- data/lib/fog/openstack/identity.rb +53 -0
- data/lib/fog/openstack/image/v1/models/image.rb +78 -0
- data/lib/fog/openstack/image/v1/models/images.rb +106 -0
- data/lib/fog/openstack/image/v1/requests/add_member_to_image.rb +25 -0
- data/lib/fog/openstack/image/v1/requests/create_image.rb +78 -0
- data/lib/fog/openstack/image/v1/requests/delete_image.rb +25 -0
- data/lib/fog/openstack/image/v1/requests/get_image.rb +47 -0
- data/lib/fog/openstack/image/v1/requests/get_image_by_id.rb +44 -0
- data/lib/fog/openstack/image/v1/requests/get_image_members.rb +31 -0
- data/lib/fog/openstack/image/v1/requests/get_shared_images.rb +31 -0
- data/lib/fog/openstack/image/v1/requests/list_public_images.rb +36 -0
- data/lib/fog/openstack/image/v1/requests/list_public_images_detailed.rb +37 -0
- data/lib/fog/openstack/image/v1/requests/remove_member_from_image.rb +25 -0
- data/lib/fog/openstack/image/v1/requests/set_tenant.rb +21 -0
- data/lib/fog/openstack/image/v1/requests/update_image.rb +66 -0
- data/lib/fog/openstack/image/v1/requests/update_image_members.rb +39 -0
- data/lib/fog/openstack/image/v1.rb +120 -0
- data/lib/fog/openstack/image/v2/models/image.rb +214 -0
- data/lib/fog/openstack/image/v2/models/images.rb +66 -0
- data/lib/fog/openstack/image/v2/requests/add_member_to_image.rb +26 -0
- data/lib/fog/openstack/image/v2/requests/add_tag_to_image.rb +25 -0
- data/lib/fog/openstack/image/v2/requests/create_image.rb +51 -0
- data/lib/fog/openstack/image/v2/requests/deactivate_image.rb +25 -0
- data/lib/fog/openstack/image/v2/requests/delete_image.rb +25 -0
- data/lib/fog/openstack/image/v2/requests/download_image.rb +29 -0
- data/lib/fog/openstack/image/v2/requests/get_image.rb +47 -0
- data/lib/fog/openstack/image/v2/requests/get_image_by_id.rb +35 -0
- data/lib/fog/openstack/image/v2/requests/get_image_members.rb +31 -0
- data/lib/fog/openstack/image/v2/requests/get_member_details.rb +33 -0
- data/lib/fog/openstack/image/v2/requests/get_shared_images.rb +31 -0
- data/lib/fog/openstack/image/v2/requests/list_images.rb +36 -0
- data/lib/fog/openstack/image/v2/requests/reactivate_image.rb +25 -0
- data/lib/fog/openstack/image/v2/requests/remove_member_from_image.rb +25 -0
- data/lib/fog/openstack/image/v2/requests/remove_tag_from_image.rb +25 -0
- data/lib/fog/openstack/image/v2/requests/set_tenant.rb +21 -0
- data/lib/fog/openstack/image/v2/requests/update_image.rb +49 -0
- data/lib/fog/openstack/image/v2/requests/update_image_member.rb +34 -0
- data/lib/fog/openstack/image/v2/requests/upload_image.rb +30 -0
- data/lib/fog/openstack/image/v2.rb +128 -0
- data/lib/fog/openstack/image.rb +23 -0
- data/lib/fog/openstack/introspection/models/rules.rb +29 -0
- data/lib/fog/openstack/introspection/models/rules_collection.rb +32 -0
- data/lib/fog/openstack/introspection/requests/abort_introspection.rb +25 -0
- data/lib/fog/openstack/introspection/requests/create_introspection.rb +35 -0
- data/lib/fog/openstack/introspection/requests/create_rules.rb +37 -0
- data/lib/fog/openstack/introspection/requests/delete_rules.rb +23 -0
- data/lib/fog/openstack/introspection/requests/delete_rules_all.rb +23 -0
- data/lib/fog/openstack/introspection/requests/get_introspection.rb +24 -0
- data/lib/fog/openstack/introspection/requests/get_introspection_details.rb +24 -0
- data/lib/fog/openstack/introspection/requests/get_rules.rb +24 -0
- data/lib/fog/openstack/introspection/requests/list_rules.rb +24 -0
- data/lib/fog/openstack/introspection.rb +89 -0
- data/lib/fog/openstack/key_manager/models/acl.rb +23 -0
- data/lib/fog/openstack/key_manager/models/container.rb +44 -0
- data/lib/fog/openstack/key_manager/models/containers.rb +25 -0
- data/lib/fog/openstack/key_manager/models/secret.rb +53 -0
- data/lib/fog/openstack/key_manager/models/secrets.rb +25 -0
- data/lib/fog/openstack/key_manager/requests/create_container.rb +19 -0
- data/lib/fog/openstack/key_manager/requests/create_secret.rb +19 -0
- data/lib/fog/openstack/key_manager/requests/delete_container.rb +18 -0
- data/lib/fog/openstack/key_manager/requests/delete_container_acl.rb +24 -0
- data/lib/fog/openstack/key_manager/requests/delete_secret.rb +18 -0
- data/lib/fog/openstack/key_manager/requests/delete_secret_acl.rb +24 -0
- data/lib/fog/openstack/key_manager/requests/get_container.rb +18 -0
- data/lib/fog/openstack/key_manager/requests/get_container_acl.rb +31 -0
- data/lib/fog/openstack/key_manager/requests/get_secret.rb +18 -0
- data/lib/fog/openstack/key_manager/requests/get_secret_acl.rb +31 -0
- data/lib/fog/openstack/key_manager/requests/get_secret_metadata.rb +18 -0
- data/lib/fog/openstack/key_manager/requests/get_secret_payload.rb +21 -0
- data/lib/fog/openstack/key_manager/requests/list_containers.rb +19 -0
- data/lib/fog/openstack/key_manager/requests/list_secrets.rb +19 -0
- data/lib/fog/openstack/key_manager/requests/replace_container_acl.rb +27 -0
- data/lib/fog/openstack/key_manager/requests/replace_secret_acl.rb +27 -0
- data/lib/fog/openstack/key_manager/requests/update_container_acl.rb +26 -0
- data/lib/fog/openstack/key_manager/requests/update_secret_acl.rb +26 -0
- data/lib/fog/openstack/key_manager.rb +109 -0
- data/lib/fog/openstack/metering/models/event.rb +16 -0
- data/lib/fog/openstack/metering/models/events.rb +23 -0
- data/lib/fog/openstack/metering/models/meter.rb +0 -0
- data/lib/fog/openstack/metering/models/meters.rb +0 -0
- data/lib/fog/openstack/metering/models/resource.rb +15 -0
- data/lib/fog/openstack/metering/models/resources.rb +23 -0
- data/lib/fog/openstack/metering/requests/get_event.rb +27 -0
- data/lib/fog/openstack/metering/requests/get_resource.rb +29 -0
- data/lib/fog/openstack/metering/requests/get_samples.rb +52 -0
- data/lib/fog/openstack/metering/requests/get_statistics.rb +52 -0
- data/lib/fog/openstack/metering/requests/list_events.rb +42 -0
- data/lib/fog/openstack/metering/requests/list_meters.rb +46 -0
- data/lib/fog/openstack/metering/requests/list_resources.rb +29 -0
- data/lib/fog/openstack/metering.rb +117 -0
- data/lib/fog/openstack/metric/models/metric.rb +18 -0
- data/lib/fog/openstack/metric/models/metrics.rb +31 -0
- data/lib/fog/openstack/metric/models/resource.rb +16 -0
- data/lib/fog/openstack/metric/models/resources.rb +24 -0
- data/lib/fog/openstack/metric/requests/get_metric.rb +62 -0
- data/lib/fog/openstack/metric/requests/get_metric_measures.rb +38 -0
- data/lib/fog/openstack/metric/requests/get_resource.rb +37 -0
- data/lib/fog/openstack/metric/requests/get_resource_metric_measures.rb +46 -0
- data/lib/fog/openstack/metric/requests/list_metrics.rb +104 -0
- data/lib/fog/openstack/metric/requests/list_resources.rb +70 -0
- data/lib/fog/openstack/metric.rb +107 -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/monitoring/models/alarm.rb +47 -0
- data/lib/fog/openstack/monitoring/models/alarm_count.rb +17 -0
- data/lib/fog/openstack/monitoring/models/alarm_counts.rb +16 -0
- data/lib/fog/openstack/monitoring/models/alarm_definition.rb +57 -0
- data/lib/fog/openstack/monitoring/models/alarm_definitions.rb +42 -0
- data/lib/fog/openstack/monitoring/models/alarm_state.rb +32 -0
- data/lib/fog/openstack/monitoring/models/alarm_states.rb +20 -0
- data/lib/fog/openstack/monitoring/models/alarms.rb +30 -0
- data/lib/fog/openstack/monitoring/models/dimension_value.rb +19 -0
- data/lib/fog/openstack/monitoring/models/dimension_values.rb +16 -0
- data/lib/fog/openstack/monitoring/models/measurement.rb +20 -0
- data/lib/fog/openstack/monitoring/models/measurements.rb +16 -0
- data/lib/fog/openstack/monitoring/models/metric.rb +27 -0
- data/lib/fog/openstack/monitoring/models/metrics.rb +36 -0
- data/lib/fog/openstack/monitoring/models/notification_method.rb +47 -0
- data/lib/fog/openstack/monitoring/models/notification_methods.rb +42 -0
- data/lib/fog/openstack/monitoring/models/statistic.rb +20 -0
- data/lib/fog/openstack/monitoring/models/statistics.rb +16 -0
- data/lib/fog/openstack/monitoring/requests/create_alarm_definition.rb +19 -0
- data/lib/fog/openstack/monitoring/requests/create_metric.rb +29 -0
- data/lib/fog/openstack/monitoring/requests/create_metric_array.rb +19 -0
- data/lib/fog/openstack/monitoring/requests/create_notification_method.rb +19 -0
- data/lib/fog/openstack/monitoring/requests/delete_alarm.rb +18 -0
- data/lib/fog/openstack/monitoring/requests/delete_alarm_definition.rb +18 -0
- data/lib/fog/openstack/monitoring/requests/delete_notification_method.rb +18 -0
- data/lib/fog/openstack/monitoring/requests/find_measurements.rb +22 -0
- data/lib/fog/openstack/monitoring/requests/get_alarm.rb +21 -0
- data/lib/fog/openstack/monitoring/requests/get_alarm_counts.rb +22 -0
- data/lib/fog/openstack/monitoring/requests/get_alarm_definition.rb +18 -0
- data/lib/fog/openstack/monitoring/requests/get_notification_method.rb +18 -0
- data/lib/fog/openstack/monitoring/requests/list_alarm_definitions.rb +22 -0
- data/lib/fog/openstack/monitoring/requests/list_alarm_state_history_for_all_alarms.rb +22 -0
- data/lib/fog/openstack/monitoring/requests/list_alarm_state_history_for_specific_alarm.rb +22 -0
- data/lib/fog/openstack/monitoring/requests/list_alarms.rb +22 -0
- data/lib/fog/openstack/monitoring/requests/list_dimension_values.rb +21 -0
- data/lib/fog/openstack/monitoring/requests/list_metric_names.rb +22 -0
- data/lib/fog/openstack/monitoring/requests/list_metrics.rb +22 -0
- data/lib/fog/openstack/monitoring/requests/list_notification_method_types.rb +21 -0
- data/lib/fog/openstack/monitoring/requests/list_notification_methods.rb +22 -0
- data/lib/fog/openstack/monitoring/requests/list_statistics.rb +22 -0
- data/lib/fog/openstack/monitoring/requests/patch_alarm.rb +19 -0
- data/lib/fog/openstack/monitoring/requests/patch_alarm_definition.rb +19 -0
- data/lib/fog/openstack/monitoring/requests/patch_notification_method.rb +19 -0
- data/lib/fog/openstack/monitoring/requests/put_notification_method.rb +19 -0
- data/lib/fog/openstack/monitoring/requests/update_alarm.rb +19 -0
- data/lib/fog/openstack/monitoring/requests/update_alarm_definition.rb +19 -0
- data/lib/fog/openstack/monitoring.rb +87 -0
- data/lib/fog/openstack/network/models/extension.rb +15 -0
- data/lib/fog/openstack/network/models/extensions.rb +32 -0
- data/lib/fog/openstack/network/models/floating_ip.rb +64 -0
- data/lib/fog/openstack/network/models/floating_ips.rb +32 -0
- data/lib/fog/openstack/network/models/ike_policies.rb +32 -0
- data/lib/fog/openstack/network/models/ike_policy.rb +43 -0
- data/lib/fog/openstack/network/models/ipsec_policies.rb +32 -0
- data/lib/fog/openstack/network/models/ipsec_policy.rb +45 -0
- data/lib/fog/openstack/network/models/ipsec_site_connection.rb +51 -0
- data/lib/fog/openstack/network/models/ipsec_site_connections.rb +33 -0
- data/lib/fog/openstack/network/models/lb_health_monitor.rb +57 -0
- data/lib/fog/openstack/network/models/lb_health_monitors.rb +32 -0
- data/lib/fog/openstack/network/models/lb_member.rb +42 -0
- data/lib/fog/openstack/network/models/lb_members.rb +32 -0
- data/lib/fog/openstack/network/models/lb_pool.rb +67 -0
- data/lib/fog/openstack/network/models/lb_pools.rb +32 -0
- data/lib/fog/openstack/network/models/lb_vip.rb +48 -0
- data/lib/fog/openstack/network/models/lb_vips.rb +32 -0
- data/lib/fog/openstack/network/models/network.rb +42 -0
- data/lib/fog/openstack/network/models/network_ip_availabilities.rb +24 -0
- data/lib/fog/openstack/network/models/network_ip_availability.rb +17 -0
- data/lib/fog/openstack/network/models/networks.rb +32 -0
- data/lib/fog/openstack/network/models/port.rb +42 -0
- data/lib/fog/openstack/network/models/ports.rb +32 -0
- data/lib/fog/openstack/network/models/rbac_policies.rb +33 -0
- data/lib/fog/openstack/network/models/rbac_policy.rb +34 -0
- data/lib/fog/openstack/network/models/router.rb +61 -0
- data/lib/fog/openstack/network/models/routers.rb +32 -0
- data/lib/fog/openstack/network/models/security_group.rb +37 -0
- data/lib/fog/openstack/network/models/security_group_rule.rb +33 -0
- data/lib/fog/openstack/network/models/security_group_rules.rb +32 -0
- data/lib/fog/openstack/network/models/security_groups.rb +32 -0
- data/lib/fog/openstack/network/models/subnet.rb +44 -0
- data/lib/fog/openstack/network/models/subnet_pool.rb +47 -0
- data/lib/fog/openstack/network/models/subnet_pools.rb +33 -0
- data/lib/fog/openstack/network/models/subnets.rb +32 -0
- data/lib/fog/openstack/network/models/vpn_service.rb +42 -0
- data/lib/fog/openstack/network/models/vpn_services.rb +32 -0
- data/lib/fog/openstack/network/requests/add_router_interface.rb +52 -0
- data/lib/fog/openstack/network/requests/associate_floating_ip.rb +47 -0
- data/lib/fog/openstack/network/requests/associate_lb_health_monitor.rb +37 -0
- data/lib/fog/openstack/network/requests/create_floating_ip.rb +45 -0
- data/lib/fog/openstack/network/requests/create_ike_policy.rb +52 -0
- data/lib/fog/openstack/network/requests/create_ipsec_policy.rb +52 -0
- data/lib/fog/openstack/network/requests/create_ipsec_site_connection.rb +65 -0
- data/lib/fog/openstack/network/requests/create_lb_health_monitor.rb +54 -0
- data/lib/fog/openstack/network/requests/create_lb_member.rb +51 -0
- data/lib/fog/openstack/network/requests/create_lb_pool.rb +58 -0
- data/lib/fog/openstack/network/requests/create_lb_vip.rb +58 -0
- data/lib/fog/openstack/network/requests/create_lbaas_healthmonitor.rb +57 -0
- data/lib/fog/openstack/network/requests/create_lbaas_l7policy.rb +50 -0
- data/lib/fog/openstack/network/requests/create_lbaas_l7rule.rb +50 -0
- data/lib/fog/openstack/network/requests/create_lbaas_listener.rb +55 -0
- data/lib/fog/openstack/network/requests/create_lbaas_loadbalancer.rb +52 -0
- data/lib/fog/openstack/network/requests/create_lbaas_pool.rb +53 -0
- data/lib/fog/openstack/network/requests/create_lbaas_pool_member.rb +49 -0
- data/lib/fog/openstack/network/requests/create_network.rb +88 -0
- data/lib/fog/openstack/network/requests/create_port.rb +53 -0
- data/lib/fog/openstack/network/requests/create_rbac_policy.rb +42 -0
- data/lib/fog/openstack/network/requests/create_router.rb +76 -0
- data/lib/fog/openstack/network/requests/create_security_group.rb +92 -0
- data/lib/fog/openstack/network/requests/create_security_group_rule.rb +79 -0
- data/lib/fog/openstack/network/requests/create_subnet.rb +54 -0
- data/lib/fog/openstack/network/requests/create_subnet_pool.rb +56 -0
- data/lib/fog/openstack/network/requests/create_vpn_service.rb +51 -0
- data/lib/fog/openstack/network/requests/delete_floating_ip.rb +28 -0
- data/lib/fog/openstack/network/requests/delete_ike_policy.rb +28 -0
- data/lib/fog/openstack/network/requests/delete_ipsec_policy.rb +28 -0
- data/lib/fog/openstack/network/requests/delete_ipsec_site_connection.rb +29 -0
- data/lib/fog/openstack/network/requests/delete_lb_health_monitor.rb +28 -0
- data/lib/fog/openstack/network/requests/delete_lb_member.rb +28 -0
- data/lib/fog/openstack/network/requests/delete_lb_pool.rb +28 -0
- data/lib/fog/openstack/network/requests/delete_lb_vip.rb +28 -0
- data/lib/fog/openstack/network/requests/delete_lbaas_healthmonitor.rb +28 -0
- data/lib/fog/openstack/network/requests/delete_lbaas_l7policy.rb +28 -0
- data/lib/fog/openstack/network/requests/delete_lbaas_l7rule.rb +28 -0
- data/lib/fog/openstack/network/requests/delete_lbaas_listener.rb +28 -0
- data/lib/fog/openstack/network/requests/delete_lbaas_loadbalancer.rb +28 -0
- data/lib/fog/openstack/network/requests/delete_lbaas_pool.rb +28 -0
- data/lib/fog/openstack/network/requests/delete_lbaas_pool_member.rb +28 -0
- data/lib/fog/openstack/network/requests/delete_network.rb +28 -0
- data/lib/fog/openstack/network/requests/delete_port.rb +28 -0
- data/lib/fog/openstack/network/requests/delete_quota.rb +23 -0
- data/lib/fog/openstack/network/requests/delete_rbac_policy.rb +28 -0
- data/lib/fog/openstack/network/requests/delete_router.rb +28 -0
- data/lib/fog/openstack/network/requests/delete_security_group.rb +32 -0
- data/lib/fog/openstack/network/requests/delete_security_group_rule.rb +32 -0
- data/lib/fog/openstack/network/requests/delete_subnet.rb +28 -0
- data/lib/fog/openstack/network/requests/delete_subnet_pool.rb +28 -0
- data/lib/fog/openstack/network/requests/delete_vpn_service.rb +28 -0
- data/lib/fog/openstack/network/requests/disassociate_floating_ip.rb +47 -0
- data/lib/fog/openstack/network/requests/disassociate_lb_health_monitor.rb +29 -0
- data/lib/fog/openstack/network/requests/get_extension.rb +28 -0
- data/lib/fog/openstack/network/requests/get_floating_ip.rb +39 -0
- data/lib/fog/openstack/network/requests/get_ike_policy.rb +28 -0
- data/lib/fog/openstack/network/requests/get_ipsec_policy.rb +28 -0
- data/lib/fog/openstack/network/requests/get_ipsec_site_connection.rb +28 -0
- data/lib/fog/openstack/network/requests/get_lb_health_monitor.rb +28 -0
- data/lib/fog/openstack/network/requests/get_lb_member.rb +28 -0
- data/lib/fog/openstack/network/requests/get_lb_pool.rb +28 -0
- data/lib/fog/openstack/network/requests/get_lb_pool_stats.rb +33 -0
- data/lib/fog/openstack/network/requests/get_lb_vip.rb +28 -0
- data/lib/fog/openstack/network/requests/get_lbaas_healthmonitor.rb +28 -0
- data/lib/fog/openstack/network/requests/get_lbaas_l7policy.rb +28 -0
- data/lib/fog/openstack/network/requests/get_lbaas_l7rule.rb +28 -0
- data/lib/fog/openstack/network/requests/get_lbaas_listener.rb +28 -0
- data/lib/fog/openstack/network/requests/get_lbaas_loadbalancer.rb +28 -0
- data/lib/fog/openstack/network/requests/get_lbaas_pool.rb +28 -0
- data/lib/fog/openstack/network/requests/get_lbaas_pool_member.rb +28 -0
- data/lib/fog/openstack/network/requests/get_network.rb +28 -0
- data/lib/fog/openstack/network/requests/get_network_ip_availability.rb +28 -0
- data/lib/fog/openstack/network/requests/get_port.rb +51 -0
- data/lib/fog/openstack/network/requests/get_quota.rb +26 -0
- data/lib/fog/openstack/network/requests/get_quotas.rb +26 -0
- data/lib/fog/openstack/network/requests/get_rbac_policy.rb +28 -0
- data/lib/fog/openstack/network/requests/get_router.rb +30 -0
- data/lib/fog/openstack/network/requests/get_security_group.rb +52 -0
- data/lib/fog/openstack/network/requests/get_security_group_rule.rb +47 -0
- data/lib/fog/openstack/network/requests/get_subnet.rb +47 -0
- data/lib/fog/openstack/network/requests/get_subnet_pool.rb +29 -0
- data/lib/fog/openstack/network/requests/get_vpn_service.rb +28 -0
- data/lib/fog/openstack/network/requests/list_extensions.rb +25 -0
- data/lib/fog/openstack/network/requests/list_floating_ips.rb +25 -0
- data/lib/fog/openstack/network/requests/list_ike_policies.rb +25 -0
- data/lib/fog/openstack/network/requests/list_ipsec_policies.rb +25 -0
- data/lib/fog/openstack/network/requests/list_ipsec_site_connections.rb +25 -0
- data/lib/fog/openstack/network/requests/list_lb_health_monitors.rb +25 -0
- data/lib/fog/openstack/network/requests/list_lb_members.rb +25 -0
- data/lib/fog/openstack/network/requests/list_lb_pools.rb +25 -0
- data/lib/fog/openstack/network/requests/list_lb_vips.rb +25 -0
- data/lib/fog/openstack/network/requests/list_lbaas_healthmonitors.rb +25 -0
- data/lib/fog/openstack/network/requests/list_lbaas_l7policies.rb +25 -0
- data/lib/fog/openstack/network/requests/list_lbaas_l7rules.rb +25 -0
- data/lib/fog/openstack/network/requests/list_lbaas_listeners.rb +25 -0
- data/lib/fog/openstack/network/requests/list_lbaas_loadbalancers.rb +25 -0
- data/lib/fog/openstack/network/requests/list_lbaas_pool_members.rb +25 -0
- data/lib/fog/openstack/network/requests/list_lbaas_pools.rb +25 -0
- data/lib/fog/openstack/network/requests/list_network_ip_availabilities.rb +28 -0
- data/lib/fog/openstack/network/requests/list_networks.rb +25 -0
- data/lib/fog/openstack/network/requests/list_ports.rb +25 -0
- data/lib/fog/openstack/network/requests/list_rbac_policies.rb +25 -0
- data/lib/fog/openstack/network/requests/list_routers.rb +25 -0
- data/lib/fog/openstack/network/requests/list_security_group_rules.rb +48 -0
- data/lib/fog/openstack/network/requests/list_security_groups.rb +53 -0
- data/lib/fog/openstack/network/requests/list_subnet_pools.rb +25 -0
- data/lib/fog/openstack/network/requests/list_subnets.rb +25 -0
- data/lib/fog/openstack/network/requests/list_vpn_services.rb +25 -0
- data/lib/fog/openstack/network/requests/remove_router_interface.rb +34 -0
- data/lib/fog/openstack/network/requests/set_tenant.rb +19 -0
- data/lib/fog/openstack/network/requests/update_ike_policy.rb +48 -0
- data/lib/fog/openstack/network/requests/update_ipsec_policy.rb +51 -0
- data/lib/fog/openstack/network/requests/update_ipsec_site_connection.rb +63 -0
- data/lib/fog/openstack/network/requests/update_lb_health_monitor.rb +43 -0
- data/lib/fog/openstack/network/requests/update_lb_member.rb +39 -0
- data/lib/fog/openstack/network/requests/update_lb_pool.rb +40 -0
- data/lib/fog/openstack/network/requests/update_lb_vip.rb +42 -0
- data/lib/fog/openstack/network/requests/update_lbaas_healthmonitor.rb +43 -0
- data/lib/fog/openstack/network/requests/update_lbaas_l7policy.rb +43 -0
- data/lib/fog/openstack/network/requests/update_lbaas_l7rule.rb +42 -0
- data/lib/fog/openstack/network/requests/update_lbaas_listener.rb +44 -0
- data/lib/fog/openstack/network/requests/update_lbaas_loadbalancer.rb +41 -0
- data/lib/fog/openstack/network/requests/update_lbaas_pool.rb +40 -0
- data/lib/fog/openstack/network/requests/update_lbaas_pool_member.rb +39 -0
- data/lib/fog/openstack/network/requests/update_network.rb +58 -0
- data/lib/fog/openstack/network/requests/update_port.rb +44 -0
- data/lib/fog/openstack/network/requests/update_quota.rb +27 -0
- data/lib/fog/openstack/network/requests/update_rbac_policy.rb +41 -0
- data/lib/fog/openstack/network/requests/update_router.rb +71 -0
- data/lib/fog/openstack/network/requests/update_security_group.rb +41 -0
- data/lib/fog/openstack/network/requests/update_subnet.rb +43 -0
- data/lib/fog/openstack/network/requests/update_subnet_pool.rb +46 -0
- data/lib/fog/openstack/network/requests/update_vpn_service.rb +46 -0
- data/lib/fog/openstack/network.rb +459 -0
- data/lib/fog/openstack/nfv/models/vnf.rb +58 -0
- data/lib/fog/openstack/nfv/models/vnfd.rb +53 -0
- data/lib/fog/openstack/nfv/models/vnfds.rb +28 -0
- data/lib/fog/openstack/nfv/models/vnfs.rb +28 -0
- data/lib/fog/openstack/nfv/requests/create_vnf.rb +37 -0
- data/lib/fog/openstack/nfv/requests/create_vnfd.rb +35 -0
- data/lib/fog/openstack/nfv/requests/delete_vnf.rb +23 -0
- data/lib/fog/openstack/nfv/requests/delete_vnfd.rb +23 -0
- data/lib/fog/openstack/nfv/requests/get_vnf.rb +24 -0
- data/lib/fog/openstack/nfv/requests/get_vnfd.rb +24 -0
- data/lib/fog/openstack/nfv/requests/list_vnfds.rb +25 -0
- data/lib/fog/openstack/nfv/requests/list_vnfs.rb +25 -0
- data/lib/fog/openstack/nfv/requests/update_vnf.rb +35 -0
- data/lib/fog/openstack/nfv.rb +114 -0
- data/lib/fog/openstack/orchestration/models/event.rb +18 -0
- data/lib/fog/openstack/orchestration/models/events.rb +31 -0
- data/lib/fog/openstack/orchestration/models/resource.rb +30 -0
- data/lib/fog/openstack/orchestration/models/resource_schemas.rb +15 -0
- data/lib/fog/openstack/orchestration/models/resources.rb +35 -0
- data/lib/fog/openstack/orchestration/models/stack.rb +128 -0
- data/lib/fog/openstack/orchestration/models/stacks.rb +65 -0
- data/lib/fog/openstack/orchestration/models/template.rb +13 -0
- data/lib/fog/openstack/orchestration/models/templates.rb +45 -0
- data/lib/fog/openstack/orchestration/requests/abandon_stack.rb +15 -0
- data/lib/fog/openstack/orchestration/requests/build_info.rb +15 -0
- data/lib/fog/openstack/orchestration/requests/cancel_update.rb +26 -0
- data/lib/fog/openstack/orchestration/requests/create_stack.rb +99 -0
- data/lib/fog/openstack/orchestration/requests/delete_stack.rb +58 -0
- data/lib/fog/openstack/orchestration/requests/get_stack_template.rb +20 -0
- data/lib/fog/openstack/orchestration/requests/list_events.rb +46 -0
- data/lib/fog/openstack/orchestration/requests/list_resource_events.rb +28 -0
- data/lib/fog/openstack/orchestration/requests/list_resource_types.rb +27 -0
- data/lib/fog/openstack/orchestration/requests/list_resources.rb +46 -0
- data/lib/fog/openstack/orchestration/requests/list_stack_data.rb +27 -0
- data/lib/fog/openstack/orchestration/requests/list_stack_data_detailed.rb +49 -0
- data/lib/fog/openstack/orchestration/requests/list_stack_events.rb +27 -0
- data/lib/fog/openstack/orchestration/requests/patch_stack.rb +37 -0
- data/lib/fog/openstack/orchestration/requests/preview_stack.rb +16 -0
- data/lib/fog/openstack/orchestration/requests/show_event_details.rb +26 -0
- data/lib/fog/openstack/orchestration/requests/show_resource_data.rb +26 -0
- data/lib/fog/openstack/orchestration/requests/show_resource_metadata.rb +26 -0
- data/lib/fog/openstack/orchestration/requests/show_resource_schema.rb +15 -0
- data/lib/fog/openstack/orchestration/requests/show_resource_template.rb +20 -0
- data/lib/fog/openstack/orchestration/requests/show_stack.rb +26 -0
- data/lib/fog/openstack/orchestration/requests/show_stack_details.rb +26 -0
- data/lib/fog/openstack/orchestration/requests/update_stack.rb +88 -0
- data/lib/fog/openstack/orchestration/requests/validate_template.rb +16 -0
- data/lib/fog/openstack/orchestration/util/recursive_hot_file_loader.rb +220 -0
- data/lib/fog/openstack/orchestration.rb +138 -0
- data/lib/fog/openstack/planning/models/plan.rb +69 -0
- data/lib/fog/openstack/planning/models/plans.rb +31 -0
- data/lib/fog/openstack/planning/models/role.rb +23 -0
- data/lib/fog/openstack/planning/models/roles.rb +16 -0
- data/lib/fog/openstack/planning/requests/add_role_to_plan.rb +40 -0
- data/lib/fog/openstack/planning/requests/create_plan.rb +33 -0
- data/lib/fog/openstack/planning/requests/delete_plan.rb +23 -0
- data/lib/fog/openstack/planning/requests/get_plan.rb +58 -0
- data/lib/fog/openstack/planning/requests/get_plan_templates.rb +28 -0
- data/lib/fog/openstack/planning/requests/list_plans.rb +61 -0
- data/lib/fog/openstack/planning/requests/list_roles.rb +32 -0
- data/lib/fog/openstack/planning/requests/patch_plan.rb +51 -0
- data/lib/fog/openstack/planning/requests/remove_role_from_plan.rb +32 -0
- data/lib/fog/openstack/planning.rb +136 -0
- data/lib/fog/openstack/shared_file_system/models/availability_zone.rb +15 -0
- data/lib/fog/openstack/shared_file_system/models/availability_zones.rb +16 -0
- data/lib/fog/openstack/shared_file_system/models/network.rb +42 -0
- data/lib/fog/openstack/shared_file_system/models/networks.rb +28 -0
- data/lib/fog/openstack/shared_file_system/models/share.rb +95 -0
- data/lib/fog/openstack/shared_file_system/models/share_access_rule.rb +35 -0
- data/lib/fog/openstack/shared_file_system/models/share_access_rules.rb +30 -0
- data/lib/fog/openstack/shared_file_system/models/share_export_location.rb +16 -0
- data/lib/fog/openstack/shared_file_system/models/share_export_locations.rb +31 -0
- data/lib/fog/openstack/shared_file_system/models/shares.rb +28 -0
- data/lib/fog/openstack/shared_file_system/models/snapshot.rb +45 -0
- data/lib/fog/openstack/shared_file_system/models/snapshots.rb +28 -0
- data/lib/fog/openstack/shared_file_system/requests/add_security_service_to_share_network.rb +28 -0
- data/lib/fog/openstack/shared_file_system/requests/create_security_service.rb +47 -0
- data/lib/fog/openstack/shared_file_system/requests/create_share.rb +49 -0
- data/lib/fog/openstack/shared_file_system/requests/create_share_network.rb +41 -0
- data/lib/fog/openstack/shared_file_system/requests/create_snapshot.rb +46 -0
- data/lib/fog/openstack/shared_file_system/requests/delete_security_service.rb +24 -0
- data/lib/fog/openstack/shared_file_system/requests/delete_share.rb +29 -0
- data/lib/fog/openstack/shared_file_system/requests/delete_share_network.rb +28 -0
- data/lib/fog/openstack/shared_file_system/requests/delete_snapshot.rb +30 -0
- data/lib/fog/openstack/shared_file_system/requests/extend_share.rb +24 -0
- data/lib/fog/openstack/shared_file_system/requests/get_limits.rb +45 -0
- data/lib/fog/openstack/shared_file_system/requests/get_quota.rb +26 -0
- data/lib/fog/openstack/shared_file_system/requests/get_security_service.rb +26 -0
- data/lib/fog/openstack/shared_file_system/requests/get_share.rb +26 -0
- data/lib/fog/openstack/shared_file_system/requests/get_share_export_location.rb +29 -0
- data/lib/fog/openstack/shared_file_system/requests/get_share_network.rb +26 -0
- data/lib/fog/openstack/shared_file_system/requests/get_snapshot.rb +26 -0
- data/lib/fog/openstack/shared_file_system/requests/grant_share_access.rb +34 -0
- data/lib/fog/openstack/shared_file_system/requests/list_availability_zones.rb +24 -0
- data/lib/fog/openstack/shared_file_system/requests/list_security_services.rb +25 -0
- data/lib/fog/openstack/shared_file_system/requests/list_security_services_detail.rb +25 -0
- data/lib/fog/openstack/shared_file_system/requests/list_share_access_rules.rb +29 -0
- data/lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb +27 -0
- data/lib/fog/openstack/shared_file_system/requests/list_share_networks.rb +25 -0
- data/lib/fog/openstack/shared_file_system/requests/list_share_networks_detail.rb +25 -0
- data/lib/fog/openstack/shared_file_system/requests/list_shares.rb +25 -0
- data/lib/fog/openstack/shared_file_system/requests/list_shares_detail.rb +25 -0
- data/lib/fog/openstack/shared_file_system/requests/list_snapshots.rb +25 -0
- data/lib/fog/openstack/shared_file_system/requests/list_snapshots_detail.rb +25 -0
- data/lib/fog/openstack/shared_file_system/requests/remove_security_service_from_share_network.rb +28 -0
- data/lib/fog/openstack/shared_file_system/requests/revoke_share_access.rb +24 -0
- data/lib/fog/openstack/shared_file_system/requests/share_action.rb +16 -0
- data/lib/fog/openstack/shared_file_system/requests/share_network_action.rb +16 -0
- data/lib/fog/openstack/shared_file_system/requests/shrink_share.rb +24 -0
- data/lib/fog/openstack/shared_file_system/requests/update_quota.rb +30 -0
- data/lib/fog/openstack/shared_file_system/requests/update_security_service.rb +31 -0
- data/lib/fog/openstack/shared_file_system/requests/update_share.rb +39 -0
- data/lib/fog/openstack/shared_file_system/requests/update_share_network.rb +31 -0
- data/lib/fog/openstack/shared_file_system/requests/update_snapshot.rb +31 -0
- data/lib/fog/openstack/shared_file_system.rb +372 -0
- data/lib/fog/openstack/storage/models/directories.rb +36 -0
- data/lib/fog/openstack/storage/models/directory.rb +50 -0
- data/lib/fog/openstack/storage/models/file.rb +195 -0
- data/lib/fog/openstack/storage/models/files.rb +95 -0
- data/lib/fog/openstack/storage/requests/copy_object.rb +23 -0
- data/lib/fog/openstack/storage/requests/delete_container.rb +20 -0
- data/lib/fog/openstack/storage/requests/delete_multiple_objects.rb +65 -0
- data/lib/fog/openstack/storage/requests/delete_object.rb +21 -0
- data/lib/fog/openstack/storage/requests/delete_static_large_object.rb +41 -0
- data/lib/fog/openstack/storage/requests/get_container.rb +42 -0
- data/lib/fog/openstack/storage/requests/get_containers.rb +31 -0
- data/lib/fog/openstack/storage/requests/get_object.rb +27 -0
- data/lib/fog/openstack/storage/requests/get_object_http_url.rb +21 -0
- data/lib/fog/openstack/storage/requests/get_object_https_url.rb +88 -0
- data/lib/fog/openstack/storage/requests/head_container.rb +26 -0
- data/lib/fog/openstack/storage/requests/head_containers.rb +23 -0
- data/lib/fog/openstack/storage/requests/head_object.rb +21 -0
- data/lib/fog/openstack/storage/requests/post_object.rb +26 -0
- data/lib/fog/openstack/storage/requests/post_set_meta_temp_url_key.rb +33 -0
- data/lib/fog/openstack/storage/requests/public_url.rb +35 -0
- data/lib/fog/openstack/storage/requests/put_container.rb +24 -0
- data/lib/fog/openstack/storage/requests/put_dynamic_obj_manifest.rb +41 -0
- data/lib/fog/openstack/storage/requests/put_object.rb +65 -0
- data/lib/fog/openstack/storage/requests/put_object_manifest.rb +14 -0
- data/lib/fog/openstack/storage/requests/put_static_obj_manifest.rb +55 -0
- data/lib/fog/openstack/storage.rb +168 -0
- data/lib/fog/openstack/version.rb +5 -0
- data/lib/fog/openstack/volume/models/availability_zone.rb +10 -0
- data/lib/fog/openstack/volume/models/availability_zones.rb +14 -0
- data/lib/fog/openstack/volume/models/backup.rb +46 -0
- data/lib/fog/openstack/volume/models/backups.rb +26 -0
- data/lib/fog/openstack/volume/models/snapshot.rb +38 -0
- data/lib/fog/openstack/volume/models/snapshots.rb +26 -0
- data/lib/fog/openstack/volume/models/transfer.rb +28 -0
- data/lib/fog/openstack/volume/models/transfers.rb +34 -0
- data/lib/fog/openstack/volume/models/volume.rb +66 -0
- data/lib/fog/openstack/volume/models/volume_type.rb +35 -0
- data/lib/fog/openstack/volume/models/volume_types.rb +22 -0
- data/lib/fog/openstack/volume/models/volumes.rb +35 -0
- data/lib/fog/openstack/volume/requests/accept_transfer.rb +22 -0
- data/lib/fog/openstack/volume/requests/action.rb +16 -0
- data/lib/fog/openstack/volume/requests/create_backup.rb +49 -0
- data/lib/fog/openstack/volume/requests/create_snapshot.rb +18 -0
- data/lib/fog/openstack/volume/requests/create_transfer.rb +25 -0
- data/lib/fog/openstack/volume/requests/create_volume.rb +24 -0
- data/lib/fog/openstack/volume/requests/create_volume_type.rb +41 -0
- data/lib/fog/openstack/volume/requests/delete_backup.rb +23 -0
- data/lib/fog/openstack/volume/requests/delete_metadata.rb +15 -0
- data/lib/fog/openstack/volume/requests/delete_snapshot.rb +23 -0
- data/lib/fog/openstack/volume/requests/delete_snapshot_metadata.rb +15 -0
- data/lib/fog/openstack/volume/requests/delete_transfer.rb +15 -0
- data/lib/fog/openstack/volume/requests/delete_volume.rb +23 -0
- data/lib/fog/openstack/volume/requests/delete_volume_type.rb +23 -0
- data/lib/fog/openstack/volume/requests/extend_volume.rb +25 -0
- data/lib/fog/openstack/volume/requests/get_backup_details.rb +34 -0
- data/lib/fog/openstack/volume/requests/get_quota.rb +26 -0
- data/lib/fog/openstack/volume/requests/get_quota_defaults.rb +26 -0
- data/lib/fog/openstack/volume/requests/get_quota_usage.rb +43 -0
- data/lib/fog/openstack/volume/requests/get_snapshot_details.rb +15 -0
- data/lib/fog/openstack/volume/requests/get_transfer_details.rb +17 -0
- data/lib/fog/openstack/volume/requests/get_volume_details.rb +15 -0
- data/lib/fog/openstack/volume/requests/get_volume_type_details.rb +32 -0
- data/lib/fog/openstack/volume/requests/list_backups.rb +16 -0
- data/lib/fog/openstack/volume/requests/list_backups_detailed.rb +45 -0
- data/lib/fog/openstack/volume/requests/list_snapshots.rb +41 -0
- data/lib/fog/openstack/volume/requests/list_snapshots_detailed.rb +27 -0
- data/lib/fog/openstack/volume/requests/list_transfers.rb +18 -0
- data/lib/fog/openstack/volume/requests/list_transfers_detailed.rb +18 -0
- data/lib/fog/openstack/volume/requests/list_volume_types.rb +41 -0
- data/lib/fog/openstack/volume/requests/list_volumes.rb +30 -0
- data/lib/fog/openstack/volume/requests/list_volumes_detailed.rb +16 -0
- data/lib/fog/openstack/volume/requests/list_zones.rb +32 -0
- data/lib/fog/openstack/volume/requests/replace_metadata.rb +20 -0
- data/lib/fog/openstack/volume/requests/restore_backup.rb +17 -0
- data/lib/fog/openstack/volume/requests/set_tenant.rb +19 -0
- data/lib/fog/openstack/volume/requests/snapshot_action.rb +16 -0
- data/lib/fog/openstack/volume/requests/update_metadata.rb +20 -0
- data/lib/fog/openstack/volume/requests/update_quota.rb +27 -0
- data/lib/fog/openstack/volume/requests/update_snapshot.rb +37 -0
- data/lib/fog/openstack/volume/requests/update_snapshot_metadata.rb +20 -0
- data/lib/fog/openstack/volume/requests/update_volume.rb +14 -0
- data/lib/fog/openstack/volume/requests/update_volume_type.rb +41 -0
- data/lib/fog/openstack/volume/v1/mock.rb +68 -0
- data/lib/fog/openstack/volume/v1/models/availability_zone.rb +15 -0
- data/lib/fog/openstack/volume/v1/models/availability_zones.rb +16 -0
- data/lib/fog/openstack/volume/v1/models/backup.rb +15 -0
- data/lib/fog/openstack/volume/v1/models/backups.rb +16 -0
- data/lib/fog/openstack/volume/v1/models/snapshot.rb +44 -0
- data/lib/fog/openstack/volume/v1/models/snapshots.rb +16 -0
- data/lib/fog/openstack/volume/v1/models/transfer.rb +18 -0
- data/lib/fog/openstack/volume/v1/models/transfers.rb +16 -0
- data/lib/fog/openstack/volume/v1/models/volume.rb +38 -0
- data/lib/fog/openstack/volume/v1/models/volume_type.rb +16 -0
- data/lib/fog/openstack/volume/v1/models/volume_types.rb +16 -0
- data/lib/fog/openstack/volume/v1/models/volumes.rb +16 -0
- data/lib/fog/openstack/volume/v1/real.rb +23 -0
- data/lib/fog/openstack/volume/v1/requests/accept_transfer.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/action.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/create_backup.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/create_snapshot.rb +45 -0
- data/lib/fog/openstack/volume/v1/requests/create_transfer.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/create_volume.rb +49 -0
- data/lib/fog/openstack/volume/v1/requests/create_volume_type.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/delete_backup.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/delete_metadata.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/delete_snapshot.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/delete_snapshot_metadata.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/delete_transfer.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/delete_volume.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/delete_volume_type.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/extend_volume.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/get_backup_details.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/get_quota.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/get_quota_defaults.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/get_quota_usage.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/get_snapshot_details.rb +32 -0
- data/lib/fog/openstack/volume/v1/requests/get_transfer_details.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/get_volume_details.rb +35 -0
- data/lib/fog/openstack/volume/v1/requests/get_volume_type_details.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/list_backups.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/list_backups_detailed.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/list_snapshots.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/list_snapshots_detailed.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/list_transfers.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/list_transfers_detailed.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/list_volume_types.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/list_volumes.rb +46 -0
- data/lib/fog/openstack/volume/v1/requests/list_volumes_detailed.rb +46 -0
- data/lib/fog/openstack/volume/v1/requests/list_zones.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/real.rb +11 -0
- data/lib/fog/openstack/volume/v1/requests/real_mock.rb +14 -0
- data/lib/fog/openstack/volume/v1/requests/replace_metadata.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/restore_backup.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/set_tenant.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/update_metadata.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/update_quota.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/update_snapshot.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/update_snapshot_metadata.rb +2 -0
- data/lib/fog/openstack/volume/v1/requests/update_volume.rb +19 -0
- data/lib/fog/openstack/volume/v1.rb +92 -0
- data/lib/fog/openstack/volume/v2/mock.rb +68 -0
- data/lib/fog/openstack/volume/v2/models/availability_zone.rb +15 -0
- data/lib/fog/openstack/volume/v2/models/availability_zones.rb +16 -0
- data/lib/fog/openstack/volume/v2/models/backup.rb +15 -0
- data/lib/fog/openstack/volume/v2/models/backups.rb +16 -0
- data/lib/fog/openstack/volume/v2/models/snapshot.rb +44 -0
- data/lib/fog/openstack/volume/v2/models/snapshots.rb +16 -0
- data/lib/fog/openstack/volume/v2/models/transfer.rb +18 -0
- data/lib/fog/openstack/volume/v2/models/transfers.rb +16 -0
- data/lib/fog/openstack/volume/v2/models/volume.rb +37 -0
- data/lib/fog/openstack/volume/v2/models/volume_type.rb +16 -0
- data/lib/fog/openstack/volume/v2/models/volume_types.rb +16 -0
- data/lib/fog/openstack/volume/v2/models/volumes.rb +16 -0
- data/lib/fog/openstack/volume/v2/real.rb +23 -0
- data/lib/fog/openstack/volume/v2/requests/accept_transfer.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/action.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/create_backup.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/create_snapshot.rb +45 -0
- data/lib/fog/openstack/volume/v2/requests/create_transfer.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/create_volume.rb +49 -0
- data/lib/fog/openstack/volume/v2/requests/create_volume_type.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/delete_backup.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/delete_metadata.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/delete_snapshot.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/delete_snapshot_metadata.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/delete_transfer.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/delete_volume.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/delete_volume_type.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/extend_volume.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/get_backup_details.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/get_quota.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/get_quota_defaults.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/get_quota_usage.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/get_snapshot_details.rb +32 -0
- data/lib/fog/openstack/volume/v2/requests/get_transfer_details.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/get_volume_details.rb +35 -0
- data/lib/fog/openstack/volume/v2/requests/get_volume_type_details.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/list_backups.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/list_backups_detailed.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/list_snapshots.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/list_snapshots_detailed.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/list_transfers.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/list_transfers_detailed.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/list_volume_types.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/list_volumes.rb +46 -0
- data/lib/fog/openstack/volume/v2/requests/list_volumes_detailed.rb +46 -0
- data/lib/fog/openstack/volume/v2/requests/list_zones.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/real.rb +11 -0
- data/lib/fog/openstack/volume/v2/requests/real_mock.rb +14 -0
- data/lib/fog/openstack/volume/v2/requests/replace_metadata.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/restore_backup.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/set_tenant.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/snapshot_action.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/update_metadata.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/update_quota.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/update_snapshot.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/update_snapshot_metadata.rb +2 -0
- data/lib/fog/openstack/volume/v2/requests/update_volume.rb +20 -0
- data/lib/fog/openstack/volume/v2/requests/update_volume_type.rb +2 -0
- data/lib/fog/openstack/volume/v2.rb +94 -0
- data/lib/fog/openstack/volume/v3/mock.rb +68 -0
- data/lib/fog/openstack/volume/v3/models/availability_zone.rb +15 -0
- data/lib/fog/openstack/volume/v3/models/availability_zones.rb +16 -0
- data/lib/fog/openstack/volume/v3/models/backup.rb +15 -0
- data/lib/fog/openstack/volume/v3/models/backups.rb +16 -0
- data/lib/fog/openstack/volume/v3/models/snapshot.rb +44 -0
- data/lib/fog/openstack/volume/v3/models/snapshots.rb +16 -0
- data/lib/fog/openstack/volume/v3/models/transfer.rb +18 -0
- data/lib/fog/openstack/volume/v3/models/transfers.rb +16 -0
- data/lib/fog/openstack/volume/v3/models/volume.rb +37 -0
- data/lib/fog/openstack/volume/v3/models/volume_type.rb +16 -0
- data/lib/fog/openstack/volume/v3/models/volume_types.rb +16 -0
- data/lib/fog/openstack/volume/v3/models/volumes.rb +16 -0
- data/lib/fog/openstack/volume/v3/real.rb +23 -0
- data/lib/fog/openstack/volume/v3/requests/accept_transfer.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/action.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/create_backup.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/create_snapshot.rb +45 -0
- data/lib/fog/openstack/volume/v3/requests/create_transfer.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/create_volume.rb +49 -0
- data/lib/fog/openstack/volume/v3/requests/create_volume_type.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/delete_backup.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/delete_metadata.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/delete_snapshot.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/delete_snapshot_metadata.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/delete_transfer.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/delete_volume.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/delete_volume_type.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/extend_volume.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/get_backup_details.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/get_quota.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/get_quota_defaults.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/get_quota_usage.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/get_snapshot_details.rb +32 -0
- data/lib/fog/openstack/volume/v3/requests/get_transfer_details.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/get_volume_details.rb +35 -0
- data/lib/fog/openstack/volume/v3/requests/get_volume_type_details.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/list_backups.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/list_backups_detailed.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/list_snapshots.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/list_snapshots_detailed.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/list_transfers.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/list_transfers_detailed.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/list_volume_types.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/list_volumes.rb +46 -0
- data/lib/fog/openstack/volume/v3/requests/list_volumes_detailed.rb +46 -0
- data/lib/fog/openstack/volume/v3/requests/list_zones.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/real.rb +11 -0
- data/lib/fog/openstack/volume/v3/requests/real_mock.rb +14 -0
- data/lib/fog/openstack/volume/v3/requests/replace_metadata.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/restore_backup.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/set_tenant.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/snapshot_action.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/update_metadata.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/update_quota.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/update_snapshot.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/update_snapshot_metadata.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/update_volume.rb +20 -0
- data/lib/fog/openstack/volume/v3/requests/update_volume_type.rb +2 -0
- data/lib/fog/openstack/volume/v3.rb +94 -0
- data/lib/fog/openstack/volume.rb +34 -0
- data/lib/fog/openstack/workflow/v2/requests/create_action.rb +28 -0
- data/lib/fog/openstack/workflow/v2/requests/create_action_execution.rb +31 -0
- data/lib/fog/openstack/workflow/v2/requests/create_cron_trigger.rb +55 -0
- data/lib/fog/openstack/workflow/v2/requests/create_environment.rb +31 -0
- data/lib/fog/openstack/workflow/v2/requests/create_execution.rb +30 -0
- data/lib/fog/openstack/workflow/v2/requests/create_workbook.rb +28 -0
- data/lib/fog/openstack/workflow/v2/requests/create_workflow.rb +28 -0
- data/lib/fog/openstack/workflow/v2/requests/delete_action.rb +25 -0
- data/lib/fog/openstack/workflow/v2/requests/delete_action_execution.rb +25 -0
- data/lib/fog/openstack/workflow/v2/requests/delete_cron_trigger.rb +25 -0
- data/lib/fog/openstack/workflow/v2/requests/delete_environment.rb +25 -0
- data/lib/fog/openstack/workflow/v2/requests/delete_execution.rb +25 -0
- data/lib/fog/openstack/workflow/v2/requests/delete_workbook.rb +25 -0
- data/lib/fog/openstack/workflow/v2/requests/delete_workflow.rb +25 -0
- data/lib/fog/openstack/workflow/v2/requests/get_action.rb +27 -0
- data/lib/fog/openstack/workflow/v2/requests/get_action_execution.rb +26 -0
- data/lib/fog/openstack/workflow/v2/requests/get_cron_trigger.rb +28 -0
- data/lib/fog/openstack/workflow/v2/requests/get_environment.rb +28 -0
- data/lib/fog/openstack/workflow/v2/requests/get_execution.rb +26 -0
- data/lib/fog/openstack/workflow/v2/requests/get_task.rb +27 -0
- data/lib/fog/openstack/workflow/v2/requests/get_workbook.rb +28 -0
- data/lib/fog/openstack/workflow/v2/requests/get_workflow.rb +28 -0
- data/lib/fog/openstack/workflow/v2/requests/list_action_executions.rb +28 -0
- data/lib/fog/openstack/workflow/v2/requests/list_actions.rb +30 -0
- data/lib/fog/openstack/workflow/v2/requests/list_cron_triggers.rb +28 -0
- data/lib/fog/openstack/workflow/v2/requests/list_environments.rb +28 -0
- data/lib/fog/openstack/workflow/v2/requests/list_executions.rb +28 -0
- data/lib/fog/openstack/workflow/v2/requests/list_services.rb +28 -0
- data/lib/fog/openstack/workflow/v2/requests/list_tasks.rb +28 -0
- data/lib/fog/openstack/workflow/v2/requests/list_workbooks.rb +28 -0
- data/lib/fog/openstack/workflow/v2/requests/list_workflows.rb +30 -0
- data/lib/fog/openstack/workflow/v2/requests/rerun_task.rb +33 -0
- data/lib/fog/openstack/workflow/v2/requests/update_action.rb +28 -0
- data/lib/fog/openstack/workflow/v2/requests/update_action_execution.rb +33 -0
- data/lib/fog/openstack/workflow/v2/requests/update_environment.rb +31 -0
- data/lib/fog/openstack/workflow/v2/requests/update_execution.rb +33 -0
- data/lib/fog/openstack/workflow/v2/requests/update_workbook.rb +28 -0
- data/lib/fog/openstack/workflow/v2/requests/update_workflow.rb +28 -0
- data/lib/fog/openstack/workflow/v2/requests/validate_action.rb +28 -0
- data/lib/fog/openstack/workflow/v2/requests/validate_workbook.rb +28 -0
- data/lib/fog/openstack/workflow/v2/requests/validate_workflow.rb +28 -0
- data/lib/fog/openstack/workflow/v2.rb +143 -0
- data/lib/fog/openstack/workflow.rb +14 -0
- data/lib/fog/openstack.rb +148 -0
- data/playbooks/.gitkeep +0 -0
- data/playbooks/fog-openstack-unittest-spec/run.yaml +56 -0
- data/playbooks/fog-openstack-unittest-test/run.yaml +56 -0
- data/supported.md +55 -0
- data/unit/auth/catalog_test.rb +252 -0
- data/unit/auth/name_test.rb +115 -0
- data/unit/auth/token_test.rb +478 -0
- data/unit/auth_helper.rb +102 -0
- data/unit/test_helper.rb +6 -0
- metadata +1458 -0
data/README.md
ADDED
@@ -0,0 +1,573 @@
|
|
1
|
+
# Fog::OpenStack
|
2
|
+
|
3
|
+
[](http://badge.fury.io/rb/fog-openstack) [](https://travis-ci.org/fog/fog-openstack) [](https://gemnasium.com/fog/fog-openstack) [](https://coveralls.io/github/fog/fog-openstack?branch=master) [](https://codeclimate.com/github/fog/fog-openstack) [](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
|
+
* Keystone endpoints are version less. Version 3 is the default as v2.0 is deprecated. Meanwhile Keystone V3 still supports v2.0 for backward compatibility. Therefore passing a tenant instead of a project (along with a domain) makes Keystone provide v2.0 token.
|
46
|
+
Connection parameters:
|
47
|
+
|
48
|
+
```ruby
|
49
|
+
@connection_params = {
|
50
|
+
openstack_auth_url: "http://devstack.test:5000",
|
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 to either provide a tenant name (`openstack_tenant`)
|
59
|
+
or a tenant id (`openstack_tenant_id`). Alternatively you can use `:openstack_identity_api_version` parameter with 'v2.0'.
|
60
|
+
|
61
|
+
```ruby
|
62
|
+
@connection_params = {
|
63
|
+
openstack_auth_url: "http://devstack.test:5000",
|
64
|
+
openstack_username: "admin",
|
65
|
+
openstack_api_key: "password",
|
66
|
+
openstack_tenant: "admin"
|
67
|
+
}
|
68
|
+
```
|
69
|
+
|
70
|
+
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.
|
71
|
+
|
72
|
+
If you need a version of OpenStack to test against, get youself a copy of [DevStack](http://docs.openstack.org/developer/devstack/).
|
73
|
+
|
74
|
+
### Networking Gotcha
|
75
|
+
|
76
|
+
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.
|
77
|
+
|
78
|
+
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).
|
79
|
+
|
80
|
+
### Compute (Nova)
|
81
|
+
|
82
|
+
Initialise a connection to the compute service:
|
83
|
+
|
84
|
+
```ruby
|
85
|
+
compute = Fog::OpenStack::Compute.new(@connection_params)
|
86
|
+
```
|
87
|
+
|
88
|
+
Get a list of available images for use with booting new instances:
|
89
|
+
|
90
|
+
```ruby
|
91
|
+
p compute.images
|
92
|
+
# => <Fog::OpenStack::Compute::Images
|
93
|
+
# filters={},
|
94
|
+
# server=nil
|
95
|
+
# [
|
96
|
+
# <Fog::OpenStack::Compute::Image
|
97
|
+
# id="57a67f8a-7bae-4578-b684-b9b4dcd48d7f",
|
98
|
+
# ...
|
99
|
+
# >
|
100
|
+
# ]
|
101
|
+
# >
|
102
|
+
```
|
103
|
+
|
104
|
+
List available flavors so we can decide how powerful to make this instance:
|
105
|
+
|
106
|
+
```ruby
|
107
|
+
p compute.flavors
|
108
|
+
# => <Fog::OpenStack::Compute::Flavors
|
109
|
+
# [
|
110
|
+
# <Fog::OpenStack::Compute::Flavor
|
111
|
+
# id="1",
|
112
|
+
# name="m1.tiny",
|
113
|
+
# ram=512,
|
114
|
+
# disk=1,
|
115
|
+
# vcpus=1,
|
116
|
+
# ...
|
117
|
+
# >,
|
118
|
+
# <Fog::OpenStack::Compute::Flavor
|
119
|
+
# id="2",
|
120
|
+
# name="m1.small",
|
121
|
+
# ram=2048,
|
122
|
+
# disk=20,
|
123
|
+
# vcpus=1,
|
124
|
+
# ...
|
125
|
+
# >,
|
126
|
+
# ...
|
127
|
+
|
128
|
+
```
|
129
|
+
|
130
|
+
Now we know the `id` numbers of a valid image and a valid flavor, we can instantiate an instance:
|
131
|
+
|
132
|
+
```ruby
|
133
|
+
flavor = compute.flavors[0]
|
134
|
+
image = compute.images[0]
|
135
|
+
instance = compute.servers.create name: 'test',
|
136
|
+
image_ref: image.id,
|
137
|
+
flavor_ref: flavor.id
|
138
|
+
|
139
|
+
# Optionally, wait for the instance to provision before continuing
|
140
|
+
instance.wait_for { ready? }
|
141
|
+
# => {:duration=>17.359134}
|
142
|
+
|
143
|
+
p instance
|
144
|
+
# => <Fog::OpenStack::Compute::Server
|
145
|
+
# id="63633125-26b5-4fe1-a909-0f44d1ab3337",
|
146
|
+
# instance_name=nil,
|
147
|
+
# 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"}]},
|
148
|
+
# flavor={"id"=>"2"},
|
149
|
+
# host_id="f5ea01262720d02e886508bc4fa994782c516557d232c72aeb79638e",
|
150
|
+
# image={"id"=>"57a67f8a-7bae-4578-b684-b9b4dcd48d7f"},
|
151
|
+
# name="test",
|
152
|
+
# personality=nil,
|
153
|
+
# progress=0,
|
154
|
+
# accessIPv4="",
|
155
|
+
# accessIPv6="",
|
156
|
+
# availability_zone="nova",
|
157
|
+
# user_data_encoded=nil,
|
158
|
+
# state="ACTIVE",
|
159
|
+
# created=2016-03-07 08:07:36 UTC,
|
160
|
+
# updated=2016-03-07 08:07:52 UTC,
|
161
|
+
# tenant_id="06a9a90c60074cdeae5f7fdd0048d9ac"
|
162
|
+
# ...
|
163
|
+
# >
|
164
|
+
```
|
165
|
+
|
166
|
+
And destroy it when we're done:
|
167
|
+
|
168
|
+
```ruby
|
169
|
+
instance.destroy
|
170
|
+
# => true
|
171
|
+
```
|
172
|
+
|
173
|
+
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/).
|
174
|
+
|
175
|
+
Allow TCP traffic through port 22:
|
176
|
+
|
177
|
+
```ruby
|
178
|
+
security_group = compute.security_groups.create name: "Test SSH",
|
179
|
+
description: "Allow access to port 22"
|
180
|
+
# => <Fog::OpenStack::Compute::SecurityGroup
|
181
|
+
# id="e5d53d00-b3f9-471a-b90f-985694b966ed",
|
182
|
+
# name="Test SSH",
|
183
|
+
# description="Allow access to port 22",
|
184
|
+
# security_group_rules= <Fog::OpenStack::Compute::SecurityGroupRules
|
185
|
+
# [
|
186
|
+
|
187
|
+
# ]
|
188
|
+
# >,
|
189
|
+
# tenant_id="06a9a90c60074cdeae5f7fdd0048d9ac"
|
190
|
+
# >
|
191
|
+
|
192
|
+
compute.security_group_rules.create parent_group_id: security_group.id,
|
193
|
+
ip_protocol: "tcp",
|
194
|
+
from_port: 22,
|
195
|
+
to_port: 22
|
196
|
+
|
197
|
+
key_pair = compute.key_pairs.create name: "My Public Key",
|
198
|
+
public_key: "/full/path/to/ssh.pub"
|
199
|
+
# => <Fog::OpenStack::Compute::KeyPair
|
200
|
+
# name="My Public Key",
|
201
|
+
# ...
|
202
|
+
# user_id="20746f49211e4037a91269df6a3fbf7b",
|
203
|
+
# id=nil
|
204
|
+
# >
|
205
|
+
```
|
206
|
+
|
207
|
+
Now create a new server using the security group and keypair we created:
|
208
|
+
|
209
|
+
```ruby
|
210
|
+
instance = compute.servers.create name: "Test 2",
|
211
|
+
image_ref: image.id,
|
212
|
+
flavor_ref: flavor.id,
|
213
|
+
key_name: key_pair.name,
|
214
|
+
security_groups: security_group
|
215
|
+
# => <Fog::OpenStack::Compute::Server
|
216
|
+
# id="e18ebdfb-e5f5-4a45-929f-4cc9926dc2c7",
|
217
|
+
# name="Test 2",
|
218
|
+
# state="ACTIVE",
|
219
|
+
# tenant_id="06a9a90c60074cdeae5f7fdd0048d9ac",
|
220
|
+
# key_name="My Public Key",
|
221
|
+
# >
|
222
|
+
# (some data omitted for brevity)
|
223
|
+
```
|
224
|
+
|
225
|
+
Finally, assign a floating IP address to make this instance sit under a world-visible public IP address:
|
226
|
+
|
227
|
+
```ruby
|
228
|
+
pool_name = compute.addresses.get_address_pools[0]['name']
|
229
|
+
floating_ip_address = compute.addresses.create pool: pool_name
|
230
|
+
instance.associate_address floating_ip_address.ip
|
231
|
+
|
232
|
+
p floating_ip_address
|
233
|
+
# => <Fog::OpenStack::Compute::Address
|
234
|
+
# id="54064324-ce7d-448d-9753-94497b29dc91",
|
235
|
+
# ip="1.2.3.4",
|
236
|
+
# pool="external",
|
237
|
+
# fixed_ip="192.168.0.96",
|
238
|
+
# instance_id="e18ebdfb-e5f5-4a45-929f-4cc9926dc2c7"
|
239
|
+
# >
|
240
|
+
```
|
241
|
+
|
242
|
+
Now you can SSH into the instance:
|
243
|
+
|
244
|
+
```
|
245
|
+
$ ssh cirros@1.2.3.4
|
246
|
+
The authenticity of host '1.2.3.4 (1.2.3.4)' can't be established.
|
247
|
+
RSA key fingerprint is SHA256:cB0L/owUtcHsMhFhsuSZXxK4oRg/uqP/6IriUomQnQQ.
|
248
|
+
Are you sure you want to continue connecting (yes/no)? yes
|
249
|
+
Warning: Permanently added '1.2.3.4' (RSA) to the list of known hosts.
|
250
|
+
$ pwd
|
251
|
+
/home/cirros
|
252
|
+
```
|
253
|
+
|
254
|
+
### Volume (Cinder)
|
255
|
+
|
256
|
+
Create and attach a volume to a running instance:
|
257
|
+
|
258
|
+
```ruby
|
259
|
+
compute = Fog::OpenStack::Compute.new(@connection_params)
|
260
|
+
|
261
|
+
volume = compute.volumes.create name: "Test",
|
262
|
+
description: "Testing",
|
263
|
+
size: 1
|
264
|
+
# => <Fog::OpenStack::Compute::Volume
|
265
|
+
# id="4a212986-c6b6-4a93-8319-c6a98e347750",
|
266
|
+
# name="Test",
|
267
|
+
# description="Testing",
|
268
|
+
# size=1,
|
269
|
+
# availability_zone="Production",
|
270
|
+
# created_at="2016-03-07T13:40:43.914063",
|
271
|
+
# attachments=[{}]
|
272
|
+
# >
|
273
|
+
|
274
|
+
flavor = compute.flavors[3]
|
275
|
+
image = compute.images[0]
|
276
|
+
instance = compute.servers.create name: "test",
|
277
|
+
image_ref: image.id,
|
278
|
+
flavor_ref: flavor.id
|
279
|
+
instance.wait_for { ready? }
|
280
|
+
|
281
|
+
volume.reload
|
282
|
+
|
283
|
+
instance.attach_volume(volume.id, "/dev/vdb")
|
284
|
+
```
|
285
|
+
|
286
|
+
Detach volume and create a snapshot:
|
287
|
+
|
288
|
+
```ruby
|
289
|
+
instance.detach_volume(volume.id)
|
290
|
+
volume.reload
|
291
|
+
|
292
|
+
compute.snapshots.create volume_id: volume.id,
|
293
|
+
name: "test",
|
294
|
+
description: "test"
|
295
|
+
# => <Fog::OpenStack::Compute::Snapshot
|
296
|
+
# id="7a8c9192-25ee-4364-be91-070b7a6d9855",
|
297
|
+
# name="test",
|
298
|
+
# description="test",
|
299
|
+
# volume_id="4a212986-c6b6-4a93-8319-c6a98e347750",
|
300
|
+
# status="creating",
|
301
|
+
# size=1,
|
302
|
+
# created_at="2016-03-07T13:47:11.543814"
|
303
|
+
# >
|
304
|
+
```
|
305
|
+
|
306
|
+
Destroy a volume:
|
307
|
+
```ruby
|
308
|
+
volume.destroy
|
309
|
+
# => true
|
310
|
+
```
|
311
|
+
|
312
|
+
### Image (Glance)
|
313
|
+
|
314
|
+
Download Glance image:
|
315
|
+
|
316
|
+
```ruby
|
317
|
+
|
318
|
+
image = Fog::OpenStack::Image.new(@connection_params)
|
319
|
+
|
320
|
+
image_out = File.open("/tmp/cirros-image-download", 'wb')
|
321
|
+
|
322
|
+
streamer = lambda do |chunk, _, _|
|
323
|
+
image_out.write chunk
|
324
|
+
end
|
325
|
+
|
326
|
+
image.download_image(image.images.first.id, response_block: streamer)
|
327
|
+
|
328
|
+
```
|
329
|
+
|
330
|
+
Create Glance image from file or URL:
|
331
|
+
|
332
|
+
```ruby
|
333
|
+
|
334
|
+
cirros_location = "http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img"
|
335
|
+
image_out = File.open("/tmp/cirros-image-#{SecureRandom.hex}", 'wb')
|
336
|
+
|
337
|
+
streamer = lambda do |chunk, _, _|
|
338
|
+
image_out.write chunk
|
339
|
+
end
|
340
|
+
|
341
|
+
Excon.get cirros_location, response_block: streamer
|
342
|
+
image_out.close
|
343
|
+
|
344
|
+
image_handle = image.images.create name: "cirros",
|
345
|
+
disk_format: "qcow2",
|
346
|
+
container_format: "bare"
|
347
|
+
|
348
|
+
# => <Fog::OpenStack::Image::V2::Image
|
349
|
+
# id="67c4d02c-5601-4619-bd14-d2f7f96a046c",
|
350
|
+
# name="cirros",
|
351
|
+
# visibility="private",
|
352
|
+
# tags=[],
|
353
|
+
# self="/v2/images/67c4d02c-5601-4619-bd14-d2f7f96a046c",
|
354
|
+
# size=nil,
|
355
|
+
# disk_format="qcow2",
|
356
|
+
# container_format="bare",
|
357
|
+
# id="67c4d02c-5601-4619-bd14-d2f7f96a046c",
|
358
|
+
# checksum=nil,
|
359
|
+
# self="/v2/images/67c4d02c-5601-4619-bd14-d2f7f96a046c",
|
360
|
+
# file="/v2/images/67c4d02c-5601-4619-bd14-d2f7f96a046c/file",
|
361
|
+
# min_disk=0,
|
362
|
+
# created_at="2016-10-31T03:38:28Z",
|
363
|
+
# updated_at="2016-10-31T03:38:28Z",
|
364
|
+
# protected=false,
|
365
|
+
# status="queued",
|
366
|
+
# min_ram=0,
|
367
|
+
# owner="6b9ec8080b8443c5afe2267a39b9bf74",
|
368
|
+
# properties=nil,
|
369
|
+
# metadata=nil,
|
370
|
+
# location=nil,
|
371
|
+
# network_allocated=nil,
|
372
|
+
# base_image_ref=nil,
|
373
|
+
# image_type=nil,
|
374
|
+
# instance_uuid=nil,
|
375
|
+
# user_id=nil
|
376
|
+
# >
|
377
|
+
|
378
|
+
|
379
|
+
image_handle.upload_data File.binread(image_out.path)
|
380
|
+
|
381
|
+
```
|
382
|
+
|
383
|
+
Destroy image:
|
384
|
+
|
385
|
+
```ruby
|
386
|
+
cirros = image.images.get("4beedb46-e32f-4ef3-a87b-7f1234294dc1")
|
387
|
+
cirros.destroy
|
388
|
+
```
|
389
|
+
|
390
|
+
### Identity (Keystone)
|
391
|
+
|
392
|
+
List domains (Keystone V3 only):
|
393
|
+
|
394
|
+
```ruby
|
395
|
+
identity = Fog::OpenStack::Identity.new(@connection_params)
|
396
|
+
|
397
|
+
identity.domains
|
398
|
+
# => <Fog::OpenStack::Identity::V3::Domains
|
399
|
+
# [
|
400
|
+
# <Fog::OpenStack::Identity::V3::Domain
|
401
|
+
# id="default",
|
402
|
+
# description="",
|
403
|
+
# enabled=true,
|
404
|
+
# name="Default",
|
405
|
+
# >
|
406
|
+
# ]
|
407
|
+
# >
|
408
|
+
```
|
409
|
+
|
410
|
+
List projects (aka tenants):
|
411
|
+
|
412
|
+
```ruby
|
413
|
+
identity.projects
|
414
|
+
# => <Fog::OpenStack::Identity::V3::Projects
|
415
|
+
# [
|
416
|
+
# <Fog::OpenStack::Identity::V3::Project
|
417
|
+
# id="008e5537d3424295a03560abc923693c",
|
418
|
+
# domain_id="default",
|
419
|
+
# description="Project 1",
|
420
|
+
# enabled=true,
|
421
|
+
# name="project_1",
|
422
|
+
# >,
|
423
|
+
# ...
|
424
|
+
# ]
|
425
|
+
|
426
|
+
# On Keystone V2
|
427
|
+
identity.tenants
|
428
|
+
# => <Fog::OpenStack::Identity::V2::Tenants
|
429
|
+
# [ ... ]
|
430
|
+
```
|
431
|
+
|
432
|
+
List users:
|
433
|
+
|
434
|
+
```ruby
|
435
|
+
identity.users
|
436
|
+
# => <Fog::OpenStack::Identity::V3::Users
|
437
|
+
# [ ... ]
|
438
|
+
```
|
439
|
+
|
440
|
+
Create/destroy new user:
|
441
|
+
|
442
|
+
```ruby
|
443
|
+
project_id = identity.projects[0].id
|
444
|
+
|
445
|
+
user = identity.users.create name: "test",
|
446
|
+
project_id: project_id,
|
447
|
+
email: "test@test.com",
|
448
|
+
password: "test"
|
449
|
+
# => <Fog::OpenStack::Identity::V3::User
|
450
|
+
# id="474a59153ebd4e709938e5e9b614dc57",
|
451
|
+
# default_project_id=nil,
|
452
|
+
# description=nil,
|
453
|
+
# domain_id="default",
|
454
|
+
# email="test@test.com",
|
455
|
+
# enabled=true,
|
456
|
+
# name="test",
|
457
|
+
# password="test"
|
458
|
+
# >
|
459
|
+
|
460
|
+
user.destroy
|
461
|
+
# => true
|
462
|
+
```
|
463
|
+
|
464
|
+
Create/destroy new tenant:
|
465
|
+
|
466
|
+
```ruby
|
467
|
+
|
468
|
+
project = identity.projects.create name: "test",
|
469
|
+
description: "test"
|
470
|
+
# => <Fog::OpenStack::Identity::V3::Project
|
471
|
+
# id="423559128a7249f2973cdb7d5d581c4d",
|
472
|
+
# domain_id="default",
|
473
|
+
# description="test",
|
474
|
+
# enabled=true,
|
475
|
+
# name="test",
|
476
|
+
# parent_id=nil,
|
477
|
+
# subtree=nil,
|
478
|
+
# parents=nil
|
479
|
+
# >
|
480
|
+
|
481
|
+
project.destroy
|
482
|
+
# => true
|
483
|
+
```
|
484
|
+
|
485
|
+
Grant user role on tenant and revoke it:
|
486
|
+
|
487
|
+
```ruby
|
488
|
+
role = identity.roles.select{|role| role.name == "_member_"}[0]
|
489
|
+
# => <Fog::OpenStack::Identity::V3::Role
|
490
|
+
# id="9fe2ff9ee4384b1894a90878d3e92bab",
|
491
|
+
# name="_member_",
|
492
|
+
# >
|
493
|
+
|
494
|
+
project.grant_role_to_user(role.id, user.id)
|
495
|
+
|
496
|
+
project.revoke_role_from_user(role.id, user.id)
|
497
|
+
```
|
498
|
+
|
499
|
+
### Networking (Neutron)
|
500
|
+
|
501
|
+
Set up a project's public gateway (needed for external access):
|
502
|
+
|
503
|
+
```ruby
|
504
|
+
|
505
|
+
identity = Fog::OpenStack::Identity.new(@connection_params)
|
506
|
+
|
507
|
+
tenants = identity.projects.select do |project|
|
508
|
+
project.name == @connection_params[:openstack_project_name]
|
509
|
+
end
|
510
|
+
|
511
|
+
tenant_id = tenants[0].id
|
512
|
+
|
513
|
+
neutron = Fog::OpenStack::Network.new(@connection_params)
|
514
|
+
|
515
|
+
network = neutron.networks.create name: "default",
|
516
|
+
tenant_id: tenant_id
|
517
|
+
|
518
|
+
subnet = network.subnets.create name: "default",
|
519
|
+
cidr: "192.168.0.0/24",
|
520
|
+
network_id: network.id,
|
521
|
+
ip_version: 4,
|
522
|
+
dns_nameservers: ["8.8.8.8", "8.8.4.4"],
|
523
|
+
tenant_id: tenant_id
|
524
|
+
|
525
|
+
external_network = neutron.networks.select(&:router_external)[0]
|
526
|
+
|
527
|
+
router = neutron.routers.create name: 'default',
|
528
|
+
tenant_id: tenant_id,
|
529
|
+
external_gateway_info: external_network.id
|
530
|
+
|
531
|
+
neutron.add_router_interface router.id, subnet.id
|
532
|
+
|
533
|
+
```
|
534
|
+
|
535
|
+
### Further Reading
|
536
|
+
|
537
|
+
* See [the documentation directory](https://github.com/fog/fog-openstack/tree/master/lib/fog/openstack/docs) for more examples.
|
538
|
+
* Read the [OpenStack API documentation](http://developer.openstack.org/api-ref.html).
|
539
|
+
* Also, remember that reading the code itself is the best way to educate yourself on how best to interact with this gem.
|
540
|
+
|
541
|
+
## Development
|
542
|
+
|
543
|
+
```
|
544
|
+
$ git clone https://github.com/fog/fog-openstack.git # Clone repository
|
545
|
+
$ cd fog-openstack; bin/setup # Install dependencies from project directory
|
546
|
+
$ bundle exec rake test # Run tests
|
547
|
+
$ bundle exec rake spec # Run tests
|
548
|
+
$ bin/console # Run interactive prompt that allows you to experiment (optional)
|
549
|
+
$ bundle exec rake install # Install gem to your local machine (optional)
|
550
|
+
```
|
551
|
+
|
552
|
+
You can also use a docker image for development and running tests. Once you have
|
553
|
+
cloned the repository, it can be run with:
|
554
|
+
```
|
555
|
+
$ docker-compose up test
|
556
|
+
$ docker-compose up ruby # Start a container with the ruby environment
|
557
|
+
```
|
558
|
+
|
559
|
+
In order to release a new version, perform the following steps:
|
560
|
+
|
561
|
+
1. Update version number in `version.rb`.
|
562
|
+
2. Run `bundle exec rake release`, which will create a git tag for the version.
|
563
|
+
3. Push git commits and tags.
|
564
|
+
4. Push the `.gem` file to [rubygems.org](https://rubygems.org).
|
565
|
+
|
566
|
+
## Contributing
|
567
|
+
|
568
|
+
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.
|
569
|
+
|
570
|
+
|
571
|
+
## License
|
572
|
+
|
573
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
require 'rubocop/rake_task'
|
3
|
+
require 'rake/testtask'
|
4
|
+
|
5
|
+
RuboCop::RakeTask.new
|
6
|
+
|
7
|
+
task :default => ['tests:mock', 'tests:spec', 'tests:unit']
|
8
|
+
|
9
|
+
task :mock => 'tests:mock'
|
10
|
+
|
11
|
+
task :spec => "tests:spec"
|
12
|
+
|
13
|
+
task :unit => 'tests:unit'
|
14
|
+
|
15
|
+
namespace :tests do
|
16
|
+
desc 'Run fog-openstack tests with Mock class'
|
17
|
+
Rake::TestTask.new do |t|
|
18
|
+
ENV['FOG_MOCK']= ENV['FOG_MOCK'].nil? ? 'true' : ENV['FOG_MOCK']
|
19
|
+
|
20
|
+
t.name = 'mock'
|
21
|
+
t.libs.push [ "lib", "test" ]
|
22
|
+
t.test_files = FileList['test/**/*.rb']
|
23
|
+
t.verbose = true
|
24
|
+
end
|
25
|
+
|
26
|
+
desc 'Run fog-openstack tests with RSpec and VCR'
|
27
|
+
Rake::TestTask.new do |t|
|
28
|
+
t.name = 'spec'
|
29
|
+
t.libs.push [ "lib", "spec" ]
|
30
|
+
t.pattern = 'spec/**/*_spec.rb'
|
31
|
+
t.verbose = true
|
32
|
+
end
|
33
|
+
|
34
|
+
desc 'Run fog-openstack unit tests'
|
35
|
+
Rake::TestTask.new do |t|
|
36
|
+
t.name = 'unit'
|
37
|
+
t.libs.push [ "lib", "unit" ]
|
38
|
+
t.pattern = 'unit/**/*_test.rb'
|
39
|
+
t.verbose = true
|
40
|
+
end
|
41
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "fog/openstack"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/docker-compose.yml
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
#
|
2
|
+
# This file allows to:
|
3
|
+
# - create a ruby docker environment for development
|
4
|
+
# - run a testsuite from scratch like .travis.yml
|
5
|
+
#
|
6
|
+
# Run all tests with
|
7
|
+
#
|
8
|
+
# $ docker-compose up test
|
9
|
+
#
|
10
|
+
# Create the develompent environment with
|
11
|
+
#
|
12
|
+
# $ docker-compose up -d ruby
|
13
|
+
# $ docker exec -ti fogopenstack_ruby_1 /bin/bash
|
14
|
+
#
|
15
|
+
version: '2'
|
16
|
+
|
17
|
+
services:
|
18
|
+
|
19
|
+
ruby:
|
20
|
+
image: ruby:2.4-stretch
|
21
|
+
cap_add:
|
22
|
+
- SYS_PTRACE
|
23
|
+
volumes:
|
24
|
+
- .:/code:z
|
25
|
+
- .:/home/travis/build/fog/fog-openstack:z
|
26
|
+
entrypoint: tail -f /etc/hosts
|
27
|
+
|
28
|
+
test:
|
29
|
+
image: ruby:2.4-stretch
|
30
|
+
cap_add:
|
31
|
+
- SYS_PTRACE
|
32
|
+
volumes:
|
33
|
+
- .:/code:z
|
34
|
+
- .:/home/travis/build/fog/fog-openstack:z
|
35
|
+
environment:
|
36
|
+
- JRUBY_OPTS=--debug
|
37
|
+
working_dir: /home/travis/build/fog/fog-openstack
|
38
|
+
entrypoint: |
|
39
|
+
bash -c '
|
40
|
+
gem update bundler --verbose
|
41
|
+
bundle install --verbose
|
42
|
+
bundle exec rake test
|
43
|
+
bundle exec rake spec
|
44
|
+
'
|