| Class | Fog::Rackspace::Identity::Mock |
| In: |
lib/fog/rackspace/identity.rb
lib/fog/rackspace/requests/identity/list_tenants.rb lib/fog/rackspace/requests/identity/create_token.rb |
| Parent: | Fog::Rackspace::Service |
Helper method that generates a single endpoint hash within a service catalog entry.
@param tenant_id [String] The tenant ID used for this endpoint. @param region [String, nil] The region to include in this endpoint, if any. @param options [Hash] Options inherited from {service_catalog_entry}.
@return [Hash] A well-formed endpoint hash.
Generate an individual service catalog entry for a fake service catalog. Understands common patterns used within Rackspace service catalogs.
@param name [String] The required "name" attribute of the
service catalog entry.
@param type [String] The required "type" attribute. @param tenant_id [String] Tenant ID to be used for this service.
@param options [Hash] Control the contents of the generated entry. @option options [Proc] :public_url Callable invoked with each region
(or `nil`) to generate a `publicURL` for that region.
@option options [Boolean] :single_endpoint If `true`, only a single
endpoint entry will be generated, rather than an endpoint for each region.
@option options [Boolean] :internal_url_snet If `true`, an internalURL
entry will be generated by prepending "snet-" to the publicURL.
@option options [String] :rackspace_api_name If specified, will generate
publicURL as a Rackspace API URL.
@option options [String] :rackspace_api_version (`"1.0"`) Specify the
version of the Rackspace API URL.
@return [Hash] A valid service catalog entry.