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

com.pulumi.azure.appservice.inputs.LinuxWebAppAuthSettingsGoogleArgs 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 LinuxWebAppAuthSettingsGoogleArgs extends com.pulumi.resources.ResourceArgs {

    public static final LinuxWebAppAuthSettingsGoogleArgs Empty = new LinuxWebAppAuthSettingsGoogleArgs();

    /**
     * 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 client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`.
     * 
     */
    @Import(name="clientSecret")
    private @Nullable Output clientSecret;

    /**
     * @return The client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`.
     * 
     */
    public Optional> clientSecret() {
        return Optional.ofNullable(this.clientSecret);
    }

    /**
     * The app setting name that contains the `client_secret` value used for Google login. Cannot be specified with `client_secret`.
     * 
     */
    @Import(name="clientSecretSettingName")
    private @Nullable Output clientSecretSettingName;

    /**
     * @return The app setting name that contains the `client_secret` value used for Google login. Cannot be specified with `client_secret`.
     * 
     */
    public Optional> clientSecretSettingName() {
        return Optional.ofNullable(this.clientSecretSettingName);
    }

    /**
     * Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, `openid`, `profile`, and `email` are used as default scopes.
     * 
     */
    @Import(name="oauthScopes")
    private @Nullable Output> oauthScopes;

    /**
     * @return Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, `openid`, `profile`, and `email` are used as default scopes.
     * 
     */
    public Optional>> oauthScopes() {
        return Optional.ofNullable(this.oauthScopes);
    }

    private LinuxWebAppAuthSettingsGoogleArgs() {}

    private LinuxWebAppAuthSettingsGoogleArgs(LinuxWebAppAuthSettingsGoogleArgs $) {
        this.clientId = $.clientId;
        this.clientSecret = $.clientSecret;
        this.clientSecretSettingName = $.clientSecretSettingName;
        this.oauthScopes = $.oauthScopes;
    }

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

    public static final class Builder {
        private LinuxWebAppAuthSettingsGoogleArgs $;

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

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

        /**
         * @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 clientSecret The client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`.
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(@Nullable Output clientSecret) {
            $.clientSecret = clientSecret;
            return this;
        }

        /**
         * @param clientSecret The client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`.
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(String clientSecret) {
            return clientSecret(Output.of(clientSecret));
        }

        /**
         * @param clientSecretSettingName The app setting name that contains the `client_secret` value used for Google login. Cannot be specified with `client_secret`.
         * 
         * @return builder
         * 
         */
        public Builder clientSecretSettingName(@Nullable Output clientSecretSettingName) {
            $.clientSecretSettingName = clientSecretSettingName;
            return this;
        }

        /**
         * @param clientSecretSettingName The app setting name that contains the `client_secret` value used for Google login. Cannot be specified with `client_secret`.
         * 
         * @return builder
         * 
         */
        public Builder clientSecretSettingName(String clientSecretSettingName) {
            return clientSecretSettingName(Output.of(clientSecretSettingName));
        }

        /**
         * @param oauthScopes Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, `openid`, `profile`, and `email` are used as default scopes.
         * 
         * @return builder
         * 
         */
        public Builder oauthScopes(@Nullable Output> oauthScopes) {
            $.oauthScopes = oauthScopes;
            return this;
        }

        /**
         * @param oauthScopes Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, `openid`, `profile`, and `email` are used as default scopes.
         * 
         * @return builder
         * 
         */
        public Builder oauthScopes(List oauthScopes) {
            return oauthScopes(Output.of(oauthScopes));
        }

        /**
         * @param oauthScopes Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, `openid`, `profile`, and `email` are used as default scopes.
         * 
         * @return builder
         * 
         */
        public Builder oauthScopes(String... oauthScopes) {
            return oauthScopes(List.of(oauthScopes));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy