UpdateGitHubEnterpriseServerProviderRequest constructor

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

Implementation

factory UpdateGitHubEnterpriseServerProviderRequest({
  $core.String? id,
  $core.String? name,
  $core.String? clientId,
  $core.String? clientSecret,
  $core.String? authorizationEndpoint,
  $core.String? tokenEndpoint,
  $core.String? userEndpoint,
  $core.Iterable<$core.String>? scopes,
  $11.Options? providerOptions,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (name != null) {
    _result.name = name;
  }
  if (clientId != null) {
    _result.clientId = clientId;
  }
  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;
}