GetAuthTypeResponse

Builder to create a `getAuthType()` response for your script project.

```javascript
function getAuthType() {
  const cc = DataStudioApp.createCommunityConnector();

  return cc.newAuthTypeResponse()
      .setAuthType(cc.AuthType.USER_PASS)
      .setHelpUrl('https://www.example.org/connector-auth-help')
      .build();
}
```

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/data-studio/get-auth-type-response#build()` | `Object` | Validates this object and returns it in the format needed by Data Studio. |
| `https://developers.google.com/apps-script/reference/data-studio/get-auth-type-response#printJson()` | `String` | Prints the JSON representation of this object. |
| `https://developers.google.com/apps-script/reference/data-studio/get-auth-type-response#setAuthType(AuthType)` | `https://developers.google.com/apps-script/reference/data-studio/get-auth-type-response#` | Sets the `https://developers.google.com/apps-script/reference/data-studio/auth-type` of the builder. |
| `https://developers.google.com/apps-script/reference/data-studio/get-auth-type-response#setHelpUrl(String)` | `https://developers.google.com/apps-script/reference/data-studio/get-auth-type-response#` | Sets the help URL of the builder. |

## Detailed documentation

### `build()`

Validates this object and returns it in the format needed by Data Studio.

#### Return


`Object` --- The validated `https://developers.google.com/apps-script/reference/data-studio/get-auth-type-response#` object.

*** ** * ** ***

### `printJson()`

Prints the JSON representation of this object. This is for debugging only.

#### Return


`String`

*** ** * ** ***

### `setAuthType(authType)`

Sets the `https://developers.google.com/apps-script/reference/data-studio/auth-type` of the builder.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `authType` | `https://developers.google.com/apps-script/reference/data-studio/auth-type` | The authentication type to set. |

#### Return


`https://developers.google.com/apps-script/reference/data-studio/get-auth-type-response#` --- This builder, for chaining.

*** ** * ** ***

### `setHelpUrl(helpUrl)`

Sets the help URL of the builder.

The help URL is an optional URL the user can visit to get help on setting up auth. This is
only supported for `USER_PASS`, `KEY`, and `USER_TOKEN`
authTypes.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `helpUrl` | `String` | The help URL to set. |

#### Return


`https://developers.google.com/apps-script/reference/data-studio/get-auth-type-response#` --- This builder, for chaining.