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
@@ -0,0 +1,195 @@
|
|
1
|
+
require 'fog/openstack/models/model'
|
2
|
+
|
3
|
+
module Fog
|
4
|
+
module OpenStack
|
5
|
+
class Storage
|
6
|
+
class File < Fog::OpenStack::Model
|
7
|
+
identity :key, :aliases => 'name'
|
8
|
+
|
9
|
+
attribute :access_control_allow_origin, :aliases => ['Access-Control-Allow-Origin']
|
10
|
+
attribute :cache_control, :aliases => ['Cache-Control']
|
11
|
+
attribute :content_length, :aliases => ['bytes', 'Content-Length'], :type => :integer
|
12
|
+
attribute :content_type, :aliases => ['content_type', 'Content-Type']
|
13
|
+
attribute :content_disposition, :aliases => ['content_disposition', 'Content-Disposition']
|
14
|
+
attribute :etag, :aliases => ['hash', 'Etag']
|
15
|
+
attribute :last_modified, :aliases => ['last_modified', 'Last-Modified'], :type => :time
|
16
|
+
attribute :metadata
|
17
|
+
attribute :origin, :aliases => ['Origin']
|
18
|
+
# @!attribute [rw] delete_at
|
19
|
+
# A Unix Epoch Timestamp, in integer form, representing the time when this object will be automatically deleted.
|
20
|
+
# @return [Integer] the unix epoch timestamp of when this object will be automatically deleted
|
21
|
+
# @see http://docs.openstack.org/developer/swift/overview_expiring_objects.html
|
22
|
+
attribute :delete_at, :aliases => ['X-Delete-At']
|
23
|
+
|
24
|
+
# @!attribute [rw] delete_after
|
25
|
+
# A number of seconds representing how long from now this object will be automatically deleted.
|
26
|
+
# @return [Integer] the number of seconds until this object will be automatically deleted
|
27
|
+
# @see http://docs.openstack.org/developer/swift/overview_expiring_objects.html
|
28
|
+
attribute :delete_after, :aliases => ['X-Delete-After']
|
29
|
+
|
30
|
+
# @!attribute [rw] content_encoding
|
31
|
+
# When you create an object or update its metadata, you can optionally set the Content-Encoding metadata.
|
32
|
+
# This metadata enables you to indicate that the object content is compressed without losing the identity of the
|
33
|
+
# underlying media type (Content-Type) of the file, such as a video.
|
34
|
+
# @see http://docs.openstack.org/developer/swift/api/use_content-encoding_metadata.html#use-content-encoding-metadata
|
35
|
+
attribute :content_encoding, :aliases => 'Content-Encoding'
|
36
|
+
|
37
|
+
def initialize(new_attributes = {})
|
38
|
+
super
|
39
|
+
@dirty = if last_modified then false else true end
|
40
|
+
end
|
41
|
+
|
42
|
+
def body
|
43
|
+
attributes[:body] ||= if last_modified
|
44
|
+
collection.get(identity).try(:body) || ''
|
45
|
+
else
|
46
|
+
''
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def body=(new_body)
|
51
|
+
attributes[:body] = new_body
|
52
|
+
@dirty = true
|
53
|
+
end
|
54
|
+
|
55
|
+
attr_reader :directory
|
56
|
+
|
57
|
+
def copy(target_directory_key, target_file_key, options = {})
|
58
|
+
requires :directory, :key
|
59
|
+
options['Content-Type'] ||= content_type if content_type
|
60
|
+
options['Access-Control-Allow-Origin'] ||= access_control_allow_origin if access_control_allow_origin
|
61
|
+
options['Origin'] ||= origin if origin
|
62
|
+
options['Content-Encoding'] ||= content_encoding if content_encoding
|
63
|
+
service.copy_object(directory.key, key, target_directory_key, target_file_key, options)
|
64
|
+
target_directory = service.directories.new(:key => target_directory_key)
|
65
|
+
target_directory.files.get(target_file_key)
|
66
|
+
end
|
67
|
+
|
68
|
+
def destroy
|
69
|
+
requires :directory, :key
|
70
|
+
service.delete_object(directory.key, key)
|
71
|
+
@dirty = true
|
72
|
+
true
|
73
|
+
end
|
74
|
+
|
75
|
+
def metadata
|
76
|
+
attributes[:metadata] ||= headers_to_metadata
|
77
|
+
end
|
78
|
+
|
79
|
+
def owner=(new_owner)
|
80
|
+
if new_owner
|
81
|
+
attributes[:owner] = {
|
82
|
+
:display_name => new_owner['DisplayName'],
|
83
|
+
:id => new_owner['ID']
|
84
|
+
}
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
def public=(new_public)
|
89
|
+
new_public
|
90
|
+
end
|
91
|
+
|
92
|
+
# Get a url for file.
|
93
|
+
#
|
94
|
+
# required attributes: key
|
95
|
+
#
|
96
|
+
# @param expires [String] number of seconds (since 1970-01-01 00:00) before url expires
|
97
|
+
# @param options [Hash]
|
98
|
+
# @return [String] url
|
99
|
+
#
|
100
|
+
def url(expires, options = {})
|
101
|
+
requires :directory, :key
|
102
|
+
service.create_temp_url(directory.key, key, expires, "GET", options)
|
103
|
+
end
|
104
|
+
|
105
|
+
def public_url
|
106
|
+
requires :key
|
107
|
+
collection.get_url(key)
|
108
|
+
end
|
109
|
+
|
110
|
+
def save(options = {})
|
111
|
+
requires :directory, :key
|
112
|
+
options['Cache-Control'] = cache_control if cache_control
|
113
|
+
options['Content-Type'] = content_type if content_type
|
114
|
+
options['Content-Disposition'] = content_disposition if content_disposition
|
115
|
+
options['Access-Control-Allow-Origin'] = access_control_allow_origin if access_control_allow_origin
|
116
|
+
options['Origin'] = origin if origin
|
117
|
+
options['X-Delete-At'] = delete_at if delete_at
|
118
|
+
options['X-Delete-After'] = delete_after if delete_after
|
119
|
+
options['Content-Encoding'] = content_encoding if content_encoding
|
120
|
+
options.merge!(metadata_to_headers)
|
121
|
+
|
122
|
+
if not @dirty
|
123
|
+
data = service.post_object(directory.key, key, options)
|
124
|
+
else
|
125
|
+
requires :body
|
126
|
+
data = service.put_object(directory.key, key, body, options)
|
127
|
+
self.content_length = Fog::Storage.get_body_size(body)
|
128
|
+
self.content_type ||= Fog::Storage.get_content_type(body)
|
129
|
+
end
|
130
|
+
update_attributes_from(data)
|
131
|
+
refresh_metadata
|
132
|
+
|
133
|
+
true
|
134
|
+
end
|
135
|
+
|
136
|
+
private
|
137
|
+
|
138
|
+
attr_writer :directory
|
139
|
+
|
140
|
+
def refresh_metadata
|
141
|
+
metadata.reject! { |_k, v| v.nil? }
|
142
|
+
end
|
143
|
+
|
144
|
+
def headers_to_metadata
|
145
|
+
key_map = key_mapping
|
146
|
+
Hash[metadata_attributes.map { |k, v| [key_map[k], v] }]
|
147
|
+
end
|
148
|
+
|
149
|
+
def key_mapping
|
150
|
+
key_map = metadata_attributes
|
151
|
+
key_map.each_pair { |k, _v| key_map[k] = header_to_key(k) }
|
152
|
+
end
|
153
|
+
|
154
|
+
def header_to_key(opt)
|
155
|
+
opt.gsub(metadata_prefix, '').split('-').map { |k| k[0, 1].downcase + k[1..-1] }.join('_').to_sym
|
156
|
+
end
|
157
|
+
|
158
|
+
def metadata_to_headers
|
159
|
+
header_map = header_mapping
|
160
|
+
Hash[metadata.map { |k, v| [header_map[k], v] }]
|
161
|
+
end
|
162
|
+
|
163
|
+
def header_mapping
|
164
|
+
header_map = metadata.dup
|
165
|
+
header_map.each_pair { |k, _v| header_map[k] = key_to_header(k) }
|
166
|
+
end
|
167
|
+
|
168
|
+
def key_to_header(key)
|
169
|
+
metadata_prefix + key.to_s.split(/[-_]/).map(&:capitalize).join('-')
|
170
|
+
end
|
171
|
+
|
172
|
+
def metadata_attributes
|
173
|
+
if last_modified
|
174
|
+
headers = service.head_object(directory.key, key).headers
|
175
|
+
headers.reject! { |k, _v| !metadata_attribute?(k) }
|
176
|
+
else
|
177
|
+
{}
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
def metadata_attribute?(key)
|
182
|
+
key.to_s =~ /^#{metadata_prefix}/
|
183
|
+
end
|
184
|
+
|
185
|
+
def metadata_prefix
|
186
|
+
"X-Object-Meta-"
|
187
|
+
end
|
188
|
+
|
189
|
+
def update_attributes_from(data)
|
190
|
+
merge_attributes(data.headers.reject { |key, _value| ['Content-Length', 'Content-Type'].include?(key) })
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|
195
|
+
end
|
@@ -0,0 +1,95 @@
|
|
1
|
+
require 'fog/openstack/models/collection'
|
2
|
+
require 'fog/openstack/storage/models/file'
|
3
|
+
|
4
|
+
module Fog
|
5
|
+
module OpenStack
|
6
|
+
class Storage
|
7
|
+
class Files < Fog::OpenStack::Collection
|
8
|
+
attribute :directory
|
9
|
+
attribute :limit
|
10
|
+
attribute :marker
|
11
|
+
attribute :path
|
12
|
+
attribute :prefix
|
13
|
+
|
14
|
+
model Fog::OpenStack::Storage::File
|
15
|
+
|
16
|
+
def all(options = {})
|
17
|
+
requires :directory
|
18
|
+
options = {
|
19
|
+
'limit' => limit,
|
20
|
+
'marker' => marker,
|
21
|
+
'path' => path,
|
22
|
+
'prefix' => prefix
|
23
|
+
}.merge!(options)
|
24
|
+
merge_attributes(options)
|
25
|
+
parent = directory.collection.get(
|
26
|
+
directory.key,
|
27
|
+
options
|
28
|
+
)
|
29
|
+
if parent
|
30
|
+
# TODO: change to load_response?
|
31
|
+
load(parent.files.map(&:attributes))
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
alias each_file_this_page each
|
36
|
+
def each
|
37
|
+
if !block_given?
|
38
|
+
self
|
39
|
+
else
|
40
|
+
subset = dup.all
|
41
|
+
|
42
|
+
subset.each_file_this_page { |f| yield f }
|
43
|
+
while subset.length == (subset.limit || 10000)
|
44
|
+
subset = subset.all(:marker => subset.last.key)
|
45
|
+
subset.each_file_this_page { |f| yield f }
|
46
|
+
end
|
47
|
+
|
48
|
+
self
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
def get(key, &block)
|
53
|
+
requires :directory
|
54
|
+
data = service.get_object(directory.key, key, &block)
|
55
|
+
file_data = data.headers.merge(:body => data.body,
|
56
|
+
:key => key)
|
57
|
+
new(file_data)
|
58
|
+
rescue Fog::OpenStack::Storage::NotFound
|
59
|
+
nil
|
60
|
+
end
|
61
|
+
|
62
|
+
def get_url(key)
|
63
|
+
requires :directory
|
64
|
+
if directory.public_url
|
65
|
+
"#{directory.public_url}/#{Fog::OpenStack.escape(key, '/')}"
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
def get_http_url(key, expires, options = {})
|
70
|
+
requires :directory
|
71
|
+
service.get_object_http_url(directory.key, key, expires, options)
|
72
|
+
end
|
73
|
+
|
74
|
+
def get_https_url(key, expires, options = {})
|
75
|
+
requires :directory
|
76
|
+
service.get_object_https_url(directory.key, key, expires, options)
|
77
|
+
end
|
78
|
+
|
79
|
+
def head(key, _options = {})
|
80
|
+
requires :directory
|
81
|
+
data = service.head_object(directory.key, key)
|
82
|
+
file_data = data.headers.merge(:key => key)
|
83
|
+
new(file_data)
|
84
|
+
rescue Fog::OpenStack::Storage::NotFound
|
85
|
+
nil
|
86
|
+
end
|
87
|
+
|
88
|
+
def new(attributes = {})
|
89
|
+
requires :directory
|
90
|
+
super({:directory => directory}.merge!(attributes))
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Fog
|
2
|
+
module OpenStack
|
3
|
+
class Storage
|
4
|
+
class Real
|
5
|
+
# Copy object
|
6
|
+
#
|
7
|
+
# ==== Parameters
|
8
|
+
# * source_container_name<~String> - Name of source bucket
|
9
|
+
# * source_object_name<~String> - Name of source object
|
10
|
+
# * target_container_name<~String> - Name of bucket to create copy in
|
11
|
+
# * target_object_name<~String> - Name for new copy of object
|
12
|
+
# * options<~Hash> - Additional headers
|
13
|
+
def copy_object(source_container_name, source_object_name, target_container_name, target_object_name, options = {})
|
14
|
+
headers = {'X-Copy-From' => "/#{source_container_name}/#{source_object_name}"}.merge(options)
|
15
|
+
request(:expects => [201, 202],
|
16
|
+
:headers => headers,
|
17
|
+
:method => 'PUT',
|
18
|
+
:path => "#{Fog::OpenStack.escape(target_container_name)}/#{Fog::OpenStack.escape(target_object_name)}")
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Fog
|
2
|
+
module OpenStack
|
3
|
+
class Storage
|
4
|
+
class Real
|
5
|
+
# Delete an existing container
|
6
|
+
#
|
7
|
+
# ==== Parameters
|
8
|
+
# * name<~String> - Name of container to delete
|
9
|
+
#
|
10
|
+
def delete_container(name)
|
11
|
+
request(
|
12
|
+
:expects => 204,
|
13
|
+
:method => 'DELETE',
|
14
|
+
:path => Fog::OpenStack.escape(name)
|
15
|
+
)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
module Fog
|
2
|
+
module OpenStack
|
3
|
+
class Storage
|
4
|
+
class Real
|
5
|
+
# Deletes multiple objects or containers with a single request.
|
6
|
+
#
|
7
|
+
# To delete objects from a single container, +container+ may be provided
|
8
|
+
# and +object_names+ should be an Array of object names within the container.
|
9
|
+
#
|
10
|
+
# To delete objects from multiple containers or delete containers,
|
11
|
+
# +container+ should be +nil+ and all +object_names+ should be prefixed with a container name.
|
12
|
+
#
|
13
|
+
# Containers must be empty when deleted. +object_names+ are processed in the order given,
|
14
|
+
# so objects within a container should be listed first to empty the container.
|
15
|
+
#
|
16
|
+
# Up to 10,000 objects may be deleted in a single request.
|
17
|
+
# The server will respond with +200 OK+ for all requests.
|
18
|
+
# +response.body+ must be inspected for actual results.
|
19
|
+
#
|
20
|
+
# @example Delete objects from a container
|
21
|
+
# object_names = ['object', 'another/object']
|
22
|
+
# conn.delete_multiple_objects('my_container', object_names)
|
23
|
+
#
|
24
|
+
# @example Delete objects from multiple containers
|
25
|
+
# object_names = ['container_a/object', 'container_b/object']
|
26
|
+
# conn.delete_multiple_objects(nil, object_names)
|
27
|
+
#
|
28
|
+
# @example Delete a container and all it's objects
|
29
|
+
# object_names = ['my_container/object_a', 'my_container/object_b', 'my_container']
|
30
|
+
# conn.delete_multiple_objects(nil, object_names)
|
31
|
+
#
|
32
|
+
# @param container [String,nil] Name of container.
|
33
|
+
# @param object_names [Array<String>] Object names to be deleted.
|
34
|
+
# @param options [Hash] Additional request headers.
|
35
|
+
#
|
36
|
+
# @return [Excon::Response]
|
37
|
+
# * body [Hash] - Results of the operation.
|
38
|
+
# * "Number Not Found" [Integer] - Number of missing objects or containers.
|
39
|
+
# * "Response Status" [String] - Response code for the subrequest of the last failed operation.
|
40
|
+
# * "Errors" [Array<object_name, response_status>]
|
41
|
+
# * object_name [String] - Object that generated an error when the delete was attempted.
|
42
|
+
# * response_status [String] - Response status from the subrequest for object_name.
|
43
|
+
# * "Number Deleted" [Integer] - Number of objects or containers deleted.
|
44
|
+
# * "Response Body" [String] - Response body for "Response Status".
|
45
|
+
def delete_multiple_objects(container, object_names, options = {})
|
46
|
+
body = object_names.map do |name|
|
47
|
+
object_name = container ? "#{container}/#{name}" : name
|
48
|
+
URI.encode(object_name)
|
49
|
+
end.join("\n")
|
50
|
+
|
51
|
+
response = request({
|
52
|
+
:expects => 200,
|
53
|
+
:method => 'DELETE',
|
54
|
+
:headers => options.merge('Content-Type' => 'text/plain',
|
55
|
+
'Accept' => 'application/json'),
|
56
|
+
:body => body,
|
57
|
+
:query => {'bulk-delete' => true}
|
58
|
+
}, false)
|
59
|
+
response.body = Fog::JSON.decode(response.body)
|
60
|
+
response
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Fog
|
2
|
+
module OpenStack
|
3
|
+
class Storage
|
4
|
+
class Real
|
5
|
+
# Delete an existing object
|
6
|
+
#
|
7
|
+
# ==== Parameters
|
8
|
+
# * container<~String> - Name of container to delete
|
9
|
+
# * object<~String> - Name of object to delete
|
10
|
+
#
|
11
|
+
def delete_object(container, object)
|
12
|
+
request(
|
13
|
+
:expects => 204,
|
14
|
+
:method => 'DELETE',
|
15
|
+
:path => "#{Fog::OpenStack.escape(container)}/#{Fog::OpenStack.escape(object)}"
|
16
|
+
)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module Fog
|
2
|
+
module OpenStack
|
3
|
+
class Storage
|
4
|
+
class Real
|
5
|
+
# Delete a static large object.
|
6
|
+
#
|
7
|
+
# Deletes the SLO manifest +object+ and all segments that it references.
|
8
|
+
# The server will respond with +200 OK+ for all requests.
|
9
|
+
# +response.body+ must be inspected for actual results.
|
10
|
+
#
|
11
|
+
# @param container [String] Name of container.
|
12
|
+
# @param object [String] Name of the SLO manifest object.
|
13
|
+
# @param options [Hash] Additional request headers.
|
14
|
+
#
|
15
|
+
# @return [Excon::Response]
|
16
|
+
# * body [Hash] - Results of the operation.
|
17
|
+
# * "Number Not Found" [Integer] - Number of missing segments.
|
18
|
+
# * "Response Status" [String] - Response code for the subrequest of the last failed operation.
|
19
|
+
# * "Errors" [Array<object_name, response_status>]
|
20
|
+
# * object_name [String] - Object that generated an error when the delete was attempted.
|
21
|
+
# * response_status [String] - Response status from the subrequest for object_name.
|
22
|
+
# * "Number Deleted" [Integer] - Number of segments deleted.
|
23
|
+
# * "Response Body" [String] - Response body for Response Status.
|
24
|
+
#
|
25
|
+
# @see http://docs.openstack.org/api/openstack-object-storage/1.0/content/static-large-objects.html
|
26
|
+
def delete_static_large_object(container, object, options = {})
|
27
|
+
response = request({
|
28
|
+
:expects => 200,
|
29
|
+
:method => 'DELETE',
|
30
|
+
:headers => options.merge('Content-Type' => 'text/plain',
|
31
|
+
'Accept' => 'application/json'),
|
32
|
+
:path => "#{Fog::OpenStack.escape(container)}/#{Fog::OpenStack.escape(object)}",
|
33
|
+
:query => {'multipart-manifest' => 'delete'}
|
34
|
+
}, false)
|
35
|
+
response.body = Fog::JSON.decode(response.body)
|
36
|
+
response
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module Fog
|
2
|
+
module OpenStack
|
3
|
+
class Storage
|
4
|
+
class Real
|
5
|
+
# Get details for container and total bytes stored
|
6
|
+
#
|
7
|
+
# ==== Parameters
|
8
|
+
# * container<~String> - Name of container to retrieve info for
|
9
|
+
# * options<~String>:
|
10
|
+
# * 'limit'<~String> - Maximum number of objects to return
|
11
|
+
# * 'marker'<~String> - Only return objects whose name is greater than marker
|
12
|
+
# * 'prefix'<~String> - Limits results to those starting with prefix
|
13
|
+
# * 'path'<~String> - Return objects nested in the pseudo path
|
14
|
+
#
|
15
|
+
# ==== Returns
|
16
|
+
# * response<~Excon::Response>:
|
17
|
+
# * headers<~Hash>:
|
18
|
+
# * 'X-Account-Container-Count'<~String> - Count of containers
|
19
|
+
# * 'X-Account-Bytes-Used'<~String> - Bytes used
|
20
|
+
# * body<~Array>:
|
21
|
+
# * 'bytes'<~Integer> - Number of bytes used by container
|
22
|
+
# * 'count'<~Integer> - Number of items in container
|
23
|
+
# * 'name'<~String> - Name of container
|
24
|
+
# * item<~Hash>:
|
25
|
+
# * 'bytes'<~String> - Size of object
|
26
|
+
# * 'content_type'<~String> Content-Type of object
|
27
|
+
# * 'hash'<~String> - Hash of object (etag?)
|
28
|
+
# * 'last_modified'<~String> - Last modified timestamp
|
29
|
+
# * 'name'<~String> - Name of object
|
30
|
+
def get_container(container, options = {})
|
31
|
+
options = options.reject { |_key, value| value.nil? }
|
32
|
+
request(
|
33
|
+
:expects => 200,
|
34
|
+
:method => 'GET',
|
35
|
+
:path => Fog::OpenStack.escape(container),
|
36
|
+
:query => {'format' => 'json'}.merge!(options)
|
37
|
+
)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module Fog
|
2
|
+
module OpenStack
|
3
|
+
class Storage
|
4
|
+
class Real
|
5
|
+
# List existing storage containers
|
6
|
+
#
|
7
|
+
# ==== Parameters
|
8
|
+
# * options<~Hash>:
|
9
|
+
# * 'limit'<~Integer> - Upper limit to number of results returned
|
10
|
+
# * 'marker'<~String> - Only return objects with name greater than this value
|
11
|
+
#
|
12
|
+
# ==== Returns
|
13
|
+
# * response<~Excon::Response>:
|
14
|
+
# * body<~Array>:
|
15
|
+
# * container<~Hash>:
|
16
|
+
# * 'bytes'<~Integer>: - Number of bytes used by container
|
17
|
+
# * 'count'<~Integer>: - Number of items in container
|
18
|
+
# * 'name'<~String>: - Name of container
|
19
|
+
def get_containers(options = {})
|
20
|
+
options = options.reject { |_key, value| value.nil? }
|
21
|
+
request(
|
22
|
+
:expects => [200, 204],
|
23
|
+
:method => 'GET',
|
24
|
+
:path => '',
|
25
|
+
:query => {'format' => 'json'}.merge!(options)
|
26
|
+
)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Fog
|
2
|
+
module OpenStack
|
3
|
+
class Storage
|
4
|
+
class Real
|
5
|
+
# Get details for object
|
6
|
+
#
|
7
|
+
# ==== Parameters
|
8
|
+
# * container<~String> - Name of container to look in
|
9
|
+
# * object<~String> - Name of object to look for
|
10
|
+
#
|
11
|
+
def get_object(container, object, &block)
|
12
|
+
params = {
|
13
|
+
:expects => 200,
|
14
|
+
:method => 'GET',
|
15
|
+
:path => "#{Fog::OpenStack.escape(container)}/#{Fog::OpenStack.escape(object)}"
|
16
|
+
}
|
17
|
+
|
18
|
+
if block_given?
|
19
|
+
params[:response_block] = block
|
20
|
+
end
|
21
|
+
|
22
|
+
request(params, false)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Fog
|
2
|
+
module OpenStack
|
3
|
+
class Storage
|
4
|
+
class Real
|
5
|
+
# Get an expiring object http url
|
6
|
+
#
|
7
|
+
# ==== Parameters
|
8
|
+
# * container<~String> - Name of container containing object
|
9
|
+
# * object<~String> - Name of object to get expiring url for
|
10
|
+
# * expires<~Time> - An expiry time for this url
|
11
|
+
#
|
12
|
+
# ==== Returns
|
13
|
+
# * response<~Excon::Response>:
|
14
|
+
# * body<~String> - url for object
|
15
|
+
def get_object_http_url(container, object, expires, options = {})
|
16
|
+
create_temp_url(container, object, expires, "GET", {:port => 80}.merge(options).merge(:scheme => "http"))
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
module Fog
|
2
|
+
module OpenStack
|
3
|
+
class Storage
|
4
|
+
class Real
|
5
|
+
# Get an expiring object https url from Cloud Files
|
6
|
+
#
|
7
|
+
# ==== Parameters
|
8
|
+
# * container<~String> - Name of container containing object
|
9
|
+
# * object<~String> - Name of object to get expiring url for
|
10
|
+
# * expires<~Time> - An expiry time for this url
|
11
|
+
#
|
12
|
+
# ==== Returns
|
13
|
+
# * response<~Excon::Response>:
|
14
|
+
# * body<~String> - url for object
|
15
|
+
def get_object_https_url(container, object, expires, options = {})
|
16
|
+
create_temp_url(container, object, expires, "GET", {:port => 443}.merge(options).merge(:scheme => "https"))
|
17
|
+
end
|
18
|
+
|
19
|
+
# creates a temporary url
|
20
|
+
#
|
21
|
+
# ==== Parameters
|
22
|
+
# * container<~String> - Name of container containing object
|
23
|
+
# * object<~String> - Name of object to get expiring url for
|
24
|
+
# * expires<~Time> - An expiry time for this url
|
25
|
+
# * method<~String> - The method to use for accessing the object (GET, PUT, HEAD)
|
26
|
+
# * options<~Hash> - An optional options hash
|
27
|
+
# * 'scheme'<~String> - The scheme to use (http, https)
|
28
|
+
# * 'host'<~String> - The host to use
|
29
|
+
# * 'port'<~Integer> - The port to use
|
30
|
+
# * 'filename'<~String> - Filename returned Content-Disposition response header
|
31
|
+
#
|
32
|
+
# ==== Returns
|
33
|
+
# * response<~Excon::Response>:
|
34
|
+
# * body<~String> - url for object
|
35
|
+
#
|
36
|
+
# ==== See Also
|
37
|
+
# http://docs.rackspace.com/files/api/v1/cf-devguide/content/Create_TempURL-d1a444.html
|
38
|
+
# https://developer.openstack.org/api-ref/object-store/?expanded=get-object-content-and-metadata-detail#get-object-content-and-metadata
|
39
|
+
def create_temp_url(container, object, expires, method, options = {})
|
40
|
+
raise ArgumentError, "Insufficient parameters specified." unless container && object && expires && method
|
41
|
+
raise ArgumentError, "Storage must be instantiated with the :openstack_temp_url_key option" if @openstack_temp_url_key.nil?
|
42
|
+
|
43
|
+
scheme = options[:scheme] || @openstack_management_uri.scheme
|
44
|
+
host = options[:host] || @openstack_management_uri.host
|
45
|
+
port = options[:port] || @openstack_management_uri.port
|
46
|
+
|
47
|
+
# POST not allowed
|
48
|
+
allowed_methods = %w(GET PUT HEAD)
|
49
|
+
unless allowed_methods.include?(method)
|
50
|
+
raise ArgumentError, "Invalid method '#{method}' specified. Valid methods are: #{allowed_methods.join(', ')}"
|
51
|
+
end
|
52
|
+
|
53
|
+
expires = expires.to_i
|
54
|
+
object_path_escaped = "#{@path}/#{Fog::OpenStack.escape(container)}/#{Fog::OpenStack.escape(object, "/")}"
|
55
|
+
object_path_unescaped = "#{@path}/#{Fog::OpenStack.escape(container)}/#{object}"
|
56
|
+
string_to_sign = "#{method}\n#{expires}\n#{object_path_unescaped}"
|
57
|
+
|
58
|
+
hmac = Fog::HMAC.new('sha1', @openstack_temp_url_key.to_s)
|
59
|
+
|
60
|
+
query = {
|
61
|
+
temp_url_sig: sig_to_hex(hmac.sign(string_to_sign)),
|
62
|
+
temp_url_expires: expires
|
63
|
+
}
|
64
|
+
query[:filename] = options[:filename] if options[:filename]
|
65
|
+
|
66
|
+
temp_url_options = {
|
67
|
+
:scheme => scheme,
|
68
|
+
:host => host,
|
69
|
+
:port => port,
|
70
|
+
:path => object_path_escaped,
|
71
|
+
:query => query.map { |k, v| "#{k}=#{v}" }.join('&')
|
72
|
+
}
|
73
|
+
URI::Generic.build(temp_url_options).to_s
|
74
|
+
end
|
75
|
+
|
76
|
+
private
|
77
|
+
|
78
|
+
def sig_to_hex(str)
|
79
|
+
str.unpack("C*").map do |c|
|
80
|
+
c.to_s(16)
|
81
|
+
end.map do |h|
|
82
|
+
h.size == 1 ? "0#{h}" : h
|
83
|
+
end.join
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|