AddGitHubEnterpriseServerProviderRequest constructor

AddGitHubEnterpriseServerProviderRequest({
  1. String? clientId,
  2. String? name,
  3. String? clientSecret,
  4. String? authorizationEndpoint,
  5. String? tokenEndpoint,
  6. String? userEndpoint,
  7. Iterable<String>? scopes,
  8. Options? providerOptions,
})

Implementation

factory AddGitHubEnterpriseServerProviderRequest({
  $core.String? clientId,
  $core.String? name,
  $core.String? clientSecret,
  $core.String? authorizationEndpoint,
  $core.String? tokenEndpoint,
  $core.String? userEndpoint,
  $core.Iterable<$core.String>? scopes,
  $6.Options? providerOptions,
}) {
  final result = create();
  if (clientId != null) result.clientId = clientId;
  if (name != null) result.name = name;
  if (clientSecret != null) result.clientSecret = clientSecret;
  if (authorizationEndpoint != null)
    result.authorizationEndpoint = authorizationEndpoint;
  if (tokenEndpoint != null) result.tokenEndpoint = tokenEndpoint;
  if (userEndpoint != null) result.userEndpoint = userEndpoint;
  if (scopes != null) result.scopes.addAll(scopes);
  if (providerOptions != null) result.providerOptions = providerOptions;
  return result;
}