GoogleApi.APIKeys.V2.Model.V2Restrictions (google_api_api_keys v0.2.1) View Source

Describes the restrictions on the key.

Attributes

  • androidKeyRestrictions (type: GoogleApi.APIKeys.V2.Model.V2AndroidKeyRestrictions.t, default: nil) - The Android apps that are allowed to use the key.
  • apiTargets (type: list(GoogleApi.APIKeys.V2.Model.V2ApiTarget.t), default: nil) - A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.
  • browserKeyRestrictions (type: GoogleApi.APIKeys.V2.Model.V2BrowserKeyRestrictions.t, default: nil) - The HTTP referrers (websites) that are allowed to use the key.
  • iosKeyRestrictions (type: GoogleApi.APIKeys.V2.Model.V2IosKeyRestrictions.t, default: nil) - The iOS apps that are allowed to use the key.
  • serverKeyRestrictions (type: GoogleApi.APIKeys.V2.Model.V2ServerKeyRestrictions.t, default: nil) - The IP addresses of callers that are allowed to use the key.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.APIKeys.V2.Model.V2Restrictions{
  androidKeyRestrictions:
    GoogleApi.APIKeys.V2.Model.V2AndroidKeyRestrictions.t() | nil,
  apiTargets: [GoogleApi.APIKeys.V2.Model.V2ApiTarget.t()] | nil,
  browserKeyRestrictions:
    GoogleApi.APIKeys.V2.Model.V2BrowserKeyRestrictions.t() | nil,
  iosKeyRestrictions: GoogleApi.APIKeys.V2.Model.V2IosKeyRestrictions.t() | nil,
  serverKeyRestrictions:
    GoogleApi.APIKeys.V2.Model.V2ServerKeyRestrictions.t() | nil
}

Link to this section Functions

Specs

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

Unwrap a decoded JSON object into its complex fields.