Module com.s8.api

Class CreateRepositoryS8Request

java.lang.Object
com.s8.api.flow.repository.requests.CreateRepositoryS8Request

public abstract class CreateRepositoryS8Request extends Object
A Request object to create a new repository.
Author:
Pierre Convert Copyright (C) 2025, Pierre Convert. All rights reserved.
  • Field Details

    • repositoryName

      public final String repositoryName
      the repository name
    • repositoryAddress

      public final String repositoryAddress
      the repository address
    • repositoryInfo

      public final String repositoryInfo
      the repository info
    • mainBranchName

      public final String mainBranchName
      the main branch name
    • objects

      public final RepoS8Object[] objects
      the objects
    • initialCommitComment

      public final String initialCommitComment
      the initail commit comment
    • isResourceSaved

      public boolean isResourceSaved
      true if resource has to be saved
    • isOverrideEnabled

      public boolean isOverrideEnabled
      true if override is enabled
  • Constructor Details

    • CreateRepositoryS8Request

      public CreateRepositoryS8Request(String repositoryName, String repositoryAddress, String repositoryInfo, String mainBranchName, RepoS8Object[] objects, String initialCommitComment)
      Main constructor
      Parameters:
      repositoryName - the name of the repository
      repositoryAddress - the address of the repository
      repositoryInfo - the repository info
      mainBranchName - the main branch name
      objects - objects for the initial commit
      initialCommitComment - the initial commit comment
  • Method Details

    • onResponse

      public abstract void onResponse(CreateRepositoryS8Request.Status status, long version)
      Callback method run upon successful request execution
      Parameters:
      status - the response status
      version - the version returned
    • onFailed

      public abstract void onFailed(Exception exception)
      Callback method run upon failed request execution
      Parameters:
      exception - the execption raised during the request processing