net.nemerosa.ontrack.kdsl.connector.graphql.schema.CreateGitHubConfigurationMutation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-kdsl Show documentation
Show all versions of ontrack-kdsl Show documentation
Ontrack module: ontrack-kdsl
// AUTO-GENERATED FILE. DO NOT MODIFY.
//
// This class was automatically generated by Apollo GraphQL plugin from the GraphQL queries it found.
// It should not be modified by hand.
//
package net.nemerosa.ontrack.kdsl.connector.graphql.schema;
import com.apollographql.apollo.api.Input;
import com.apollographql.apollo.api.Mutation;
import com.apollographql.apollo.api.Operation;
import com.apollographql.apollo.api.OperationName;
import com.apollographql.apollo.api.Response;
import com.apollographql.apollo.api.ResponseField;
import com.apollographql.apollo.api.ScalarTypeAdapters;
import com.apollographql.apollo.api.internal.InputFieldMarshaller;
import com.apollographql.apollo.api.internal.InputFieldWriter;
import com.apollographql.apollo.api.internal.OperationRequestBodyComposer;
import com.apollographql.apollo.api.internal.QueryDocumentMinifier;
import com.apollographql.apollo.api.internal.ResponseFieldMapper;
import com.apollographql.apollo.api.internal.ResponseFieldMarshaller;
import com.apollographql.apollo.api.internal.ResponseReader;
import com.apollographql.apollo.api.internal.ResponseWriter;
import com.apollographql.apollo.api.internal.SimpleOperationResponseParser;
import com.apollographql.apollo.api.internal.UnmodifiableMapBuilder;
import com.apollographql.apollo.api.internal.Utils;
import java.io.IOException;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
import net.nemerosa.ontrack.kdsl.connector.graphql.schema.fragment.PayloadUserErrors;
import okio.Buffer;
import okio.BufferedSource;
import okio.ByteString;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public final class CreateGitHubConfigurationMutation implements Mutation {
public static final String OPERATION_ID = "f22d99cff3c974eaf01b2cebf3a7e9b34039fe81edc4ced3e8da79390b308d58";
public static final String QUERY_DOCUMENT = QueryDocumentMinifier.minify(
"mutation CreateGitHubConfiguration($name: String!, $url: String, $user: String, $password: String, $oauth2Token: String, $appId: String, $appPrivateKey: String, $appInstallationAccountName: String, $autoMergeToken: String) {\n"
+ " createGitHubConfiguration(input: {name: $name, url: $url, user: $user, password: $password, oauth2Token: $oauth2Token, appId: $appId, appPrivateKey: $appPrivateKey, appInstallationAccountName: $appInstallationAccountName, autoMergeToken: $autoMergeToken}) {\n"
+ " __typename\n"
+ " configuration {\n"
+ " __typename\n"
+ " url\n"
+ " }\n"
+ " ...PayloadUserErrors\n"
+ " }\n"
+ "}\n"
+ "fragment PayloadUserErrors on Payload {\n"
+ " __typename\n"
+ " errors {\n"
+ " __typename\n"
+ " message\n"
+ " exception\n"
+ " location\n"
+ " }\n"
+ "}"
);
public static final OperationName OPERATION_NAME = new OperationName() {
@Override
public String name() {
return "CreateGitHubConfiguration";
}
};
private final CreateGitHubConfigurationMutation.Variables variables;
public CreateGitHubConfigurationMutation(@NotNull String name, @NotNull Input url,
@NotNull Input user, @NotNull Input password,
@NotNull Input oauth2Token, @NotNull Input appId,
@NotNull Input appPrivateKey, @NotNull Input appInstallationAccountName,
@NotNull Input autoMergeToken) {
Utils.checkNotNull(name, "name == null");
Utils.checkNotNull(url, "url == null");
Utils.checkNotNull(user, "user == null");
Utils.checkNotNull(password, "password == null");
Utils.checkNotNull(oauth2Token, "oauth2Token == null");
Utils.checkNotNull(appId, "appId == null");
Utils.checkNotNull(appPrivateKey, "appPrivateKey == null");
Utils.checkNotNull(appInstallationAccountName, "appInstallationAccountName == null");
Utils.checkNotNull(autoMergeToken, "autoMergeToken == null");
variables = new CreateGitHubConfigurationMutation.Variables(name, url, user, password, oauth2Token, appId, appPrivateKey, appInstallationAccountName, autoMergeToken);
}
@Override
public String operationId() {
return OPERATION_ID;
}
@Override
public String queryDocument() {
return QUERY_DOCUMENT;
}
@Override
public CreateGitHubConfigurationMutation.Data wrapData(CreateGitHubConfigurationMutation.Data data) {
return data;
}
@Override
public CreateGitHubConfigurationMutation.Variables variables() {
return variables;
}
@Override
public ResponseFieldMapper responseFieldMapper() {
return new Data.Mapper();
}
public static Builder builder() {
return new Builder();
}
@Override
public OperationName name() {
return OPERATION_NAME;
}
@Override
@NotNull
public Response parse(@NotNull final BufferedSource source,
@NotNull final ScalarTypeAdapters scalarTypeAdapters) throws IOException {
return SimpleOperationResponseParser.parse(source, this, scalarTypeAdapters);
}
@Override
@NotNull
public Response parse(@NotNull final ByteString byteString,
@NotNull final ScalarTypeAdapters scalarTypeAdapters) throws IOException {
return parse(new Buffer().write(byteString), scalarTypeAdapters);
}
@Override
@NotNull
public Response parse(@NotNull final BufferedSource source)
throws IOException {
return parse(source, ScalarTypeAdapters.DEFAULT);
}
@Override
@NotNull
public Response parse(@NotNull final ByteString byteString)
throws IOException {
return parse(byteString, ScalarTypeAdapters.DEFAULT);
}
@Override
@NotNull
public ByteString composeRequestBody(@NotNull final ScalarTypeAdapters scalarTypeAdapters) {
return OperationRequestBodyComposer.compose(this, false, true, scalarTypeAdapters);
}
@NotNull
@Override
public ByteString composeRequestBody() {
return OperationRequestBodyComposer.compose(this, false, true, ScalarTypeAdapters.DEFAULT);
}
@Override
@NotNull
public ByteString composeRequestBody(final boolean autoPersistQueries,
final boolean withQueryDocument, @NotNull final ScalarTypeAdapters scalarTypeAdapters) {
return OperationRequestBodyComposer.compose(this, autoPersistQueries, withQueryDocument, scalarTypeAdapters);
}
public static final class Builder {
private @NotNull String name;
private Input url = Input.absent();
private Input user = Input.absent();
private Input password = Input.absent();
private Input oauth2Token = Input.absent();
private Input appId = Input.absent();
private Input appPrivateKey = Input.absent();
private Input appInstallationAccountName = Input.absent();
private Input autoMergeToken = Input.absent();
Builder() {
}
public Builder name(@NotNull String name) {
this.name = name;
return this;
}
public Builder url(@Nullable String url) {
this.url = Input.fromNullable(url);
return this;
}
public Builder user(@Nullable String user) {
this.user = Input.fromNullable(user);
return this;
}
public Builder password(@Nullable String password) {
this.password = Input.fromNullable(password);
return this;
}
public Builder oauth2Token(@Nullable String oauth2Token) {
this.oauth2Token = Input.fromNullable(oauth2Token);
return this;
}
public Builder appId(@Nullable String appId) {
this.appId = Input.fromNullable(appId);
return this;
}
public Builder appPrivateKey(@Nullable String appPrivateKey) {
this.appPrivateKey = Input.fromNullable(appPrivateKey);
return this;
}
public Builder appInstallationAccountName(@Nullable String appInstallationAccountName) {
this.appInstallationAccountName = Input.fromNullable(appInstallationAccountName);
return this;
}
public Builder autoMergeToken(@Nullable String autoMergeToken) {
this.autoMergeToken = Input.fromNullable(autoMergeToken);
return this;
}
public Builder urlInput(@NotNull Input url) {
this.url = Utils.checkNotNull(url, "url == null");
return this;
}
public Builder userInput(@NotNull Input user) {
this.user = Utils.checkNotNull(user, "user == null");
return this;
}
public Builder passwordInput(@NotNull Input password) {
this.password = Utils.checkNotNull(password, "password == null");
return this;
}
public Builder oauth2TokenInput(@NotNull Input oauth2Token) {
this.oauth2Token = Utils.checkNotNull(oauth2Token, "oauth2Token == null");
return this;
}
public Builder appIdInput(@NotNull Input appId) {
this.appId = Utils.checkNotNull(appId, "appId == null");
return this;
}
public Builder appPrivateKeyInput(@NotNull Input appPrivateKey) {
this.appPrivateKey = Utils.checkNotNull(appPrivateKey, "appPrivateKey == null");
return this;
}
public Builder appInstallationAccountNameInput(@NotNull Input appInstallationAccountName) {
this.appInstallationAccountName = Utils.checkNotNull(appInstallationAccountName, "appInstallationAccountName == null");
return this;
}
public Builder autoMergeTokenInput(@NotNull Input autoMergeToken) {
this.autoMergeToken = Utils.checkNotNull(autoMergeToken, "autoMergeToken == null");
return this;
}
public CreateGitHubConfigurationMutation build() {
Utils.checkNotNull(name, "name == null");
return new CreateGitHubConfigurationMutation(name, url, user, password, oauth2Token, appId, appPrivateKey, appInstallationAccountName, autoMergeToken);
}
}
public static final class Variables extends Operation.Variables {
private final @NotNull String name;
private final Input url;
private final Input user;
private final Input password;
private final Input oauth2Token;
private final Input appId;
private final Input appPrivateKey;
private final Input appInstallationAccountName;
private final Input autoMergeToken;
private final transient Map valueMap = new LinkedHashMap<>();
Variables(@NotNull String name, Input url, Input user, Input password,
Input oauth2Token, Input appId, Input appPrivateKey,
Input appInstallationAccountName, Input autoMergeToken) {
this.name = name;
this.url = url;
this.user = user;
this.password = password;
this.oauth2Token = oauth2Token;
this.appId = appId;
this.appPrivateKey = appPrivateKey;
this.appInstallationAccountName = appInstallationAccountName;
this.autoMergeToken = autoMergeToken;
this.valueMap.put("name", name);
if (url.defined) {
this.valueMap.put("url", url.value);
}
if (user.defined) {
this.valueMap.put("user", user.value);
}
if (password.defined) {
this.valueMap.put("password", password.value);
}
if (oauth2Token.defined) {
this.valueMap.put("oauth2Token", oauth2Token.value);
}
if (appId.defined) {
this.valueMap.put("appId", appId.value);
}
if (appPrivateKey.defined) {
this.valueMap.put("appPrivateKey", appPrivateKey.value);
}
if (appInstallationAccountName.defined) {
this.valueMap.put("appInstallationAccountName", appInstallationAccountName.value);
}
if (autoMergeToken.defined) {
this.valueMap.put("autoMergeToken", autoMergeToken.value);
}
}
public @NotNull String name() {
return name;
}
public Input url() {
return url;
}
public Input user() {
return user;
}
public Input password() {
return password;
}
public Input oauth2Token() {
return oauth2Token;
}
public Input appId() {
return appId;
}
public Input appPrivateKey() {
return appPrivateKey;
}
public Input appInstallationAccountName() {
return appInstallationAccountName;
}
public Input autoMergeToken() {
return autoMergeToken;
}
@Override
public Map valueMap() {
return Collections.unmodifiableMap(valueMap);
}
@Override
public InputFieldMarshaller marshaller() {
return new InputFieldMarshaller() {
@Override
public void marshal(InputFieldWriter writer) throws IOException {
writer.writeString("name", name);
if (url.defined) {
writer.writeString("url", url.value);
}
if (user.defined) {
writer.writeString("user", user.value);
}
if (password.defined) {
writer.writeString("password", password.value);
}
if (oauth2Token.defined) {
writer.writeString("oauth2Token", oauth2Token.value);
}
if (appId.defined) {
writer.writeString("appId", appId.value);
}
if (appPrivateKey.defined) {
writer.writeString("appPrivateKey", appPrivateKey.value);
}
if (appInstallationAccountName.defined) {
writer.writeString("appInstallationAccountName", appInstallationAccountName.value);
}
if (autoMergeToken.defined) {
writer.writeString("autoMergeToken", autoMergeToken.value);
}
}
};
}
}
/**
* Data from the response after executing this GraphQL operation
*/
public static class Data implements Operation.Data {
static final ResponseField[] $responseFields = {
ResponseField.forObject("createGitHubConfiguration", "createGitHubConfiguration", new UnmodifiableMapBuilder(1)
.put("input", new UnmodifiableMapBuilder(9)
.put("name", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "name")
.build())
.put("url", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "url")
.build())
.put("user", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "user")
.build())
.put("password", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "password")
.build())
.put("oauth2Token", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "oauth2Token")
.build())
.put("appId", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "appId")
.build())
.put("appPrivateKey", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "appPrivateKey")
.build())
.put("appInstallationAccountName", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "appInstallationAccountName")
.build())
.put("autoMergeToken", new UnmodifiableMapBuilder(2)
.put("kind", "Variable")
.put("variableName", "autoMergeToken")
.build())
.build())
.build(), true, Collections.emptyList())
};
final @Nullable CreateGitHubConfiguration createGitHubConfiguration;
private transient volatile String $toString;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
public Data(@Nullable CreateGitHubConfiguration createGitHubConfiguration) {
this.createGitHubConfiguration = createGitHubConfiguration;
}
/**
* Creates a new GitHub configuration.
*/
public @Nullable CreateGitHubConfiguration createGitHubConfiguration() {
return this.createGitHubConfiguration;
}
@SuppressWarnings({"rawtypes", "unchecked"})
public ResponseFieldMarshaller marshaller() {
return new ResponseFieldMarshaller() {
@Override
public void marshal(ResponseWriter writer) {
writer.writeObject($responseFields[0], createGitHubConfiguration != null ? createGitHubConfiguration.marshaller() : null);
}
};
}
@Override
public String toString() {
if ($toString == null) {
$toString = "Data{"
+ "createGitHubConfiguration=" + createGitHubConfiguration
+ "}";
}
return $toString;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Data) {
Data that = (Data) o;
return ((this.createGitHubConfiguration == null) ? (that.createGitHubConfiguration == null) : this.createGitHubConfiguration.equals(that.createGitHubConfiguration));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int h = 1;
h *= 1000003;
h ^= (createGitHubConfiguration == null) ? 0 : createGitHubConfiguration.hashCode();
$hashCode = h;
$hashCodeMemoized = true;
}
return $hashCode;
}
public static final class Mapper implements ResponseFieldMapper {
final CreateGitHubConfiguration.Mapper createGitHubConfigurationFieldMapper = new CreateGitHubConfiguration.Mapper();
@Override
public Data map(ResponseReader reader) {
final CreateGitHubConfiguration createGitHubConfiguration = reader.readObject($responseFields[0], new ResponseReader.ObjectReader() {
@Override
public CreateGitHubConfiguration read(ResponseReader reader) {
return createGitHubConfigurationFieldMapper.map(reader);
}
});
return new Data(createGitHubConfiguration);
}
}
}
/**
* Output type for the createGitHubConfiguration mutation.
*/
public static class CreateGitHubConfiguration {
static final ResponseField[] $responseFields = {
ResponseField.forString("__typename", "__typename", null, false, Collections.emptyList()),
ResponseField.forObject("configuration", "configuration", null, true, Collections.emptyList()),
ResponseField.forString("__typename", "__typename", null, false, Collections.emptyList())
};
final @NotNull String __typename;
final @Nullable Configuration configuration;
private final @NotNull Fragments fragments;
private transient volatile String $toString;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
public CreateGitHubConfiguration(@NotNull String __typename,
@Nullable Configuration configuration, @NotNull Fragments fragments) {
this.__typename = Utils.checkNotNull(__typename, "__typename == null");
this.configuration = configuration;
this.fragments = Utils.checkNotNull(fragments, "fragments == null");
}
public @NotNull String __typename() {
return this.__typename;
}
/**
* Saved configuration
*/
public @Nullable Configuration configuration() {
return this.configuration;
}
public @NotNull Fragments fragments() {
return this.fragments;
}
@SuppressWarnings({"rawtypes", "unchecked"})
public ResponseFieldMarshaller marshaller() {
return new ResponseFieldMarshaller() {
@Override
public void marshal(ResponseWriter writer) {
writer.writeString($responseFields[0], __typename);
writer.writeObject($responseFields[1], configuration != null ? configuration.marshaller() : null);
fragments.marshaller().marshal(writer);
}
};
}
@Override
public String toString() {
if ($toString == null) {
$toString = "CreateGitHubConfiguration{"
+ "__typename=" + __typename + ", "
+ "configuration=" + configuration + ", "
+ "fragments=" + fragments
+ "}";
}
return $toString;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof CreateGitHubConfiguration) {
CreateGitHubConfiguration that = (CreateGitHubConfiguration) o;
return this.__typename.equals(that.__typename)
&& ((this.configuration == null) ? (that.configuration == null) : this.configuration.equals(that.configuration))
&& this.fragments.equals(that.fragments);
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int h = 1;
h *= 1000003;
h ^= __typename.hashCode();
h *= 1000003;
h ^= (configuration == null) ? 0 : configuration.hashCode();
h *= 1000003;
h ^= fragments.hashCode();
$hashCode = h;
$hashCodeMemoized = true;
}
return $hashCode;
}
public static class Fragments {
final @Nullable PayloadUserErrors payloadUserErrors;
private transient volatile String $toString;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
public Fragments(@Nullable PayloadUserErrors payloadUserErrors) {
this.payloadUserErrors = payloadUserErrors;
}
public @Nullable PayloadUserErrors payloadUserErrors() {
return this.payloadUserErrors;
}
public ResponseFieldMarshaller marshaller() {
return new ResponseFieldMarshaller() {
@Override
public void marshal(ResponseWriter writer) {
final PayloadUserErrors $payloadUserErrors = payloadUserErrors;
if ($payloadUserErrors != null) {
writer.writeFragment($payloadUserErrors.marshaller());
}
}
};
}
@Override
public String toString() {
if ($toString == null) {
$toString = "Fragments{"
+ "payloadUserErrors=" + payloadUserErrors
+ "}";
}
return $toString;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Fragments) {
Fragments that = (Fragments) o;
return ((this.payloadUserErrors == null) ? (that.payloadUserErrors == null) : this.payloadUserErrors.equals(that.payloadUserErrors));
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int h = 1;
h *= 1000003;
h ^= (payloadUserErrors == null) ? 0 : payloadUserErrors.hashCode();
$hashCode = h;
$hashCodeMemoized = true;
}
return $hashCode;
}
public static final class Mapper implements ResponseFieldMapper {
static final ResponseField[] $responseFields = {
ResponseField.forFragment("__typename", "__typename", Arrays.asList(
ResponseField.Condition.typeCondition(new String[] {"CheckAutoVersioningPayload", "CreateBranchOrGetPayload", "CreateBranchPayload", "CreateBuildOrGetPayload", "CreateBuildPayload", "CreateGitHubConfigurationPayload", "CreateProjectOrGetPayload", "CreateProjectPayload", "CreatePromotionLevelByIdPayload", "CreatePromotionRunByIdPayload", "CreatePromotionRunPayload", "CreateValidationRunByIdPayload", "CreateValidationRunPayload", "CreateValidationStampByIdPayload", "CreateWebhookPayload", "DeleteBranchGitConfigPropertyByIdPayload", "DeleteBranchGitConfigPropertyPayload", "DeleteBranchMessagePropertyByIdPayload", "DeleteBranchMessagePropertyPayload", "DeleteBranchMetaInfoPropertyByIdPayload", "DeleteBranchMetaInfoPropertyPayload", "DeleteBuildGitCommitPropertyByIdPayload", "DeleteBuildGitCommitPropertyPayload", "DeleteBuildMessagePropertyByIdPayload", "DeleteBuildMessagePropertyPayload", "DeleteBuildMetaInfoPropertyByIdPayload", "DeleteBuildMetaInfoPropertyPayload", "DeleteBuildReleasePropertyByIdPayload", "DeleteBuildReleasePropertyPayload", "DeleteNotificationRecordsPayload", "DeleteProjectAutoPromotionLevelPropertyByIdPayload", "DeleteProjectAutoPromotionLevelPropertyPayload", "DeleteProjectAutoValidationStampPropertyByIdPayload", "DeleteProjectAutoValidationStampPropertyPayload", "DeleteProjectBitbucketCloudConfigurationPropertyByIdPayload", "DeleteProjectBitbucketCloudConfigurationPropertyPayload", "DeleteProjectBitbucketConfigurationPropertyByIdPayload", "DeleteProjectBitbucketConfigurationPropertyPayload", "DeleteProjectGitHubConfigurationPropertyByIdPayload", "DeleteProjectGitHubConfigurationPropertyPayload", "DeleteProjectGitLabConfigurationPropertyByIdPayload", "DeleteProjectGitLabConfigurationPropertyPayload", "DeleteProjectMessagePropertyByIdPayload", "DeleteProjectMessagePropertyPayload", "DeleteProjectMetaInfoPropertyByIdPayload", "DeleteProjectMetaInfoPropertyPayload", "DeleteProjectPayload", "DeleteProjectStalePropertyByIdPayload", "DeleteProjectStalePropertyPayload", "DeletePromotionLevelAutoPromotionPropertyByIdPayload", "DeletePromotionLevelAutoPromotionPropertyPayload", "DeletePromotionLevelMessagePropertyByIdPayload", "DeletePromotionLevelMessagePropertyPayload", "DeletePromotionLevelMetaInfoPropertyByIdPayload", "DeletePromotionLevelMetaInfoPropertyPayload", "DeletePromotionRunMessagePropertyByIdPayload", "DeletePromotionRunMessagePropertyPayload", "DeletePromotionRunMetaInfoPropertyByIdPayload", "DeletePromotionRunMetaInfoPropertyPayload", "DeleteSubscriptionPayload", "DeleteValidationRunMessagePropertyByIdPayload", "DeleteValidationRunMessagePropertyPayload", "DeleteValidationRunMetaInfoPropertyByIdPayload", "DeleteValidationRunMetaInfoPropertyPayload", "DeleteValidationStampMessagePropertyByIdPayload", "DeleteValidationStampMessagePropertyPayload", "DeleteValidationStampMetaInfoPropertyByIdPayload", "DeleteValidationStampMetaInfoPropertyPayload", "DeleteWebhookPayload", "DisableAccountPayload", "DisableProjectPayload", "DisableSubscriptionPayload", "EnableAccountPayload", "EnableProjectPayload", "EnableSubscriptionPayload", "FavouriteProjectPayload", "GitHubCheckAutoVersioningByBuildLabelPayload", "GitHubCheckAutoVersioningByBuildNamePayload", "GitHubCheckAutoVersioningByRunIdPayload", "GitHubIngestionBuildLinksByBuildLabelPayload", "GitHubIngestionBuildLinksByBuildNamePayload", "GitHubIngestionBuildLinksByRunIdPayload", "GitHubIngestionValidateDataByBuildLabelPayload", "GitHubIngestionValidateDataByBuildNamePayload", "GitHubIngestionValidateDataByRunIdPayload", "LinkBuildByIdPayload", "LinkBuildPayload", "LinksBuildPayload", "LockAccountPayload", "ReloadCascPayload", "SetAutoVersioningConfigByNamePayload", "SetAutoVersioningConfigPayload", "SetBranchGitConfigPropertyByIdPayload", "SetBranchGitConfigPropertyPayload", "SetBranchGitHubIngestionConfigPayload", "SetBranchMessagePropertyByIdPayload", "SetBranchMessagePropertyPayload", "SetBranchMetaInfoPropertyByIdPayload", "SetBranchMetaInfoPropertyPayload", "SetBranchPropertyByIdPayload", "SetBranchPropertyPayload", "SetBuildGitCommitPropertyByIdPayload", "SetBuildGitCommitPropertyPayload", "SetBuildMessagePropertyByIdPayload", "SetBuildMessagePropertyPayload", "SetBuildMetaInfoPropertyByIdPayload", "SetBuildMetaInfoPropertyPayload", "SetBuildPropertyByIdPayload", "SetBuildPropertyPayload", "SetBuildReleasePropertyByIdPayload", "SetBuildReleasePropertyPayload", "SetPreferencesPayload", "SetProjectAutoPromotionLevelPropertyByIdPayload", "SetProjectAutoPromotionLevelPropertyPayload", "SetProjectAutoValidationStampPropertyByIdPayload", "SetProjectAutoValidationStampPropertyPayload", "SetProjectBitbucketCloudConfigurationPropertyByIdPayload", "SetProjectBitbucketCloudConfigurationPropertyPayload", "SetProjectBitbucketConfigurationPropertyByIdPayload", "SetProjectBitbucketConfigurationPropertyPayload", "SetProjectGitHubConfigurationPropertyByIdPayload", "SetProjectGitHubConfigurationPropertyPayload", "SetProjectGitLabConfigurationPropertyByIdPayload", "SetProjectGitLabConfigurationPropertyPayload", "SetProjectMessagePropertyByIdPayload", "SetProjectMessagePropertyPayload", "SetProjectMetaInfoPropertyByIdPayload", "SetProjectMetaInfoPropertyPayload", "SetProjectPropertyByIdPayload", "SetProjectPropertyPayload", "SetProjectStalePropertyByIdPayload", "SetProjectStalePropertyPayload", "SetPromotionLevelAutoPromotionPropertyByIdPayload", "SetPromotionLevelAutoPromotionPropertyPayload", "SetPromotionLevelMessagePropertyByIdPayload", "SetPromotionLevelMessagePropertyPayload", "SetPromotionLevelMetaInfoPropertyByIdPayload", "SetPromotionLevelMetaInfoPropertyPayload", "SetPromotionLevelPropertyByIdPayload", "SetPromotionLevelPropertyPayload", "SetPromotionRunMessagePropertyByIdPayload", "SetPromotionRunMessagePropertyPayload", "SetPromotionRunMetaInfoPropertyByIdPayload", "SetPromotionRunMetaInfoPropertyPayload", "SetPromotionRunPropertyByIdPayload", "SetPromotionRunPropertyPayload", "SetValidationRunMessagePropertyByIdPayload", "SetValidationRunMessagePropertyPayload", "SetValidationRunMetaInfoPropertyByIdPayload", "SetValidationRunMetaInfoPropertyPayload", "SetValidationRunPropertyByIdPayload", "SetValidationRunPropertyPayload", "SetValidationStampMessagePropertyByIdPayload", "SetValidationStampMessagePropertyPayload", "SetValidationStampMetaInfoPropertyByIdPayload", "SetValidationStampMetaInfoPropertyPayload", "SetValidationStampPropertyByIdPayload", "SetValidationStampPropertyPayload", "SetupCHMLValidationStampPayload", "SetupMetricsValidationStampPayload", "SetupPercentageValidationStampPayload", "SetupPromotionLevelPayload", "SetupTestSummaryValidationStampPayload", "SetupValidationStampPayload", "SubscribeToEventsPayload", "UnfavouriteProjectPayload", "UnlockAccountPayload", "UpdateProjectPayload", "ValidateBuildByIdWithCHMLPayload", "ValidateBuildByIdWithMetricsPayload", "ValidateBuildByIdWithPercentagePayload", "ValidateBuildByIdWithTestsPayload", "ValidateBuildWithCHMLPayload", "ValidateBuildWithMetricsPayload", "ValidateBuildWithPercentagePayload", "ValidateBuildWithTestsPayload"})
))
};
final PayloadUserErrors.Mapper payloadUserErrorsFieldMapper = new PayloadUserErrors.Mapper();
@Override
public @NotNull Fragments map(ResponseReader reader) {
final PayloadUserErrors payloadUserErrors = reader.readFragment($responseFields[0], new ResponseReader.ObjectReader() {
@Override
public PayloadUserErrors read(ResponseReader reader) {
return payloadUserErrorsFieldMapper.map(reader);
}
});
return new Fragments(payloadUserErrors);
}
}
}
public static final class Mapper implements ResponseFieldMapper {
final Configuration.Mapper configurationFieldMapper = new Configuration.Mapper();
final Fragments.Mapper fragmentsFieldMapper = new Fragments.Mapper();
@Override
public CreateGitHubConfiguration map(ResponseReader reader) {
final String __typename = reader.readString($responseFields[0]);
final Configuration configuration = reader.readObject($responseFields[1], new ResponseReader.ObjectReader() {
@Override
public Configuration read(ResponseReader reader) {
return configurationFieldMapper.map(reader);
}
});
final Fragments fragments = fragmentsFieldMapper.map(reader);
return new CreateGitHubConfiguration(__typename, configuration, fragments);
}
}
}
/**
* Configuration to connect to GitHub
*/
public static class Configuration {
static final ResponseField[] $responseFields = {
ResponseField.forString("__typename", "__typename", null, false, Collections.emptyList()),
ResponseField.forString("url", "url", null, false, Collections.emptyList())
};
final @NotNull String __typename;
final @NotNull String url;
private transient volatile String $toString;
private transient volatile int $hashCode;
private transient volatile boolean $hashCodeMemoized;
public Configuration(@NotNull String __typename, @NotNull String url) {
this.__typename = Utils.checkNotNull(__typename, "__typename == null");
this.url = Utils.checkNotNull(url, "url == null");
}
public @NotNull String __typename() {
return this.__typename;
}
/**
* URL to GitHub
*/
public @NotNull String url() {
return this.url;
}
@SuppressWarnings({"rawtypes", "unchecked"})
public ResponseFieldMarshaller marshaller() {
return new ResponseFieldMarshaller() {
@Override
public void marshal(ResponseWriter writer) {
writer.writeString($responseFields[0], __typename);
writer.writeString($responseFields[1], url);
}
};
}
@Override
public String toString() {
if ($toString == null) {
$toString = "Configuration{"
+ "__typename=" + __typename + ", "
+ "url=" + url
+ "}";
}
return $toString;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Configuration) {
Configuration that = (Configuration) o;
return this.__typename.equals(that.__typename)
&& this.url.equals(that.url);
}
return false;
}
@Override
public int hashCode() {
if (!$hashCodeMemoized) {
int h = 1;
h *= 1000003;
h ^= __typename.hashCode();
h *= 1000003;
h ^= url.hashCode();
$hashCode = h;
$hashCodeMemoized = true;
}
return $hashCode;
}
public static final class Mapper implements ResponseFieldMapper {
@Override
public Configuration map(ResponseReader reader) {
final String __typename = reader.readString($responseFields[0]);
final String url = reader.readString($responseFields[1]);
return new Configuration(__typename, url);
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy