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

com.pulumi.azure.appservice.outputs.LinuxWebAppAuthSettingsGoogle 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.outputs;

import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class LinuxWebAppAuthSettingsGoogle {
    /**
     * @return The OpenID Connect Client ID for the Google web application.
     * 
     */
    private String clientId;
    /**
     * @return The client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`.
     * 
     */
    private @Nullable String clientSecret;
    /**
     * @return The app setting name that contains the `client_secret` value used for Google login. Cannot be specified with `client_secret`.
     * 
     */
    private @Nullable String clientSecretSettingName;
    /**
     * @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.
     * 
     */
    private @Nullable List oauthScopes;

    private LinuxWebAppAuthSettingsGoogle() {}
    /**
     * @return The OpenID Connect Client ID for the Google web application.
     * 
     */
    public String clientId() {
        return this.clientId;
    }
    /**
     * @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);
    }
    /**
     * @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);
    }
    /**
     * @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 List oauthScopes() {
        return this.oauthScopes == null ? List.of() : this.oauthScopes;
    }

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

    public static Builder builder(LinuxWebAppAuthSettingsGoogle defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String clientId;
        private @Nullable String clientSecret;
        private @Nullable String clientSecretSettingName;
        private @Nullable List oauthScopes;
        public Builder() {}
        public Builder(LinuxWebAppAuthSettingsGoogle defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.clientId = defaults.clientId;
    	      this.clientSecret = defaults.clientSecret;
    	      this.clientSecretSettingName = defaults.clientSecretSettingName;
    	      this.oauthScopes = defaults.oauthScopes;
        }

        @CustomType.Setter
        public Builder clientId(String clientId) {
            if (clientId == null) {
              throw new MissingRequiredPropertyException("LinuxWebAppAuthSettingsGoogle", "clientId");
            }
            this.clientId = clientId;
            return this;
        }
        @CustomType.Setter
        public Builder clientSecret(@Nullable String clientSecret) {

            this.clientSecret = clientSecret;
            return this;
        }
        @CustomType.Setter
        public Builder clientSecretSettingName(@Nullable String clientSecretSettingName) {

            this.clientSecretSettingName = clientSecretSettingName;
            return this;
        }
        @CustomType.Setter
        public Builder oauthScopes(@Nullable List oauthScopes) {

            this.oauthScopes = oauthScopes;
            return this;
        }
        public Builder oauthScopes(String... oauthScopes) {
            return oauthScopes(List.of(oauthScopes));
        }
        public LinuxWebAppAuthSettingsGoogle build() {
            final var _resultValue = new LinuxWebAppAuthSettingsGoogle();
            _resultValue.clientId = clientId;
            _resultValue.clientSecret = clientSecret;
            _resultValue.clientSecretSettingName = clientSecretSettingName;
            _resultValue.oauthScopes = oauthScopes;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy