google_api_apigee v0.10.0 GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiProduct View Source

Attributes

  • apiResources (type: list(String.t), default: nil) - Comma-separated list of API resources to be bundled in the API Product.

    By default, the resource paths are mapped from the proxy.pathsuffix variable. The proxy path suffix is defined as the URI fragment following the ProxyEndpoint base path. For example, if the apiResources element is defined to be /forecastrss and the base path defined for the API proxy is /weather, then only requests to /weather/forecastrss are permitted by the API product. You can select a specific path, or you can select all subpaths with the following wildcard:

    • /**: Indicates that all sub-URIs are included.
    • / : Indicates that only URIs one level down are included. By default, / supports the same resources as /* as well as the base path defined by the API proxy. For example, if the base path of the API proxy is /v1/weatherapikey, then the API product supports requests to /v1/weatherapikey and to any sub-URIs, such as /v1/weatherapikey/forecastrss, /v1/weatherapikey/region/CA, and so on. For more information, see:
    • <a href="/api-platform/publish/create-api-products">Manage API products</a>
    • <a href="/api-platform/monetization/create-transaction-recording-policy#spectrpcaapi">Managing a transaction recording policy using the API</a>
  • approvalType (type: String.t, default: nil) - Specifies how API keys are approved to access the APIs defined by the API product.

    If set to manual, the consumer key is generated and returned in "pending" state. In this case, the API keys won't work until they have been explicitly approved. If set to auto, the consumer key is generated and returned in "approved" state and can be used immediately. <aside class="note"><strong>NOTE:</strong> Typically, auto is used to provide access to free or trial API products that provide limited quota or capabilities.</aside>

  • attributes (type: list(GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Attribute.t), default: nil) - Array of attributes that may be used to extend the default API product profile with customer-specific metadata. You can specify a maximum of 18 attributes.

    Use this property to specify the access level of the API product as either public, private, or internal. Only products marked public are available to developers in the Apigee developer portal. For example, you can set a product to internal while it is in development and then change access to public when it is ready to release on the portal. API products marked as private do not appear on the portal but can be accessed by external developers. For monetization, you can use the attributes field to:

    • <a href="/api-platform/monetization/create-transaction-recording-policy#spectrpsuccessapi" target="_blank">Specify transaction success criteria</a>
    • <a href="/api-platform/monetization/create-transaction-recording-policy#spectrpcaapi" target="_blank">Specify custom attributes</a> on which you base rate plan charges</a>.
  • createdAt (type: String.t, default: nil) - Response only. Creation time of this environment as milliseconds since epoch.

  • description (type: String.t, default: nil) - An overview of the API product. Include key information about the API product that is not captured by other fields.

  • displayName (type: String.t, default: nil) - The name to be displayed in the UI or developer portal to developers registering for API access.

  • environments (type: list(String.t), default: nil) - A comma-separated list of environment names to which the API product is bound. Requests to environments that are not listed are rejected.

    By specifying one or more environments, you can bind the resources listed in the API product to a specific environment, preventing developers from accessing those resources through API proxies deployed in another environment. This setting is used, for example, to prevent resources associated with API proxies in 'prod' from being accessed by API proxies deployed in 'test'.

  • lastModifiedAt (type: String.t, default: nil) - Response only. Modified time of this environment as milliseconds since epoch.

  • name (type: String.t, default: nil) - The internal name of the API Product. Characters you can use in the name are restricted to: A-Z0-9._-$ %.

    <aside class="note"><strong>NOTE:</strong> The internal name cannot be edited when updating the API product.</aside>

  • proxies (type: list(String.t), default: nil) - A comma-separated list of API proxy names to which this API product is bound. By specifying API proxies, you can associate resources in the API product with specific API proxies, preventing developers from accessing those resources through other API proxies.

    Edge rejects requests to API proxies that are not listed. <aside class="note"><strong>NOTE:</strong> The API proxy names must already exist in the specified environment as they will be validated upon creation.</aside>

  • quota (type: String.t, default: nil) - The number of request messages permitted per app by this API product for the specified quotaInterval and quotaTimeUnit.

    For example, a quota of 50, for a quotaInterval of 12 and a quotaTimeUnit of hours means 50 requests are allowed every 12 hours.

  • quotaInterval (type: String.t, default: nil) - The time interval over which the number of request messages is calculated.

  • quotaTimeUnit (type: String.t, default: nil) - The time unit defined for the quotaInterval. Valid values include minute, hour, day, or month.

  • scopes (type: list(String.t), default: nil) - A comma-separated list of OAuth scopes that are validated at runtime. Edge validates that the scopes in any access token presented match the scopes defined in the OAuth policy assoicated with the API product.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiProduct{
  apiResources: [String.t()],
  approvalType: String.t(),
  attributes: [GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1Attribute.t()],
  createdAt: String.t(),
  description: String.t(),
  displayName: String.t(),
  environments: [String.t()],
  lastModifiedAt: String.t(),
  name: String.t(),
  proxies: [String.t()],
  quota: String.t(),
  quotaInterval: String.t(),
  quotaTimeUnit: String.t(),
  scopes: [String.t()]
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.