Package com.pulumi.gcp.projects.outputs
Class ApiKeyRestrictions
- java.lang.Object
-
- com.pulumi.gcp.projects.outputs.ApiKeyRestrictions
-
public final class ApiKeyRestrictions extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ApiKeyRestrictions.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<ApiKeyRestrictionsAndroidKeyRestrictions>
androidKeyRestrictions()
java.util.List<ApiKeyRestrictionsApiTarget>
apiTargets()
java.util.Optional<ApiKeyRestrictionsBrowserKeyRestrictions>
browserKeyRestrictions()
static ApiKeyRestrictions.Builder
builder()
static ApiKeyRestrictions.Builder
builder(ApiKeyRestrictions defaults)
java.util.Optional<ApiKeyRestrictionsIosKeyRestrictions>
iosKeyRestrictions()
java.util.Optional<ApiKeyRestrictionsServerKeyRestrictions>
serverKeyRestrictions()
-
-
-
Method Detail
-
androidKeyRestrictions
public java.util.Optional<ApiKeyRestrictionsAndroidKeyRestrictions> androidKeyRestrictions()
- Returns:
- The Android apps that are allowed to use the key.
-
apiTargets
public java.util.List<ApiKeyRestrictionsApiTarget> apiTargets()
- Returns:
- 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
public java.util.Optional<ApiKeyRestrictionsBrowserKeyRestrictions> browserKeyRestrictions()
- Returns:
- The HTTP referrers (websites) that are allowed to use the key.
-
iosKeyRestrictions
public java.util.Optional<ApiKeyRestrictionsIosKeyRestrictions> iosKeyRestrictions()
- Returns:
- The iOS apps that are allowed to use the key.
-
serverKeyRestrictions
public java.util.Optional<ApiKeyRestrictionsServerKeyRestrictions> serverKeyRestrictions()
- Returns:
- The IP addresses of callers that are allowed to use the key.
-
builder
public static ApiKeyRestrictions.Builder builder()
-
builder
public static ApiKeyRestrictions.Builder builder(ApiKeyRestrictions defaults)
-
-