All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.appservice.inputs.LinuxFunctionAppSlotAuthSettingsV2GoogleV2Args Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azure.appservice.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class LinuxFunctionAppSlotAuthSettingsV2GoogleV2Args extends com.pulumi.resources.ResourceArgs {

    public static final LinuxFunctionAppSlotAuthSettingsV2GoogleV2Args Empty = new LinuxFunctionAppSlotAuthSettingsV2GoogleV2Args();

    /**
     * Specifies a list of Allowed Audiences that should be requested as part of Google Sign-In authentication.
     * 
     */
    @Import(name="allowedAudiences")
    private @Nullable Output> allowedAudiences;

    /**
     * @return Specifies a list of Allowed Audiences that should be requested as part of Google Sign-In authentication.
     * 
     */
    public Optional>> allowedAudiences() {
        return Optional.ofNullable(this.allowedAudiences);
    }

    /**
     * The OpenID Connect Client ID for the Google web application.
     * 
     */
    @Import(name="clientId", required=true)
    private Output clientId;

    /**
     * @return The OpenID Connect Client ID for the Google web application.
     * 
     */
    public Output clientId() {
        return this.clientId;
    }

    /**
     * The app setting name that contains the `client_secret` value used for Google Login.
     * 
     * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
     * 
     */
    @Import(name="clientSecretSettingName", required=true)
    private Output clientSecretSettingName;

    /**
     * @return The app setting name that contains the `client_secret` value used for Google Login.
     * 
     * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
     * 
     */
    public Output clientSecretSettingName() {
        return this.clientSecretSettingName;
    }

    /**
     * The list of OAuth 2.0 scopes that should be requested as part of Google Sign-In authentication.
     * 
     */
    @Import(name="loginScopes")
    private @Nullable Output> loginScopes;

    /**
     * @return The list of OAuth 2.0 scopes that should be requested as part of Google Sign-In authentication.
     * 
     */
    public Optional>> loginScopes() {
        return Optional.ofNullable(this.loginScopes);
    }

    private LinuxFunctionAppSlotAuthSettingsV2GoogleV2Args() {}

    private LinuxFunctionAppSlotAuthSettingsV2GoogleV2Args(LinuxFunctionAppSlotAuthSettingsV2GoogleV2Args $) {
        this.allowedAudiences = $.allowedAudiences;
        this.clientId = $.clientId;
        this.clientSecretSettingName = $.clientSecretSettingName;
        this.loginScopes = $.loginScopes;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(LinuxFunctionAppSlotAuthSettingsV2GoogleV2Args defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private LinuxFunctionAppSlotAuthSettingsV2GoogleV2Args $;

        public Builder() {
            $ = new LinuxFunctionAppSlotAuthSettingsV2GoogleV2Args();
        }

        public Builder(LinuxFunctionAppSlotAuthSettingsV2GoogleV2Args defaults) {
            $ = new LinuxFunctionAppSlotAuthSettingsV2GoogleV2Args(Objects.requireNonNull(defaults));
        }

        /**
         * @param allowedAudiences Specifies a list of Allowed Audiences that should be requested as part of Google Sign-In authentication.
         * 
         * @return builder
         * 
         */
        public Builder allowedAudiences(@Nullable Output> allowedAudiences) {
            $.allowedAudiences = allowedAudiences;
            return this;
        }

        /**
         * @param allowedAudiences Specifies a list of Allowed Audiences that should be requested as part of Google Sign-In authentication.
         * 
         * @return builder
         * 
         */
        public Builder allowedAudiences(List allowedAudiences) {
            return allowedAudiences(Output.of(allowedAudiences));
        }

        /**
         * @param allowedAudiences Specifies a list of Allowed Audiences that should be requested as part of Google Sign-In authentication.
         * 
         * @return builder
         * 
         */
        public Builder allowedAudiences(String... allowedAudiences) {
            return allowedAudiences(List.of(allowedAudiences));
        }

        /**
         * @param clientId The OpenID Connect Client ID for the Google web application.
         * 
         * @return builder
         * 
         */
        public Builder clientId(Output clientId) {
            $.clientId = clientId;
            return this;
        }

        /**
         * @param clientId The OpenID Connect Client ID for the Google web application.
         * 
         * @return builder
         * 
         */
        public Builder clientId(String clientId) {
            return clientId(Output.of(clientId));
        }

        /**
         * @param clientSecretSettingName The app setting name that contains the `client_secret` value used for Google Login.
         * 
         * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
         * 
         * @return builder
         * 
         */
        public Builder clientSecretSettingName(Output clientSecretSettingName) {
            $.clientSecretSettingName = clientSecretSettingName;
            return this;
        }

        /**
         * @param clientSecretSettingName The app setting name that contains the `client_secret` value used for Google Login.
         * 
         * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
         * 
         * @return builder
         * 
         */
        public Builder clientSecretSettingName(String clientSecretSettingName) {
            return clientSecretSettingName(Output.of(clientSecretSettingName));
        }

        /**
         * @param loginScopes The list of OAuth 2.0 scopes that should be requested as part of Google Sign-In authentication.
         * 
         * @return builder
         * 
         */
        public Builder loginScopes(@Nullable Output> loginScopes) {
            $.loginScopes = loginScopes;
            return this;
        }

        /**
         * @param loginScopes The list of OAuth 2.0 scopes that should be requested as part of Google Sign-In authentication.
         * 
         * @return builder
         * 
         */
        public Builder loginScopes(List loginScopes) {
            return loginScopes(Output.of(loginScopes));
        }

        /**
         * @param loginScopes The list of OAuth 2.0 scopes that should be requested as part of Google Sign-In authentication.
         * 
         * @return builder
         * 
         */
        public Builder loginScopes(String... loginScopes) {
            return loginScopes(List.of(loginScopes));
        }

        public LinuxFunctionAppSlotAuthSettingsV2GoogleV2Args build() {
            if ($.clientId == null) {
                throw new MissingRequiredPropertyException("LinuxFunctionAppSlotAuthSettingsV2GoogleV2Args", "clientId");
            }
            if ($.clientSecretSettingName == null) {
                throw new MissingRequiredPropertyException("LinuxFunctionAppSlotAuthSettingsV2GoogleV2Args", "clientSecretSettingName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy