fog-zj 0.1.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.hound.yml +2 -0
- data/.rubocop.yml +110 -0
- data/.ruby-gemset +1 -0
- data/.travis.yml +32 -0
- data/.zuul.yaml +35 -0
- data/CHANGELOG.md +47 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/CONTRIBUTING.md +18 -0
- data/Gemfile +4 -0
- data/LICENSE.md +20 -0
- data/README.md +572 -0
- data/Rakefile +31 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/docker-compose.yml +44 -0
- data/docs/common/connection_params.md +45 -0
- data/docs/common/resources.md +11 -0
- data/docs/compute.md +636 -0
- data/docs/getting_started.md +82 -0
- data/docs/introspection.md +251 -0
- data/docs/metering.md +43 -0
- data/docs/network.md +238 -0
- data/docs/nfv.md +144 -0
- data/docs/orchestration.md +360 -0
- data/docs/planning.md +225 -0
- data/docs/shared_file_system.md +82 -0
- data/docs/storage.md +406 -0
- data/docs/workflow.md +131 -0
- data/examples/compute/basics.rb +50 -0
- data/examples/compute/block_device_mapping_v2.rb +30 -0
- data/examples/container_infra/basics.rb +61 -0
- data/examples/event/basics.rb +22 -0
- data/examples/identity/basics.rb +67 -0
- data/examples/identity/basics_v3.rb +83 -0
- data/examples/image/upload-test-image.rb +74 -0
- data/examples/introspection/basics.rb +75 -0
- data/examples/metric/basics.rb +42 -0
- data/examples/network/network_add_port.rb +21 -0
- data/examples/network/network_rbac.rb +69 -0
- data/examples/network/network_subnets_routers.rb +62 -0
- data/examples/planning/basics.rb +53 -0
- data/examples/shared_file_system/basics.rb +68 -0
- data/examples/storage/set-account-quota.rb +64 -0
- data/examples/volume/backups.rb +41 -0
- data/examples/workflow/workflow-examples.rb +387 -0
- data/fog-openstack.gemspec +38 -0
- data/lib/fog/baremetal/openstack.rb +284 -0
- data/lib/fog/baremetal/openstack/models/chassis.rb +49 -0
- data/lib/fog/baremetal/openstack/models/chassis_collection.rb +44 -0
- data/lib/fog/baremetal/openstack/models/driver.rb +24 -0
- data/lib/fog/baremetal/openstack/models/drivers.rb +21 -0
- data/lib/fog/baremetal/openstack/models/node.rb +96 -0
- data/lib/fog/baremetal/openstack/models/nodes.rb +44 -0
- data/lib/fog/baremetal/openstack/models/port.rb +50 -0
- data/lib/fog/baremetal/openstack/models/ports.rb +44 -0
- data/lib/fog/baremetal/openstack/requests/create_chassis.rb +44 -0
- data/lib/fog/baremetal/openstack/requests/create_node.rb +54 -0
- data/lib/fog/baremetal/openstack/requests/create_port.rb +46 -0
- data/lib/fog/baremetal/openstack/requests/delete_chassis.rb +25 -0
- data/lib/fog/baremetal/openstack/requests/delete_node.rb +25 -0
- data/lib/fog/baremetal/openstack/requests/delete_port.rb +25 -0
- data/lib/fog/baremetal/openstack/requests/get_chassis.rb +24 -0
- data/lib/fog/baremetal/openstack/requests/get_driver.rb +24 -0
- data/lib/fog/baremetal/openstack/requests/get_driver_properties.rb +40 -0
- data/lib/fog/baremetal/openstack/requests/get_node.rb +24 -0
- data/lib/fog/baremetal/openstack/requests/get_port.rb +24 -0
- data/lib/fog/baremetal/openstack/requests/list_chassis.rb +42 -0
- data/lib/fog/baremetal/openstack/requests/list_chassis_detailed.rb +25 -0
- data/lib/fog/baremetal/openstack/requests/list_drivers.rb +25 -0
- data/lib/fog/baremetal/openstack/requests/list_nodes.rb +34 -0
- data/lib/fog/baremetal/openstack/requests/list_nodes_detailed.rb +25 -0
- data/lib/fog/baremetal/openstack/requests/list_ports.rb +42 -0
- data/lib/fog/baremetal/openstack/requests/list_ports_detailed.rb +25 -0
- data/lib/fog/baremetal/openstack/requests/patch_chassis.rb +41 -0
- data/lib/fog/baremetal/openstack/requests/patch_node.rb +41 -0
- data/lib/fog/baremetal/openstack/requests/patch_port.rb +41 -0
- data/lib/fog/baremetal/openstack/requests/set_node_maintenance.rb +30 -0
- data/lib/fog/baremetal/openstack/requests/set_node_power_state.rb +35 -0
- data/lib/fog/baremetal/openstack/requests/set_node_provision_state.rb +38 -0
- data/lib/fog/baremetal/openstack/requests/unset_node_maintenance.rb +30 -0
- data/lib/fog/compute/openstack.rb +413 -0
- data/lib/fog/compute/openstack/models/address.rb +67 -0
- data/lib/fog/compute/openstack/models/addresses.rb +28 -0
- data/lib/fog/compute/openstack/models/aggregate.rb +59 -0
- data/lib/fog/compute/openstack/models/aggregates.rb +26 -0
- data/lib/fog/compute/openstack/models/availability_zone.rb +19 -0
- data/lib/fog/compute/openstack/models/availability_zones.rb +22 -0
- data/lib/fog/compute/openstack/models/flavor.rb +64 -0
- data/lib/fog/compute/openstack/models/flavors.rb +29 -0
- data/lib/fog/compute/openstack/models/host.rb +28 -0
- data/lib/fog/compute/openstack/models/hosts.rb +26 -0
- data/lib/fog/compute/openstack/models/image.rb +47 -0
- data/lib/fog/compute/openstack/models/images.rb +38 -0
- data/lib/fog/compute/openstack/models/key_pair.rb +56 -0
- data/lib/fog/compute/openstack/models/key_pairs.rb +29 -0
- data/lib/fog/compute/openstack/models/metadata.rb +65 -0
- data/lib/fog/compute/openstack/models/metadatum.rb +27 -0
- data/lib/fog/compute/openstack/models/network.rb +13 -0
- data/lib/fog/compute/openstack/models/networks.rb +30 -0
- data/lib/fog/compute/openstack/models/os_interface.rb +15 -0
- data/lib/fog/compute/openstack/models/os_interfaces.rb +28 -0
- data/lib/fog/compute/openstack/models/security_group.rb +57 -0
- data/lib/fog/compute/openstack/models/security_group_rule.rb +32 -0
- data/lib/fog/compute/openstack/models/security_group_rules.rb +21 -0
- data/lib/fog/compute/openstack/models/security_groups.rb +24 -0
- data/lib/fog/compute/openstack/models/server.rb +410 -0
- data/lib/fog/compute/openstack/models/server_group.rb +22 -0
- data/lib/fog/compute/openstack/models/server_groups.rb +28 -0
- data/lib/fog/compute/openstack/models/servers.rb +59 -0
- data/lib/fog/compute/openstack/models/service.rb +42 -0
- data/lib/fog/compute/openstack/models/services.rb +35 -0
- data/lib/fog/compute/openstack/models/snapshot.rb +32 -0
- data/lib/fog/compute/openstack/models/snapshots.rb +37 -0
- data/lib/fog/compute/openstack/models/tenant.rb +24 -0
- data/lib/fog/compute/openstack/models/tenants.rb +24 -0
- data/lib/fog/compute/openstack/models/volume.rb +52 -0
- data/lib/fog/compute/openstack/models/volume_attachment.rb +15 -0
- data/lib/fog/compute/openstack/models/volume_attachments.rb +20 -0
- data/lib/fog/compute/openstack/models/volumes.rb +37 -0
- data/lib/fog/compute/openstack/requests/add_aggregate_host.rb +30 -0
- data/lib/fog/compute/openstack/requests/add_fixed_ip.rb +29 -0
- data/lib/fog/compute/openstack/requests/add_flavor_access.rb +29 -0
- data/lib/fog/compute/openstack/requests/add_security_group.rb +20 -0
- data/lib/fog/compute/openstack/requests/allocate_address.rb +39 -0
- data/lib/fog/compute/openstack/requests/associate_address.rb +30 -0
- data/lib/fog/compute/openstack/requests/attach_volume.rb +39 -0
- data/lib/fog/compute/openstack/requests/boot_from_snapshot.rb +41 -0
- data/lib/fog/compute/openstack/requests/change_server_password.rb +20 -0
- data/lib/fog/compute/openstack/requests/confirm_resize_server.rb +20 -0
- data/lib/fog/compute/openstack/requests/create_aggregate.rb +42 -0
- data/lib/fog/compute/openstack/requests/create_flavor.rb +85 -0
- data/lib/fog/compute/openstack/requests/create_flavor_metadata.rb +37 -0
- data/lib/fog/compute/openstack/requests/create_image.rb +44 -0
- data/lib/fog/compute/openstack/requests/create_key_pair.rb +48 -0
- data/lib/fog/compute/openstack/requests/create_os_interface.rb +42 -0
- data/lib/fog/compute/openstack/requests/create_security_group.rb +51 -0
- data/lib/fog/compute/openstack/requests/create_security_group_rule.rb +57 -0
- data/lib/fog/compute/openstack/requests/create_server.rb +187 -0
- data/lib/fog/compute/openstack/requests/create_server_group.rb +31 -0
- data/lib/fog/compute/openstack/requests/create_snapshot.rb +51 -0
- data/lib/fog/compute/openstack/requests/create_volume.rb +58 -0
- data/lib/fog/compute/openstack/requests/delete_aggregate.rb +28 -0
- data/lib/fog/compute/openstack/requests/delete_flavor.rb +28 -0
- data/lib/fog/compute/openstack/requests/delete_flavor_metadata.rb +30 -0
- data/lib/fog/compute/openstack/requests/delete_image.rb +36 -0
- data/lib/fog/compute/openstack/requests/delete_key_pair.rb +31 -0
- data/lib/fog/compute/openstack/requests/delete_meta.rb +35 -0
- data/lib/fog/compute/openstack/requests/delete_metadata.rb +23 -0
- data/lib/fog/compute/openstack/requests/delete_os_interface.rb +24 -0
- data/lib/fog/compute/openstack/requests/delete_security_group.rb +31 -0
- data/lib/fog/compute/openstack/requests/delete_security_group_rule.rb +31 -0
- data/lib/fog/compute/openstack/requests/delete_server.rb +40 -0
- data/lib/fog/compute/openstack/requests/delete_server_group.rb +28 -0
- data/lib/fog/compute/openstack/requests/delete_service.rb +32 -0
- data/lib/fog/compute/openstack/requests/delete_snapshot.rb +28 -0
- data/lib/fog/compute/openstack/requests/delete_volume.rb +28 -0
- data/lib/fog/compute/openstack/requests/detach_volume.rb +29 -0
- data/lib/fog/compute/openstack/requests/disable_service.rb +37 -0
- data/lib/fog/compute/openstack/requests/disable_service_log_reason.rb +38 -0
- data/lib/fog/compute/openstack/requests/disassociate_address.rb +25 -0
- data/lib/fog/compute/openstack/requests/enable_service.rb +37 -0
- data/lib/fog/compute/openstack/requests/evacuate_server.rb +26 -0
- data/lib/fog/compute/openstack/requests/get_address.rb +38 -0
- data/lib/fog/compute/openstack/requests/get_aggregate.rb +25 -0
- data/lib/fog/compute/openstack/requests/get_console_output.rb +24 -0
- data/lib/fog/compute/openstack/requests/get_flavor_details.rb +39 -0
- data/lib/fog/compute/openstack/requests/get_flavor_metadata.rb +26 -0
- data/lib/fog/compute/openstack/requests/get_host_details.rb +60 -0
- data/lib/fog/compute/openstack/requests/get_hypervisor.rb +64 -0
- data/lib/fog/compute/openstack/requests/get_hypervisor_statistics.rb +39 -0
- data/lib/fog/compute/openstack/requests/get_image_details.rb +29 -0
- data/lib/fog/compute/openstack/requests/get_key_pair.rb +50 -0
- data/lib/fog/compute/openstack/requests/get_limits.rb +94 -0
- data/lib/fog/compute/openstack/requests/get_metadata.rb +24 -0
- data/lib/fog/compute/openstack/requests/get_os_interface.rb +24 -0
- data/lib/fog/compute/openstack/requests/get_quota.rb +26 -0
- data/lib/fog/compute/openstack/requests/get_quota_defaults.rb +26 -0
- data/lib/fog/compute/openstack/requests/get_security_group.rb +37 -0
- data/lib/fog/compute/openstack/requests/get_security_group_rule.rb +38 -0
- data/lib/fog/compute/openstack/requests/get_server_details.rb +29 -0
- data/lib/fog/compute/openstack/requests/get_server_group.rb +38 -0
- data/lib/fog/compute/openstack/requests/get_server_password.rb +29 -0
- data/lib/fog/compute/openstack/requests/get_server_volumes.rb +27 -0
- data/lib/fog/compute/openstack/requests/get_snapshot_details.rb +30 -0
- data/lib/fog/compute/openstack/requests/get_usage.rb +48 -0
- data/lib/fog/compute/openstack/requests/get_vnc_console.rb +49 -0
- data/lib/fog/compute/openstack/requests/get_volume_details.rb +32 -0
- data/lib/fog/compute/openstack/requests/list_address_pools.rb +28 -0
- data/lib/fog/compute/openstack/requests/list_addresses.rb +29 -0
- data/lib/fog/compute/openstack/requests/list_aggregates.rb +37 -0
- data/lib/fog/compute/openstack/requests/list_all_addresses.rb +62 -0
- data/lib/fog/compute/openstack/requests/list_availability_zones.rb +23 -0
- data/lib/fog/compute/openstack/requests/list_flavors.rb +35 -0
- data/lib/fog/compute/openstack/requests/list_flavors_detail.rb +35 -0
- data/lib/fog/compute/openstack/requests/list_hosts.rb +27 -0
- data/lib/fog/compute/openstack/requests/list_hypervisor_servers.rb +42 -0
- data/lib/fog/compute/openstack/requests/list_hypervisors.rb +27 -0
- data/lib/fog/compute/openstack/requests/list_hypervisors_detail.rb +71 -0
- data/lib/fog/compute/openstack/requests/list_images.rb +29 -0
- data/lib/fog/compute/openstack/requests/list_images_detail.rb +36 -0
- data/lib/fog/compute/openstack/requests/list_key_pairs.rb +39 -0
- data/lib/fog/compute/openstack/requests/list_metadata.rb +24 -0
- data/lib/fog/compute/openstack/requests/list_os_interfaces.rb +24 -0
- data/lib/fog/compute/openstack/requests/list_private_addresses.rb +29 -0
- data/lib/fog/compute/openstack/requests/list_public_addresses.rb +29 -0
- data/lib/fog/compute/openstack/requests/list_security_groups.rb +67 -0
- data/lib/fog/compute/openstack/requests/list_server_groups.rb +28 -0
- data/lib/fog/compute/openstack/requests/list_servers.rb +36 -0
- data/lib/fog/compute/openstack/requests/list_servers_detail.rb +43 -0
- data/lib/fog/compute/openstack/requests/list_services.rb +66 -0
- data/lib/fog/compute/openstack/requests/list_snapshots.rb +40 -0
- data/lib/fog/compute/openstack/requests/list_snapshots_detail.rb +26 -0
- data/lib/fog/compute/openstack/requests/list_tenants.rb +43 -0
- data/lib/fog/compute/openstack/requests/list_tenants_with_flavor_access.rb +26 -0
- data/lib/fog/compute/openstack/requests/list_usages.rb +38 -0
- data/lib/fog/compute/openstack/requests/list_volume_attachments.rb +31 -0
- data/lib/fog/compute/openstack/requests/list_volumes.rb +39 -0
- data/lib/fog/compute/openstack/requests/list_volumes_detail.rb +25 -0
- data/lib/fog/compute/openstack/requests/list_zones.rb +33 -0
- data/lib/fog/compute/openstack/requests/list_zones_detailed.rb +68 -0
- data/lib/fog/compute/openstack/requests/live_migrate_server.rb +26 -0
- data/lib/fog/compute/openstack/requests/migrate_server.rb +20 -0
- data/lib/fog/compute/openstack/requests/pause_server.rb +24 -0
- data/lib/fog/compute/openstack/requests/reboot_server.rb +20 -0
- data/lib/fog/compute/openstack/requests/rebuild_server.rb +34 -0
- data/lib/fog/compute/openstack/requests/release_address.rb +29 -0
- data/lib/fog/compute/openstack/requests/remote_consoles.rb +54 -0
- data/lib/fog/compute/openstack/requests/remove_aggregate_host.rb +30 -0
- data/lib/fog/compute/openstack/requests/remove_fixed_ip.rb +29 -0
- data/lib/fog/compute/openstack/requests/remove_flavor_access.rb +29 -0
- data/lib/fog/compute/openstack/requests/remove_security_group.rb +20 -0
- data/lib/fog/compute/openstack/requests/rescue_server.rb +24 -0
- data/lib/fog/compute/openstack/requests/reset_server_state.rb +20 -0
- data/lib/fog/compute/openstack/requests/resize_server.rb +20 -0
- data/lib/fog/compute/openstack/requests/resume_server.rb +24 -0
- data/lib/fog/compute/openstack/requests/revert_resize_server.rb +26 -0
- data/lib/fog/compute/openstack/requests/server_action.rb +16 -0
- data/lib/fog/compute/openstack/requests/server_actions.rb +38 -0
- data/lib/fog/compute/openstack/requests/server_diagnostics.rb +25 -0
- data/lib/fog/compute/openstack/requests/set_metadata.rb +37 -0
- data/lib/fog/compute/openstack/requests/set_tenant.rb +19 -0
- data/lib/fog/compute/openstack/requests/shelve_offload_server.rb +24 -0
- data/lib/fog/compute/openstack/requests/shelve_server.rb +24 -0
- data/lib/fog/compute/openstack/requests/start_server.rb +24 -0
- data/lib/fog/compute/openstack/requests/stop_server.rb +24 -0
- data/lib/fog/compute/openstack/requests/suspend_server.rb +24 -0
- data/lib/fog/compute/openstack/requests/unpause_server.rb +24 -0
- data/lib/fog/compute/openstack/requests/unshelve_server.rb +24 -0
- data/lib/fog/compute/openstack/requests/update_aggregate.rb +37 -0
- data/lib/fog/compute/openstack/requests/update_aggregate_metadata.rb +30 -0
- data/lib/fog/compute/openstack/requests/update_flavor_metadata.rb +33 -0
- data/lib/fog/compute/openstack/requests/update_meta.rb +38 -0
- data/lib/fog/compute/openstack/requests/update_metadata.rb +38 -0
- data/lib/fog/compute/openstack/requests/update_quota.rb +27 -0
- data/lib/fog/compute/openstack/requests/update_server.rb +32 -0
- data/lib/fog/container_infra/openstack.rb +163 -0
- data/lib/fog/container_infra/openstack/models/base.rb +19 -0
- data/lib/fog/container_infra/openstack/models/bay.rb +56 -0
- data/lib/fog/container_infra/openstack/models/bay_model.rb +62 -0
- data/lib/fog/container_infra/openstack/models/bay_models.rb +23 -0
- data/lib/fog/container_infra/openstack/models/bays.rb +23 -0
- data/lib/fog/container_infra/openstack/models/certificate.rb +20 -0
- data/lib/fog/container_infra/openstack/models/certificates.rb +25 -0
- data/lib/fog/container_infra/openstack/models/cluster.rb +56 -0
- data/lib/fog/container_infra/openstack/models/cluster_template.rb +61 -0
- data/lib/fog/container_infra/openstack/models/cluster_templates.rb +24 -0
- data/lib/fog/container_infra/openstack/models/clusters.rb +24 -0
- data/lib/fog/container_infra/openstack/requests/create_bay.rb +27 -0
- data/lib/fog/container_infra/openstack/requests/create_bay_model.rb +56 -0
- data/lib/fog/container_infra/openstack/requests/create_certificate.rb +29 -0
- data/lib/fog/container_infra/openstack/requests/create_cluster.rb +27 -0
- data/lib/fog/container_infra/openstack/requests/create_cluster_template.rb +56 -0
- data/lib/fog/container_infra/openstack/requests/delete_bay.rb +24 -0
- data/lib/fog/container_infra/openstack/requests/delete_bay_model.rb +24 -0
- data/lib/fog/container_infra/openstack/requests/delete_cluster.rb +24 -0
- data/lib/fog/container_infra/openstack/requests/delete_cluster_template.rb +24 -0
- data/lib/fog/container_infra/openstack/requests/get_bay.rb +51 -0
- data/lib/fog/container_infra/openstack/requests/get_bay_model.rb +55 -0
- data/lib/fog/container_infra/openstack/requests/get_certificate.rb +27 -0
- data/lib/fog/container_infra/openstack/requests/get_cluster.rb +41 -0
- data/lib/fog/container_infra/openstack/requests/get_cluster_template.rb +55 -0
- data/lib/fog/container_infra/openstack/requests/list_bay_models.rb +69 -0
- data/lib/fog/container_infra/openstack/requests/list_bays.rb +55 -0
- data/lib/fog/container_infra/openstack/requests/list_cluster_templates.rb +59 -0
- data/lib/fog/container_infra/openstack/requests/list_clusters.rb +37 -0
- data/lib/fog/container_infra/openstack/requests/update_bay.rb +27 -0
- data/lib/fog/container_infra/openstack/requests/update_bay_model.rb +56 -0
- data/lib/fog/container_infra/openstack/requests/update_cluster.rb +27 -0
- data/lib/fog/container_infra/openstack/requests/update_cluster_template.rb +56 -0
- data/lib/fog/dns/openstack.rb +21 -0
- data/lib/fog/dns/openstack/v1.rb +128 -0
- data/lib/fog/dns/openstack/v1/requests/get_quota.rb +26 -0
- data/lib/fog/dns/openstack/v1/requests/list_domains.rb +27 -0
- data/lib/fog/dns/openstack/v1/requests/update_quota.rb +31 -0
- data/lib/fog/dns/openstack/v2.rb +342 -0
- data/lib/fog/dns/openstack/v2/models/pool.rb +21 -0
- data/lib/fog/dns/openstack/v2/models/pools.rb +25 -0
- data/lib/fog/dns/openstack/v2/models/recordset.rb +55 -0
- data/lib/fog/dns/openstack/v2/models/recordsets.rb +30 -0
- data/lib/fog/dns/openstack/v2/models/zone.rb +50 -0
- data/lib/fog/dns/openstack/v2/models/zone_transfer_accept.rb +29 -0
- data/lib/fog/dns/openstack/v2/models/zone_transfer_accepts.rb +25 -0
- data/lib/fog/dns/openstack/v2/models/zone_transfer_request.rb +50 -0
- data/lib/fog/dns/openstack/v2/models/zone_transfer_requests.rb +30 -0
- data/lib/fog/dns/openstack/v2/models/zones.rb +30 -0
- data/lib/fog/dns/openstack/v2/requests/create_recordset.rb +54 -0
- data/lib/fog/dns/openstack/v2/requests/create_zone.rb +49 -0
- data/lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb +35 -0
- data/lib/fog/dns/openstack/v2/requests/create_zone_transfer_request.rb +34 -0
- data/lib/fog/dns/openstack/v2/requests/delete_recordset.rb +36 -0
- data/lib/fog/dns/openstack/v2/requests/delete_zone.rb +35 -0
- data/lib/fog/dns/openstack/v2/requests/delete_zone_transfer_request.rb +26 -0
- data/lib/fog/dns/openstack/v2/requests/get_pool.rb +30 -0
- data/lib/fog/dns/openstack/v2/requests/get_quota.rb +29 -0
- data/lib/fog/dns/openstack/v2/requests/get_recordset.rb +36 -0
- data/lib/fog/dns/openstack/v2/requests/get_zone.rb +30 -0
- data/lib/fog/dns/openstack/v2/requests/get_zone_transfer_accept.rb +28 -0
- data/lib/fog/dns/openstack/v2/requests/get_zone_transfer_request.rb +29 -0
- data/lib/fog/dns/openstack/v2/requests/list_pools.rb +30 -0
- data/lib/fog/dns/openstack/v2/requests/list_recordsets.rb +54 -0
- data/lib/fog/dns/openstack/v2/requests/list_zone_transfer_accepts.rb +27 -0
- data/lib/fog/dns/openstack/v2/requests/list_zone_transfer_requests.rb +27 -0
- data/lib/fog/dns/openstack/v2/requests/list_zones.rb +30 -0
- data/lib/fog/dns/openstack/v2/requests/update_quota.rb +34 -0
- data/lib/fog/dns/openstack/v2/requests/update_recordset.rb +40 -0
- data/lib/fog/dns/openstack/v2/requests/update_zone.rb +39 -0
- data/lib/fog/dns/openstack/v2/requests/update_zone_transfer_request.rb +36 -0
- data/lib/fog/event/openstack.rb +120 -0
- data/lib/fog/event/openstack/models/event.rb +16 -0
- data/lib/fog/event/openstack/models/events.rb +23 -0
- data/lib/fog/event/openstack/requests/get_event.rb +27 -0
- data/lib/fog/event/openstack/requests/list_events.rb +42 -0
- data/lib/fog/identity/openstack.rb +117 -0
- data/lib/fog/identity/openstack/v2.rb +181 -0
- data/lib/fog/identity/openstack/v2/models/ec2_credential.rb +39 -0
- data/lib/fog/identity/openstack/v2/models/ec2_credentials.rb +56 -0
- data/lib/fog/identity/openstack/v2/models/role.rb +53 -0
- data/lib/fog/identity/openstack/v2/models/roles.rb +22 -0
- data/lib/fog/identity/openstack/v2/models/tenant.rb +63 -0
- data/lib/fog/identity/openstack/v2/models/tenants.rb +32 -0
- data/lib/fog/identity/openstack/v2/models/user.rb +69 -0
- data/lib/fog/identity/openstack/v2/models/users.rb +45 -0
- data/lib/fog/identity/openstack/v2/requests/add_user_to_tenant.rb +36 -0
- data/lib/fog/identity/openstack/v2/requests/check_token.rb +22 -0
- data/lib/fog/identity/openstack/v2/requests/create_ec2_credential.rb +59 -0
- data/lib/fog/identity/openstack/v2/requests/create_role.rb +38 -0
- data/lib/fog/identity/openstack/v2/requests/create_tenant.rb +34 -0
- data/lib/fog/identity/openstack/v2/requests/create_user.rb +45 -0
- data/lib/fog/identity/openstack/v2/requests/create_user_role.rb +26 -0
- data/lib/fog/identity/openstack/v2/requests/delete_ec2_credential.rb +43 -0
- data/lib/fog/identity/openstack/v2/requests/delete_role.rb +30 -0
- data/lib/fog/identity/openstack/v2/requests/delete_tenant.rb +33 -0
- data/lib/fog/identity/openstack/v2/requests/delete_user.rb +31 -0
- data/lib/fog/identity/openstack/v2/requests/delete_user_role.rb +25 -0
- data/lib/fog/identity/openstack/v2/requests/get_ec2_credential.rb +50 -0
- data/lib/fog/identity/openstack/v2/requests/get_role.rb +30 -0
- data/lib/fog/identity/openstack/v2/requests/get_tenant.rb +33 -0
- data/lib/fog/identity/openstack/v2/requests/get_tenants_by_id.rb +20 -0
- data/lib/fog/identity/openstack/v2/requests/get_tenants_by_name.rb +20 -0
- data/lib/fog/identity/openstack/v2/requests/get_user_by_id.rb +34 -0
- data/lib/fog/identity/openstack/v2/requests/get_user_by_name.rb +29 -0
- data/lib/fog/identity/openstack/v2/requests/list_ec2_credentials.rb +61 -0
- data/lib/fog/identity/openstack/v2/requests/list_endpoints_for_token.rb +20 -0
- data/lib/fog/identity/openstack/v2/requests/list_roles.rb +34 -0
- data/lib/fog/identity/openstack/v2/requests/list_roles_for_user_on_tenant.rb +32 -0
- data/lib/fog/identity/openstack/v2/requests/list_tenants.rb +53 -0
- data/lib/fog/identity/openstack/v2/requests/list_user_global_roles.rb +20 -0
- data/lib/fog/identity/openstack/v2/requests/list_users.rb +47 -0
- data/lib/fog/identity/openstack/v2/requests/remove_user_from_tenant.rb +22 -0
- data/lib/fog/identity/openstack/v2/requests/set_tenant.rb +21 -0
- data/lib/fog/identity/openstack/v2/requests/update_tenant.rb +30 -0
- data/lib/fog/identity/openstack/v2/requests/update_user.rb +34 -0
- data/lib/fog/identity/openstack/v2/requests/validate_token.rb +22 -0
- data/lib/fog/identity/openstack/v3.rb +162 -0
- data/lib/fog/identity/openstack/v3/models/domain.rb +59 -0
- data/lib/fog/identity/openstack/v3/models/domains.rb +63 -0
- data/lib/fog/identity/openstack/v3/models/endpoint.rb +47 -0
- data/lib/fog/identity/openstack/v3/models/endpoints.rb +27 -0
- data/lib/fog/identity/openstack/v3/models/group.rb +94 -0
- data/lib/fog/identity/openstack/v3/models/groups.rb +32 -0
- data/lib/fog/identity/openstack/v3/models/os_credential.rb +74 -0
- data/lib/fog/identity/openstack/v3/models/os_credentials.rb +32 -0
- data/lib/fog/identity/openstack/v3/models/policies.rb +32 -0
- data/lib/fog/identity/openstack/v3/models/policy.rb +43 -0
- data/lib/fog/identity/openstack/v3/models/project.rb +116 -0
- data/lib/fog/identity/openstack/v3/models/projects.rb +75 -0
- data/lib/fog/identity/openstack/v3/models/role.rb +41 -0
- data/lib/fog/identity/openstack/v3/models/role_assignment.rb +21 -0
- data/lib/fog/identity/openstack/v3/models/role_assignments.rb +25 -0
- data/lib/fog/identity/openstack/v3/models/roles.rb +40 -0
- data/lib/fog/identity/openstack/v3/models/service.rb +48 -0
- data/lib/fog/identity/openstack/v3/models/services.rb +32 -0
- data/lib/fog/identity/openstack/v3/models/token.rb +24 -0
- data/lib/fog/identity/openstack/v3/models/tokens.rb +40 -0
- data/lib/fog/identity/openstack/v3/models/user.rb +82 -0
- data/lib/fog/identity/openstack/v3/models/users.rb +36 -0
- data/lib/fog/identity/openstack/v3/requests/add_user_to_group.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/auth_domains.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/auth_projects.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/check_domain_group_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/check_domain_user_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/check_project_group_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/check_project_user_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/create_domain.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/create_endpoint.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/create_group.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/create_os_credential.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/create_policy.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/create_project.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/create_role.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/create_service.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/create_user.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/delete_domain.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/delete_endpoint.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/delete_group.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/delete_os_credential.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/delete_policy.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/delete_project.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/delete_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/delete_service.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/delete_user.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/get_domain.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/get_endpoint.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/get_group.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/get_os_credential.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/get_policy.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/get_project.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/get_role.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/get_service.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/get_user.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/grant_domain_group_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/grant_domain_user_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/grant_project_group_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/grant_project_user_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/group_user_check.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/list_domain_group_roles.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/list_domain_user_roles.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/list_domains.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/list_endpoints.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/list_group_users.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/list_groups.rb +31 -0
- data/lib/fog/identity/openstack/v3/requests/list_os_credentials.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/list_policies.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/list_project_group_roles.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/list_project_user_roles.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/list_projects.rb +30 -0
- data/lib/fog/identity/openstack/v3/requests/list_role_assignments.rb +38 -0
- data/lib/fog/identity/openstack/v3/requests/list_roles.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/list_services.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/list_user_groups.rb +22 -0
- data/lib/fog/identity/openstack/v3/requests/list_user_projects.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/list_users.rb +23 -0
- data/lib/fog/identity/openstack/v3/requests/remove_user_from_group.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/revoke_domain_group_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/revoke_domain_user_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/revoke_project_group_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/revoke_project_user_role.rb +20 -0
- data/lib/fog/identity/openstack/v3/requests/token_authenticate.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/token_check.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/token_revoke.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/token_validate.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/update_domain.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/update_endpoint.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/update_group.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/update_os_credential.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/update_policy.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/update_project.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/update_role.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/update_service.rb +21 -0
- data/lib/fog/identity/openstack/v3/requests/update_user.rb +21 -0
- data/lib/fog/image/openstack.rb +23 -0
- data/lib/fog/image/openstack/v1.rb +133 -0
- data/lib/fog/image/openstack/v1/models/image.rb +78 -0
- data/lib/fog/image/openstack/v1/models/images.rb +106 -0
- data/lib/fog/image/openstack/v1/requests/add_member_to_image.rb +25 -0
- data/lib/fog/image/openstack/v1/requests/create_image.rb +78 -0
- data/lib/fog/image/openstack/v1/requests/delete_image.rb +25 -0
- data/lib/fog/image/openstack/v1/requests/get_image.rb +47 -0
- data/lib/fog/image/openstack/v1/requests/get_image_by_id.rb +44 -0
- data/lib/fog/image/openstack/v1/requests/get_image_members.rb +31 -0
- data/lib/fog/image/openstack/v1/requests/get_shared_images.rb +31 -0
- data/lib/fog/image/openstack/v1/requests/list_public_images.rb +36 -0
- data/lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb +37 -0
- data/lib/fog/image/openstack/v1/requests/remove_member_from_image.rb +25 -0
- data/lib/fog/image/openstack/v1/requests/set_tenant.rb +21 -0
- data/lib/fog/image/openstack/v1/requests/update_image.rb +66 -0
- data/lib/fog/image/openstack/v1/requests/update_image_members.rb +39 -0
- data/lib/fog/image/openstack/v2.rb +141 -0
- data/lib/fog/image/openstack/v2/models/image.rb +214 -0
- data/lib/fog/image/openstack/v2/models/images.rb +66 -0
- data/lib/fog/image/openstack/v2/requests/add_member_to_image.rb +26 -0
- data/lib/fog/image/openstack/v2/requests/add_tag_to_image.rb +25 -0
- data/lib/fog/image/openstack/v2/requests/create_image.rb +51 -0
- data/lib/fog/image/openstack/v2/requests/deactivate_image.rb +25 -0
- data/lib/fog/image/openstack/v2/requests/delete_image.rb +25 -0
- data/lib/fog/image/openstack/v2/requests/download_image.rb +29 -0
- data/lib/fog/image/openstack/v2/requests/get_image.rb +47 -0
- data/lib/fog/image/openstack/v2/requests/get_image_by_id.rb +35 -0
- data/lib/fog/image/openstack/v2/requests/get_image_members.rb +31 -0
- data/lib/fog/image/openstack/v2/requests/get_member_details.rb +33 -0
- data/lib/fog/image/openstack/v2/requests/get_shared_images.rb +31 -0
- data/lib/fog/image/openstack/v2/requests/list_images.rb +36 -0
- data/lib/fog/image/openstack/v2/requests/reactivate_image.rb +25 -0
- data/lib/fog/image/openstack/v2/requests/remove_member_from_image.rb +25 -0
- data/lib/fog/image/openstack/v2/requests/remove_tag_from_image.rb +25 -0
- data/lib/fog/image/openstack/v2/requests/set_tenant.rb +21 -0
- data/lib/fog/image/openstack/v2/requests/update_image.rb +49 -0
- data/lib/fog/image/openstack/v2/requests/update_image_member.rb +34 -0
- data/lib/fog/image/openstack/v2/requests/upload_image.rb +30 -0
- data/lib/fog/introspection/openstack.rb +103 -0
- data/lib/fog/introspection/openstack/models/rules.rb +29 -0
- data/lib/fog/introspection/openstack/models/rules_collection.rb +32 -0
- data/lib/fog/introspection/openstack/requests/abort_introspection.rb +25 -0
- data/lib/fog/introspection/openstack/requests/create_introspection.rb +35 -0
- data/lib/fog/introspection/openstack/requests/create_rules.rb +37 -0
- data/lib/fog/introspection/openstack/requests/delete_rules.rb +23 -0
- data/lib/fog/introspection/openstack/requests/delete_rules_all.rb +23 -0
- data/lib/fog/introspection/openstack/requests/get_introspection.rb +24 -0
- data/lib/fog/introspection/openstack/requests/get_introspection_details.rb +24 -0
- data/lib/fog/introspection/openstack/requests/get_rules.rb +24 -0
- data/lib/fog/introspection/openstack/requests/list_rules.rb +24 -0
- data/lib/fog/key_manager/openstack.rb +151 -0
- data/lib/fog/key_manager/openstack/models/acl.rb +23 -0
- data/lib/fog/key_manager/openstack/models/container.rb +44 -0
- data/lib/fog/key_manager/openstack/models/containers.rb +25 -0
- data/lib/fog/key_manager/openstack/models/secret.rb +53 -0
- data/lib/fog/key_manager/openstack/models/secrets.rb +25 -0
- data/lib/fog/key_manager/openstack/requests/create_container.rb +19 -0
- data/lib/fog/key_manager/openstack/requests/create_secret.rb +19 -0
- data/lib/fog/key_manager/openstack/requests/delete_container.rb +18 -0
- data/lib/fog/key_manager/openstack/requests/delete_container_acl.rb +24 -0
- data/lib/fog/key_manager/openstack/requests/delete_secret.rb +18 -0
- data/lib/fog/key_manager/openstack/requests/delete_secret_acl.rb +24 -0
- data/lib/fog/key_manager/openstack/requests/get_container.rb +18 -0
- data/lib/fog/key_manager/openstack/requests/get_container_acl.rb +31 -0
- data/lib/fog/key_manager/openstack/requests/get_secret.rb +18 -0
- data/lib/fog/key_manager/openstack/requests/get_secret_acl.rb +31 -0
- data/lib/fog/key_manager/openstack/requests/get_secret_metadata.rb +18 -0
- data/lib/fog/key_manager/openstack/requests/get_secret_payload.rb +21 -0
- data/lib/fog/key_manager/openstack/requests/list_containers.rb +19 -0
- data/lib/fog/key_manager/openstack/requests/list_secrets.rb +19 -0
- data/lib/fog/key_manager/openstack/requests/replace_container_acl.rb +27 -0
- data/lib/fog/key_manager/openstack/requests/replace_secret_acl.rb +27 -0
- data/lib/fog/key_manager/openstack/requests/update_container_acl.rb +26 -0
- data/lib/fog/key_manager/openstack/requests/update_secret_acl.rb +26 -0
- data/lib/fog/metering/openstack.rb +132 -0
- data/lib/fog/metering/openstack/models/event.rb +16 -0
- data/lib/fog/metering/openstack/models/events.rb +23 -0
- data/lib/fog/metering/openstack/models/meter.rb +0 -0
- data/lib/fog/metering/openstack/models/meters.rb +0 -0
- data/lib/fog/metering/openstack/models/resource.rb +15 -0
- data/lib/fog/metering/openstack/models/resources.rb +23 -0
- data/lib/fog/metering/openstack/requests/get_event.rb +27 -0
- data/lib/fog/metering/openstack/requests/get_resource.rb +29 -0
- data/lib/fog/metering/openstack/requests/get_samples.rb +52 -0
- data/lib/fog/metering/openstack/requests/get_statistics.rb +52 -0
- data/lib/fog/metering/openstack/requests/list_events.rb +42 -0
- data/lib/fog/metering/openstack/requests/list_meters.rb +46 -0
- data/lib/fog/metering/openstack/requests/list_resources.rb +29 -0
- data/lib/fog/metric/openstack.rb +126 -0
- data/lib/fog/metric/openstack/models/metric.rb +18 -0
- data/lib/fog/metric/openstack/models/metrics.rb +31 -0
- data/lib/fog/metric/openstack/models/resource.rb +16 -0
- data/lib/fog/metric/openstack/models/resources.rb +24 -0
- data/lib/fog/metric/openstack/requests/get_metric.rb +62 -0
- data/lib/fog/metric/openstack/requests/get_metric_measures.rb +38 -0
- data/lib/fog/metric/openstack/requests/get_resource.rb +37 -0
- data/lib/fog/metric/openstack/requests/get_resource_metric_measures.rb +46 -0
- data/lib/fog/metric/openstack/requests/list_metrics.rb +104 -0
- data/lib/fog/metric/openstack/requests/list_resources.rb +70 -0
- data/lib/fog/monitoring/openstack.rb +96 -0
- data/lib/fog/monitoring/openstack/models/alarm.rb +47 -0
- data/lib/fog/monitoring/openstack/models/alarm_count.rb +17 -0
- data/lib/fog/monitoring/openstack/models/alarm_counts.rb +16 -0
- data/lib/fog/monitoring/openstack/models/alarm_definition.rb +57 -0
- data/lib/fog/monitoring/openstack/models/alarm_definitions.rb +42 -0
- data/lib/fog/monitoring/openstack/models/alarm_state.rb +32 -0
- data/lib/fog/monitoring/openstack/models/alarm_states.rb +20 -0
- data/lib/fog/monitoring/openstack/models/alarms.rb +30 -0
- data/lib/fog/monitoring/openstack/models/dimension_value.rb +19 -0
- data/lib/fog/monitoring/openstack/models/dimension_values.rb +16 -0
- data/lib/fog/monitoring/openstack/models/measurement.rb +20 -0
- data/lib/fog/monitoring/openstack/models/measurements.rb +16 -0
- data/lib/fog/monitoring/openstack/models/metric.rb +27 -0
- data/lib/fog/monitoring/openstack/models/metrics.rb +36 -0
- data/lib/fog/monitoring/openstack/models/notification_method.rb +47 -0
- data/lib/fog/monitoring/openstack/models/notification_methods.rb +42 -0
- data/lib/fog/monitoring/openstack/models/statistic.rb +20 -0
- data/lib/fog/monitoring/openstack/models/statistics.rb +16 -0
- data/lib/fog/monitoring/openstack/requests/create_alarm_definition.rb +19 -0
- data/lib/fog/monitoring/openstack/requests/create_metric.rb +29 -0
- data/lib/fog/monitoring/openstack/requests/create_metric_array.rb +19 -0
- data/lib/fog/monitoring/openstack/requests/create_notification_method.rb +19 -0
- data/lib/fog/monitoring/openstack/requests/delete_alarm.rb +18 -0
- data/lib/fog/monitoring/openstack/requests/delete_alarm_definition.rb +18 -0
- data/lib/fog/monitoring/openstack/requests/delete_notification_method.rb +18 -0
- data/lib/fog/monitoring/openstack/requests/find_measurements.rb +22 -0
- data/lib/fog/monitoring/openstack/requests/get_alarm.rb +21 -0
- data/lib/fog/monitoring/openstack/requests/get_alarm_counts.rb +22 -0
- data/lib/fog/monitoring/openstack/requests/get_alarm_definition.rb +18 -0
- data/lib/fog/monitoring/openstack/requests/get_notification_method.rb +18 -0
- data/lib/fog/monitoring/openstack/requests/list_alarm_definitions.rb +22 -0
- data/lib/fog/monitoring/openstack/requests/list_alarm_state_history_for_all_alarms.rb +22 -0
- data/lib/fog/monitoring/openstack/requests/list_alarm_state_history_for_specific_alarm.rb +22 -0
- data/lib/fog/monitoring/openstack/requests/list_alarms.rb +22 -0
- data/lib/fog/monitoring/openstack/requests/list_dimension_values.rb +21 -0
- data/lib/fog/monitoring/openstack/requests/list_metric_names.rb +22 -0
- data/lib/fog/monitoring/openstack/requests/list_metrics.rb +22 -0
- data/lib/fog/monitoring/openstack/requests/list_notification_method_types.rb +21 -0
- data/lib/fog/monitoring/openstack/requests/list_notification_methods.rb +22 -0
- data/lib/fog/monitoring/openstack/requests/list_statistics.rb +22 -0
- data/lib/fog/monitoring/openstack/requests/patch_alarm.rb +19 -0
- data/lib/fog/monitoring/openstack/requests/patch_alarm_definition.rb +19 -0
- data/lib/fog/monitoring/openstack/requests/patch_notification_method.rb +19 -0
- data/lib/fog/monitoring/openstack/requests/put_notification_method.rb +19 -0
- data/lib/fog/monitoring/openstack/requests/update_alarm.rb +19 -0
- data/lib/fog/monitoring/openstack/requests/update_alarm_definition.rb +19 -0
- data/lib/fog/network/openstack.rb +479 -0
- data/lib/fog/network/openstack/models/extension.rb +15 -0
- data/lib/fog/network/openstack/models/extensions.rb +32 -0
- data/lib/fog/network/openstack/models/floating_ip.rb +64 -0
- data/lib/fog/network/openstack/models/floating_ips.rb +32 -0
- data/lib/fog/network/openstack/models/ike_policies.rb +32 -0
- data/lib/fog/network/openstack/models/ike_policy.rb +43 -0
- data/lib/fog/network/openstack/models/ipsec_policies.rb +32 -0
- data/lib/fog/network/openstack/models/ipsec_policy.rb +45 -0
- data/lib/fog/network/openstack/models/ipsec_site_connection.rb +51 -0
- data/lib/fog/network/openstack/models/ipsec_site_connections.rb +33 -0
- data/lib/fog/network/openstack/models/lb_health_monitor.rb +57 -0
- data/lib/fog/network/openstack/models/lb_health_monitors.rb +32 -0
- data/lib/fog/network/openstack/models/lb_member.rb +42 -0
- data/lib/fog/network/openstack/models/lb_members.rb +32 -0
- data/lib/fog/network/openstack/models/lb_pool.rb +67 -0
- data/lib/fog/network/openstack/models/lb_pools.rb +32 -0
- data/lib/fog/network/openstack/models/lb_vip.rb +48 -0
- data/lib/fog/network/openstack/models/lb_vips.rb +32 -0
- data/lib/fog/network/openstack/models/network.rb +43 -0
- data/lib/fog/network/openstack/models/network_ip_availabilities.rb +24 -0
- data/lib/fog/network/openstack/models/network_ip_availability.rb +17 -0
- data/lib/fog/network/openstack/models/networks.rb +32 -0
- data/lib/fog/network/openstack/models/port.rb +42 -0
- data/lib/fog/network/openstack/models/ports.rb +32 -0
- data/lib/fog/network/openstack/models/rbac_policies.rb +33 -0
- data/lib/fog/network/openstack/models/rbac_policy.rb +34 -0
- data/lib/fog/network/openstack/models/router.rb +61 -0
- data/lib/fog/network/openstack/models/routers.rb +32 -0
- data/lib/fog/network/openstack/models/security_group.rb +37 -0
- data/lib/fog/network/openstack/models/security_group_rule.rb +33 -0
- data/lib/fog/network/openstack/models/security_group_rules.rb +32 -0
- data/lib/fog/network/openstack/models/security_groups.rb +32 -0
- data/lib/fog/network/openstack/models/subnet.rb +44 -0
- data/lib/fog/network/openstack/models/subnet_pool.rb +47 -0
- data/lib/fog/network/openstack/models/subnet_pools.rb +33 -0
- data/lib/fog/network/openstack/models/subnets.rb +32 -0
- data/lib/fog/network/openstack/models/vpn_service.rb +42 -0
- data/lib/fog/network/openstack/models/vpn_services.rb +32 -0
- data/lib/fog/network/openstack/requests/add_router_interface.rb +52 -0
- data/lib/fog/network/openstack/requests/associate_floating_ip.rb +47 -0
- data/lib/fog/network/openstack/requests/associate_lb_health_monitor.rb +37 -0
- data/lib/fog/network/openstack/requests/create_floating_ip.rb +45 -0
- data/lib/fog/network/openstack/requests/create_ike_policy.rb +52 -0
- data/lib/fog/network/openstack/requests/create_ipsec_policy.rb +52 -0
- data/lib/fog/network/openstack/requests/create_ipsec_site_connection.rb +65 -0
- data/lib/fog/network/openstack/requests/create_lb_health_monitor.rb +54 -0
- data/lib/fog/network/openstack/requests/create_lb_member.rb +51 -0
- data/lib/fog/network/openstack/requests/create_lb_pool.rb +58 -0
- data/lib/fog/network/openstack/requests/create_lb_vip.rb +58 -0
- data/lib/fog/network/openstack/requests/create_lbaas_healthmonitor.rb +57 -0
- data/lib/fog/network/openstack/requests/create_lbaas_l7policy.rb +50 -0
- data/lib/fog/network/openstack/requests/create_lbaas_l7rule.rb +50 -0
- data/lib/fog/network/openstack/requests/create_lbaas_listener.rb +55 -0
- data/lib/fog/network/openstack/requests/create_lbaas_loadbalancer.rb +52 -0
- data/lib/fog/network/openstack/requests/create_lbaas_pool.rb +53 -0
- data/lib/fog/network/openstack/requests/create_lbaas_pool_member.rb +49 -0
- data/lib/fog/network/openstack/requests/create_network.rb +88 -0
- data/lib/fog/network/openstack/requests/create_port.rb +53 -0
- data/lib/fog/network/openstack/requests/create_rbac_policy.rb +42 -0
- data/lib/fog/network/openstack/requests/create_router.rb +76 -0
- data/lib/fog/network/openstack/requests/create_security_group.rb +92 -0
- data/lib/fog/network/openstack/requests/create_security_group_rule.rb +79 -0
- data/lib/fog/network/openstack/requests/create_subnet.rb +54 -0
- data/lib/fog/network/openstack/requests/create_subnet_pool.rb +56 -0
- data/lib/fog/network/openstack/requests/create_vpn_service.rb +51 -0
- data/lib/fog/network/openstack/requests/delete_floating_ip.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_ike_policy.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_ipsec_policy.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_ipsec_site_connection.rb +29 -0
- data/lib/fog/network/openstack/requests/delete_lb_health_monitor.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_lb_member.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_lb_pool.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_lb_vip.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_lbaas_healthmonitor.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_lbaas_l7policy.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_lbaas_l7rule.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_lbaas_listener.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_lbaas_loadbalancer.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_lbaas_pool.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_lbaas_pool_member.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_network.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_port.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_quota.rb +23 -0
- data/lib/fog/network/openstack/requests/delete_rbac_policy.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_router.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_security_group.rb +32 -0
- data/lib/fog/network/openstack/requests/delete_security_group_rule.rb +32 -0
- data/lib/fog/network/openstack/requests/delete_subnet.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_subnet_pool.rb +28 -0
- data/lib/fog/network/openstack/requests/delete_vpn_service.rb +28 -0
- data/lib/fog/network/openstack/requests/disassociate_floating_ip.rb +47 -0
- data/lib/fog/network/openstack/requests/disassociate_lb_health_monitor.rb +29 -0
- data/lib/fog/network/openstack/requests/get_extension.rb +28 -0
- data/lib/fog/network/openstack/requests/get_floating_ip.rb +39 -0
- data/lib/fog/network/openstack/requests/get_ike_policy.rb +28 -0
- data/lib/fog/network/openstack/requests/get_ipsec_policy.rb +28 -0
- data/lib/fog/network/openstack/requests/get_ipsec_site_connection.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lb_health_monitor.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lb_member.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lb_pool.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lb_pool_stats.rb +33 -0
- data/lib/fog/network/openstack/requests/get_lb_vip.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lbaas_healthmonitor.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lbaas_l7policy.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lbaas_l7rule.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lbaas_listener.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lbaas_loadbalancer.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lbaas_pool.rb +28 -0
- data/lib/fog/network/openstack/requests/get_lbaas_pool_member.rb +28 -0
- data/lib/fog/network/openstack/requests/get_network.rb +28 -0
- data/lib/fog/network/openstack/requests/get_network_ip_availability.rb +28 -0
- data/lib/fog/network/openstack/requests/get_port.rb +51 -0
- data/lib/fog/network/openstack/requests/get_quota.rb +26 -0
- data/lib/fog/network/openstack/requests/get_quotas.rb +26 -0
- data/lib/fog/network/openstack/requests/get_rbac_policy.rb +28 -0
- data/lib/fog/network/openstack/requests/get_router.rb +30 -0
- data/lib/fog/network/openstack/requests/get_security_group.rb +52 -0
- data/lib/fog/network/openstack/requests/get_security_group_rule.rb +47 -0
- data/lib/fog/network/openstack/requests/get_subnet.rb +47 -0
- data/lib/fog/network/openstack/requests/get_subnet_pool.rb +29 -0
- data/lib/fog/network/openstack/requests/get_vpn_service.rb +28 -0
- data/lib/fog/network/openstack/requests/list_extensions.rb +25 -0
- data/lib/fog/network/openstack/requests/list_floating_ips.rb +25 -0
- data/lib/fog/network/openstack/requests/list_ike_policies.rb +25 -0
- data/lib/fog/network/openstack/requests/list_ipsec_policies.rb +25 -0
- data/lib/fog/network/openstack/requests/list_ipsec_site_connections.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lb_health_monitors.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lb_members.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lb_pools.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lb_vips.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lbaas_healthmonitors.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lbaas_l7policies.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lbaas_l7rules.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lbaas_listeners.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lbaas_loadbalancers.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lbaas_pool_members.rb +25 -0
- data/lib/fog/network/openstack/requests/list_lbaas_pools.rb +25 -0
- data/lib/fog/network/openstack/requests/list_network_ip_availabilities.rb +28 -0
- data/lib/fog/network/openstack/requests/list_networks.rb +25 -0
- data/lib/fog/network/openstack/requests/list_ports.rb +25 -0
- data/lib/fog/network/openstack/requests/list_rbac_policies.rb +25 -0
- data/lib/fog/network/openstack/requests/list_routers.rb +25 -0
- data/lib/fog/network/openstack/requests/list_security_group_rules.rb +48 -0
- data/lib/fog/network/openstack/requests/list_security_groups.rb +53 -0
- data/lib/fog/network/openstack/requests/list_subnet_pools.rb +25 -0
- data/lib/fog/network/openstack/requests/list_subnets.rb +25 -0
- data/lib/fog/network/openstack/requests/list_vpn_services.rb +25 -0
- data/lib/fog/network/openstack/requests/remove_router_interface.rb +34 -0
- data/lib/fog/network/openstack/requests/set_tenant.rb +20 -0
- data/lib/fog/network/openstack/requests/update_ike_policy.rb +48 -0
- data/lib/fog/network/openstack/requests/update_ipsec_policy.rb +51 -0
- data/lib/fog/network/openstack/requests/update_ipsec_site_connection.rb +63 -0
- data/lib/fog/network/openstack/requests/update_lb_health_monitor.rb +43 -0
- data/lib/fog/network/openstack/requests/update_lb_member.rb +39 -0
- data/lib/fog/network/openstack/requests/update_lb_pool.rb +40 -0
- data/lib/fog/network/openstack/requests/update_lb_vip.rb +42 -0
- data/lib/fog/network/openstack/requests/update_lbaas_healthmonitor.rb +43 -0
- data/lib/fog/network/openstack/requests/update_lbaas_l7policy.rb +43 -0
- data/lib/fog/network/openstack/requests/update_lbaas_l7rule.rb +42 -0
- data/lib/fog/network/openstack/requests/update_lbaas_listener.rb +44 -0
- data/lib/fog/network/openstack/requests/update_lbaas_loadbalancer.rb +41 -0
- data/lib/fog/network/openstack/requests/update_lbaas_pool.rb +40 -0
- data/lib/fog/network/openstack/requests/update_lbaas_pool_member.rb +39 -0
- data/lib/fog/network/openstack/requests/update_network.rb +58 -0
- data/lib/fog/network/openstack/requests/update_port.rb +44 -0
- data/lib/fog/network/openstack/requests/update_quota.rb +27 -0
- data/lib/fog/network/openstack/requests/update_rbac_policy.rb +41 -0
- data/lib/fog/network/openstack/requests/update_router.rb +71 -0
- data/lib/fog/network/openstack/requests/update_security_group.rb +41 -0
- data/lib/fog/network/openstack/requests/update_subnet.rb +43 -0
- data/lib/fog/network/openstack/requests/update_subnet_pool.rb +46 -0
- data/lib/fog/network/openstack/requests/update_vpn_service.rb +46 -0
- data/lib/fog/nfv/openstack.rb +133 -0
- data/lib/fog/nfv/openstack/models/vnf.rb +58 -0
- data/lib/fog/nfv/openstack/models/vnfd.rb +53 -0
- data/lib/fog/nfv/openstack/models/vnfds.rb +28 -0
- data/lib/fog/nfv/openstack/models/vnfs.rb +28 -0
- data/lib/fog/nfv/openstack/requests/create_vnf.rb +37 -0
- data/lib/fog/nfv/openstack/requests/create_vnfd.rb +35 -0
- data/lib/fog/nfv/openstack/requests/delete_vnf.rb +23 -0
- data/lib/fog/nfv/openstack/requests/delete_vnfd.rb +23 -0
- data/lib/fog/nfv/openstack/requests/get_vnf.rb +24 -0
- data/lib/fog/nfv/openstack/requests/get_vnfd.rb +24 -0
- data/lib/fog/nfv/openstack/requests/list_vnfds.rb +25 -0
- data/lib/fog/nfv/openstack/requests/list_vnfs.rb +25 -0
- data/lib/fog/nfv/openstack/requests/update_vnf.rb +35 -0
- data/lib/fog/openstack.rb +622 -0
- data/lib/fog/openstack/core.rb +218 -0
- data/lib/fog/openstack/errors.rb +42 -0
- data/lib/fog/openstack/models/collection.rb +48 -0
- data/lib/fog/openstack/models/meta_parent.rb +31 -0
- data/lib/fog/openstack/models/model.rb +44 -0
- data/lib/fog/openstack/version.rb +5 -0
- data/lib/fog/orchestration/openstack.rb +156 -0
- data/lib/fog/orchestration/openstack/models/event.rb +18 -0
- data/lib/fog/orchestration/openstack/models/events.rb +31 -0
- data/lib/fog/orchestration/openstack/models/resource.rb +30 -0
- data/lib/fog/orchestration/openstack/models/resource_schemas.rb +15 -0
- data/lib/fog/orchestration/openstack/models/resources.rb +35 -0
- data/lib/fog/orchestration/openstack/models/stack.rb +128 -0
- data/lib/fog/orchestration/openstack/models/stacks.rb +64 -0
- data/lib/fog/orchestration/openstack/models/template.rb +13 -0
- data/lib/fog/orchestration/openstack/models/templates.rb +45 -0
- data/lib/fog/orchestration/openstack/requests/abandon_stack.rb +15 -0
- data/lib/fog/orchestration/openstack/requests/build_info.rb +15 -0
- data/lib/fog/orchestration/openstack/requests/cancel_update.rb +26 -0
- data/lib/fog/orchestration/openstack/requests/create_stack.rb +99 -0
- data/lib/fog/orchestration/openstack/requests/delete_stack.rb +58 -0
- data/lib/fog/orchestration/openstack/requests/get_stack_template.rb +20 -0
- data/lib/fog/orchestration/openstack/requests/list_events.rb +46 -0
- data/lib/fog/orchestration/openstack/requests/list_resource_events.rb +28 -0
- data/lib/fog/orchestration/openstack/requests/list_resource_types.rb +27 -0
- data/lib/fog/orchestration/openstack/requests/list_resources.rb +46 -0
- data/lib/fog/orchestration/openstack/requests/list_stack_data.rb +27 -0
- data/lib/fog/orchestration/openstack/requests/list_stack_data_detailed.rb +49 -0
- data/lib/fog/orchestration/openstack/requests/list_stack_events.rb +27 -0
- data/lib/fog/orchestration/openstack/requests/patch_stack.rb +37 -0
- data/lib/fog/orchestration/openstack/requests/preview_stack.rb +16 -0
- data/lib/fog/orchestration/openstack/requests/show_event_details.rb +26 -0
- data/lib/fog/orchestration/openstack/requests/show_resource_data.rb +26 -0
- data/lib/fog/orchestration/openstack/requests/show_resource_metadata.rb +26 -0
- data/lib/fog/orchestration/openstack/requests/show_resource_schema.rb +15 -0
- data/lib/fog/orchestration/openstack/requests/show_resource_template.rb +20 -0
- data/lib/fog/orchestration/openstack/requests/show_stack_details.rb +26 -0
- data/lib/fog/orchestration/openstack/requests/update_stack.rb +88 -0
- data/lib/fog/orchestration/openstack/requests/validate_template.rb +16 -0
- data/lib/fog/orchestration/util/recursive_hot_file_loader.rb +220 -0
- data/lib/fog/planning/openstack.rb +149 -0
- data/lib/fog/planning/openstack/models/plan.rb +69 -0
- data/lib/fog/planning/openstack/models/plans.rb +31 -0
- data/lib/fog/planning/openstack/models/role.rb +23 -0
- data/lib/fog/planning/openstack/models/roles.rb +16 -0
- data/lib/fog/planning/openstack/requests/add_role_to_plan.rb +40 -0
- data/lib/fog/planning/openstack/requests/create_plan.rb +33 -0
- data/lib/fog/planning/openstack/requests/delete_plan.rb +23 -0
- data/lib/fog/planning/openstack/requests/get_plan.rb +58 -0
- data/lib/fog/planning/openstack/requests/get_plan_templates.rb +28 -0
- data/lib/fog/planning/openstack/requests/list_plans.rb +61 -0
- data/lib/fog/planning/openstack/requests/list_roles.rb +32 -0
- data/lib/fog/planning/openstack/requests/patch_plan.rb +51 -0
- data/lib/fog/planning/openstack/requests/remove_role_from_plan.rb +32 -0
- data/lib/fog/shared_file_system/openstack.rb +389 -0
- data/lib/fog/shared_file_system/openstack/models/availability_zone.rb +15 -0
- data/lib/fog/shared_file_system/openstack/models/availability_zones.rb +16 -0
- data/lib/fog/shared_file_system/openstack/models/network.rb +42 -0
- data/lib/fog/shared_file_system/openstack/models/networks.rb +28 -0
- data/lib/fog/shared_file_system/openstack/models/share.rb +95 -0
- data/lib/fog/shared_file_system/openstack/models/share_access_rule.rb +35 -0
- data/lib/fog/shared_file_system/openstack/models/share_access_rules.rb +30 -0
- data/lib/fog/shared_file_system/openstack/models/share_export_location.rb +16 -0
- data/lib/fog/shared_file_system/openstack/models/share_export_locations.rb +31 -0
- data/lib/fog/shared_file_system/openstack/models/shares.rb +28 -0
- data/lib/fog/shared_file_system/openstack/models/snapshot.rb +45 -0
- data/lib/fog/shared_file_system/openstack/models/snapshots.rb +28 -0
- data/lib/fog/shared_file_system/openstack/requests/add_security_service_to_share_network.rb +28 -0
- data/lib/fog/shared_file_system/openstack/requests/create_security_service.rb +47 -0
- data/lib/fog/shared_file_system/openstack/requests/create_share.rb +49 -0
- data/lib/fog/shared_file_system/openstack/requests/create_share_network.rb +41 -0
- data/lib/fog/shared_file_system/openstack/requests/create_snapshot.rb +46 -0
- data/lib/fog/shared_file_system/openstack/requests/delete_security_service.rb +24 -0
- data/lib/fog/shared_file_system/openstack/requests/delete_share.rb +29 -0
- data/lib/fog/shared_file_system/openstack/requests/delete_share_network.rb +28 -0
- data/lib/fog/shared_file_system/openstack/requests/delete_snapshot.rb +30 -0
- data/lib/fog/shared_file_system/openstack/requests/extend_share.rb +24 -0
- data/lib/fog/shared_file_system/openstack/requests/get_limits.rb +45 -0
- data/lib/fog/shared_file_system/openstack/requests/get_quota.rb +26 -0
- data/lib/fog/shared_file_system/openstack/requests/get_security_service.rb +26 -0
- data/lib/fog/shared_file_system/openstack/requests/get_share.rb +26 -0
- data/lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb +29 -0
- data/lib/fog/shared_file_system/openstack/requests/get_share_network.rb +26 -0
- data/lib/fog/shared_file_system/openstack/requests/get_snapshot.rb +26 -0
- data/lib/fog/shared_file_system/openstack/requests/grant_share_access.rb +34 -0
- data/lib/fog/shared_file_system/openstack/requests/list_availability_zones.rb +24 -0
- data/lib/fog/shared_file_system/openstack/requests/list_security_services.rb +25 -0
- data/lib/fog/shared_file_system/openstack/requests/list_security_services_detail.rb +25 -0
- data/lib/fog/shared_file_system/openstack/requests/list_share_access_rules.rb +29 -0
- data/lib/fog/shared_file_system/openstack/requests/list_share_export_locations.rb +27 -0
- data/lib/fog/shared_file_system/openstack/requests/list_share_networks.rb +25 -0
- data/lib/fog/shared_file_system/openstack/requests/list_share_networks_detail.rb +25 -0
- data/lib/fog/shared_file_system/openstack/requests/list_shares.rb +25 -0
- data/lib/fog/shared_file_system/openstack/requests/list_shares_detail.rb +25 -0
- data/lib/fog/shared_file_system/openstack/requests/list_snapshots.rb +25 -0
- data/lib/fog/shared_file_system/openstack/requests/list_snapshots_detail.rb +25 -0
- data/lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb +28 -0
- data/lib/fog/shared_file_system/openstack/requests/revoke_share_access.rb +24 -0
- data/lib/fog/shared_file_system/openstack/requests/share_action.rb +16 -0
- data/lib/fog/shared_file_system/openstack/requests/share_network_action.rb +16 -0
- data/lib/fog/shared_file_system/openstack/requests/shrink_share.rb +24 -0
- data/lib/fog/shared_file_system/openstack/requests/update_quota.rb +30 -0
- data/lib/fog/shared_file_system/openstack/requests/update_security_service.rb +31 -0
- data/lib/fog/shared_file_system/openstack/requests/update_share.rb +39 -0
- data/lib/fog/shared_file_system/openstack/requests/update_share_network.rb +31 -0
- data/lib/fog/shared_file_system/openstack/requests/update_snapshot.rb +31 -0
- data/lib/fog/storage/openstack.rb +177 -0
- data/lib/fog/storage/openstack/models/directories.rb +36 -0
- data/lib/fog/storage/openstack/models/directory.rb +50 -0
- data/lib/fog/storage/openstack/models/file.rb +195 -0
- data/lib/fog/storage/openstack/models/files.rb +95 -0
- data/lib/fog/storage/openstack/requests/copy_object.rb +23 -0
- data/lib/fog/storage/openstack/requests/delete_container.rb +20 -0
- data/lib/fog/storage/openstack/requests/delete_multiple_objects.rb +65 -0
- data/lib/fog/storage/openstack/requests/delete_object.rb +21 -0
- data/lib/fog/storage/openstack/requests/delete_static_large_object.rb +41 -0
- data/lib/fog/storage/openstack/requests/get_container.rb +42 -0
- data/lib/fog/storage/openstack/requests/get_containers.rb +31 -0
- data/lib/fog/storage/openstack/requests/get_object.rb +27 -0
- data/lib/fog/storage/openstack/requests/get_object_http_url.rb +21 -0
- data/lib/fog/storage/openstack/requests/get_object_https_url.rb +81 -0
- data/lib/fog/storage/openstack/requests/head_container.rb +26 -0
- data/lib/fog/storage/openstack/requests/head_containers.rb +23 -0
- data/lib/fog/storage/openstack/requests/head_object.rb +21 -0
- data/lib/fog/storage/openstack/requests/post_object.rb +26 -0
- data/lib/fog/storage/openstack/requests/post_set_meta_temp_url_key.rb +33 -0
- data/lib/fog/storage/openstack/requests/public_url.rb +34 -0
- data/lib/fog/storage/openstack/requests/put_container.rb +24 -0
- data/lib/fog/storage/openstack/requests/put_dynamic_obj_manifest.rb +41 -0
- data/lib/fog/storage/openstack/requests/put_object.rb +65 -0
- data/lib/fog/storage/openstack/requests/put_object_manifest.rb +14 -0
- data/lib/fog/storage/openstack/requests/put_static_obj_manifest.rb +55 -0
- data/lib/fog/volume/openstack.rb +33 -0
- data/lib/fog/volume/openstack/models/availability_zone.rb +10 -0
- data/lib/fog/volume/openstack/models/availability_zones.rb +14 -0
- data/lib/fog/volume/openstack/models/backup.rb +46 -0
- data/lib/fog/volume/openstack/models/backups.rb +26 -0
- data/lib/fog/volume/openstack/models/snapshot.rb +38 -0
- data/lib/fog/volume/openstack/models/snapshots.rb +26 -0
- data/lib/fog/volume/openstack/models/transfer.rb +28 -0
- data/lib/fog/volume/openstack/models/transfers.rb +34 -0
- data/lib/fog/volume/openstack/models/volume.rb +66 -0
- data/lib/fog/volume/openstack/models/volume_type.rb +35 -0
- data/lib/fog/volume/openstack/models/volume_types.rb +22 -0
- data/lib/fog/volume/openstack/models/volumes.rb +35 -0
- data/lib/fog/volume/openstack/requests/accept_transfer.rb +22 -0
- data/lib/fog/volume/openstack/requests/action.rb +16 -0
- data/lib/fog/volume/openstack/requests/create_backup.rb +49 -0
- data/lib/fog/volume/openstack/requests/create_snapshot.rb +18 -0
- data/lib/fog/volume/openstack/requests/create_transfer.rb +25 -0
- data/lib/fog/volume/openstack/requests/create_volume.rb +23 -0
- data/lib/fog/volume/openstack/requests/create_volume_type.rb +41 -0
- data/lib/fog/volume/openstack/requests/delete_backup.rb +23 -0
- data/lib/fog/volume/openstack/requests/delete_metadata.rb +15 -0
- data/lib/fog/volume/openstack/requests/delete_snapshot.rb +23 -0
- data/lib/fog/volume/openstack/requests/delete_snapshot_metadata.rb +15 -0
- data/lib/fog/volume/openstack/requests/delete_transfer.rb +15 -0
- data/lib/fog/volume/openstack/requests/delete_volume.rb +23 -0
- data/lib/fog/volume/openstack/requests/delete_volume_type.rb +23 -0
- data/lib/fog/volume/openstack/requests/extend_volume.rb +25 -0
- data/lib/fog/volume/openstack/requests/get_backup_details.rb +34 -0
- data/lib/fog/volume/openstack/requests/get_quota.rb +26 -0
- data/lib/fog/volume/openstack/requests/get_quota_defaults.rb +26 -0
- data/lib/fog/volume/openstack/requests/get_quota_usage.rb +43 -0
- data/lib/fog/volume/openstack/requests/get_snapshot_details.rb +15 -0
- data/lib/fog/volume/openstack/requests/get_transfer_details.rb +17 -0
- data/lib/fog/volume/openstack/requests/get_volume_details.rb +15 -0
- data/lib/fog/volume/openstack/requests/get_volume_type_details.rb +32 -0
- data/lib/fog/volume/openstack/requests/list_backups.rb +16 -0
- data/lib/fog/volume/openstack/requests/list_backups_detailed.rb +45 -0
- data/lib/fog/volume/openstack/requests/list_snapshots.rb +41 -0
- data/lib/fog/volume/openstack/requests/list_snapshots_detailed.rb +27 -0
- data/lib/fog/volume/openstack/requests/list_transfers.rb +18 -0
- data/lib/fog/volume/openstack/requests/list_transfers_detailed.rb +18 -0
- data/lib/fog/volume/openstack/requests/list_volume_types.rb +41 -0
- data/lib/fog/volume/openstack/requests/list_volumes.rb +30 -0
- data/lib/fog/volume/openstack/requests/list_volumes_detailed.rb +16 -0
- data/lib/fog/volume/openstack/requests/list_zones.rb +32 -0
- data/lib/fog/volume/openstack/requests/replace_metadata.rb +20 -0
- data/lib/fog/volume/openstack/requests/restore_backup.rb +17 -0
- data/lib/fog/volume/openstack/requests/set_tenant.rb +19 -0
- data/lib/fog/volume/openstack/requests/snapshot_action.rb +16 -0
- data/lib/fog/volume/openstack/requests/update_metadata.rb +20 -0
- data/lib/fog/volume/openstack/requests/update_quota.rb +27 -0
- data/lib/fog/volume/openstack/requests/update_snapshot.rb +37 -0
- data/lib/fog/volume/openstack/requests/update_snapshot_metadata.rb +20 -0
- data/lib/fog/volume/openstack/requests/update_volume.rb +25 -0
- data/lib/fog/volume/openstack/requests/update_volume_type.rb +41 -0
- data/lib/fog/volume/openstack/v1.rb +183 -0
- data/lib/fog/volume/openstack/v1/models/availability_zone.rb +15 -0
- data/lib/fog/volume/openstack/v1/models/availability_zones.rb +16 -0
- data/lib/fog/volume/openstack/v1/models/backup.rb +15 -0
- data/lib/fog/volume/openstack/v1/models/backups.rb +16 -0
- data/lib/fog/volume/openstack/v1/models/snapshot.rb +44 -0
- data/lib/fog/volume/openstack/v1/models/snapshots.rb +16 -0
- data/lib/fog/volume/openstack/v1/models/transfer.rb +18 -0
- data/lib/fog/volume/openstack/v1/models/transfers.rb +16 -0
- data/lib/fog/volume/openstack/v1/models/volume.rb +37 -0
- data/lib/fog/volume/openstack/v1/models/volume_type.rb +16 -0
- data/lib/fog/volume/openstack/v1/models/volume_types.rb +16 -0
- data/lib/fog/volume/openstack/v1/models/volumes.rb +16 -0
- data/lib/fog/volume/openstack/v1/requests/accept_transfer.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/action.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/create_backup.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/create_snapshot.rb +45 -0
- data/lib/fog/volume/openstack/v1/requests/create_transfer.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/create_volume.rb +49 -0
- data/lib/fog/volume/openstack/v1/requests/create_volume_type.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/delete_backup.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/delete_metadata.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/delete_snapshot.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/delete_snapshot_metadata.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/delete_transfer.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/delete_volume.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/delete_volume_type.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/extend_volume.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/get_backup_details.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/get_quota.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/get_quota_defaults.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/get_quota_usage.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/get_snapshot_details.rb +32 -0
- data/lib/fog/volume/openstack/v1/requests/get_transfer_details.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/get_volume_details.rb +35 -0
- data/lib/fog/volume/openstack/v1/requests/get_volume_type_details.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/list_backups.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/list_backups_detailed.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/list_snapshots.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/list_snapshots_detailed.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/list_transfers.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/list_transfers_detailed.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/list_volume_types.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/list_volumes.rb +46 -0
- data/lib/fog/volume/openstack/v1/requests/list_volumes_detailed.rb +46 -0
- data/lib/fog/volume/openstack/v1/requests/list_zones.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/real.rb +11 -0
- data/lib/fog/volume/openstack/v1/requests/real_mock.rb +14 -0
- data/lib/fog/volume/openstack/v1/requests/replace_metadata.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/restore_backup.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/set_tenant.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/update_metadata.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/update_quota.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/update_snapshot.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/update_snapshot_metadata.rb +2 -0
- data/lib/fog/volume/openstack/v1/requests/update_volume.rb +2 -0
- data/lib/fog/volume/openstack/v2.rb +185 -0
- data/lib/fog/volume/openstack/v2/models/availability_zone.rb +15 -0
- data/lib/fog/volume/openstack/v2/models/availability_zones.rb +16 -0
- data/lib/fog/volume/openstack/v2/models/backup.rb +15 -0
- data/lib/fog/volume/openstack/v2/models/backups.rb +16 -0
- data/lib/fog/volume/openstack/v2/models/snapshot.rb +44 -0
- data/lib/fog/volume/openstack/v2/models/snapshots.rb +16 -0
- data/lib/fog/volume/openstack/v2/models/transfer.rb +18 -0
- data/lib/fog/volume/openstack/v2/models/transfers.rb +16 -0
- data/lib/fog/volume/openstack/v2/models/volume.rb +37 -0
- data/lib/fog/volume/openstack/v2/models/volume_type.rb +16 -0
- data/lib/fog/volume/openstack/v2/models/volume_types.rb +16 -0
- data/lib/fog/volume/openstack/v2/models/volumes.rb +16 -0
- data/lib/fog/volume/openstack/v2/requests/accept_transfer.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/action.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/create_backup.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/create_snapshot.rb +45 -0
- data/lib/fog/volume/openstack/v2/requests/create_transfer.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/create_volume.rb +49 -0
- data/lib/fog/volume/openstack/v2/requests/create_volume_type.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/delete_backup.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/delete_metadata.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/delete_snapshot.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/delete_snapshot_metadata.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/delete_transfer.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/delete_volume.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/delete_volume_type.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/extend_volume.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/get_backup_details.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/get_quota.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/get_quota_defaults.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/get_quota_usage.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/get_snapshot_details.rb +32 -0
- data/lib/fog/volume/openstack/v2/requests/get_transfer_details.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/get_volume_details.rb +35 -0
- data/lib/fog/volume/openstack/v2/requests/get_volume_type_details.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/list_backups.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/list_backups_detailed.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/list_snapshots.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/list_snapshots_detailed.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/list_transfers.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/list_transfers_detailed.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/list_volume_types.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/list_volumes.rb +46 -0
- data/lib/fog/volume/openstack/v2/requests/list_volumes_detailed.rb +46 -0
- data/lib/fog/volume/openstack/v2/requests/list_zones.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/real.rb +11 -0
- data/lib/fog/volume/openstack/v2/requests/real_mock.rb +14 -0
- data/lib/fog/volume/openstack/v2/requests/replace_metadata.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/restore_backup.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/set_tenant.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/snapshot_action.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/update_metadata.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/update_quota.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/update_snapshot.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/update_snapshot_metadata.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/update_volume.rb +2 -0
- data/lib/fog/volume/openstack/v2/requests/update_volume_type.rb +2 -0
- data/lib/fog/workflow/openstack.rb +12 -0
- data/lib/fog/workflow/openstack/v2.rb +160 -0
- data/lib/fog/workflow/openstack/v2/requests/create_action.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/create_action_execution.rb +31 -0
- data/lib/fog/workflow/openstack/v2/requests/create_cron_trigger.rb +55 -0
- data/lib/fog/workflow/openstack/v2/requests/create_environment.rb +31 -0
- data/lib/fog/workflow/openstack/v2/requests/create_execution.rb +30 -0
- data/lib/fog/workflow/openstack/v2/requests/create_workbook.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/create_workflow.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/delete_action.rb +25 -0
- data/lib/fog/workflow/openstack/v2/requests/delete_action_execution.rb +25 -0
- data/lib/fog/workflow/openstack/v2/requests/delete_cron_trigger.rb +25 -0
- data/lib/fog/workflow/openstack/v2/requests/delete_environment.rb +25 -0
- data/lib/fog/workflow/openstack/v2/requests/delete_execution.rb +25 -0
- data/lib/fog/workflow/openstack/v2/requests/delete_workbook.rb +25 -0
- data/lib/fog/workflow/openstack/v2/requests/delete_workflow.rb +25 -0
- data/lib/fog/workflow/openstack/v2/requests/get_action.rb +27 -0
- data/lib/fog/workflow/openstack/v2/requests/get_action_execution.rb +26 -0
- data/lib/fog/workflow/openstack/v2/requests/get_cron_trigger.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/get_environment.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/get_execution.rb +26 -0
- data/lib/fog/workflow/openstack/v2/requests/get_task.rb +27 -0
- data/lib/fog/workflow/openstack/v2/requests/get_workbook.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/get_workflow.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/list_action_executions.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/list_actions.rb +30 -0
- data/lib/fog/workflow/openstack/v2/requests/list_cron_triggers.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/list_environments.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/list_executions.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/list_services.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/list_tasks.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/list_workbooks.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/list_workflows.rb +30 -0
- data/lib/fog/workflow/openstack/v2/requests/rerun_task.rb +33 -0
- data/lib/fog/workflow/openstack/v2/requests/update_action.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/update_action_execution.rb +33 -0
- data/lib/fog/workflow/openstack/v2/requests/update_environment.rb +31 -0
- data/lib/fog/workflow/openstack/v2/requests/update_execution.rb +33 -0
- data/lib/fog/workflow/openstack/v2/requests/update_workbook.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/update_workflow.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/validate_action.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/validate_workbook.rb +28 -0
- data/lib/fog/workflow/openstack/v2/requests/validate_workflow.rb +28 -0
- data/playbooks/.gitkeep +0 -0
- data/playbooks/fog-openstack-unittest-spec/run.yaml +57 -0
- data/playbooks/fog-openstack-unittest-test/run.yaml +57 -0
- data/supported.md +56 -0
- metadata +1381 -0
@@ -0,0 +1,218 @@
|
|
1
|
+
module Fog
|
2
|
+
module OpenStack
|
3
|
+
module Core
|
4
|
+
attr_accessor :auth_token
|
5
|
+
attr_reader :unscoped_token
|
6
|
+
attr_reader :openstack_cache_ttl
|
7
|
+
attr_reader :auth_token_expiration
|
8
|
+
attr_reader :current_user
|
9
|
+
attr_reader :current_user_id
|
10
|
+
attr_reader :current_tenant
|
11
|
+
attr_reader :openstack_domain_name
|
12
|
+
attr_reader :openstack_user_domain
|
13
|
+
attr_reader :openstack_project_domain
|
14
|
+
attr_reader :openstack_domain_id
|
15
|
+
attr_reader :openstack_user_domain_id
|
16
|
+
attr_reader :openstack_project_id
|
17
|
+
attr_reader :openstack_project_domain_id
|
18
|
+
attr_reader :openstack_identity_prefix
|
19
|
+
|
20
|
+
# fallback
|
21
|
+
def self.not_found_class
|
22
|
+
Fog::Compute::OpenStack::NotFound
|
23
|
+
end
|
24
|
+
|
25
|
+
def initialize_identity(options)
|
26
|
+
# Create @openstack_* instance variables from all :openstack_* options
|
27
|
+
options.select { |x| x.to_s.start_with? 'openstack' }.each do |openstack_param, value|
|
28
|
+
instance_variable_set "@#{openstack_param}".to_sym, value
|
29
|
+
end
|
30
|
+
|
31
|
+
@auth_token ||= options[:openstack_auth_token]
|
32
|
+
@openstack_identity_public_endpoint = options[:openstack_identity_endpoint]
|
33
|
+
|
34
|
+
@openstack_auth_uri = URI.parse(options[:openstack_auth_url])
|
35
|
+
@openstack_must_reauthenticate = false
|
36
|
+
@openstack_endpoint_type = options[:openstack_endpoint_type] || 'publicURL'
|
37
|
+
|
38
|
+
@openstack_cache_ttl = options[:openstack_cache_ttl] || 0
|
39
|
+
|
40
|
+
if @auth_token
|
41
|
+
@openstack_can_reauthenticate = false
|
42
|
+
else
|
43
|
+
missing_credentials = []
|
44
|
+
|
45
|
+
missing_credentials << :openstack_api_key unless @openstack_api_key
|
46
|
+
unless @openstack_username || @openstack_userid
|
47
|
+
missing_credentials << 'openstack_username or openstack_userid'
|
48
|
+
end
|
49
|
+
raise ArgumentError, "Missing required arguments: #{missing_credentials.join(', ')}" unless missing_credentials.empty?
|
50
|
+
@openstack_can_reauthenticate = true
|
51
|
+
end
|
52
|
+
|
53
|
+
@current_user = options[:current_user]
|
54
|
+
@current_user_id = options[:current_user_id]
|
55
|
+
@current_tenant = options[:current_tenant]
|
56
|
+
end
|
57
|
+
|
58
|
+
def credentials
|
59
|
+
options = {
|
60
|
+
:provider => 'openstack',
|
61
|
+
:openstack_auth_url => @openstack_auth_uri.to_s,
|
62
|
+
:openstack_auth_token => @auth_token,
|
63
|
+
:openstack_identity_endpoint => @openstack_identity_public_endpoint,
|
64
|
+
:current_user => @current_user,
|
65
|
+
:current_user_id => @current_user_id,
|
66
|
+
:current_tenant => @current_tenant,
|
67
|
+
:unscoped_token => @unscoped_token
|
68
|
+
}
|
69
|
+
openstack_options.merge options
|
70
|
+
end
|
71
|
+
|
72
|
+
def reload
|
73
|
+
@connection.reset
|
74
|
+
end
|
75
|
+
|
76
|
+
private
|
77
|
+
|
78
|
+
def request(params, parse_json = true)
|
79
|
+
retried = false
|
80
|
+
begin
|
81
|
+
response = @connection.request(params.merge(
|
82
|
+
:headers => headers(params.delete(:headers)),
|
83
|
+
:path => "#{@path}/#{params[:path]}"
|
84
|
+
))
|
85
|
+
rescue Excon::Errors::Unauthorized => error
|
86
|
+
# token expiration and token renewal possible
|
87
|
+
if error.response.body != 'Bad username or password' && @openstack_can_reauthenticate && !retried
|
88
|
+
@openstack_must_reauthenticate = true
|
89
|
+
authenticate
|
90
|
+
set_api_path
|
91
|
+
retried = true
|
92
|
+
retry
|
93
|
+
# bad credentials or token renewal not possible
|
94
|
+
else
|
95
|
+
raise error
|
96
|
+
end
|
97
|
+
rescue Excon::Errors::HTTPStatusError => error
|
98
|
+
raise case error
|
99
|
+
when Excon::Errors::NotFound
|
100
|
+
self.class.not_found_class.slurp(error)
|
101
|
+
else
|
102
|
+
error
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
if !response.body.empty? && response.get_header('Content-Type').match('application/json')
|
107
|
+
# TODO: remove parse_json in favor of :raw_body
|
108
|
+
response.body = Fog::JSON.decode(response.body) if parse_json && !params[:raw_body]
|
109
|
+
end
|
110
|
+
|
111
|
+
response
|
112
|
+
end
|
113
|
+
|
114
|
+
def set_api_path
|
115
|
+
# if the service supports multiple versions, do the selection here
|
116
|
+
end
|
117
|
+
|
118
|
+
def set_microversion
|
119
|
+
@microversion_key ||= 'Openstack-API-Version'.freeze
|
120
|
+
@microversion_service_type ||= @openstack_service_type.first
|
121
|
+
|
122
|
+
@microversion = Fog::OpenStack.get_supported_microversion(
|
123
|
+
@supported_versions,
|
124
|
+
@openstack_management_uri,
|
125
|
+
@auth_token,
|
126
|
+
@connection_options
|
127
|
+
).to_s
|
128
|
+
|
129
|
+
# choose minimum out of reported and supported version
|
130
|
+
if microversion_newer_than?(@supported_microversion)
|
131
|
+
@microversion = @supported_microversion
|
132
|
+
end
|
133
|
+
|
134
|
+
# choose minimum out of set and wished version
|
135
|
+
if @fixed_microversion && microversion_newer_than?(@fixed_microversion)
|
136
|
+
@microversion = @fixed_microversion
|
137
|
+
elsif @fixed_microversion && @microversion != @fixed_microversion
|
138
|
+
Fog::Logger.warning("Microversion #{@fixed_microversion} not supported")
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
def microversion_newer_than?(version)
|
143
|
+
Gem::Version.new(version) < Gem::Version.new(@microversion)
|
144
|
+
end
|
145
|
+
|
146
|
+
def headers(additional_headers)
|
147
|
+
additional_headers ||= {}
|
148
|
+
unless @microversion.nil? || @microversion.empty?
|
149
|
+
microversion_value = if @microversion_key == 'Openstack-API-Version'
|
150
|
+
"#{@microversion_service_type} #{@microversion}"
|
151
|
+
else
|
152
|
+
@microversion
|
153
|
+
end
|
154
|
+
microversion_header = {@microversion_key => microversion_value}
|
155
|
+
additional_headers.merge!(microversion_header)
|
156
|
+
end
|
157
|
+
|
158
|
+
{
|
159
|
+
'Content-Type' => 'application/json',
|
160
|
+
'Accept' => 'application/json',
|
161
|
+
'X-Auth-Token' => @auth_token
|
162
|
+
}.merge!(additional_headers)
|
163
|
+
end
|
164
|
+
|
165
|
+
def openstack_options
|
166
|
+
options = {}
|
167
|
+
# Create a hash of (:openstack_*, value) of all the @openstack_* instance variables
|
168
|
+
instance_variables.select { |x| x.to_s.start_with? '@openstack' }.each do |openstack_param|
|
169
|
+
option_name = openstack_param.to_s[1..-1]
|
170
|
+
options[option_name.to_sym] = instance_variable_get openstack_param
|
171
|
+
end
|
172
|
+
options
|
173
|
+
end
|
174
|
+
|
175
|
+
def authenticate
|
176
|
+
if !@openstack_management_url || @openstack_must_reauthenticate
|
177
|
+
|
178
|
+
options = openstack_options
|
179
|
+
|
180
|
+
options[:openstack_auth_token] = @openstack_must_reauthenticate ? nil : @openstack_auth_token
|
181
|
+
|
182
|
+
credentials = Fog::OpenStack.authenticate(options, @connection_options)
|
183
|
+
|
184
|
+
@current_user = credentials[:user]
|
185
|
+
@current_user_id = credentials[:current_user_id]
|
186
|
+
@current_tenant = credentials[:tenant]
|
187
|
+
|
188
|
+
@openstack_must_reauthenticate = false
|
189
|
+
@auth_token = credentials[:token]
|
190
|
+
@openstack_management_url = credentials[:server_management_url]
|
191
|
+
@unscoped_token = credentials[:unscoped_token]
|
192
|
+
else
|
193
|
+
@auth_token = @openstack_auth_token
|
194
|
+
end
|
195
|
+
@openstack_management_uri = URI.parse(@openstack_management_url)
|
196
|
+
|
197
|
+
@host = @openstack_management_uri.host
|
198
|
+
@path = @openstack_management_uri.path
|
199
|
+
@path.sub!(%r{/$}, '')
|
200
|
+
@port = @openstack_management_uri.port
|
201
|
+
@scheme = @openstack_management_uri.scheme
|
202
|
+
|
203
|
+
# Not all implementations have identity service in the catalog
|
204
|
+
if @openstack_identity_public_endpoint || @openstack_management_url
|
205
|
+
@identity_connection = Fog::Core::Connection.new(
|
206
|
+
@openstack_identity_public_endpoint || @openstack_management_url,
|
207
|
+
false, @connection_options
|
208
|
+
)
|
209
|
+
end
|
210
|
+
|
211
|
+
# both need to be set in service's initialize for microversions to work
|
212
|
+
set_microversion if @supported_microversion && @supported_versions
|
213
|
+
|
214
|
+
true
|
215
|
+
end
|
216
|
+
end
|
217
|
+
end
|
218
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module Fog
|
2
|
+
module OpenStack
|
3
|
+
module Errors
|
4
|
+
class ServiceError < Fog::Errors::Error
|
5
|
+
attr_reader :response_data
|
6
|
+
|
7
|
+
def self.slurp(error)
|
8
|
+
if error.response.body.empty?
|
9
|
+
data = nil
|
10
|
+
message = nil
|
11
|
+
else
|
12
|
+
data = Fog::JSON.decode(error.response.body)
|
13
|
+
message = data['message']
|
14
|
+
if message.nil? and !data.values.first.nil?
|
15
|
+
message = data.values.first['message']
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
new_error = super(error, message)
|
20
|
+
new_error.instance_variable_set(:@response_data, data)
|
21
|
+
new_error
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
class ServiceUnavailable < ServiceError; end
|
26
|
+
|
27
|
+
class BadRequest < ServiceError
|
28
|
+
attr_reader :validation_errors
|
29
|
+
|
30
|
+
def self.slurp(error)
|
31
|
+
new_error = super(error)
|
32
|
+
unless new_error.response_data.nil? or new_error.response_data['badRequest'].nil?
|
33
|
+
new_error.instance_variable_set(:@validation_errors, new_error.response_data['badRequest']['validationErrors'])
|
34
|
+
end
|
35
|
+
new_error
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
class InterfaceNotImplemented < Fog::Errors::Error; end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'fog/core/collection'
|
2
|
+
|
3
|
+
module Fog
|
4
|
+
module OpenStack
|
5
|
+
class Collection < Fog::Collection
|
6
|
+
# It's important to store the whole response, it contains e.g. important info about whether there is another
|
7
|
+
# page of data.
|
8
|
+
attr_accessor :response
|
9
|
+
|
10
|
+
def load_response(response, index = nil)
|
11
|
+
# Delete it index if it's there, so we don't store response with data twice, but we store only metadata
|
12
|
+
objects = index ? response.body.delete(index) : response.body
|
13
|
+
|
14
|
+
clear && objects.each { |object| self << new(object) }
|
15
|
+
self.response = response
|
16
|
+
self
|
17
|
+
end
|
18
|
+
|
19
|
+
##################################################################################################################
|
20
|
+
# Abstract base class methods, please keep the consistent naming in all subclasses of the Collection class
|
21
|
+
|
22
|
+
# Returns detailed list of records
|
23
|
+
def all(options = {})
|
24
|
+
raise Fog::OpenStack::Errors::InterfaceNotImplemented.new('Method :all is not implemented')
|
25
|
+
end
|
26
|
+
|
27
|
+
# Returns non detailed list of records, usually just subset of attributes, which makes this call more effective.
|
28
|
+
# Not all openstack services support non detailed list, so it delegates to :all by default.
|
29
|
+
def summary(options = {})
|
30
|
+
all(options)
|
31
|
+
end
|
32
|
+
|
33
|
+
# Gets record given record's UUID
|
34
|
+
def get(uuid)
|
35
|
+
raise Fog::OpenStack::Errors::InterfaceNotImplemented.new('Method :get is not implemented')
|
36
|
+
end
|
37
|
+
|
38
|
+
def find_by_id(uuid)
|
39
|
+
get(uuid)
|
40
|
+
end
|
41
|
+
|
42
|
+
# Destroys record given record's UUID
|
43
|
+
def destroy(uuid)
|
44
|
+
raise Fog::OpenStack::Errors::InterfaceNotImplemented.new('Method :destroy is not implemented')
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module Fog
|
2
|
+
module Compute
|
3
|
+
class OpenStack
|
4
|
+
module MetaParent
|
5
|
+
def parent
|
6
|
+
@parent
|
7
|
+
end
|
8
|
+
|
9
|
+
def parent=(new_parent)
|
10
|
+
@parent = new_parent
|
11
|
+
end
|
12
|
+
|
13
|
+
def collection_name
|
14
|
+
if @parent.class == Fog::Compute::OpenStack::Image
|
15
|
+
return "images"
|
16
|
+
elsif @parent.class == Fog::Compute::OpenStack::Server
|
17
|
+
return "servers"
|
18
|
+
else
|
19
|
+
raise "Metadata is not supported for this model type."
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def metas_to_hash(metas)
|
24
|
+
hash = {}
|
25
|
+
metas.each { |meta| hash.store(meta.key, meta.value) }
|
26
|
+
hash
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'fog/core/model'
|
2
|
+
|
3
|
+
module Fog
|
4
|
+
module OpenStack
|
5
|
+
class Model < Fog::Model
|
6
|
+
# In some cases it's handy to be able to store the project for the record, e.g. swift doesn't contain project info
|
7
|
+
# in the result, so we can track it in this attribute based on what project was used in the request
|
8
|
+
attr_accessor :project
|
9
|
+
|
10
|
+
##################################################################################################################
|
11
|
+
# Abstract base class methods, please keep the consistent naming in all subclasses of the Model class
|
12
|
+
|
13
|
+
# Initialize a record
|
14
|
+
def initialize(attributes)
|
15
|
+
# Old 'connection' is renamed as service and should be used instead
|
16
|
+
prepare_service_value(attributes)
|
17
|
+
super
|
18
|
+
end
|
19
|
+
|
20
|
+
# Saves a record, call create or update based on identity, which marks if object was already created
|
21
|
+
def save
|
22
|
+
identity ? update : create
|
23
|
+
end
|
24
|
+
|
25
|
+
# Updates a record
|
26
|
+
def update
|
27
|
+
# uncomment when exception is defined in another PR
|
28
|
+
# raise Fog::OpenStack::Errors::InterfaceNotImplemented.new('Method :get is not implemented')
|
29
|
+
end
|
30
|
+
|
31
|
+
# Creates a record
|
32
|
+
def create
|
33
|
+
# uncomment when exception is defined in another PR
|
34
|
+
# raise Fog::OpenStack::Errors::InterfaceNotImplemented.new('Method :get is not implemented')
|
35
|
+
end
|
36
|
+
|
37
|
+
# Destroys a record
|
38
|
+
def destroy
|
39
|
+
# uncomment when exception is defined in another PR
|
40
|
+
# raise Fog::OpenStack::Errors::InterfaceNotImplemented.new('Method :get is not implemented')
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,156 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
module Fog
|
4
|
+
module Orchestration
|
5
|
+
class OpenStack < Fog::Service
|
6
|
+
requires :openstack_auth_url
|
7
|
+
recognizes :openstack_auth_token, :openstack_management_url,
|
8
|
+
:persistent, :openstack_service_type, :openstack_service_name,
|
9
|
+
:openstack_tenant, :openstack_tenant_id,
|
10
|
+
:openstack_api_key, :openstack_username, :openstack_identity_endpoint,
|
11
|
+
:current_user, :current_tenant, :openstack_region,
|
12
|
+
:openstack_endpoint_type, :openstack_cache_ttl,
|
13
|
+
:openstack_project_name, :openstack_project_id,
|
14
|
+
:openstack_project_domain, :openstack_user_domain, :openstack_domain_name,
|
15
|
+
:openstack_project_domain_id, :openstack_user_domain_id, :openstack_domain_id,
|
16
|
+
:openstack_identity_prefix
|
17
|
+
|
18
|
+
model_path 'fog/orchestration/openstack/models'
|
19
|
+
model :stack
|
20
|
+
collection :stacks
|
21
|
+
|
22
|
+
model :resource
|
23
|
+
collection :resources
|
24
|
+
|
25
|
+
collection :resource_schemas
|
26
|
+
|
27
|
+
model :event
|
28
|
+
collection :events
|
29
|
+
|
30
|
+
model :template
|
31
|
+
collection :templates
|
32
|
+
|
33
|
+
request_path 'fog/orchestration/openstack/requests'
|
34
|
+
request :abandon_stack
|
35
|
+
request :build_info
|
36
|
+
request :create_stack
|
37
|
+
request :delete_stack
|
38
|
+
request :get_stack_template
|
39
|
+
request :list_events
|
40
|
+
request :list_resource_events
|
41
|
+
request :list_resource_types
|
42
|
+
request :list_resources
|
43
|
+
request :list_stack_data
|
44
|
+
request :list_stack_data_detailed
|
45
|
+
request :list_stack_events
|
46
|
+
request :preview_stack
|
47
|
+
request :show_event_details
|
48
|
+
request :show_resource_data
|
49
|
+
request :show_resource_metadata
|
50
|
+
request :show_resource_schema
|
51
|
+
request :show_resource_template
|
52
|
+
request :show_stack_details
|
53
|
+
request :update_stack
|
54
|
+
request :patch_stack
|
55
|
+
request :validate_template
|
56
|
+
request :cancel_update
|
57
|
+
|
58
|
+
module Reflectable
|
59
|
+
REFLECTION_REGEX = /\/stacks\/(\w+)\/([\w|-]+)\/resources\/(\w+)/
|
60
|
+
|
61
|
+
def resource
|
62
|
+
@resource ||= service.resources.get(r[3], stack)
|
63
|
+
end
|
64
|
+
|
65
|
+
def stack
|
66
|
+
@stack ||= service.stacks.get(r[1], r[2])
|
67
|
+
end
|
68
|
+
|
69
|
+
private
|
70
|
+
|
71
|
+
def reflection
|
72
|
+
@reflection ||= REFLECTION_REGEX.match(links[0]['href'])
|
73
|
+
end
|
74
|
+
alias r reflection
|
75
|
+
end
|
76
|
+
|
77
|
+
class Mock
|
78
|
+
attr_reader :auth_token
|
79
|
+
attr_reader :auth_token_expiration
|
80
|
+
attr_reader :current_user
|
81
|
+
attr_reader :current_tenant
|
82
|
+
|
83
|
+
def self.data
|
84
|
+
@data ||= Hash.new do |hash, key|
|
85
|
+
hash[key] = {
|
86
|
+
:stacks => {}
|
87
|
+
}
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
def self.reset
|
92
|
+
@data = nil
|
93
|
+
end
|
94
|
+
|
95
|
+
def initialize(options = {})
|
96
|
+
@openstack_username = options[:openstack_username]
|
97
|
+
@openstack_auth_uri = URI.parse(options[:openstack_auth_url])
|
98
|
+
|
99
|
+
@current_tenant = options[:openstack_tenant]
|
100
|
+
|
101
|
+
@auth_token = Fog::Mock.random_base64(64)
|
102
|
+
@auth_token_expiration = (Time.now.utc + 86400).iso8601
|
103
|
+
|
104
|
+
management_url = URI.parse(options[:openstack_auth_url])
|
105
|
+
management_url.port = 8774
|
106
|
+
management_url.path = '/v1'
|
107
|
+
@openstack_management_url = management_url.to_s
|
108
|
+
|
109
|
+
identity_public_endpoint = URI.parse(options[:openstack_auth_url])
|
110
|
+
identity_public_endpoint.port = 5000
|
111
|
+
@openstack_identity_public_endpoint = identity_public_endpoint.to_s
|
112
|
+
end
|
113
|
+
|
114
|
+
def data
|
115
|
+
self.class.data["#{@openstack_username}-#{@current_tenant}"]
|
116
|
+
end
|
117
|
+
|
118
|
+
def reset_data
|
119
|
+
self.class.data.delete("#{@openstack_username}-#{@current_tenant}")
|
120
|
+
end
|
121
|
+
|
122
|
+
def credentials
|
123
|
+
{:provider => 'openstack',
|
124
|
+
:openstack_auth_url => @openstack_auth_uri.to_s,
|
125
|
+
:openstack_auth_token => @auth_token,
|
126
|
+
:openstack_management_url => @openstack_management_url,
|
127
|
+
:openstack_identity_endpoint => @openstack_identity_public_endpoint}
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
class Real
|
132
|
+
include Fog::OpenStack::Core
|
133
|
+
|
134
|
+
def self.not_found_class
|
135
|
+
Fog::Orchestration::OpenStack::NotFound
|
136
|
+
end
|
137
|
+
|
138
|
+
def initialize(options = {})
|
139
|
+
initialize_identity options
|
140
|
+
|
141
|
+
@openstack_identity_service_type = options[:openstack_identity_service_type] || 'identity'
|
142
|
+
|
143
|
+
@openstack_service_type = options[:openstack_service_type] || ['orchestration']
|
144
|
+
@openstack_service_name = options[:openstack_service_name]
|
145
|
+
|
146
|
+
@connection_options = options[:connection_options] || {}
|
147
|
+
|
148
|
+
authenticate
|
149
|
+
|
150
|
+
@persistent = options[:persistent] || false
|
151
|
+
@connection = Fog::Core::Connection.new("#{@scheme}://#{@host}:#{@port}", @persistent, @connection_options)
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|