The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Paws::CodeCommit::MergeBranchesBySquash - Arguments for method MergeBranchesBySquash on Paws::CodeCommit

DESCRIPTION

This class represents the parameters used for calling the method MergeBranchesBySquash on the AWS CodeCommit service. Use the attributes of this class as arguments to method MergeBranchesBySquash.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to MergeBranchesBySquash.

SYNOPSIS

    my $codecommit = Paws->service('CodeCommit');
    my $MergeBranchesBySquashOutput = $codecommit->MergeBranchesBySquash(
      DestinationCommitSpecifier => 'MyCommitName',
      RepositoryName             => 'MyRepositoryName',
      SourceCommitSpecifier      => 'MyCommitName',
      AuthorName                 => 'MyName',             # OPTIONAL
      CommitMessage              => 'MyMessage',          # OPTIONAL
      ConflictDetailLevel        => 'FILE_LEVEL',         # OPTIONAL
      ConflictResolution         => {
        DeleteFiles => [
          {
            FilePath => 'MyPath',

          },
          ...
        ],                                                # OPTIONAL
        ReplaceContents => [
          {
            FilePath        => 'MyPath',
            ReplacementType => 'KEEP_BASE'
            , # values: KEEP_BASE, KEEP_SOURCE, KEEP_DESTINATION, USE_NEW_CONTENT
            Content => 'BlobFileContent',    # max: 6291456; OPTIONAL
            FileMode =>
              'EXECUTABLE',    # values: EXECUTABLE, NORMAL, SYMLINK; OPTIONAL
          },
          ...
        ],                     # OPTIONAL
        SetFileModes => [
          {
            FileMode =>
              'EXECUTABLE',    # values: EXECUTABLE, NORMAL, SYMLINK; OPTIONAL
            FilePath => 'MyPath',

          },
          ...
        ],                     # OPTIONAL
      },    # OPTIONAL
      ConflictResolutionStrategy => 'NONE',            # OPTIONAL
      Email                      => 'MyEmail',         # OPTIONAL
      KeepEmptyFolders           => 1,                 # OPTIONAL
      TargetBranch               => 'MyBranchName',    # OPTIONAL
    );

    # Results:
    my $CommitId = $MergeBranchesBySquashOutput->CommitId;
    my $TreeId   = $MergeBranchesBySquashOutput->TreeId;

    # Returns a L<Paws::CodeCommit::MergeBranchesBySquashOutput> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/codecommit/MergeBranchesBySquash

ATTRIBUTES

AuthorName => Str

The name of the author who created the commit. This information will be used as both the author and committer for the commit.

CommitMessage => Str

The commit message for the merge.

ConflictDetailLevel => Str

The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which will return a not mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict will be considered not mergeable if the same file in both branches has differences on the same line.

Valid values are: "FILE_LEVEL", "LINE_LEVEL"

ConflictResolution => Paws::CodeCommit::ConflictResolution

A list of inputs to use when resolving conflicts during a merge if AUTOMERGE is chosen as the conflict resolution strategy.

ConflictResolutionStrategy => Str

Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation will be successful.

Valid values are: "NONE", "ACCEPT_SOURCE", "ACCEPT_DESTINATION", "AUTOMERGE"

REQUIRED DestinationCommitSpecifier => Str

The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.

Email => Str

The email address of the person merging the branches. This information will be used in the commit information for the merge.

KeepEmptyFolders => Bool

If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If this is specified as true, a .gitkeep file will be created for empty folders. The default is false.

REQUIRED RepositoryName => Str

The name of the repository where you want to merge two branches.

REQUIRED SourceCommitSpecifier => Str

The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.

TargetBranch => Str

The branch where the merge will be applied.

SEE ALSO

This class forms part of Paws, documenting arguments for method MergeBranchesBySquash in Paws::CodeCommit

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues