Developer Connect v1 API - Class DeveloperConnectClient (1.0.0-beta05)

public abstract class DeveloperConnectClient

Reference documentation and code samples for the Developer Connect v1 API class DeveloperConnectClient.

DeveloperConnect client wrapper, for convenient use.

Inheritance

object > DeveloperConnectClient

Namespace

Google.Cloud.DeveloperConnect.V1

Assembly

Google.Cloud.DeveloperConnect.V1.dll

Remarks

Service describing handlers for resources

Properties

CreateAccountConnectorOperationsClient

public virtual OperationsClient CreateAccountConnectorOperationsClient { get; }

The long-running operations client for CreateAccountConnector.

Property Value
Type Description
OperationsClient

CreateConnectionOperationsClient

public virtual OperationsClient CreateConnectionOperationsClient { get; }

The long-running operations client for CreateConnection.

Property Value
Type Description
OperationsClient

CreateGitRepositoryLinkOperationsClient

public virtual OperationsClient CreateGitRepositoryLinkOperationsClient { get; }

The long-running operations client for CreateGitRepositoryLink.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the DeveloperConnect service, which is a host of "developerconnect.googleapis.com" and a port of 443.

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default DeveloperConnect scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default DeveloperConnect scopes are:

DeleteAccountConnectorOperationsClient

public virtual OperationsClient DeleteAccountConnectorOperationsClient { get; }

The long-running operations client for DeleteAccountConnector.

Property Value
Type Description
OperationsClient

DeleteConnectionOperationsClient

public virtual OperationsClient DeleteConnectionOperationsClient { get; }

The long-running operations client for DeleteConnection.

Property Value
Type Description
OperationsClient

DeleteGitRepositoryLinkOperationsClient

public virtual OperationsClient DeleteGitRepositoryLinkOperationsClient { get; }

The long-running operations client for DeleteGitRepositoryLink.

Property Value
Type Description
OperationsClient

DeleteSelfOperationsClient

public virtual OperationsClient DeleteSelfOperationsClient { get; }

The long-running operations client for DeleteSelf.

Property Value
Type Description
OperationsClient

DeleteUserOperationsClient

public virtual OperationsClient DeleteUserOperationsClient { get; }

The long-running operations client for DeleteUser.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual DeveloperConnect.DeveloperConnectClient GrpcClient { get; }

The underlying gRPC DeveloperConnect client

Property Value
Type Description
DeveloperConnectDeveloperConnectClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

UpdateAccountConnectorOperationsClient

public virtual OperationsClient UpdateAccountConnectorOperationsClient { get; }

The long-running operations client for UpdateAccountConnector.

Property Value
Type Description
OperationsClient

UpdateConnectionOperationsClient

public virtual OperationsClient UpdateConnectionOperationsClient { get; }

The long-running operations client for UpdateConnection.

Property Value
Type Description
OperationsClient

Methods

AddGitRepositoryLinkPullRequestComment(AddGitRepositoryLinkPullRequestCommentRequest, CallSettings)

public virtual PullRequestComment AddGitRepositoryLinkPullRequestComment(AddGitRepositoryLinkPullRequestCommentRequest request, CallSettings callSettings = null)

Add a comment to a Pull Request.

Parameters
Name Description
request AddGitRepositoryLinkPullRequestCommentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PullRequestComment

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
AddGitRepositoryLinkPullRequestCommentRequest request = new AddGitRepositoryLinkPullRequestCommentRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    PullRequestId = "",
    Comment = new PullRequestComment(),
};
// Make the request
PullRequestComment response = developerConnectClient.AddGitRepositoryLinkPullRequestComment(request);

AddGitRepositoryLinkPullRequestComment(GitRepositoryLinkName, string, PullRequestComment, CallSettings)

public virtual PullRequestComment AddGitRepositoryLinkPullRequestComment(GitRepositoryLinkName name, string pullRequestId, PullRequestComment comment, CallSettings callSettings = null)

Add a comment to a Pull Request.

Parameters
Name Description
name GitRepositoryLinkName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The ID of the Pull Request.

comment PullRequestComment

Required. The comment to add.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PullRequestComment

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string pullRequestId = "";
PullRequestComment comment = new PullRequestComment();
// Make the request
PullRequestComment response = developerConnectClient.AddGitRepositoryLinkPullRequestComment(name, pullRequestId, comment);

AddGitRepositoryLinkPullRequestComment(string, string, PullRequestComment, CallSettings)

public virtual PullRequestComment AddGitRepositoryLinkPullRequestComment(string name, string pullRequestId, PullRequestComment comment, CallSettings callSettings = null)

Add a comment to a Pull Request.

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The ID of the Pull Request.

comment PullRequestComment

Required. The comment to add.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PullRequestComment

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string pullRequestId = "";
PullRequestComment comment = new PullRequestComment();
// Make the request
PullRequestComment response = developerConnectClient.AddGitRepositoryLinkPullRequestComment(name, pullRequestId, comment);

AddGitRepositoryLinkPullRequestCommentAsync(AddGitRepositoryLinkPullRequestCommentRequest, CallSettings)

public virtual Task<PullRequestComment> AddGitRepositoryLinkPullRequestCommentAsync(AddGitRepositoryLinkPullRequestCommentRequest request, CallSettings callSettings = null)

Add a comment to a Pull Request.

Parameters
Name Description
request AddGitRepositoryLinkPullRequestCommentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPullRequestComment

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AddGitRepositoryLinkPullRequestCommentRequest request = new AddGitRepositoryLinkPullRequestCommentRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    PullRequestId = "",
    Comment = new PullRequestComment(),
};
// Make the request
PullRequestComment response = await developerConnectClient.AddGitRepositoryLinkPullRequestCommentAsync(request);

AddGitRepositoryLinkPullRequestCommentAsync(AddGitRepositoryLinkPullRequestCommentRequest, CancellationToken)

public virtual Task<PullRequestComment> AddGitRepositoryLinkPullRequestCommentAsync(AddGitRepositoryLinkPullRequestCommentRequest request, CancellationToken cancellationToken)

Add a comment to a Pull Request.

Parameters
Name Description
request AddGitRepositoryLinkPullRequestCommentRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPullRequestComment

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AddGitRepositoryLinkPullRequestCommentRequest request = new AddGitRepositoryLinkPullRequestCommentRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    PullRequestId = "",
    Comment = new PullRequestComment(),
};
// Make the request
PullRequestComment response = await developerConnectClient.AddGitRepositoryLinkPullRequestCommentAsync(request);

AddGitRepositoryLinkPullRequestCommentAsync(GitRepositoryLinkName, string, PullRequestComment, CallSettings)

public virtual Task<PullRequestComment> AddGitRepositoryLinkPullRequestCommentAsync(GitRepositoryLinkName name, string pullRequestId, PullRequestComment comment, CallSettings callSettings = null)

Add a comment to a Pull Request.

Parameters
Name Description
name GitRepositoryLinkName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The ID of the Pull Request.

comment PullRequestComment

Required. The comment to add.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPullRequestComment

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string pullRequestId = "";
PullRequestComment comment = new PullRequestComment();
// Make the request
PullRequestComment response = await developerConnectClient.AddGitRepositoryLinkPullRequestCommentAsync(name, pullRequestId, comment);

AddGitRepositoryLinkPullRequestCommentAsync(GitRepositoryLinkName, string, PullRequestComment, CancellationToken)

public virtual Task<PullRequestComment> AddGitRepositoryLinkPullRequestCommentAsync(GitRepositoryLinkName name, string pullRequestId, PullRequestComment comment, CancellationToken cancellationToken)

Add a comment to a Pull Request.

Parameters
Name Description
name GitRepositoryLinkName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The ID of the Pull Request.

comment PullRequestComment

Required. The comment to add.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPullRequestComment

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string pullRequestId = "";
PullRequestComment comment = new PullRequestComment();
// Make the request
PullRequestComment response = await developerConnectClient.AddGitRepositoryLinkPullRequestCommentAsync(name, pullRequestId, comment);

AddGitRepositoryLinkPullRequestCommentAsync(string, string, PullRequestComment, CallSettings)

public virtual Task<PullRequestComment> AddGitRepositoryLinkPullRequestCommentAsync(string name, string pullRequestId, PullRequestComment comment, CallSettings callSettings = null)

Add a comment to a Pull Request.

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The ID of the Pull Request.

comment PullRequestComment

Required. The comment to add.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPullRequestComment

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string pullRequestId = "";
PullRequestComment comment = new PullRequestComment();
// Make the request
PullRequestComment response = await developerConnectClient.AddGitRepositoryLinkPullRequestCommentAsync(name, pullRequestId, comment);

AddGitRepositoryLinkPullRequestCommentAsync(string, string, PullRequestComment, CancellationToken)

public virtual Task<PullRequestComment> AddGitRepositoryLinkPullRequestCommentAsync(string name, string pullRequestId, PullRequestComment comment, CancellationToken cancellationToken)

Add a comment to a Pull Request.

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The ID of the Pull Request.

comment PullRequestComment

Required. The comment to add.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPullRequestComment

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string pullRequestId = "";
PullRequestComment comment = new PullRequestComment();
// Make the request
PullRequestComment response = await developerConnectClient.AddGitRepositoryLinkPullRequestCommentAsync(name, pullRequestId, comment);

AddGitRepositoryLinkPullRequestReviewComment(AddGitRepositoryLinkPullRequestReviewCommentRequest, CallSettings)

public virtual PullRequestReviewComment AddGitRepositoryLinkPullRequestReviewComment(AddGitRepositoryLinkPullRequestReviewCommentRequest request, CallSettings callSettings = null)

Add a review comment (inline on diff) to a Pull Request.

Parameters
Name Description
request AddGitRepositoryLinkPullRequestReviewCommentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PullRequestReviewComment

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
AddGitRepositoryLinkPullRequestReviewCommentRequest request = new AddGitRepositoryLinkPullRequestReviewCommentRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    PullRequestId = "",
    Comment = new PullRequestReviewComment(),
    CommitId = "",
};
// Make the request
PullRequestReviewComment response = developerConnectClient.AddGitRepositoryLinkPullRequestReviewComment(request);

AddGitRepositoryLinkPullRequestReviewComment(GitRepositoryLinkName, string, PullRequestReviewComment, CallSettings)

public virtual PullRequestReviewComment AddGitRepositoryLinkPullRequestReviewComment(GitRepositoryLinkName name, string pullRequestId, PullRequestReviewComment comment, CallSettings callSettings = null)

Add a review comment (inline on diff) to a Pull Request.

Parameters
Name Description
name GitRepositoryLinkName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The ID of the Pull Request.

comment PullRequestReviewComment

Required. The review comment to add.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PullRequestReviewComment

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string pullRequestId = "";
PullRequestReviewComment comment = new PullRequestReviewComment();
// Make the request
PullRequestReviewComment response = developerConnectClient.AddGitRepositoryLinkPullRequestReviewComment(name, pullRequestId, comment);

AddGitRepositoryLinkPullRequestReviewComment(string, string, PullRequestReviewComment, CallSettings)

public virtual PullRequestReviewComment AddGitRepositoryLinkPullRequestReviewComment(string name, string pullRequestId, PullRequestReviewComment comment, CallSettings callSettings = null)

Add a review comment (inline on diff) to a Pull Request.

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The ID of the Pull Request.

comment PullRequestReviewComment

Required. The review comment to add.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PullRequestReviewComment

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string pullRequestId = "";
PullRequestReviewComment comment = new PullRequestReviewComment();
// Make the request
PullRequestReviewComment response = developerConnectClient.AddGitRepositoryLinkPullRequestReviewComment(name, pullRequestId, comment);

AddGitRepositoryLinkPullRequestReviewCommentAsync(AddGitRepositoryLinkPullRequestReviewCommentRequest, CallSettings)

public virtual Task<PullRequestReviewComment> AddGitRepositoryLinkPullRequestReviewCommentAsync(AddGitRepositoryLinkPullRequestReviewCommentRequest request, CallSettings callSettings = null)

Add a review comment (inline on diff) to a Pull Request.

Parameters
Name Description
request AddGitRepositoryLinkPullRequestReviewCommentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPullRequestReviewComment

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AddGitRepositoryLinkPullRequestReviewCommentRequest request = new AddGitRepositoryLinkPullRequestReviewCommentRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    PullRequestId = "",
    Comment = new PullRequestReviewComment(),
    CommitId = "",
};
// Make the request
PullRequestReviewComment response = await developerConnectClient.AddGitRepositoryLinkPullRequestReviewCommentAsync(request);

AddGitRepositoryLinkPullRequestReviewCommentAsync(AddGitRepositoryLinkPullRequestReviewCommentRequest, CancellationToken)

public virtual Task<PullRequestReviewComment> AddGitRepositoryLinkPullRequestReviewCommentAsync(AddGitRepositoryLinkPullRequestReviewCommentRequest request, CancellationToken cancellationToken)

Add a review comment (inline on diff) to a Pull Request.

Parameters
Name Description
request AddGitRepositoryLinkPullRequestReviewCommentRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPullRequestReviewComment

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AddGitRepositoryLinkPullRequestReviewCommentRequest request = new AddGitRepositoryLinkPullRequestReviewCommentRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    PullRequestId = "",
    Comment = new PullRequestReviewComment(),
    CommitId = "",
};
// Make the request
PullRequestReviewComment response = await developerConnectClient.AddGitRepositoryLinkPullRequestReviewCommentAsync(request);

AddGitRepositoryLinkPullRequestReviewCommentAsync(GitRepositoryLinkName, string, PullRequestReviewComment, CallSettings)

public virtual Task<PullRequestReviewComment> AddGitRepositoryLinkPullRequestReviewCommentAsync(GitRepositoryLinkName name, string pullRequestId, PullRequestReviewComment comment, CallSettings callSettings = null)

Add a review comment (inline on diff) to a Pull Request.

Parameters
Name Description
name GitRepositoryLinkName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The ID of the Pull Request.

comment PullRequestReviewComment

Required. The review comment to add.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPullRequestReviewComment

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string pullRequestId = "";
PullRequestReviewComment comment = new PullRequestReviewComment();
// Make the request
PullRequestReviewComment response = await developerConnectClient.AddGitRepositoryLinkPullRequestReviewCommentAsync(name, pullRequestId, comment);

AddGitRepositoryLinkPullRequestReviewCommentAsync(GitRepositoryLinkName, string, PullRequestReviewComment, CancellationToken)

public virtual Task<PullRequestReviewComment> AddGitRepositoryLinkPullRequestReviewCommentAsync(GitRepositoryLinkName name, string pullRequestId, PullRequestReviewComment comment, CancellationToken cancellationToken)

Add a review comment (inline on diff) to a Pull Request.

Parameters
Name Description
name GitRepositoryLinkName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The ID of the Pull Request.

comment PullRequestReviewComment

Required. The review comment to add.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPullRequestReviewComment

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string pullRequestId = "";
PullRequestReviewComment comment = new PullRequestReviewComment();
// Make the request
PullRequestReviewComment response = await developerConnectClient.AddGitRepositoryLinkPullRequestReviewCommentAsync(name, pullRequestId, comment);

AddGitRepositoryLinkPullRequestReviewCommentAsync(string, string, PullRequestReviewComment, CallSettings)

public virtual Task<PullRequestReviewComment> AddGitRepositoryLinkPullRequestReviewCommentAsync(string name, string pullRequestId, PullRequestReviewComment comment, CallSettings callSettings = null)

Add a review comment (inline on diff) to a Pull Request.

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The ID of the Pull Request.

comment PullRequestReviewComment

Required. The review comment to add.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPullRequestReviewComment

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string pullRequestId = "";
PullRequestReviewComment comment = new PullRequestReviewComment();
// Make the request
PullRequestReviewComment response = await developerConnectClient.AddGitRepositoryLinkPullRequestReviewCommentAsync(name, pullRequestId, comment);

AddGitRepositoryLinkPullRequestReviewCommentAsync(string, string, PullRequestReviewComment, CancellationToken)

public virtual Task<PullRequestReviewComment> AddGitRepositoryLinkPullRequestReviewCommentAsync(string name, string pullRequestId, PullRequestReviewComment comment, CancellationToken cancellationToken)

Add a review comment (inline on diff) to a Pull Request.

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The ID of the Pull Request.

comment PullRequestReviewComment

Required. The review comment to add.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPullRequestReviewComment

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string pullRequestId = "";
PullRequestReviewComment comment = new PullRequestReviewComment();
// Make the request
PullRequestReviewComment response = await developerConnectClient.AddGitRepositoryLinkPullRequestReviewCommentAsync(name, pullRequestId, comment);

Create()

public static DeveloperConnectClient Create()

Synchronously creates a DeveloperConnectClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use DeveloperConnectClientBuilder.

Returns
Type Description
DeveloperConnectClient

The created DeveloperConnectClient.

CreateAccountConnector(LocationName, AccountConnector, string, CallSettings)

public virtual Operation<AccountConnector, OperationMetadata> CreateAccountConnector(LocationName parent, AccountConnector accountConnector, string accountConnectorId, CallSettings callSettings = null)

Creates a new AccountConnector in a given project and location.

Parameters
Name Description
parent LocationName

Required. Location resource name as the account_connector’s parent.

accountConnector AccountConnector

Required. The AccountConnector to create.

accountConnectorId string

Required. The ID to use for the AccountConnector, which will become the final component of the AccountConnector's resource name. Its format should adhere to https://google.aip.dev/122#resource-id-segments Names must be unique per-project per-location.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAccountConnectorOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
AccountConnector accountConnector = new AccountConnector();
string accountConnectorId = "";
// Make the request
Operation<AccountConnector, OperationMetadata> response = developerConnectClient.CreateAccountConnector(parent, accountConnector, accountConnectorId);

// Poll until the returned long-running operation is complete
Operation<AccountConnector, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AccountConnector result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccountConnector, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceCreateAccountConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccountConnector retrievedResult = retrievedResponse.Result;
}

CreateAccountConnector(CreateAccountConnectorRequest, CallSettings)

public virtual Operation<AccountConnector, OperationMetadata> CreateAccountConnector(CreateAccountConnectorRequest request, CallSettings callSettings = null)

Creates a new AccountConnector in a given project and location.

Parameters
Name Description
request CreateAccountConnectorRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAccountConnectorOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
CreateAccountConnectorRequest request = new CreateAccountConnectorRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    AccountConnectorId = "",
    AccountConnector = new AccountConnector(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<AccountConnector, OperationMetadata> response = developerConnectClient.CreateAccountConnector(request);

// Poll until the returned long-running operation is complete
Operation<AccountConnector, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AccountConnector result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccountConnector, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceCreateAccountConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccountConnector retrievedResult = retrievedResponse.Result;
}

CreateAccountConnector(string, AccountConnector, string, CallSettings)

public virtual Operation<AccountConnector, OperationMetadata> CreateAccountConnector(string parent, AccountConnector accountConnector, string accountConnectorId, CallSettings callSettings = null)

Creates a new AccountConnector in a given project and location.

Parameters
Name Description
parent string

Required. Location resource name as the account_connector’s parent.

accountConnector AccountConnector

Required. The AccountConnector to create.

accountConnectorId string

Required. The ID to use for the AccountConnector, which will become the final component of the AccountConnector's resource name. Its format should adhere to https://google.aip.dev/122#resource-id-segments Names must be unique per-project per-location.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAccountConnectorOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
AccountConnector accountConnector = new AccountConnector();
string accountConnectorId = "";
// Make the request
Operation<AccountConnector, OperationMetadata> response = developerConnectClient.CreateAccountConnector(parent, accountConnector, accountConnectorId);

// Poll until the returned long-running operation is complete
Operation<AccountConnector, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AccountConnector result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccountConnector, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceCreateAccountConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccountConnector retrievedResult = retrievedResponse.Result;
}

CreateAccountConnectorAsync(LocationName, AccountConnector, string, CallSettings)

public virtual Task<Operation<AccountConnector, OperationMetadata>> CreateAccountConnectorAsync(LocationName parent, AccountConnector accountConnector, string accountConnectorId, CallSettings callSettings = null)

Creates a new AccountConnector in a given project and location.

Parameters
Name Description
parent LocationName

Required. Location resource name as the account_connector’s parent.

accountConnector AccountConnector

Required. The AccountConnector to create.

accountConnectorId string

Required. The ID to use for the AccountConnector, which will become the final component of the AccountConnector's resource name. Its format should adhere to https://google.aip.dev/122#resource-id-segments Names must be unique per-project per-location.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAccountConnectorOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
AccountConnector accountConnector = new AccountConnector();
string accountConnectorId = "";
// Make the request
Operation<AccountConnector, OperationMetadata> response = await developerConnectClient.CreateAccountConnectorAsync(parent, accountConnector, accountConnectorId);

// Poll until the returned long-running operation is complete
Operation<AccountConnector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccountConnector result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccountConnector, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceCreateAccountConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccountConnector retrievedResult = retrievedResponse.Result;
}

CreateAccountConnectorAsync(LocationName, AccountConnector, string, CancellationToken)

public virtual Task<Operation<AccountConnector, OperationMetadata>> CreateAccountConnectorAsync(LocationName parent, AccountConnector accountConnector, string accountConnectorId, CancellationToken cancellationToken)

Creates a new AccountConnector in a given project and location.

Parameters
Name Description
parent LocationName

Required. Location resource name as the account_connector’s parent.

accountConnector AccountConnector

Required. The AccountConnector to create.

accountConnectorId string

Required. The ID to use for the AccountConnector, which will become the final component of the AccountConnector's resource name. Its format should adhere to https://google.aip.dev/122#resource-id-segments Names must be unique per-project per-location.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAccountConnectorOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
AccountConnector accountConnector = new AccountConnector();
string accountConnectorId = "";
// Make the request
Operation<AccountConnector, OperationMetadata> response = await developerConnectClient.CreateAccountConnectorAsync(parent, accountConnector, accountConnectorId);

// Poll until the returned long-running operation is complete
Operation<AccountConnector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccountConnector result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccountConnector, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceCreateAccountConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccountConnector retrievedResult = retrievedResponse.Result;
}

CreateAccountConnectorAsync(CreateAccountConnectorRequest, CallSettings)

public virtual Task<Operation<AccountConnector, OperationMetadata>> CreateAccountConnectorAsync(CreateAccountConnectorRequest request, CallSettings callSettings = null)

Creates a new AccountConnector in a given project and location.

Parameters
Name Description
request CreateAccountConnectorRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAccountConnectorOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
CreateAccountConnectorRequest request = new CreateAccountConnectorRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    AccountConnectorId = "",
    AccountConnector = new AccountConnector(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<AccountConnector, OperationMetadata> response = await developerConnectClient.CreateAccountConnectorAsync(request);

// Poll until the returned long-running operation is complete
Operation<AccountConnector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccountConnector result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccountConnector, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceCreateAccountConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccountConnector retrievedResult = retrievedResponse.Result;
}

CreateAccountConnectorAsync(CreateAccountConnectorRequest, CancellationToken)

public virtual Task<Operation<AccountConnector, OperationMetadata>> CreateAccountConnectorAsync(CreateAccountConnectorRequest request, CancellationToken cancellationToken)

Creates a new AccountConnector in a given project and location.

Parameters
Name Description
request CreateAccountConnectorRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAccountConnectorOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
CreateAccountConnectorRequest request = new CreateAccountConnectorRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    AccountConnectorId = "",
    AccountConnector = new AccountConnector(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<AccountConnector, OperationMetadata> response = await developerConnectClient.CreateAccountConnectorAsync(request);

// Poll until the returned long-running operation is complete
Operation<AccountConnector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccountConnector result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccountConnector, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceCreateAccountConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccountConnector retrievedResult = retrievedResponse.Result;
}

CreateAccountConnectorAsync(string, AccountConnector, string, CallSettings)

public virtual Task<Operation<AccountConnector, OperationMetadata>> CreateAccountConnectorAsync(string parent, AccountConnector accountConnector, string accountConnectorId, CallSettings callSettings = null)

Creates a new AccountConnector in a given project and location.

Parameters
Name Description
parent string

Required. Location resource name as the account_connector’s parent.

accountConnector AccountConnector

Required. The AccountConnector to create.

accountConnectorId string

Required. The ID to use for the AccountConnector, which will become the final component of the AccountConnector's resource name. Its format should adhere to https://google.aip.dev/122#resource-id-segments Names must be unique per-project per-location.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAccountConnectorOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
AccountConnector accountConnector = new AccountConnector();
string accountConnectorId = "";
// Make the request
Operation<AccountConnector, OperationMetadata> response = await developerConnectClient.CreateAccountConnectorAsync(parent, accountConnector, accountConnectorId);

// Poll until the returned long-running operation is complete
Operation<AccountConnector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccountConnector result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccountConnector, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceCreateAccountConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccountConnector retrievedResult = retrievedResponse.Result;
}

CreateAccountConnectorAsync(string, AccountConnector, string, CancellationToken)

public virtual Task<Operation<AccountConnector, OperationMetadata>> CreateAccountConnectorAsync(string parent, AccountConnector accountConnector, string accountConnectorId, CancellationToken cancellationToken)

Creates a new AccountConnector in a given project and location.

Parameters
Name Description
parent string

Required. Location resource name as the account_connector’s parent.

accountConnector AccountConnector

Required. The AccountConnector to create.

accountConnectorId string

Required. The ID to use for the AccountConnector, which will become the final component of the AccountConnector's resource name. Its format should adhere to https://google.aip.dev/122#resource-id-segments Names must be unique per-project per-location.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAccountConnectorOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
AccountConnector accountConnector = new AccountConnector();
string accountConnectorId = "";
// Make the request
Operation<AccountConnector, OperationMetadata> response = await developerConnectClient.CreateAccountConnectorAsync(parent, accountConnector, accountConnectorId);

// Poll until the returned long-running operation is complete
Operation<AccountConnector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccountConnector result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccountConnector, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceCreateAccountConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccountConnector retrievedResult = retrievedResponse.Result;
}

CreateAsync(CancellationToken)

public static Task<DeveloperConnectClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a DeveloperConnectClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use DeveloperConnectClientBuilder.

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskDeveloperConnectClient

The task representing the created DeveloperConnectClient.

CreateConnection(LocationName, Connection, string, CallSettings)

public virtual Operation<Connection, OperationMetadata> CreateConnection(LocationName parent, Connection connection, string connectionId, CallSettings callSettings = null)

Creates a new Connection in a given project and location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

connection Connection

Required. The resource being created

connectionId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and connection_id from the method_signature of Create RPC

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConnectionOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Connection connection = new Connection();
string connectionId = "";
// Make the request
Operation<Connection, OperationMetadata> response = developerConnectClient.CreateConnection(parent, connection, connectionId);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceCreateConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

CreateConnection(CreateConnectionRequest, CallSettings)

public virtual Operation<Connection, OperationMetadata> CreateConnection(CreateConnectionRequest request, CallSettings callSettings = null)

Creates a new Connection in a given project and location.

Parameters
Name Description
request CreateConnectionRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConnectionOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
CreateConnectionRequest request = new CreateConnectionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ConnectionId = "",
    Connection = new Connection(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Connection, OperationMetadata> response = developerConnectClient.CreateConnection(request);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceCreateConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

CreateConnection(string, Connection, string, CallSettings)

public virtual Operation<Connection, OperationMetadata> CreateConnection(string parent, Connection connection, string connectionId, CallSettings callSettings = null)

Creates a new Connection in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

connection Connection

Required. The resource being created

connectionId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and connection_id from the method_signature of Create RPC

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConnectionOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Connection connection = new Connection();
string connectionId = "";
// Make the request
Operation<Connection, OperationMetadata> response = developerConnectClient.CreateConnection(parent, connection, connectionId);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceCreateConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

CreateConnectionAsync(LocationName, Connection, string, CallSettings)

public virtual Task<Operation<Connection, OperationMetadata>> CreateConnectionAsync(LocationName parent, Connection connection, string connectionId, CallSettings callSettings = null)

Creates a new Connection in a given project and location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

connection Connection

Required. The resource being created

connectionId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and connection_id from the method_signature of Create RPC

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Connection connection = new Connection();
string connectionId = "";
// Make the request
Operation<Connection, OperationMetadata> response = await developerConnectClient.CreateConnectionAsync(parent, connection, connectionId);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceCreateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

CreateConnectionAsync(LocationName, Connection, string, CancellationToken)

public virtual Task<Operation<Connection, OperationMetadata>> CreateConnectionAsync(LocationName parent, Connection connection, string connectionId, CancellationToken cancellationToken)

Creates a new Connection in a given project and location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

connection Connection

Required. The resource being created

connectionId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and connection_id from the method_signature of Create RPC

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Connection connection = new Connection();
string connectionId = "";
// Make the request
Operation<Connection, OperationMetadata> response = await developerConnectClient.CreateConnectionAsync(parent, connection, connectionId);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceCreateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

CreateConnectionAsync(CreateConnectionRequest, CallSettings)

public virtual Task<Operation<Connection, OperationMetadata>> CreateConnectionAsync(CreateConnectionRequest request, CallSettings callSettings = null)

Creates a new Connection in a given project and location.

Parameters
Name Description
request CreateConnectionRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
CreateConnectionRequest request = new CreateConnectionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ConnectionId = "",
    Connection = new Connection(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Connection, OperationMetadata> response = await developerConnectClient.CreateConnectionAsync(request);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceCreateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

CreateConnectionAsync(CreateConnectionRequest, CancellationToken)

public virtual Task<Operation<Connection, OperationMetadata>> CreateConnectionAsync(CreateConnectionRequest request, CancellationToken cancellationToken)

Creates a new Connection in a given project and location.

Parameters
Name Description
request CreateConnectionRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
CreateConnectionRequest request = new CreateConnectionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ConnectionId = "",
    Connection = new Connection(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Connection, OperationMetadata> response = await developerConnectClient.CreateConnectionAsync(request);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceCreateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

CreateConnectionAsync(string, Connection, string, CallSettings)

public virtual Task<Operation<Connection, OperationMetadata>> CreateConnectionAsync(string parent, Connection connection, string connectionId, CallSettings callSettings = null)

Creates a new Connection in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

connection Connection

Required. The resource being created

connectionId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and connection_id from the method_signature of Create RPC

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Connection connection = new Connection();
string connectionId = "";
// Make the request
Operation<Connection, OperationMetadata> response = await developerConnectClient.CreateConnectionAsync(parent, connection, connectionId);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceCreateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

CreateConnectionAsync(string, Connection, string, CancellationToken)

public virtual Task<Operation<Connection, OperationMetadata>> CreateConnectionAsync(string parent, Connection connection, string connectionId, CancellationToken cancellationToken)

Creates a new Connection in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

connection Connection

Required. The resource being created

connectionId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and connection_id from the method_signature of Create RPC

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Connection connection = new Connection();
string connectionId = "";
// Make the request
Operation<Connection, OperationMetadata> response = await developerConnectClient.CreateConnectionAsync(parent, connection, connectionId);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceCreateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}
public virtual Operation<GitRepositoryLink, OperationMetadata> CreateGitRepositoryLink(ConnectionName parent, GitRepositoryLink gitRepositoryLink, string gitRepositoryLinkId, CallSettings callSettings = null)

Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect will configure the Git Repository to send webhook events to Developer Connect. Connections that use Firebase GitHub Application will have events forwarded to the Firebase service. Connections that use Gemini Code Assist will have events forwarded to Gemini Code Assist service. All other Connections will have events forwarded to Cloud Build.

Parameters
Name Description
parent ConnectionName

Required. Value for parent.

gitRepositoryLink GitRepositoryLink

Required. The resource being created

gitRepositoryLinkId string

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&amp;'()*+,;=@.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGitRepositoryLinkOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
ConnectionName parent = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
GitRepositoryLink gitRepositoryLink = new GitRepositoryLink();
string gitRepositoryLinkId = "";
// Make the request
Operation<GitRepositoryLink, OperationMetadata> response = developerConnectClient.CreateGitRepositoryLink(parent, gitRepositoryLink, gitRepositoryLinkId);

// Poll until the returned long-running operation is complete
Operation<GitRepositoryLink, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GitRepositoryLink result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GitRepositoryLink, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceCreateGitRepositoryLink(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GitRepositoryLink retrievedResult = retrievedResponse.Result;
}
public virtual Operation<GitRepositoryLink, OperationMetadata> CreateGitRepositoryLink(CreateGitRepositoryLinkRequest request, CallSettings callSettings = null)

Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect will configure the Git Repository to send webhook events to Developer Connect. Connections that use Firebase GitHub Application will have events forwarded to the Firebase service. Connections that use Gemini Code Assist will have events forwarded to Gemini Code Assist service. All other Connections will have events forwarded to Cloud Build.

Parameters
Name Description
request CreateGitRepositoryLinkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGitRepositoryLinkOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
CreateGitRepositoryLinkRequest request = new CreateGitRepositoryLinkRequest
{
    ParentAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    GitRepositoryLink = new GitRepositoryLink(),
    GitRepositoryLinkId = "",
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<GitRepositoryLink, OperationMetadata> response = developerConnectClient.CreateGitRepositoryLink(request);

// Poll until the returned long-running operation is complete
Operation<GitRepositoryLink, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GitRepositoryLink result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GitRepositoryLink, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceCreateGitRepositoryLink(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GitRepositoryLink retrievedResult = retrievedResponse.Result;
}
public virtual Operation<GitRepositoryLink, OperationMetadata> CreateGitRepositoryLink(string parent, GitRepositoryLink gitRepositoryLink, string gitRepositoryLinkId, CallSettings callSettings = null)

Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect will configure the Git Repository to send webhook events to Developer Connect. Connections that use Firebase GitHub Application will have events forwarded to the Firebase service. Connections that use Gemini Code Assist will have events forwarded to Gemini Code Assist service. All other Connections will have events forwarded to Cloud Build.

Parameters
Name Description
parent string

Required. Value for parent.

gitRepositoryLink GitRepositoryLink

Required. The resource being created

gitRepositoryLinkId string

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&amp;'()*+,;=@.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGitRepositoryLinkOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
GitRepositoryLink gitRepositoryLink = new GitRepositoryLink();
string gitRepositoryLinkId = "";
// Make the request
Operation<GitRepositoryLink, OperationMetadata> response = developerConnectClient.CreateGitRepositoryLink(parent, gitRepositoryLink, gitRepositoryLinkId);

// Poll until the returned long-running operation is complete
Operation<GitRepositoryLink, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GitRepositoryLink result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GitRepositoryLink, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceCreateGitRepositoryLink(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GitRepositoryLink retrievedResult = retrievedResponse.Result;
}
public virtual Task<Operation<GitRepositoryLink, OperationMetadata>> CreateGitRepositoryLinkAsync(ConnectionName parent, GitRepositoryLink gitRepositoryLink, string gitRepositoryLinkId, CallSettings callSettings = null)

Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect will configure the Git Repository to send webhook events to Developer Connect. Connections that use Firebase GitHub Application will have events forwarded to the Firebase service. Connections that use Gemini Code Assist will have events forwarded to Gemini Code Assist service. All other Connections will have events forwarded to Cloud Build.

Parameters
Name Description
parent ConnectionName

Required. Value for parent.

gitRepositoryLink GitRepositoryLink

Required. The resource being created

gitRepositoryLinkId string

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&amp;'()*+,;=@.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGitRepositoryLinkOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
ConnectionName parent = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
GitRepositoryLink gitRepositoryLink = new GitRepositoryLink();
string gitRepositoryLinkId = "";
// Make the request
Operation<GitRepositoryLink, OperationMetadata> response = await developerConnectClient.CreateGitRepositoryLinkAsync(parent, gitRepositoryLink, gitRepositoryLinkId);

// Poll until the returned long-running operation is complete
Operation<GitRepositoryLink, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GitRepositoryLink result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GitRepositoryLink, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceCreateGitRepositoryLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GitRepositoryLink retrievedResult = retrievedResponse.Result;
}
public virtual Task<Operation<GitRepositoryLink, OperationMetadata>> CreateGitRepositoryLinkAsync(ConnectionName parent, GitRepositoryLink gitRepositoryLink, string gitRepositoryLinkId, CancellationToken cancellationToken)

Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect will configure the Git Repository to send webhook events to Developer Connect. Connections that use Firebase GitHub Application will have events forwarded to the Firebase service. Connections that use Gemini Code Assist will have events forwarded to Gemini Code Assist service. All other Connections will have events forwarded to Cloud Build.

Parameters
Name Description
parent ConnectionName

Required. Value for parent.

gitRepositoryLink GitRepositoryLink

Required. The resource being created

gitRepositoryLinkId string

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&amp;'()*+,;=@.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGitRepositoryLinkOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
ConnectionName parent = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
GitRepositoryLink gitRepositoryLink = new GitRepositoryLink();
string gitRepositoryLinkId = "";
// Make the request
Operation<GitRepositoryLink, OperationMetadata> response = await developerConnectClient.CreateGitRepositoryLinkAsync(parent, gitRepositoryLink, gitRepositoryLinkId);

// Poll until the returned long-running operation is complete
Operation<GitRepositoryLink, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GitRepositoryLink result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GitRepositoryLink, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceCreateGitRepositoryLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GitRepositoryLink retrievedResult = retrievedResponse.Result;
}

CreateGitRepositoryLinkAsync(CreateGitRepositoryLinkRequest, CallSettings)

public virtual Task<Operation<GitRepositoryLink, OperationMetadata>> CreateGitRepositoryLinkAsync(CreateGitRepositoryLinkRequest request, CallSettings callSettings = null)

Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect will configure the Git Repository to send webhook events to Developer Connect. Connections that use Firebase GitHub Application will have events forwarded to the Firebase service. Connections that use Gemini Code Assist will have events forwarded to Gemini Code Assist service. All other Connections will have events forwarded to Cloud Build.

Parameters
Name Description
request CreateGitRepositoryLinkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGitRepositoryLinkOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
CreateGitRepositoryLinkRequest request = new CreateGitRepositoryLinkRequest
{
    ParentAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    GitRepositoryLink = new GitRepositoryLink(),
    GitRepositoryLinkId = "",
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<GitRepositoryLink, OperationMetadata> response = await developerConnectClient.CreateGitRepositoryLinkAsync(request);

// Poll until the returned long-running operation is complete
Operation<GitRepositoryLink, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GitRepositoryLink result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GitRepositoryLink, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceCreateGitRepositoryLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GitRepositoryLink retrievedResult = retrievedResponse.Result;
}

CreateGitRepositoryLinkAsync(CreateGitRepositoryLinkRequest, CancellationToken)

public virtual Task<Operation<GitRepositoryLink, OperationMetadata>> CreateGitRepositoryLinkAsync(CreateGitRepositoryLinkRequest request, CancellationToken cancellationToken)

Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect will configure the Git Repository to send webhook events to Developer Connect. Connections that use Firebase GitHub Application will have events forwarded to the Firebase service. Connections that use Gemini Code Assist will have events forwarded to Gemini Code Assist service. All other Connections will have events forwarded to Cloud Build.

Parameters
Name Description
request CreateGitRepositoryLinkRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGitRepositoryLinkOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
CreateGitRepositoryLinkRequest request = new CreateGitRepositoryLinkRequest
{
    ParentAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    GitRepositoryLink = new GitRepositoryLink(),
    GitRepositoryLinkId = "",
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<GitRepositoryLink, OperationMetadata> response = await developerConnectClient.CreateGitRepositoryLinkAsync(request);

// Poll until the returned long-running operation is complete
Operation<GitRepositoryLink, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GitRepositoryLink result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GitRepositoryLink, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceCreateGitRepositoryLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GitRepositoryLink retrievedResult = retrievedResponse.Result;
}
public virtual Task<Operation<GitRepositoryLink, OperationMetadata>> CreateGitRepositoryLinkAsync(string parent, GitRepositoryLink gitRepositoryLink, string gitRepositoryLinkId, CallSettings callSettings = null)

Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect will configure the Git Repository to send webhook events to Developer Connect. Connections that use Firebase GitHub Application will have events forwarded to the Firebase service. Connections that use Gemini Code Assist will have events forwarded to Gemini Code Assist service. All other Connections will have events forwarded to Cloud Build.

Parameters
Name Description
parent string

Required. Value for parent.

gitRepositoryLink GitRepositoryLink

Required. The resource being created

gitRepositoryLinkId string

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&amp;'()*+,;=@.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGitRepositoryLinkOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
GitRepositoryLink gitRepositoryLink = new GitRepositoryLink();
string gitRepositoryLinkId = "";
// Make the request
Operation<GitRepositoryLink, OperationMetadata> response = await developerConnectClient.CreateGitRepositoryLinkAsync(parent, gitRepositoryLink, gitRepositoryLinkId);

// Poll until the returned long-running operation is complete
Operation<GitRepositoryLink, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GitRepositoryLink result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GitRepositoryLink, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceCreateGitRepositoryLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GitRepositoryLink retrievedResult = retrievedResponse.Result;
}
public virtual Task<Operation<GitRepositoryLink, OperationMetadata>> CreateGitRepositoryLinkAsync(string parent, GitRepositoryLink gitRepositoryLink, string gitRepositoryLinkId, CancellationToken cancellationToken)

Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect will configure the Git Repository to send webhook events to Developer Connect. Connections that use Firebase GitHub Application will have events forwarded to the Firebase service. Connections that use Gemini Code Assist will have events forwarded to Gemini Code Assist service. All other Connections will have events forwarded to Cloud Build.

Parameters
Name Description
parent string

Required. Value for parent.

gitRepositoryLink GitRepositoryLink

Required. The resource being created

gitRepositoryLinkId string

Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&amp;'()*+,;=@.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGitRepositoryLinkOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
GitRepositoryLink gitRepositoryLink = new GitRepositoryLink();
string gitRepositoryLinkId = "";
// Make the request
Operation<GitRepositoryLink, OperationMetadata> response = await developerConnectClient.CreateGitRepositoryLinkAsync(parent, gitRepositoryLink, gitRepositoryLinkId);

// Poll until the returned long-running operation is complete
Operation<GitRepositoryLink, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GitRepositoryLink result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GitRepositoryLink, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceCreateGitRepositoryLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GitRepositoryLink retrievedResult = retrievedResponse.Result;
}

DeleteAccountConnector(AccountConnectorName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteAccountConnector(AccountConnectorName name, CallSettings callSettings = null)

Deletes a single AccountConnector.

Parameters
Name Description
name AccountConnectorName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
AccountConnectorName name = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
Operation<Empty, OperationMetadata> response = developerConnectClient.DeleteAccountConnector(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceDeleteAccountConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccountConnector(DeleteAccountConnectorRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteAccountConnector(DeleteAccountConnectorRequest request, CallSettings callSettings = null)

Deletes a single AccountConnector.

Parameters
Name Description
request DeleteAccountConnectorRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
DeleteAccountConnectorRequest request = new DeleteAccountConnectorRequest
{
    AccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
    RequestId = "",
    ValidateOnly = false,
    Etag = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = developerConnectClient.DeleteAccountConnector(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceDeleteAccountConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccountConnector(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteAccountConnector(string name, CallSettings callSettings = null)

Deletes a single AccountConnector.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
Operation<Empty, OperationMetadata> response = developerConnectClient.DeleteAccountConnector(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceDeleteAccountConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccountConnectorAsync(AccountConnectorName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteAccountConnectorAsync(AccountConnectorName name, CallSettings callSettings = null)

Deletes a single AccountConnector.

Parameters
Name Description
name AccountConnectorName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AccountConnectorName name = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteAccountConnectorAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteAccountConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccountConnectorAsync(AccountConnectorName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteAccountConnectorAsync(AccountConnectorName name, CancellationToken cancellationToken)

Deletes a single AccountConnector.

Parameters
Name Description
name AccountConnectorName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AccountConnectorName name = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteAccountConnectorAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteAccountConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccountConnectorAsync(DeleteAccountConnectorRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteAccountConnectorAsync(DeleteAccountConnectorRequest request, CallSettings callSettings = null)

Deletes a single AccountConnector.

Parameters
Name Description
request DeleteAccountConnectorRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
DeleteAccountConnectorRequest request = new DeleteAccountConnectorRequest
{
    AccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
    RequestId = "",
    ValidateOnly = false,
    Etag = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteAccountConnectorAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteAccountConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccountConnectorAsync(DeleteAccountConnectorRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteAccountConnectorAsync(DeleteAccountConnectorRequest request, CancellationToken cancellationToken)

Deletes a single AccountConnector.

Parameters
Name Description
request DeleteAccountConnectorRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
DeleteAccountConnectorRequest request = new DeleteAccountConnectorRequest
{
    AccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
    RequestId = "",
    ValidateOnly = false,
    Etag = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteAccountConnectorAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteAccountConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccountConnectorAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteAccountConnectorAsync(string name, CallSettings callSettings = null)

Deletes a single AccountConnector.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteAccountConnectorAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteAccountConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccountConnectorAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteAccountConnectorAsync(string name, CancellationToken cancellationToken)

Deletes a single AccountConnector.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteAccountConnectorAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteAccountConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteConnection(ConnectionName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteConnection(ConnectionName name, CallSettings callSettings = null)

Deletes a single Connection.

Parameters
Name Description
name ConnectionName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Operation<Empty, OperationMetadata> response = developerConnectClient.DeleteConnection(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceDeleteConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteConnection(DeleteConnectionRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteConnection(DeleteConnectionRequest request, CallSettings callSettings = null)

Deletes a single Connection.

Parameters
Name Description
request DeleteConnectionRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
DeleteConnectionRequest request = new DeleteConnectionRequest
{
    ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    RequestId = "",
    ValidateOnly = false,
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = developerConnectClient.DeleteConnection(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceDeleteConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteConnection(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteConnection(string name, CallSettings callSettings = null)

Deletes a single Connection.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Operation<Empty, OperationMetadata> response = developerConnectClient.DeleteConnection(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceDeleteConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteConnectionAsync(ConnectionName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteConnectionAsync(ConnectionName name, CallSettings callSettings = null)

Deletes a single Connection.

Parameters
Name Description
name ConnectionName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteConnectionAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteConnectionAsync(ConnectionName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteConnectionAsync(ConnectionName name, CancellationToken cancellationToken)

Deletes a single Connection.

Parameters
Name Description
name ConnectionName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteConnectionAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteConnectionAsync(DeleteConnectionRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteConnectionAsync(DeleteConnectionRequest request, CallSettings callSettings = null)

Deletes a single Connection.

Parameters
Name Description
request DeleteConnectionRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
DeleteConnectionRequest request = new DeleteConnectionRequest
{
    ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    RequestId = "",
    ValidateOnly = false,
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteConnectionAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteConnectionAsync(DeleteConnectionRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteConnectionAsync(DeleteConnectionRequest request, CancellationToken cancellationToken)

Deletes a single Connection.

Parameters
Name Description
request DeleteConnectionRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
DeleteConnectionRequest request = new DeleteConnectionRequest
{
    ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    RequestId = "",
    ValidateOnly = false,
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteConnectionAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteConnectionAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteConnectionAsync(string name, CallSettings callSettings = null)

Deletes a single Connection.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteConnectionAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteConnectionAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteConnectionAsync(string name, CancellationToken cancellationToken)

Deletes a single Connection.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteConnectionAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
public virtual Operation<Empty, OperationMetadata> DeleteGitRepositoryLink(DeleteGitRepositoryLinkRequest request, CallSettings callSettings = null)

Deletes a single GitRepositoryLink.

Parameters
Name Description
request DeleteGitRepositoryLinkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
DeleteGitRepositoryLinkRequest request = new DeleteGitRepositoryLinkRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    RequestId = "",
    ValidateOnly = false,
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = developerConnectClient.DeleteGitRepositoryLink(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceDeleteGitRepositoryLink(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
public virtual Operation<Empty, OperationMetadata> DeleteGitRepositoryLink(GitRepositoryLinkName name, CallSettings callSettings = null)

Deletes a single GitRepositoryLink.

Parameters
Name Description
name GitRepositoryLinkName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
// Make the request
Operation<Empty, OperationMetadata> response = developerConnectClient.DeleteGitRepositoryLink(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceDeleteGitRepositoryLink(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}
public virtual Operation<Empty, OperationMetadata> DeleteGitRepositoryLink(string name, CallSettings callSettings = null)

Deletes a single GitRepositoryLink.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
// Make the request
Operation<Empty, OperationMetadata> response = developerConnectClient.DeleteGitRepositoryLink(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceDeleteGitRepositoryLink(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGitRepositoryLinkAsync(DeleteGitRepositoryLinkRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGitRepositoryLinkAsync(DeleteGitRepositoryLinkRequest request, CallSettings callSettings = null)

Deletes a single GitRepositoryLink.

Parameters
Name Description
request DeleteGitRepositoryLinkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
DeleteGitRepositoryLinkRequest request = new DeleteGitRepositoryLinkRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    RequestId = "",
    ValidateOnly = false,
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteGitRepositoryLinkAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteGitRepositoryLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGitRepositoryLinkAsync(DeleteGitRepositoryLinkRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGitRepositoryLinkAsync(DeleteGitRepositoryLinkRequest request, CancellationToken cancellationToken)

Deletes a single GitRepositoryLink.

Parameters
Name Description
request DeleteGitRepositoryLinkRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
DeleteGitRepositoryLinkRequest request = new DeleteGitRepositoryLinkRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    RequestId = "",
    ValidateOnly = false,
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteGitRepositoryLinkAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteGitRepositoryLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGitRepositoryLinkAsync(GitRepositoryLinkName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGitRepositoryLinkAsync(GitRepositoryLinkName name, CallSettings callSettings = null)

Deletes a single GitRepositoryLink.

Parameters
Name Description
name GitRepositoryLinkName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteGitRepositoryLinkAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteGitRepositoryLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGitRepositoryLinkAsync(GitRepositoryLinkName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGitRepositoryLinkAsync(GitRepositoryLinkName name, CancellationToken cancellationToken)

Deletes a single GitRepositoryLink.

Parameters
Name Description
name GitRepositoryLinkName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteGitRepositoryLinkAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteGitRepositoryLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGitRepositoryLinkAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGitRepositoryLinkAsync(string name, CallSettings callSettings = null)

Deletes a single GitRepositoryLink.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteGitRepositoryLinkAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteGitRepositoryLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGitRepositoryLinkAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGitRepositoryLinkAsync(string name, CancellationToken cancellationToken)

Deletes a single GitRepositoryLink.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteGitRepositoryLinkAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteGitRepositoryLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSelf(AccountConnectorName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSelf(AccountConnectorName name, CallSettings callSettings = null)

Delete the User based on the user credentials.

Parameters
Name Description
name AccountConnectorName

Required. Name of the AccountConnector resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
AccountConnectorName name = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
Operation<Empty, OperationMetadata> response = developerConnectClient.DeleteSelf(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceDeleteSelf(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSelf(DeleteSelfRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSelf(DeleteSelfRequest request, CallSettings callSettings = null)

Delete the User based on the user credentials.

Parameters
Name Description
request DeleteSelfRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
DeleteSelfRequest request = new DeleteSelfRequest
{
    AccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = developerConnectClient.DeleteSelf(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceDeleteSelf(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSelf(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSelf(string name, CallSettings callSettings = null)

Delete the User based on the user credentials.

Parameters
Name Description
name string

Required. Name of the AccountConnector resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
Operation<Empty, OperationMetadata> response = developerConnectClient.DeleteSelf(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceDeleteSelf(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSelfAsync(AccountConnectorName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSelfAsync(AccountConnectorName name, CallSettings callSettings = null)

Delete the User based on the user credentials.

Parameters
Name Description
name AccountConnectorName

Required. Name of the AccountConnector resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AccountConnectorName name = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteSelfAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteSelfAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSelfAsync(AccountConnectorName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSelfAsync(AccountConnectorName name, CancellationToken cancellationToken)

Delete the User based on the user credentials.

Parameters
Name Description
name AccountConnectorName

Required. Name of the AccountConnector resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AccountConnectorName name = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteSelfAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteSelfAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSelfAsync(DeleteSelfRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSelfAsync(DeleteSelfRequest request, CallSettings callSettings = null)

Delete the User based on the user credentials.

Parameters
Name Description
request DeleteSelfRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
DeleteSelfRequest request = new DeleteSelfRequest
{
    AccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteSelfAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteSelfAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSelfAsync(DeleteSelfRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSelfAsync(DeleteSelfRequest request, CancellationToken cancellationToken)

Delete the User based on the user credentials.

Parameters
Name Description
request DeleteSelfRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
DeleteSelfRequest request = new DeleteSelfRequest
{
    AccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteSelfAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteSelfAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSelfAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSelfAsync(string name, CallSettings callSettings = null)

Delete the User based on the user credentials.

Parameters
Name Description
name string

Required. Name of the AccountConnector resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteSelfAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteSelfAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSelfAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSelfAsync(string name, CancellationToken cancellationToken)

Delete the User based on the user credentials.

Parameters
Name Description
name string

Required. Name of the AccountConnector resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteSelfAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteSelfAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUser(DeleteUserRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteUser(DeleteUserRequest request, CallSettings callSettings = null)

Deletes a single User.

Parameters
Name Description
request DeleteUserRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
DeleteUserRequest request = new DeleteUserRequest
{
    UserName = UserName.FromProjectLocationAccountConnectorUser("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]", "[USER]"),
    RequestId = "",
    ValidateOnly = false,
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = developerConnectClient.DeleteUser(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceDeleteUser(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUser(UserName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteUser(UserName name, CallSettings callSettings = null)

Deletes a single User.

Parameters
Name Description
name UserName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
UserName name = UserName.FromProjectLocationAccountConnectorUser("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]", "[USER]");
// Make the request
Operation<Empty, OperationMetadata> response = developerConnectClient.DeleteUser(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceDeleteUser(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUser(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteUser(string name, CallSettings callSettings = null)

Deletes a single User.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]/users/[USER]";
// Make the request
Operation<Empty, OperationMetadata> response = developerConnectClient.DeleteUser(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceDeleteUser(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUserAsync(DeleteUserRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteUserAsync(DeleteUserRequest request, CallSettings callSettings = null)

Deletes a single User.

Parameters
Name Description
request DeleteUserRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
DeleteUserRequest request = new DeleteUserRequest
{
    UserName = UserName.FromProjectLocationAccountConnectorUser("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]", "[USER]"),
    RequestId = "",
    ValidateOnly = false,
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteUserAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteUserAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUserAsync(DeleteUserRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteUserAsync(DeleteUserRequest request, CancellationToken cancellationToken)

Deletes a single User.

Parameters
Name Description
request DeleteUserRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
DeleteUserRequest request = new DeleteUserRequest
{
    UserName = UserName.FromProjectLocationAccountConnectorUser("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]", "[USER]"),
    RequestId = "",
    ValidateOnly = false,
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteUserAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteUserAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUserAsync(UserName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteUserAsync(UserName name, CallSettings callSettings = null)

Deletes a single User.

Parameters
Name Description
name UserName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
UserName name = UserName.FromProjectLocationAccountConnectorUser("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]", "[USER]");
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteUserAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteUserAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUserAsync(UserName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteUserAsync(UserName name, CancellationToken cancellationToken)

Deletes a single User.

Parameters
Name Description
name UserName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
UserName name = UserName.FromProjectLocationAccountConnectorUser("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]", "[USER]");
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteUserAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteUserAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUserAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteUserAsync(string name, CallSettings callSettings = null)

Deletes a single User.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]/users/[USER]";
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteUserAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteUserAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteUserAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteUserAsync(string name, CancellationToken cancellationToken)

Deletes a single User.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]/users/[USER]";
// Make the request
Operation<Empty, OperationMetadata> response = await developerConnectClient.DeleteUserAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceDeleteUserAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DiffGitRepositoryLinkCommit(DiffGitRepositoryLinkCommitRequest, CallSettings)

public virtual DiffGitRepositoryLinkCommitResponse DiffGitRepositoryLinkCommit(DiffGitRepositoryLinkCommitRequest request, CallSettings callSettings = null)

Diff commits for a GitRepositoryLink.

Parameters
Name Description
request DiffGitRepositoryLinkCommitRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DiffGitRepositoryLinkCommitResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
DiffGitRepositoryLinkCommitRequest request = new DiffGitRepositoryLinkCommitRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    BaseSha = "",
    HeadSha = "",
    PathFilters = { "", },
};
// Make the request
DiffGitRepositoryLinkCommitResponse response = developerConnectClient.DiffGitRepositoryLinkCommit(request);

DiffGitRepositoryLinkCommit(GitRepositoryLinkName, string, string, CallSettings)

public virtual DiffGitRepositoryLinkCommitResponse DiffGitRepositoryLinkCommit(GitRepositoryLinkName name, string baseSha, string headSha, CallSettings callSettings = null)

Diff commits for a GitRepositoryLink.

Parameters
Name Description
name GitRepositoryLinkName

Required. The resource name of the GitRepositoryLink.

baseSha string

Required. The base commit SHA or ref.

headSha string

Required. The head commit SHA or ref.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DiffGitRepositoryLinkCommitResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string baseSha = "";
string headSha = "";
// Make the request
DiffGitRepositoryLinkCommitResponse response = developerConnectClient.DiffGitRepositoryLinkCommit(name, baseSha, headSha);

DiffGitRepositoryLinkCommit(string, string, string, CallSettings)

public virtual DiffGitRepositoryLinkCommitResponse DiffGitRepositoryLinkCommit(string name, string baseSha, string headSha, CallSettings callSettings = null)

Diff commits for a GitRepositoryLink.

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink.

baseSha string

Required. The base commit SHA or ref.

headSha string

Required. The head commit SHA or ref.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DiffGitRepositoryLinkCommitResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string baseSha = "";
string headSha = "";
// Make the request
DiffGitRepositoryLinkCommitResponse response = developerConnectClient.DiffGitRepositoryLinkCommit(name, baseSha, headSha);

DiffGitRepositoryLinkCommitAsync(DiffGitRepositoryLinkCommitRequest, CallSettings)

public virtual Task<DiffGitRepositoryLinkCommitResponse> DiffGitRepositoryLinkCommitAsync(DiffGitRepositoryLinkCommitRequest request, CallSettings callSettings = null)

Diff commits for a GitRepositoryLink.

Parameters
Name Description
request DiffGitRepositoryLinkCommitRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDiffGitRepositoryLinkCommitResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
DiffGitRepositoryLinkCommitRequest request = new DiffGitRepositoryLinkCommitRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    BaseSha = "",
    HeadSha = "",
    PathFilters = { "", },
};
// Make the request
DiffGitRepositoryLinkCommitResponse response = await developerConnectClient.DiffGitRepositoryLinkCommitAsync(request);

DiffGitRepositoryLinkCommitAsync(DiffGitRepositoryLinkCommitRequest, CancellationToken)

public virtual Task<DiffGitRepositoryLinkCommitResponse> DiffGitRepositoryLinkCommitAsync(DiffGitRepositoryLinkCommitRequest request, CancellationToken cancellationToken)

Diff commits for a GitRepositoryLink.

Parameters
Name Description
request DiffGitRepositoryLinkCommitRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDiffGitRepositoryLinkCommitResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
DiffGitRepositoryLinkCommitRequest request = new DiffGitRepositoryLinkCommitRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    BaseSha = "",
    HeadSha = "",
    PathFilters = { "", },
};
// Make the request
DiffGitRepositoryLinkCommitResponse response = await developerConnectClient.DiffGitRepositoryLinkCommitAsync(request);

DiffGitRepositoryLinkCommitAsync(GitRepositoryLinkName, string, string, CallSettings)

public virtual Task<DiffGitRepositoryLinkCommitResponse> DiffGitRepositoryLinkCommitAsync(GitRepositoryLinkName name, string baseSha, string headSha, CallSettings callSettings = null)

Diff commits for a GitRepositoryLink.

Parameters
Name Description
name GitRepositoryLinkName

Required. The resource name of the GitRepositoryLink.

baseSha string

Required. The base commit SHA or ref.

headSha string

Required. The head commit SHA or ref.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDiffGitRepositoryLinkCommitResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string baseSha = "";
string headSha = "";
// Make the request
DiffGitRepositoryLinkCommitResponse response = await developerConnectClient.DiffGitRepositoryLinkCommitAsync(name, baseSha, headSha);

DiffGitRepositoryLinkCommitAsync(GitRepositoryLinkName, string, string, CancellationToken)

public virtual Task<DiffGitRepositoryLinkCommitResponse> DiffGitRepositoryLinkCommitAsync(GitRepositoryLinkName name, string baseSha, string headSha, CancellationToken cancellationToken)

Diff commits for a GitRepositoryLink.

Parameters
Name Description
name GitRepositoryLinkName

Required. The resource name of the GitRepositoryLink.

baseSha string

Required. The base commit SHA or ref.

headSha string

Required. The head commit SHA or ref.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDiffGitRepositoryLinkCommitResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string baseSha = "";
string headSha = "";
// Make the request
DiffGitRepositoryLinkCommitResponse response = await developerConnectClient.DiffGitRepositoryLinkCommitAsync(name, baseSha, headSha);

DiffGitRepositoryLinkCommitAsync(string, string, string, CallSettings)

public virtual Task<DiffGitRepositoryLinkCommitResponse> DiffGitRepositoryLinkCommitAsync(string name, string baseSha, string headSha, CallSettings callSettings = null)

Diff commits for a GitRepositoryLink.

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink.

baseSha string

Required. The base commit SHA or ref.

headSha string

Required. The head commit SHA or ref.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDiffGitRepositoryLinkCommitResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string baseSha = "";
string headSha = "";
// Make the request
DiffGitRepositoryLinkCommitResponse response = await developerConnectClient.DiffGitRepositoryLinkCommitAsync(name, baseSha, headSha);

DiffGitRepositoryLinkCommitAsync(string, string, string, CancellationToken)

public virtual Task<DiffGitRepositoryLinkCommitResponse> DiffGitRepositoryLinkCommitAsync(string name, string baseSha, string headSha, CancellationToken cancellationToken)

Diff commits for a GitRepositoryLink.

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink.

baseSha string

Required. The base commit SHA or ref.

headSha string

Required. The head commit SHA or ref.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDiffGitRepositoryLinkCommitResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string baseSha = "";
string headSha = "";
// Make the request
DiffGitRepositoryLinkCommitResponse response = await developerConnectClient.DiffGitRepositoryLinkCommitAsync(name, baseSha, headSha);

FetchAccessToken(AccountConnectorName, CallSettings)

public virtual FetchAccessTokenResponse FetchAccessToken(AccountConnectorName accountConnector, CallSettings callSettings = null)

Fetches OAuth access token based on end user credentials.

Parameters
Name Description
accountConnector AccountConnectorName

Required. The resource name of the AccountConnector in the format projects/*/locations/*/accountConnectors/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchAccessTokenResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
AccountConnectorName accountConnector = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
FetchAccessTokenResponse response = developerConnectClient.FetchAccessToken(accountConnector);

FetchAccessToken(FetchAccessTokenRequest, CallSettings)

public virtual FetchAccessTokenResponse FetchAccessToken(FetchAccessTokenRequest request, CallSettings callSettings = null)

Fetches OAuth access token based on end user credentials.

Parameters
Name Description
request FetchAccessTokenRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchAccessTokenResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
FetchAccessTokenRequest request = new FetchAccessTokenRequest
{
    AccountConnectorAsAccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
};
// Make the request
FetchAccessTokenResponse response = developerConnectClient.FetchAccessToken(request);

FetchAccessToken(string, CallSettings)

public virtual FetchAccessTokenResponse FetchAccessToken(string accountConnector, CallSettings callSettings = null)

Fetches OAuth access token based on end user credentials.

Parameters
Name Description
accountConnector string

Required. The resource name of the AccountConnector in the format projects/*/locations/*/accountConnectors/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchAccessTokenResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string accountConnector = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
FetchAccessTokenResponse response = developerConnectClient.FetchAccessToken(accountConnector);

FetchAccessTokenAsync(AccountConnectorName, CallSettings)

public virtual Task<FetchAccessTokenResponse> FetchAccessTokenAsync(AccountConnectorName accountConnector, CallSettings callSettings = null)

Fetches OAuth access token based on end user credentials.

Parameters
Name Description
accountConnector AccountConnectorName

Required. The resource name of the AccountConnector in the format projects/*/locations/*/accountConnectors/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchAccessTokenResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AccountConnectorName accountConnector = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
FetchAccessTokenResponse response = await developerConnectClient.FetchAccessTokenAsync(accountConnector);

FetchAccessTokenAsync(AccountConnectorName, CancellationToken)

public virtual Task<FetchAccessTokenResponse> FetchAccessTokenAsync(AccountConnectorName accountConnector, CancellationToken cancellationToken)

Fetches OAuth access token based on end user credentials.

Parameters
Name Description
accountConnector AccountConnectorName

Required. The resource name of the AccountConnector in the format projects/*/locations/*/accountConnectors/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchAccessTokenResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AccountConnectorName accountConnector = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
FetchAccessTokenResponse response = await developerConnectClient.FetchAccessTokenAsync(accountConnector);

FetchAccessTokenAsync(FetchAccessTokenRequest, CallSettings)

public virtual Task<FetchAccessTokenResponse> FetchAccessTokenAsync(FetchAccessTokenRequest request, CallSettings callSettings = null)

Fetches OAuth access token based on end user credentials.

Parameters
Name Description
request FetchAccessTokenRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchAccessTokenResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FetchAccessTokenRequest request = new FetchAccessTokenRequest
{
    AccountConnectorAsAccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
};
// Make the request
FetchAccessTokenResponse response = await developerConnectClient.FetchAccessTokenAsync(request);

FetchAccessTokenAsync(FetchAccessTokenRequest, CancellationToken)

public virtual Task<FetchAccessTokenResponse> FetchAccessTokenAsync(FetchAccessTokenRequest request, CancellationToken cancellationToken)

Fetches OAuth access token based on end user credentials.

Parameters
Name Description
request FetchAccessTokenRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchAccessTokenResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FetchAccessTokenRequest request = new FetchAccessTokenRequest
{
    AccountConnectorAsAccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
};
// Make the request
FetchAccessTokenResponse response = await developerConnectClient.FetchAccessTokenAsync(request);

FetchAccessTokenAsync(string, CallSettings)

public virtual Task<FetchAccessTokenResponse> FetchAccessTokenAsync(string accountConnector, CallSettings callSettings = null)

Fetches OAuth access token based on end user credentials.

Parameters
Name Description
accountConnector string

Required. The resource name of the AccountConnector in the format projects/*/locations/*/accountConnectors/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchAccessTokenResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string accountConnector = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
FetchAccessTokenResponse response = await developerConnectClient.FetchAccessTokenAsync(accountConnector);

FetchAccessTokenAsync(string, CancellationToken)

public virtual Task<FetchAccessTokenResponse> FetchAccessTokenAsync(string accountConnector, CancellationToken cancellationToken)

Fetches OAuth access token based on end user credentials.

Parameters
Name Description
accountConnector string

Required. The resource name of the AccountConnector in the format projects/*/locations/*/accountConnectors/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchAccessTokenResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string accountConnector = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
FetchAccessTokenResponse response = await developerConnectClient.FetchAccessTokenAsync(accountConnector);

FetchGitHubInstallations(ConnectionName, CallSettings)

public virtual FetchGitHubInstallationsResponse FetchGitHubInstallations(ConnectionName connection, CallSettings callSettings = null)

FetchGitHubInstallations returns the list of GitHub Installations that are available to be added to a Connection. For github.com, only installations accessible to the authorizer token are returned. For GitHub Enterprise, all installations are returned.

Parameters
Name Description
connection ConnectionName

Required. The resource name of the connection in the format projects/*/locations/*/connections/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchGitHubInstallationsResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
ConnectionName connection = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
FetchGitHubInstallationsResponse response = developerConnectClient.FetchGitHubInstallations(connection);

FetchGitHubInstallations(FetchGitHubInstallationsRequest, CallSettings)

public virtual FetchGitHubInstallationsResponse FetchGitHubInstallations(FetchGitHubInstallationsRequest request, CallSettings callSettings = null)

FetchGitHubInstallations returns the list of GitHub Installations that are available to be added to a Connection. For github.com, only installations accessible to the authorizer token are returned. For GitHub Enterprise, all installations are returned.

Parameters
Name Description
request FetchGitHubInstallationsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchGitHubInstallationsResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
FetchGitHubInstallationsRequest request = new FetchGitHubInstallationsRequest
{
    ConnectionAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
FetchGitHubInstallationsResponse response = developerConnectClient.FetchGitHubInstallations(request);

FetchGitHubInstallations(string, CallSettings)

public virtual FetchGitHubInstallationsResponse FetchGitHubInstallations(string connection, CallSettings callSettings = null)

FetchGitHubInstallations returns the list of GitHub Installations that are available to be added to a Connection. For github.com, only installations accessible to the authorizer token are returned. For GitHub Enterprise, all installations are returned.

Parameters
Name Description
connection string

Required. The resource name of the connection in the format projects/*/locations/*/connections/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchGitHubInstallationsResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string connection = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
FetchGitHubInstallationsResponse response = developerConnectClient.FetchGitHubInstallations(connection);

FetchGitHubInstallationsAsync(ConnectionName, CallSettings)

public virtual Task<FetchGitHubInstallationsResponse> FetchGitHubInstallationsAsync(ConnectionName connection, CallSettings callSettings = null)

FetchGitHubInstallations returns the list of GitHub Installations that are available to be added to a Connection. For github.com, only installations accessible to the authorizer token are returned. For GitHub Enterprise, all installations are returned.

Parameters
Name Description
connection ConnectionName

Required. The resource name of the connection in the format projects/*/locations/*/connections/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchGitHubInstallationsResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
ConnectionName connection = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
FetchGitHubInstallationsResponse response = await developerConnectClient.FetchGitHubInstallationsAsync(connection);

FetchGitHubInstallationsAsync(ConnectionName, CancellationToken)

public virtual Task<FetchGitHubInstallationsResponse> FetchGitHubInstallationsAsync(ConnectionName connection, CancellationToken cancellationToken)

FetchGitHubInstallations returns the list of GitHub Installations that are available to be added to a Connection. For github.com, only installations accessible to the authorizer token are returned. For GitHub Enterprise, all installations are returned.

Parameters
Name Description
connection ConnectionName

Required. The resource name of the connection in the format projects/*/locations/*/connections/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchGitHubInstallationsResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
ConnectionName connection = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
FetchGitHubInstallationsResponse response = await developerConnectClient.FetchGitHubInstallationsAsync(connection);

FetchGitHubInstallationsAsync(FetchGitHubInstallationsRequest, CallSettings)

public virtual Task<FetchGitHubInstallationsResponse> FetchGitHubInstallationsAsync(FetchGitHubInstallationsRequest request, CallSettings callSettings = null)

FetchGitHubInstallations returns the list of GitHub Installations that are available to be added to a Connection. For github.com, only installations accessible to the authorizer token are returned. For GitHub Enterprise, all installations are returned.

Parameters
Name Description
request FetchGitHubInstallationsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchGitHubInstallationsResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FetchGitHubInstallationsRequest request = new FetchGitHubInstallationsRequest
{
    ConnectionAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
FetchGitHubInstallationsResponse response = await developerConnectClient.FetchGitHubInstallationsAsync(request);

FetchGitHubInstallationsAsync(FetchGitHubInstallationsRequest, CancellationToken)

public virtual Task<FetchGitHubInstallationsResponse> FetchGitHubInstallationsAsync(FetchGitHubInstallationsRequest request, CancellationToken cancellationToken)

FetchGitHubInstallations returns the list of GitHub Installations that are available to be added to a Connection. For github.com, only installations accessible to the authorizer token are returned. For GitHub Enterprise, all installations are returned.

Parameters
Name Description
request FetchGitHubInstallationsRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchGitHubInstallationsResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FetchGitHubInstallationsRequest request = new FetchGitHubInstallationsRequest
{
    ConnectionAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
FetchGitHubInstallationsResponse response = await developerConnectClient.FetchGitHubInstallationsAsync(request);

FetchGitHubInstallationsAsync(string, CallSettings)

public virtual Task<FetchGitHubInstallationsResponse> FetchGitHubInstallationsAsync(string connection, CallSettings callSettings = null)

FetchGitHubInstallations returns the list of GitHub Installations that are available to be added to a Connection. For github.com, only installations accessible to the authorizer token are returned. For GitHub Enterprise, all installations are returned.

Parameters
Name Description
connection string

Required. The resource name of the connection in the format projects/*/locations/*/connections/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchGitHubInstallationsResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string connection = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
FetchGitHubInstallationsResponse response = await developerConnectClient.FetchGitHubInstallationsAsync(connection);

FetchGitHubInstallationsAsync(string, CancellationToken)

public virtual Task<FetchGitHubInstallationsResponse> FetchGitHubInstallationsAsync(string connection, CancellationToken cancellationToken)

FetchGitHubInstallations returns the list of GitHub Installations that are available to be added to a Connection. For github.com, only installations accessible to the authorizer token are returned. For GitHub Enterprise, all installations are returned.

Parameters
Name Description
connection string

Required. The resource name of the connection in the format projects/*/locations/*/connections/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchGitHubInstallationsResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string connection = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
FetchGitHubInstallationsResponse response = await developerConnectClient.FetchGitHubInstallationsAsync(connection);

FetchGitRefs(FetchGitRefsRequest, CallSettings)

public virtual PagedEnumerable<FetchGitRefsResponse, string> FetchGitRefs(FetchGitRefsRequest request, CallSettings callSettings = null)

Fetch the list of branches or tags for a given repository.

Parameters
Name Description
request FetchGitRefsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableFetchGitRefsResponsestring

A pageable sequence of string resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
FetchGitRefsRequest request = new FetchGitRefsRequest
{
    GitRepositoryLinkAsGitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    RefType = FetchGitRefsRequest.Types.RefType.Unspecified,
};
// Make the request
PagedEnumerable<FetchGitRefsResponse, string> response = developerConnectClient.FetchGitRefs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (string item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (FetchGitRefsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (string item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<string> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (string item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchGitRefs(GitRepositoryLinkName, RefType, string, int?, CallSettings)

public virtual PagedEnumerable<FetchGitRefsResponse, string> FetchGitRefs(GitRepositoryLinkName gitRepositoryLink, FetchGitRefsRequest.Types.RefType refType, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Fetch the list of branches or tags for a given repository.

Parameters
Name Description
gitRepositoryLink GitRepositoryLinkName

Required. The resource name of GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

refType FetchGitRefsRequestTypesRefType

Required. Type of refs to fetch.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableFetchGitRefsResponsestring

A pageable sequence of string resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
GitRepositoryLinkName gitRepositoryLink = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
FetchGitRefsRequest.Types.RefType refType = FetchGitRefsRequest.Types.RefType.Unspecified;
// Make the request
PagedEnumerable<FetchGitRefsResponse, string> response = developerConnectClient.FetchGitRefs(gitRepositoryLink, refType);

// Iterate over all response items, lazily performing RPCs as required
foreach (string item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (FetchGitRefsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (string item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<string> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (string item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchGitRefs(string, RefType, string, int?, CallSettings)

public virtual PagedEnumerable<FetchGitRefsResponse, string> FetchGitRefs(string gitRepositoryLink, FetchGitRefsRequest.Types.RefType refType, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Fetch the list of branches or tags for a given repository.

Parameters
Name Description
gitRepositoryLink string

Required. The resource name of GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

refType FetchGitRefsRequestTypesRefType

Required. Type of refs to fetch.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableFetchGitRefsResponsestring

A pageable sequence of string resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string gitRepositoryLink = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
FetchGitRefsRequest.Types.RefType refType = FetchGitRefsRequest.Types.RefType.Unspecified;
// Make the request
PagedEnumerable<FetchGitRefsResponse, string> response = developerConnectClient.FetchGitRefs(gitRepositoryLink, refType);

// Iterate over all response items, lazily performing RPCs as required
foreach (string item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (FetchGitRefsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (string item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<string> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (string item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchGitRefsAsync(FetchGitRefsRequest, CallSettings)

public virtual PagedAsyncEnumerable<FetchGitRefsResponse, string> FetchGitRefsAsync(FetchGitRefsRequest request, CallSettings callSettings = null)

Fetch the list of branches or tags for a given repository.

Parameters
Name Description
request FetchGitRefsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableFetchGitRefsResponsestring

A pageable asynchronous sequence of string resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FetchGitRefsRequest request = new FetchGitRefsRequest
{
    GitRepositoryLinkAsGitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    RefType = FetchGitRefsRequest.Types.RefType.Unspecified,
};
// Make the request
PagedAsyncEnumerable<FetchGitRefsResponse, string> response = developerConnectClient.FetchGitRefsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (string item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (FetchGitRefsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (string item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<string> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (string item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchGitRefsAsync(GitRepositoryLinkName, RefType, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<FetchGitRefsResponse, string> FetchGitRefsAsync(GitRepositoryLinkName gitRepositoryLink, FetchGitRefsRequest.Types.RefType refType, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Fetch the list of branches or tags for a given repository.

Parameters
Name Description
gitRepositoryLink GitRepositoryLinkName

Required. The resource name of GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

refType FetchGitRefsRequestTypesRefType

Required. Type of refs to fetch.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableFetchGitRefsResponsestring

A pageable asynchronous sequence of string resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName gitRepositoryLink = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
FetchGitRefsRequest.Types.RefType refType = FetchGitRefsRequest.Types.RefType.Unspecified;
// Make the request
PagedAsyncEnumerable<FetchGitRefsResponse, string> response = developerConnectClient.FetchGitRefsAsync(gitRepositoryLink, refType);

// Iterate over all response items, lazily performing RPCs as required
await foreach (string item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (FetchGitRefsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (string item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<string> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (string item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchGitRefsAsync(string, RefType, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<FetchGitRefsResponse, string> FetchGitRefsAsync(string gitRepositoryLink, FetchGitRefsRequest.Types.RefType refType, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Fetch the list of branches or tags for a given repository.

Parameters
Name Description
gitRepositoryLink string

Required. The resource name of GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

refType FetchGitRefsRequestTypesRefType

Required. Type of refs to fetch.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableFetchGitRefsResponsestring

A pageable asynchronous sequence of string resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string gitRepositoryLink = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
FetchGitRefsRequest.Types.RefType refType = FetchGitRefsRequest.Types.RefType.Unspecified;
// Make the request
PagedAsyncEnumerable<FetchGitRefsResponse, string> response = developerConnectClient.FetchGitRefsAsync(gitRepositoryLink, refType);

// Iterate over all response items, lazily performing RPCs as required
await foreach (string item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (FetchGitRefsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (string item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<string> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (string item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchGitRepositoryLinkCommit(FetchGitRepositoryLinkCommitRequest, CallSettings)

public virtual FetchGitRepositoryLinkCommitResponse FetchGitRepositoryLinkCommit(FetchGitRepositoryLinkCommitRequest request, CallSettings callSettings = null)

Fetch Commit details from a Git repository link.

Parameters
Name Description
request FetchGitRepositoryLinkCommitRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchGitRepositoryLinkCommitResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
FetchGitRepositoryLinkCommitRequest request = new FetchGitRepositoryLinkCommitRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    CommitSha = "",
    View = CommitView.Unspecified,
    PathFilters = { "", },
};
// Make the request
FetchGitRepositoryLinkCommitResponse response = developerConnectClient.FetchGitRepositoryLinkCommit(request);

FetchGitRepositoryLinkCommit(GitRepositoryLinkName, string, CallSettings)

public virtual FetchGitRepositoryLinkCommitResponse FetchGitRepositoryLinkCommit(GitRepositoryLinkName name, string commitSha, CallSettings callSettings = null)

Fetch Commit details from a Git repository link.

Parameters
Name Description
name GitRepositoryLinkName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

commitSha string

Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference).

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchGitRepositoryLinkCommitResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string commitSha = "";
// Make the request
FetchGitRepositoryLinkCommitResponse response = developerConnectClient.FetchGitRepositoryLinkCommit(name, commitSha);

FetchGitRepositoryLinkCommit(string, string, CallSettings)

public virtual FetchGitRepositoryLinkCommitResponse FetchGitRepositoryLinkCommit(string name, string commitSha, CallSettings callSettings = null)

Fetch Commit details from a Git repository link.

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

commitSha string

Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference).

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchGitRepositoryLinkCommitResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string commitSha = "";
// Make the request
FetchGitRepositoryLinkCommitResponse response = developerConnectClient.FetchGitRepositoryLinkCommit(name, commitSha);

FetchGitRepositoryLinkCommitAsync(FetchGitRepositoryLinkCommitRequest, CallSettings)

public virtual Task<FetchGitRepositoryLinkCommitResponse> FetchGitRepositoryLinkCommitAsync(FetchGitRepositoryLinkCommitRequest request, CallSettings callSettings = null)

Fetch Commit details from a Git repository link.

Parameters
Name Description
request FetchGitRepositoryLinkCommitRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchGitRepositoryLinkCommitResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FetchGitRepositoryLinkCommitRequest request = new FetchGitRepositoryLinkCommitRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    CommitSha = "",
    View = CommitView.Unspecified,
    PathFilters = { "", },
};
// Make the request
FetchGitRepositoryLinkCommitResponse response = await developerConnectClient.FetchGitRepositoryLinkCommitAsync(request);

FetchGitRepositoryLinkCommitAsync(FetchGitRepositoryLinkCommitRequest, CancellationToken)

public virtual Task<FetchGitRepositoryLinkCommitResponse> FetchGitRepositoryLinkCommitAsync(FetchGitRepositoryLinkCommitRequest request, CancellationToken cancellationToken)

Fetch Commit details from a Git repository link.

Parameters
Name Description
request FetchGitRepositoryLinkCommitRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchGitRepositoryLinkCommitResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FetchGitRepositoryLinkCommitRequest request = new FetchGitRepositoryLinkCommitRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    CommitSha = "",
    View = CommitView.Unspecified,
    PathFilters = { "", },
};
// Make the request
FetchGitRepositoryLinkCommitResponse response = await developerConnectClient.FetchGitRepositoryLinkCommitAsync(request);

FetchGitRepositoryLinkCommitAsync(GitRepositoryLinkName, string, CallSettings)

public virtual Task<FetchGitRepositoryLinkCommitResponse> FetchGitRepositoryLinkCommitAsync(GitRepositoryLinkName name, string commitSha, CallSettings callSettings = null)

Fetch Commit details from a Git repository link.

Parameters
Name Description
name GitRepositoryLinkName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

commitSha string

Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference).

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchGitRepositoryLinkCommitResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string commitSha = "";
// Make the request
FetchGitRepositoryLinkCommitResponse response = await developerConnectClient.FetchGitRepositoryLinkCommitAsync(name, commitSha);

FetchGitRepositoryLinkCommitAsync(GitRepositoryLinkName, string, CancellationToken)

public virtual Task<FetchGitRepositoryLinkCommitResponse> FetchGitRepositoryLinkCommitAsync(GitRepositoryLinkName name, string commitSha, CancellationToken cancellationToken)

Fetch Commit details from a Git repository link.

Parameters
Name Description
name GitRepositoryLinkName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

commitSha string

Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference).

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchGitRepositoryLinkCommitResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string commitSha = "";
// Make the request
FetchGitRepositoryLinkCommitResponse response = await developerConnectClient.FetchGitRepositoryLinkCommitAsync(name, commitSha);

FetchGitRepositoryLinkCommitAsync(string, string, CallSettings)

public virtual Task<FetchGitRepositoryLinkCommitResponse> FetchGitRepositoryLinkCommitAsync(string name, string commitSha, CallSettings callSettings = null)

Fetch Commit details from a Git repository link.

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

commitSha string

Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference).

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchGitRepositoryLinkCommitResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string commitSha = "";
// Make the request
FetchGitRepositoryLinkCommitResponse response = await developerConnectClient.FetchGitRepositoryLinkCommitAsync(name, commitSha);

FetchGitRepositoryLinkCommitAsync(string, string, CancellationToken)

public virtual Task<FetchGitRepositoryLinkCommitResponse> FetchGitRepositoryLinkCommitAsync(string name, string commitSha, CancellationToken cancellationToken)

Fetch Commit details from a Git repository link.

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

commitSha string

Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference).

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchGitRepositoryLinkCommitResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string commitSha = "";
// Make the request
FetchGitRepositoryLinkCommitResponse response = await developerConnectClient.FetchGitRepositoryLinkCommitAsync(name, commitSha);

FetchGitRepositoryLinkCommitList(FetchGitRepositoryLinkCommitListRequest, CallSettings)

public virtual PagedEnumerable<FetchGitRepositoryLinkCommitListResponse, SCMCommit> FetchGitRepositoryLinkCommitList(FetchGitRepositoryLinkCommitListRequest request, CallSettings callSettings = null)

Fetch a list of Commits from a Git repository link.

Parameters
Name Description
request FetchGitRepositoryLinkCommitListRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableFetchGitRepositoryLinkCommitListResponseSCMCommit

A pageable sequence of SCMCommit resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
FetchGitRepositoryLinkCommitListRequest request = new FetchGitRepositoryLinkCommitListRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    Ref = "",
    View = CommitView.Unspecified,
};
// Make the request
PagedEnumerable<FetchGitRepositoryLinkCommitListResponse, SCMCommit> response = developerConnectClient.FetchGitRepositoryLinkCommitList(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (SCMCommit item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (FetchGitRepositoryLinkCommitListResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SCMCommit item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SCMCommit> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SCMCommit item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchGitRepositoryLinkCommitList(GitRepositoryLinkName, string, string, int?, CallSettings)

public virtual PagedEnumerable<FetchGitRepositoryLinkCommitListResponse, SCMCommit> FetchGitRepositoryLinkCommitList(GitRepositoryLinkName name, string @ref, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Fetch a list of Commits from a Git repository link.

Parameters
Name Description
name GitRepositoryLinkName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

ref string

Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference) from which to start listing commits.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableFetchGitRepositoryLinkCommitListResponseSCMCommit

A pageable sequence of SCMCommit resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string @ref = "";
// Make the request
PagedEnumerable<FetchGitRepositoryLinkCommitListResponse, SCMCommit> response = developerConnectClient.FetchGitRepositoryLinkCommitList(name, @ref);

// Iterate over all response items, lazily performing RPCs as required
foreach (SCMCommit item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (FetchGitRepositoryLinkCommitListResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SCMCommit item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SCMCommit> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SCMCommit item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchGitRepositoryLinkCommitList(string, string, string, int?, CallSettings)

public virtual PagedEnumerable<FetchGitRepositoryLinkCommitListResponse, SCMCommit> FetchGitRepositoryLinkCommitList(string name, string @ref, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Fetch a list of Commits from a Git repository link.

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

ref string

Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference) from which to start listing commits.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableFetchGitRepositoryLinkCommitListResponseSCMCommit

A pageable sequence of SCMCommit resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string @ref = "";
// Make the request
PagedEnumerable<FetchGitRepositoryLinkCommitListResponse, SCMCommit> response = developerConnectClient.FetchGitRepositoryLinkCommitList(name, @ref);

// Iterate over all response items, lazily performing RPCs as required
foreach (SCMCommit item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (FetchGitRepositoryLinkCommitListResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SCMCommit item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SCMCommit> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SCMCommit item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchGitRepositoryLinkCommitListAsync(FetchGitRepositoryLinkCommitListRequest, CallSettings)

public virtual PagedAsyncEnumerable<FetchGitRepositoryLinkCommitListResponse, SCMCommit> FetchGitRepositoryLinkCommitListAsync(FetchGitRepositoryLinkCommitListRequest request, CallSettings callSettings = null)

Fetch a list of Commits from a Git repository link.

Parameters
Name Description
request FetchGitRepositoryLinkCommitListRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableFetchGitRepositoryLinkCommitListResponseSCMCommit

A pageable asynchronous sequence of SCMCommit resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FetchGitRepositoryLinkCommitListRequest request = new FetchGitRepositoryLinkCommitListRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    Ref = "",
    View = CommitView.Unspecified,
};
// Make the request
PagedAsyncEnumerable<FetchGitRepositoryLinkCommitListResponse, SCMCommit> response = developerConnectClient.FetchGitRepositoryLinkCommitListAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (SCMCommit item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (FetchGitRepositoryLinkCommitListResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SCMCommit item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SCMCommit> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SCMCommit item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchGitRepositoryLinkCommitListAsync(GitRepositoryLinkName, string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<FetchGitRepositoryLinkCommitListResponse, SCMCommit> FetchGitRepositoryLinkCommitListAsync(GitRepositoryLinkName name, string @ref, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Fetch a list of Commits from a Git repository link.

Parameters
Name Description
name GitRepositoryLinkName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

ref string

Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference) from which to start listing commits.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableFetchGitRepositoryLinkCommitListResponseSCMCommit

A pageable asynchronous sequence of SCMCommit resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string @ref = "";
// Make the request
PagedAsyncEnumerable<FetchGitRepositoryLinkCommitListResponse, SCMCommit> response = developerConnectClient.FetchGitRepositoryLinkCommitListAsync(name, @ref);

// Iterate over all response items, lazily performing RPCs as required
await foreach (SCMCommit item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (FetchGitRepositoryLinkCommitListResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SCMCommit item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SCMCommit> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SCMCommit item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchGitRepositoryLinkCommitListAsync(string, string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<FetchGitRepositoryLinkCommitListResponse, SCMCommit> FetchGitRepositoryLinkCommitListAsync(string name, string @ref, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Fetch a list of Commits from a Git repository link.

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

ref string

Optional. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference) from which to start listing commits.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableFetchGitRepositoryLinkCommitListResponseSCMCommit

A pageable asynchronous sequence of SCMCommit resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string @ref = "";
// Make the request
PagedAsyncEnumerable<FetchGitRepositoryLinkCommitListResponse, SCMCommit> response = developerConnectClient.FetchGitRepositoryLinkCommitListAsync(name, @ref);

// Iterate over all response items, lazily performing RPCs as required
await foreach (SCMCommit item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (FetchGitRepositoryLinkCommitListResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (SCMCommit item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<SCMCommit> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (SCMCommit item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchGitRepositoryLinkFileBlame(FetchGitRepositoryLinkFileBlameRequest, CallSettings)

public virtual FetchGitRepositoryLinkFileBlameResponse FetchGitRepositoryLinkFileBlame(FetchGitRepositoryLinkFileBlameRequest request, CallSettings callSettings = null)

Fetches blame information for a file or line range in a file.

Parameters
Name Description
request FetchGitRepositoryLinkFileBlameRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchGitRepositoryLinkFileBlameResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
FetchGitRepositoryLinkFileBlameRequest request = new FetchGitRepositoryLinkFileBlameRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    Ref = "",
    Path = "",
    FirstLine = 0,
    LastLine = 0,
};
// Make the request
FetchGitRepositoryLinkFileBlameResponse response = developerConnectClient.FetchGitRepositoryLinkFileBlame(request);

FetchGitRepositoryLinkFileBlame(GitRepositoryLinkName, string, string, CallSettings)

public virtual FetchGitRepositoryLinkFileBlameResponse FetchGitRepositoryLinkFileBlame(GitRepositoryLinkName name, string @ref, string path, CallSettings callSettings = null)

Fetches blame information for a file or line range in a file.

Parameters
Name Description
name GitRepositoryLinkName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

ref string

Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag) from which to fetch the blame.

path string

Required. The file path within the repository.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchGitRepositoryLinkFileBlameResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string @ref = "";
string path = "";
// Make the request
FetchGitRepositoryLinkFileBlameResponse response = developerConnectClient.FetchGitRepositoryLinkFileBlame(name, @ref, path);

FetchGitRepositoryLinkFileBlame(string, string, string, CallSettings)

public virtual FetchGitRepositoryLinkFileBlameResponse FetchGitRepositoryLinkFileBlame(string name, string @ref, string path, CallSettings callSettings = null)

Fetches blame information for a file or line range in a file.

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

ref string

Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag) from which to fetch the blame.

path string

Required. The file path within the repository.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchGitRepositoryLinkFileBlameResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string @ref = "";
string path = "";
// Make the request
FetchGitRepositoryLinkFileBlameResponse response = developerConnectClient.FetchGitRepositoryLinkFileBlame(name, @ref, path);

FetchGitRepositoryLinkFileBlameAsync(FetchGitRepositoryLinkFileBlameRequest, CallSettings)

public virtual Task<FetchGitRepositoryLinkFileBlameResponse> FetchGitRepositoryLinkFileBlameAsync(FetchGitRepositoryLinkFileBlameRequest request, CallSettings callSettings = null)

Fetches blame information for a file or line range in a file.

Parameters
Name Description
request FetchGitRepositoryLinkFileBlameRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchGitRepositoryLinkFileBlameResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FetchGitRepositoryLinkFileBlameRequest request = new FetchGitRepositoryLinkFileBlameRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    Ref = "",
    Path = "",
    FirstLine = 0,
    LastLine = 0,
};
// Make the request
FetchGitRepositoryLinkFileBlameResponse response = await developerConnectClient.FetchGitRepositoryLinkFileBlameAsync(request);

FetchGitRepositoryLinkFileBlameAsync(FetchGitRepositoryLinkFileBlameRequest, CancellationToken)

public virtual Task<FetchGitRepositoryLinkFileBlameResponse> FetchGitRepositoryLinkFileBlameAsync(FetchGitRepositoryLinkFileBlameRequest request, CancellationToken cancellationToken)

Fetches blame information for a file or line range in a file.

Parameters
Name Description
request FetchGitRepositoryLinkFileBlameRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchGitRepositoryLinkFileBlameResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FetchGitRepositoryLinkFileBlameRequest request = new FetchGitRepositoryLinkFileBlameRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    Ref = "",
    Path = "",
    FirstLine = 0,
    LastLine = 0,
};
// Make the request
FetchGitRepositoryLinkFileBlameResponse response = await developerConnectClient.FetchGitRepositoryLinkFileBlameAsync(request);

FetchGitRepositoryLinkFileBlameAsync(GitRepositoryLinkName, string, string, CallSettings)

public virtual Task<FetchGitRepositoryLinkFileBlameResponse> FetchGitRepositoryLinkFileBlameAsync(GitRepositoryLinkName name, string @ref, string path, CallSettings callSettings = null)

Fetches blame information for a file or line range in a file.

Parameters
Name Description
name GitRepositoryLinkName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

ref string

Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag) from which to fetch the blame.

path string

Required. The file path within the repository.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchGitRepositoryLinkFileBlameResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string @ref = "";
string path = "";
// Make the request
FetchGitRepositoryLinkFileBlameResponse response = await developerConnectClient.FetchGitRepositoryLinkFileBlameAsync(name, @ref, path);

FetchGitRepositoryLinkFileBlameAsync(GitRepositoryLinkName, string, string, CancellationToken)

public virtual Task<FetchGitRepositoryLinkFileBlameResponse> FetchGitRepositoryLinkFileBlameAsync(GitRepositoryLinkName name, string @ref, string path, CancellationToken cancellationToken)

Fetches blame information for a file or line range in a file.

Parameters
Name Description
name GitRepositoryLinkName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

ref string

Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag) from which to fetch the blame.

path string

Required. The file path within the repository.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchGitRepositoryLinkFileBlameResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string @ref = "";
string path = "";
// Make the request
FetchGitRepositoryLinkFileBlameResponse response = await developerConnectClient.FetchGitRepositoryLinkFileBlameAsync(name, @ref, path);

FetchGitRepositoryLinkFileBlameAsync(string, string, string, CallSettings)

public virtual Task<FetchGitRepositoryLinkFileBlameResponse> FetchGitRepositoryLinkFileBlameAsync(string name, string @ref, string path, CallSettings callSettings = null)

Fetches blame information for a file or line range in a file.

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

ref string

Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag) from which to fetch the blame.

path string

Required. The file path within the repository.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchGitRepositoryLinkFileBlameResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string @ref = "";
string path = "";
// Make the request
FetchGitRepositoryLinkFileBlameResponse response = await developerConnectClient.FetchGitRepositoryLinkFileBlameAsync(name, @ref, path);

FetchGitRepositoryLinkFileBlameAsync(string, string, string, CancellationToken)

public virtual Task<FetchGitRepositoryLinkFileBlameResponse> FetchGitRepositoryLinkFileBlameAsync(string name, string @ref, string path, CancellationToken cancellationToken)

Fetches blame information for a file or line range in a file.

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

ref string

Required. The SCM commit SHA, or symbolic revision (e.g., branch name, tag) from which to fetch the blame.

path string

Required. The file path within the repository.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchGitRepositoryLinkFileBlameResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string @ref = "";
string path = "";
// Make the request
FetchGitRepositoryLinkFileBlameResponse response = await developerConnectClient.FetchGitRepositoryLinkFileBlameAsync(name, @ref, path);

FetchGitRepositoryLinkPullRequest(FetchGitRepositoryLinkPullRequestRequest, CallSettings)

public virtual PullRequest FetchGitRepositoryLinkPullRequest(FetchGitRepositoryLinkPullRequestRequest request, CallSettings callSettings = null)

Fetch Pull Request details from a Git repository link.

Parameters
Name Description
request FetchGitRepositoryLinkPullRequestRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PullRequest

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
FetchGitRepositoryLinkPullRequestRequest request = new FetchGitRepositoryLinkPullRequestRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    PullRequestId = "",
};
// Make the request
PullRequest response = developerConnectClient.FetchGitRepositoryLinkPullRequest(request);

FetchGitRepositoryLinkPullRequest(GitRepositoryLinkName, string, CallSettings)

public virtual PullRequest FetchGitRepositoryLinkPullRequest(GitRepositoryLinkName name, string pullRequestId, CallSettings callSettings = null)

Fetch Pull Request details from a Git repository link.

Parameters
Name Description
name GitRepositoryLinkName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The ID of the Pull Request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PullRequest

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string pullRequestId = "";
// Make the request
PullRequest response = developerConnectClient.FetchGitRepositoryLinkPullRequest(name, pullRequestId);

FetchGitRepositoryLinkPullRequest(string, string, CallSettings)

public virtual PullRequest FetchGitRepositoryLinkPullRequest(string name, string pullRequestId, CallSettings callSettings = null)

Fetch Pull Request details from a Git repository link.

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The ID of the Pull Request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PullRequest

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string pullRequestId = "";
// Make the request
PullRequest response = developerConnectClient.FetchGitRepositoryLinkPullRequest(name, pullRequestId);

FetchGitRepositoryLinkPullRequestAsync(FetchGitRepositoryLinkPullRequestRequest, CallSettings)

public virtual Task<PullRequest> FetchGitRepositoryLinkPullRequestAsync(FetchGitRepositoryLinkPullRequestRequest request, CallSettings callSettings = null)

Fetch Pull Request details from a Git repository link.

Parameters
Name Description
request FetchGitRepositoryLinkPullRequestRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPullRequest

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FetchGitRepositoryLinkPullRequestRequest request = new FetchGitRepositoryLinkPullRequestRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    PullRequestId = "",
};
// Make the request
PullRequest response = await developerConnectClient.FetchGitRepositoryLinkPullRequestAsync(request);

FetchGitRepositoryLinkPullRequestAsync(FetchGitRepositoryLinkPullRequestRequest, CancellationToken)

public virtual Task<PullRequest> FetchGitRepositoryLinkPullRequestAsync(FetchGitRepositoryLinkPullRequestRequest request, CancellationToken cancellationToken)

Fetch Pull Request details from a Git repository link.

Parameters
Name Description
request FetchGitRepositoryLinkPullRequestRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPullRequest

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FetchGitRepositoryLinkPullRequestRequest request = new FetchGitRepositoryLinkPullRequestRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    PullRequestId = "",
};
// Make the request
PullRequest response = await developerConnectClient.FetchGitRepositoryLinkPullRequestAsync(request);

FetchGitRepositoryLinkPullRequestAsync(GitRepositoryLinkName, string, CallSettings)

public virtual Task<PullRequest> FetchGitRepositoryLinkPullRequestAsync(GitRepositoryLinkName name, string pullRequestId, CallSettings callSettings = null)

Fetch Pull Request details from a Git repository link.

Parameters
Name Description
name GitRepositoryLinkName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The ID of the Pull Request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPullRequest

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string pullRequestId = "";
// Make the request
PullRequest response = await developerConnectClient.FetchGitRepositoryLinkPullRequestAsync(name, pullRequestId);

FetchGitRepositoryLinkPullRequestAsync(GitRepositoryLinkName, string, CancellationToken)

public virtual Task<PullRequest> FetchGitRepositoryLinkPullRequestAsync(GitRepositoryLinkName name, string pullRequestId, CancellationToken cancellationToken)

Fetch Pull Request details from a Git repository link.

Parameters
Name Description
name GitRepositoryLinkName

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The ID of the Pull Request.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPullRequest

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string pullRequestId = "";
// Make the request
PullRequest response = await developerConnectClient.FetchGitRepositoryLinkPullRequestAsync(name, pullRequestId);

FetchGitRepositoryLinkPullRequestAsync(string, string, CallSettings)

public virtual Task<PullRequest> FetchGitRepositoryLinkPullRequestAsync(string name, string pullRequestId, CallSettings callSettings = null)

Fetch Pull Request details from a Git repository link.

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The ID of the Pull Request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPullRequest

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string pullRequestId = "";
// Make the request
PullRequest response = await developerConnectClient.FetchGitRepositoryLinkPullRequestAsync(name, pullRequestId);

FetchGitRepositoryLinkPullRequestAsync(string, string, CancellationToken)

public virtual Task<PullRequest> FetchGitRepositoryLinkPullRequestAsync(string name, string pullRequestId, CancellationToken cancellationToken)

Fetch Pull Request details from a Git repository link.

Parameters
Name Description
name string

Required. The resource name of the GitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The ID of the Pull Request.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPullRequest

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string pullRequestId = "";
// Make the request
PullRequest response = await developerConnectClient.FetchGitRepositoryLinkPullRequestAsync(name, pullRequestId);

FetchGitRepositoryLinkPullRequestList(FetchGitRepositoryLinkPullRequestListRequest, CallSettings)

public virtual PagedEnumerable<FetchGitRepositoryLinkPullRequestListResponse, PullRequest> FetchGitRepositoryLinkPullRequestList(FetchGitRepositoryLinkPullRequestListRequest request, CallSettings callSettings = null)

Fetches a list of Pull Requests from the remote repository.

Parameters
Name Description
request FetchGitRepositoryLinkPullRequestListRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableFetchGitRepositoryLinkPullRequestListResponsePullRequest

A pageable sequence of PullRequest resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
FetchGitRepositoryLinkPullRequestListRequest request = new FetchGitRepositoryLinkPullRequestListRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    Filter = "",
};
// Make the request
PagedEnumerable<FetchGitRepositoryLinkPullRequestListResponse, PullRequest> response = developerConnectClient.FetchGitRepositoryLinkPullRequestList(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (PullRequest item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (FetchGitRepositoryLinkPullRequestListResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PullRequest item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<PullRequest> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (PullRequest item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchGitRepositoryLinkPullRequestList(GitRepositoryLinkName, string, int?, CallSettings)

public virtual PagedEnumerable<FetchGitRepositoryLinkPullRequestListResponse, PullRequest> FetchGitRepositoryLinkPullRequestList(GitRepositoryLinkName name, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Fetches a list of Pull Requests from the remote repository.

Parameters
Name Description
name GitRepositoryLinkName

Required. The GitRepositoryLink resource name in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableFetchGitRepositoryLinkPullRequestListResponsePullRequest

A pageable sequence of PullRequest resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
// Make the request
PagedEnumerable<FetchGitRepositoryLinkPullRequestListResponse, PullRequest> response = developerConnectClient.FetchGitRepositoryLinkPullRequestList(name);

// Iterate over all response items, lazily performing RPCs as required
foreach (PullRequest item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (FetchGitRepositoryLinkPullRequestListResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PullRequest item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<PullRequest> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (PullRequest item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchGitRepositoryLinkPullRequestList(string, string, int?, CallSettings)

public virtual PagedEnumerable<FetchGitRepositoryLinkPullRequestListResponse, PullRequest> FetchGitRepositoryLinkPullRequestList(string name, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Fetches a list of Pull Requests from the remote repository.

Parameters
Name Description
name string

Required. The GitRepositoryLink resource name in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableFetchGitRepositoryLinkPullRequestListResponsePullRequest

A pageable sequence of PullRequest resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
// Make the request
PagedEnumerable<FetchGitRepositoryLinkPullRequestListResponse, PullRequest> response = developerConnectClient.FetchGitRepositoryLinkPullRequestList(name);

// Iterate over all response items, lazily performing RPCs as required
foreach (PullRequest item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (FetchGitRepositoryLinkPullRequestListResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PullRequest item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<PullRequest> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (PullRequest item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchGitRepositoryLinkPullRequestListAsync(FetchGitRepositoryLinkPullRequestListRequest, CallSettings)

public virtual PagedAsyncEnumerable<FetchGitRepositoryLinkPullRequestListResponse, PullRequest> FetchGitRepositoryLinkPullRequestListAsync(FetchGitRepositoryLinkPullRequestListRequest request, CallSettings callSettings = null)

Fetches a list of Pull Requests from the remote repository.

Parameters
Name Description
request FetchGitRepositoryLinkPullRequestListRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableFetchGitRepositoryLinkPullRequestListResponsePullRequest

A pageable asynchronous sequence of PullRequest resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FetchGitRepositoryLinkPullRequestListRequest request = new FetchGitRepositoryLinkPullRequestListRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<FetchGitRepositoryLinkPullRequestListResponse, PullRequest> response = developerConnectClient.FetchGitRepositoryLinkPullRequestListAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (PullRequest item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (FetchGitRepositoryLinkPullRequestListResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PullRequest item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<PullRequest> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (PullRequest item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchGitRepositoryLinkPullRequestListAsync(GitRepositoryLinkName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<FetchGitRepositoryLinkPullRequestListResponse, PullRequest> FetchGitRepositoryLinkPullRequestListAsync(GitRepositoryLinkName name, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Fetches a list of Pull Requests from the remote repository.

Parameters
Name Description
name GitRepositoryLinkName

Required. The GitRepositoryLink resource name in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableFetchGitRepositoryLinkPullRequestListResponsePullRequest

A pageable asynchronous sequence of PullRequest resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
// Make the request
PagedAsyncEnumerable<FetchGitRepositoryLinkPullRequestListResponse, PullRequest> response = developerConnectClient.FetchGitRepositoryLinkPullRequestListAsync(name);

// Iterate over all response items, lazily performing RPCs as required
await foreach (PullRequest item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (FetchGitRepositoryLinkPullRequestListResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PullRequest item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<PullRequest> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (PullRequest item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchGitRepositoryLinkPullRequestListAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<FetchGitRepositoryLinkPullRequestListResponse, PullRequest> FetchGitRepositoryLinkPullRequestListAsync(string name, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Fetches a list of Pull Requests from the remote repository.

Parameters
Name Description
name string

Required. The GitRepositoryLink resource name in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableFetchGitRepositoryLinkPullRequestListResponsePullRequest

A pageable asynchronous sequence of PullRequest resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
// Make the request
PagedAsyncEnumerable<FetchGitRepositoryLinkPullRequestListResponse, PullRequest> response = developerConnectClient.FetchGitRepositoryLinkPullRequestListAsync(name);

// Iterate over all response items, lazily performing RPCs as required
await foreach (PullRequest item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (FetchGitRepositoryLinkPullRequestListResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PullRequest item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<PullRequest> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (PullRequest item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchLinkableGitRepositories(ConnectionName, string, int?, CallSettings)

public virtual PagedEnumerable<FetchLinkableGitRepositoriesResponse, LinkableGitRepository> FetchLinkableGitRepositories(ConnectionName connection, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

FetchLinkableGitRepositories returns a list of git repositories from an SCM that are available to be added to a Connection.

Parameters
Name Description
connection ConnectionName

Required. The name of the Connection. Format: projects/*/locations/*/connections/*.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableFetchLinkableGitRepositoriesResponseLinkableGitRepository

A pageable sequence of LinkableGitRepository resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
ConnectionName connection = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
PagedEnumerable<FetchLinkableGitRepositoriesResponse, LinkableGitRepository> response = developerConnectClient.FetchLinkableGitRepositories(connection);

// Iterate over all response items, lazily performing RPCs as required
foreach (LinkableGitRepository item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (FetchLinkableGitRepositoriesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LinkableGitRepository item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LinkableGitRepository> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LinkableGitRepository item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchLinkableGitRepositories(FetchLinkableGitRepositoriesRequest, CallSettings)

public virtual PagedEnumerable<FetchLinkableGitRepositoriesResponse, LinkableGitRepository> FetchLinkableGitRepositories(FetchLinkableGitRepositoriesRequest request, CallSettings callSettings = null)

FetchLinkableGitRepositories returns a list of git repositories from an SCM that are available to be added to a Connection.

Parameters
Name Description
request FetchLinkableGitRepositoriesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableFetchLinkableGitRepositoriesResponseLinkableGitRepository

A pageable sequence of LinkableGitRepository resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
FetchLinkableGitRepositoriesRequest request = new FetchLinkableGitRepositoriesRequest
{
    ConnectionAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
PagedEnumerable<FetchLinkableGitRepositoriesResponse, LinkableGitRepository> response = developerConnectClient.FetchLinkableGitRepositories(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (LinkableGitRepository item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (FetchLinkableGitRepositoriesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LinkableGitRepository item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LinkableGitRepository> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LinkableGitRepository item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchLinkableGitRepositories(string, string, int?, CallSettings)

public virtual PagedEnumerable<FetchLinkableGitRepositoriesResponse, LinkableGitRepository> FetchLinkableGitRepositories(string connection, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

FetchLinkableGitRepositories returns a list of git repositories from an SCM that are available to be added to a Connection.

Parameters
Name Description
connection string

Required. The name of the Connection. Format: projects/*/locations/*/connections/*.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableFetchLinkableGitRepositoriesResponseLinkableGitRepository

A pageable sequence of LinkableGitRepository resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string connection = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
PagedEnumerable<FetchLinkableGitRepositoriesResponse, LinkableGitRepository> response = developerConnectClient.FetchLinkableGitRepositories(connection);

// Iterate over all response items, lazily performing RPCs as required
foreach (LinkableGitRepository item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (FetchLinkableGitRepositoriesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LinkableGitRepository item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LinkableGitRepository> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LinkableGitRepository item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchLinkableGitRepositoriesAsync(ConnectionName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<FetchLinkableGitRepositoriesResponse, LinkableGitRepository> FetchLinkableGitRepositoriesAsync(ConnectionName connection, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

FetchLinkableGitRepositories returns a list of git repositories from an SCM that are available to be added to a Connection.

Parameters
Name Description
connection ConnectionName

Required. The name of the Connection. Format: projects/*/locations/*/connections/*.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableFetchLinkableGitRepositoriesResponseLinkableGitRepository

A pageable asynchronous sequence of LinkableGitRepository resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
ConnectionName connection = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
PagedAsyncEnumerable<FetchLinkableGitRepositoriesResponse, LinkableGitRepository> response = developerConnectClient.FetchLinkableGitRepositoriesAsync(connection);

// Iterate over all response items, lazily performing RPCs as required
await foreach (LinkableGitRepository item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (FetchLinkableGitRepositoriesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LinkableGitRepository item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LinkableGitRepository> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LinkableGitRepository item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchLinkableGitRepositoriesAsync(FetchLinkableGitRepositoriesRequest, CallSettings)

public virtual PagedAsyncEnumerable<FetchLinkableGitRepositoriesResponse, LinkableGitRepository> FetchLinkableGitRepositoriesAsync(FetchLinkableGitRepositoriesRequest request, CallSettings callSettings = null)

FetchLinkableGitRepositories returns a list of git repositories from an SCM that are available to be added to a Connection.

Parameters
Name Description
request FetchLinkableGitRepositoriesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableFetchLinkableGitRepositoriesResponseLinkableGitRepository

A pageable asynchronous sequence of LinkableGitRepository resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FetchLinkableGitRepositoriesRequest request = new FetchLinkableGitRepositoriesRequest
{
    ConnectionAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
PagedAsyncEnumerable<FetchLinkableGitRepositoriesResponse, LinkableGitRepository> response = developerConnectClient.FetchLinkableGitRepositoriesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (LinkableGitRepository item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (FetchLinkableGitRepositoriesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LinkableGitRepository item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LinkableGitRepository> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LinkableGitRepository item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchLinkableGitRepositoriesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<FetchLinkableGitRepositoriesResponse, LinkableGitRepository> FetchLinkableGitRepositoriesAsync(string connection, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

FetchLinkableGitRepositories returns a list of git repositories from an SCM that are available to be added to a Connection.

Parameters
Name Description
connection string

Required. The name of the Connection. Format: projects/*/locations/*/connections/*.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableFetchLinkableGitRepositoriesResponseLinkableGitRepository

A pageable asynchronous sequence of LinkableGitRepository resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string connection = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
PagedAsyncEnumerable<FetchLinkableGitRepositoriesResponse, LinkableGitRepository> response = developerConnectClient.FetchLinkableGitRepositoriesAsync(connection);

// Iterate over all response items, lazily performing RPCs as required
await foreach (LinkableGitRepository item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (FetchLinkableGitRepositoriesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (LinkableGitRepository item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<LinkableGitRepository> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (LinkableGitRepository item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

FetchReadToken(FetchReadTokenRequest, CallSettings)

public virtual FetchReadTokenResponse FetchReadToken(FetchReadTokenRequest request, CallSettings callSettings = null)

Fetches read token of a given gitRepositoryLink.

Parameters
Name Description
request FetchReadTokenRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchReadTokenResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
FetchReadTokenRequest request = new FetchReadTokenRequest
{
    GitRepositoryLinkAsGitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
};
// Make the request
FetchReadTokenResponse response = developerConnectClient.FetchReadToken(request);

FetchReadToken(GitRepositoryLinkName, CallSettings)

public virtual FetchReadTokenResponse FetchReadToken(GitRepositoryLinkName gitRepositoryLink, CallSettings callSettings = null)

Fetches read token of a given gitRepositoryLink.

Parameters
Name Description
gitRepositoryLink GitRepositoryLinkName

Required. The resource name of the gitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchReadTokenResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
GitRepositoryLinkName gitRepositoryLink = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
// Make the request
FetchReadTokenResponse response = developerConnectClient.FetchReadToken(gitRepositoryLink);

FetchReadToken(string, CallSettings)

public virtual FetchReadTokenResponse FetchReadToken(string gitRepositoryLink, CallSettings callSettings = null)

Fetches read token of a given gitRepositoryLink.

Parameters
Name Description
gitRepositoryLink string

Required. The resource name of the gitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchReadTokenResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string gitRepositoryLink = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
// Make the request
FetchReadTokenResponse response = developerConnectClient.FetchReadToken(gitRepositoryLink);

FetchReadTokenAsync(FetchReadTokenRequest, CallSettings)

public virtual Task<FetchReadTokenResponse> FetchReadTokenAsync(FetchReadTokenRequest request, CallSettings callSettings = null)

Fetches read token of a given gitRepositoryLink.

Parameters
Name Description
request FetchReadTokenRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchReadTokenResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FetchReadTokenRequest request = new FetchReadTokenRequest
{
    GitRepositoryLinkAsGitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
};
// Make the request
FetchReadTokenResponse response = await developerConnectClient.FetchReadTokenAsync(request);

FetchReadTokenAsync(FetchReadTokenRequest, CancellationToken)

public virtual Task<FetchReadTokenResponse> FetchReadTokenAsync(FetchReadTokenRequest request, CancellationToken cancellationToken)

Fetches read token of a given gitRepositoryLink.

Parameters
Name Description
request FetchReadTokenRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchReadTokenResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FetchReadTokenRequest request = new FetchReadTokenRequest
{
    GitRepositoryLinkAsGitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
};
// Make the request
FetchReadTokenResponse response = await developerConnectClient.FetchReadTokenAsync(request);

FetchReadTokenAsync(GitRepositoryLinkName, CallSettings)

public virtual Task<FetchReadTokenResponse> FetchReadTokenAsync(GitRepositoryLinkName gitRepositoryLink, CallSettings callSettings = null)

Fetches read token of a given gitRepositoryLink.

Parameters
Name Description
gitRepositoryLink GitRepositoryLinkName

Required. The resource name of the gitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchReadTokenResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName gitRepositoryLink = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
// Make the request
FetchReadTokenResponse response = await developerConnectClient.FetchReadTokenAsync(gitRepositoryLink);

FetchReadTokenAsync(GitRepositoryLinkName, CancellationToken)

public virtual Task<FetchReadTokenResponse> FetchReadTokenAsync(GitRepositoryLinkName gitRepositoryLink, CancellationToken cancellationToken)

Fetches read token of a given gitRepositoryLink.

Parameters
Name Description
gitRepositoryLink GitRepositoryLinkName

Required. The resource name of the gitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchReadTokenResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName gitRepositoryLink = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
// Make the request
FetchReadTokenResponse response = await developerConnectClient.FetchReadTokenAsync(gitRepositoryLink);

FetchReadTokenAsync(string, CallSettings)

public virtual Task<FetchReadTokenResponse> FetchReadTokenAsync(string gitRepositoryLink, CallSettings callSettings = null)

Fetches read token of a given gitRepositoryLink.

Parameters
Name Description
gitRepositoryLink string

Required. The resource name of the gitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchReadTokenResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string gitRepositoryLink = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
// Make the request
FetchReadTokenResponse response = await developerConnectClient.FetchReadTokenAsync(gitRepositoryLink);

FetchReadTokenAsync(string, CancellationToken)

public virtual Task<FetchReadTokenResponse> FetchReadTokenAsync(string gitRepositoryLink, CancellationToken cancellationToken)

Fetches read token of a given gitRepositoryLink.

Parameters
Name Description
gitRepositoryLink string

Required. The resource name of the gitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchReadTokenResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string gitRepositoryLink = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
// Make the request
FetchReadTokenResponse response = await developerConnectClient.FetchReadTokenAsync(gitRepositoryLink);

FetchReadWriteToken(FetchReadWriteTokenRequest, CallSettings)

public virtual FetchReadWriteTokenResponse FetchReadWriteToken(FetchReadWriteTokenRequest request, CallSettings callSettings = null)

Fetches read/write token of a given gitRepositoryLink.

Parameters
Name Description
request FetchReadWriteTokenRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchReadWriteTokenResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
FetchReadWriteTokenRequest request = new FetchReadWriteTokenRequest
{
    GitRepositoryLinkAsGitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
};
// Make the request
FetchReadWriteTokenResponse response = developerConnectClient.FetchReadWriteToken(request);

FetchReadWriteToken(GitRepositoryLinkName, CallSettings)

public virtual FetchReadWriteTokenResponse FetchReadWriteToken(GitRepositoryLinkName gitRepositoryLink, CallSettings callSettings = null)

Fetches read/write token of a given gitRepositoryLink.

Parameters
Name Description
gitRepositoryLink GitRepositoryLinkName

Required. The resource name of the gitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchReadWriteTokenResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
GitRepositoryLinkName gitRepositoryLink = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
// Make the request
FetchReadWriteTokenResponse response = developerConnectClient.FetchReadWriteToken(gitRepositoryLink);

FetchReadWriteToken(string, CallSettings)

public virtual FetchReadWriteTokenResponse FetchReadWriteToken(string gitRepositoryLink, CallSettings callSettings = null)

Fetches read/write token of a given gitRepositoryLink.

Parameters
Name Description
gitRepositoryLink string

Required. The resource name of the gitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FetchReadWriteTokenResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string gitRepositoryLink = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
// Make the request
FetchReadWriteTokenResponse response = developerConnectClient.FetchReadWriteToken(gitRepositoryLink);

FetchReadWriteTokenAsync(FetchReadWriteTokenRequest, CallSettings)

public virtual Task<FetchReadWriteTokenResponse> FetchReadWriteTokenAsync(FetchReadWriteTokenRequest request, CallSettings callSettings = null)

Fetches read/write token of a given gitRepositoryLink.

Parameters
Name Description
request FetchReadWriteTokenRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchReadWriteTokenResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FetchReadWriteTokenRequest request = new FetchReadWriteTokenRequest
{
    GitRepositoryLinkAsGitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
};
// Make the request
FetchReadWriteTokenResponse response = await developerConnectClient.FetchReadWriteTokenAsync(request);

FetchReadWriteTokenAsync(FetchReadWriteTokenRequest, CancellationToken)

public virtual Task<FetchReadWriteTokenResponse> FetchReadWriteTokenAsync(FetchReadWriteTokenRequest request, CancellationToken cancellationToken)

Fetches read/write token of a given gitRepositoryLink.

Parameters
Name Description
request FetchReadWriteTokenRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchReadWriteTokenResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FetchReadWriteTokenRequest request = new FetchReadWriteTokenRequest
{
    GitRepositoryLinkAsGitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
};
// Make the request
FetchReadWriteTokenResponse response = await developerConnectClient.FetchReadWriteTokenAsync(request);

FetchReadWriteTokenAsync(GitRepositoryLinkName, CallSettings)

public virtual Task<FetchReadWriteTokenResponse> FetchReadWriteTokenAsync(GitRepositoryLinkName gitRepositoryLink, CallSettings callSettings = null)

Fetches read/write token of a given gitRepositoryLink.

Parameters
Name Description
gitRepositoryLink GitRepositoryLinkName

Required. The resource name of the gitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchReadWriteTokenResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName gitRepositoryLink = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
// Make the request
FetchReadWriteTokenResponse response = await developerConnectClient.FetchReadWriteTokenAsync(gitRepositoryLink);

FetchReadWriteTokenAsync(GitRepositoryLinkName, CancellationToken)

public virtual Task<FetchReadWriteTokenResponse> FetchReadWriteTokenAsync(GitRepositoryLinkName gitRepositoryLink, CancellationToken cancellationToken)

Fetches read/write token of a given gitRepositoryLink.

Parameters
Name Description
gitRepositoryLink GitRepositoryLinkName

Required. The resource name of the gitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchReadWriteTokenResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName gitRepositoryLink = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
// Make the request
FetchReadWriteTokenResponse response = await developerConnectClient.FetchReadWriteTokenAsync(gitRepositoryLink);

FetchReadWriteTokenAsync(string, CallSettings)

public virtual Task<FetchReadWriteTokenResponse> FetchReadWriteTokenAsync(string gitRepositoryLink, CallSettings callSettings = null)

Fetches read/write token of a given gitRepositoryLink.

Parameters
Name Description
gitRepositoryLink string

Required. The resource name of the gitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFetchReadWriteTokenResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string gitRepositoryLink = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
// Make the request
FetchReadWriteTokenResponse response = await developerConnectClient.FetchReadWriteTokenAsync(gitRepositoryLink);

FetchReadWriteTokenAsync(string, CancellationToken)

public virtual Task<FetchReadWriteTokenResponse> FetchReadWriteTokenAsync(string gitRepositoryLink, CancellationToken cancellationToken)

Fetches read/write token of a given gitRepositoryLink.

Parameters
Name Description
gitRepositoryLink string

Required. The resource name of the gitRepositoryLink in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFetchReadWriteTokenResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string gitRepositoryLink = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
// Make the request
FetchReadWriteTokenResponse response = await developerConnectClient.FetchReadWriteTokenAsync(gitRepositoryLink);

FetchSelf(AccountConnectorName, CallSettings)

public virtual User FetchSelf(AccountConnectorName name, CallSettings callSettings = null)

Fetch the User based on the user credentials.

Parameters
Name Description
name AccountConnectorName

Required. Name of the AccountConnector resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
User

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
AccountConnectorName name = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
User response = developerConnectClient.FetchSelf(name);

FetchSelf(FetchSelfRequest, CallSettings)

public virtual User FetchSelf(FetchSelfRequest request, CallSettings callSettings = null)

Fetch the User based on the user credentials.

Parameters
Name Description
request FetchSelfRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
User

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
FetchSelfRequest request = new FetchSelfRequest
{
    AccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
};
// Make the request
User response = developerConnectClient.FetchSelf(request);

FetchSelf(string, CallSettings)

public virtual User FetchSelf(string name, CallSettings callSettings = null)

Fetch the User based on the user credentials.

Parameters
Name Description
name string

Required. Name of the AccountConnector resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
User

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
User response = developerConnectClient.FetchSelf(name);

FetchSelfAsync(AccountConnectorName, CallSettings)

public virtual Task<User> FetchSelfAsync(AccountConnectorName name, CallSettings callSettings = null)

Fetch the User based on the user credentials.

Parameters
Name Description
name AccountConnectorName

Required. Name of the AccountConnector resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskUser

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AccountConnectorName name = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
User response = await developerConnectClient.FetchSelfAsync(name);

FetchSelfAsync(AccountConnectorName, CancellationToken)

public virtual Task<User> FetchSelfAsync(AccountConnectorName name, CancellationToken cancellationToken)

Fetch the User based on the user credentials.

Parameters
Name Description
name AccountConnectorName

Required. Name of the AccountConnector resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskUser

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AccountConnectorName name = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
User response = await developerConnectClient.FetchSelfAsync(name);

FetchSelfAsync(FetchSelfRequest, CallSettings)

public virtual Task<User> FetchSelfAsync(FetchSelfRequest request, CallSettings callSettings = null)

Fetch the User based on the user credentials.

Parameters
Name Description
request FetchSelfRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskUser

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FetchSelfRequest request = new FetchSelfRequest
{
    AccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
};
// Make the request
User response = await developerConnectClient.FetchSelfAsync(request);

FetchSelfAsync(FetchSelfRequest, CancellationToken)

public virtual Task<User> FetchSelfAsync(FetchSelfRequest request, CancellationToken cancellationToken)

Fetch the User based on the user credentials.

Parameters
Name Description
request FetchSelfRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskUser

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FetchSelfRequest request = new FetchSelfRequest
{
    AccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
};
// Make the request
User response = await developerConnectClient.FetchSelfAsync(request);

FetchSelfAsync(string, CallSettings)

public virtual Task<User> FetchSelfAsync(string name, CallSettings callSettings = null)

Fetch the User based on the user credentials.

Parameters
Name Description
name string

Required. Name of the AccountConnector resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskUser

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
User response = await developerConnectClient.FetchSelfAsync(name);

FetchSelfAsync(string, CancellationToken)

public virtual Task<User> FetchSelfAsync(string name, CancellationToken cancellationToken)

Fetch the User based on the user credentials.

Parameters
Name Description
name string

Required. Name of the AccountConnector resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskUser

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
User response = await developerConnectClient.FetchSelfAsync(name);

FinishOAuth(AccountConnectorName, CallSettings)

public virtual FinishOAuthResponse FinishOAuth(AccountConnectorName accountConnector, CallSettings callSettings = null)

Finishes OAuth flow for an account connector.

Parameters
Name Description
accountConnector AccountConnectorName

Required. The resource name of the AccountConnector in the format projects/*/locations/*/accountConnectors/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FinishOAuthResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
AccountConnectorName accountConnector = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
FinishOAuthResponse response = developerConnectClient.FinishOAuth(accountConnector);

FinishOAuth(FinishOAuthRequest, CallSettings)

public virtual FinishOAuthResponse FinishOAuth(FinishOAuthRequest request, CallSettings callSettings = null)

Finishes OAuth flow for an account connector.

Parameters
Name Description
request FinishOAuthRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FinishOAuthResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
FinishOAuthRequest request = new FinishOAuthRequest
{
    AccountConnectorAsAccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
    OauthParams = new FinishOAuthRequest.Types.OAuthParams(),
};
// Make the request
FinishOAuthResponse response = developerConnectClient.FinishOAuth(request);

FinishOAuth(string, CallSettings)

public virtual FinishOAuthResponse FinishOAuth(string accountConnector, CallSettings callSettings = null)

Finishes OAuth flow for an account connector.

Parameters
Name Description
accountConnector string

Required. The resource name of the AccountConnector in the format projects/*/locations/*/accountConnectors/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FinishOAuthResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string accountConnector = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
FinishOAuthResponse response = developerConnectClient.FinishOAuth(accountConnector);

FinishOAuthAsync(AccountConnectorName, CallSettings)

public virtual Task<FinishOAuthResponse> FinishOAuthAsync(AccountConnectorName accountConnector, CallSettings callSettings = null)

Finishes OAuth flow for an account connector.

Parameters
Name Description
accountConnector AccountConnectorName

Required. The resource name of the AccountConnector in the format projects/*/locations/*/accountConnectors/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFinishOAuthResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AccountConnectorName accountConnector = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
FinishOAuthResponse response = await developerConnectClient.FinishOAuthAsync(accountConnector);

FinishOAuthAsync(AccountConnectorName, CancellationToken)

public virtual Task<FinishOAuthResponse> FinishOAuthAsync(AccountConnectorName accountConnector, CancellationToken cancellationToken)

Finishes OAuth flow for an account connector.

Parameters
Name Description
accountConnector AccountConnectorName

Required. The resource name of the AccountConnector in the format projects/*/locations/*/accountConnectors/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFinishOAuthResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AccountConnectorName accountConnector = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
FinishOAuthResponse response = await developerConnectClient.FinishOAuthAsync(accountConnector);

FinishOAuthAsync(FinishOAuthRequest, CallSettings)

public virtual Task<FinishOAuthResponse> FinishOAuthAsync(FinishOAuthRequest request, CallSettings callSettings = null)

Finishes OAuth flow for an account connector.

Parameters
Name Description
request FinishOAuthRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFinishOAuthResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FinishOAuthRequest request = new FinishOAuthRequest
{
    AccountConnectorAsAccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
    OauthParams = new FinishOAuthRequest.Types.OAuthParams(),
};
// Make the request
FinishOAuthResponse response = await developerConnectClient.FinishOAuthAsync(request);

FinishOAuthAsync(FinishOAuthRequest, CancellationToken)

public virtual Task<FinishOAuthResponse> FinishOAuthAsync(FinishOAuthRequest request, CancellationToken cancellationToken)

Finishes OAuth flow for an account connector.

Parameters
Name Description
request FinishOAuthRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFinishOAuthResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
FinishOAuthRequest request = new FinishOAuthRequest
{
    AccountConnectorAsAccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
    OauthParams = new FinishOAuthRequest.Types.OAuthParams(),
};
// Make the request
FinishOAuthResponse response = await developerConnectClient.FinishOAuthAsync(request);

FinishOAuthAsync(string, CallSettings)

public virtual Task<FinishOAuthResponse> FinishOAuthAsync(string accountConnector, CallSettings callSettings = null)

Finishes OAuth flow for an account connector.

Parameters
Name Description
accountConnector string

Required. The resource name of the AccountConnector in the format projects/*/locations/*/accountConnectors/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFinishOAuthResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string accountConnector = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
FinishOAuthResponse response = await developerConnectClient.FinishOAuthAsync(accountConnector);

FinishOAuthAsync(string, CancellationToken)

public virtual Task<FinishOAuthResponse> FinishOAuthAsync(string accountConnector, CancellationToken cancellationToken)

Finishes OAuth flow for an account connector.

Parameters
Name Description
accountConnector string

Required. The resource name of the AccountConnector in the format projects/*/locations/*/accountConnectors/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFinishOAuthResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string accountConnector = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
FinishOAuthResponse response = await developerConnectClient.FinishOAuthAsync(accountConnector);

GetAccountConnector(AccountConnectorName, CallSettings)

public virtual AccountConnector GetAccountConnector(AccountConnectorName name, CallSettings callSettings = null)

Gets details of a single AccountConnector.

Parameters
Name Description
name AccountConnectorName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AccountConnector

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
AccountConnectorName name = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
AccountConnector response = developerConnectClient.GetAccountConnector(name);

GetAccountConnector(GetAccountConnectorRequest, CallSettings)

public virtual AccountConnector GetAccountConnector(GetAccountConnectorRequest request, CallSettings callSettings = null)

Gets details of a single AccountConnector.

Parameters
Name Description
request GetAccountConnectorRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AccountConnector

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
GetAccountConnectorRequest request = new GetAccountConnectorRequest
{
    AccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
};
// Make the request
AccountConnector response = developerConnectClient.GetAccountConnector(request);

GetAccountConnector(string, CallSettings)

public virtual AccountConnector GetAccountConnector(string name, CallSettings callSettings = null)

Gets details of a single AccountConnector.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AccountConnector

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
AccountConnector response = developerConnectClient.GetAccountConnector(name);

GetAccountConnectorAsync(AccountConnectorName, CallSettings)

public virtual Task<AccountConnector> GetAccountConnectorAsync(AccountConnectorName name, CallSettings callSettings = null)

Gets details of a single AccountConnector.

Parameters
Name Description
name AccountConnectorName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAccountConnector

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AccountConnectorName name = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
AccountConnector response = await developerConnectClient.GetAccountConnectorAsync(name);

GetAccountConnectorAsync(AccountConnectorName, CancellationToken)

public virtual Task<AccountConnector> GetAccountConnectorAsync(AccountConnectorName name, CancellationToken cancellationToken)

Gets details of a single AccountConnector.

Parameters
Name Description
name AccountConnectorName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskAccountConnector

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AccountConnectorName name = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
AccountConnector response = await developerConnectClient.GetAccountConnectorAsync(name);

GetAccountConnectorAsync(GetAccountConnectorRequest, CallSettings)

public virtual Task<AccountConnector> GetAccountConnectorAsync(GetAccountConnectorRequest request, CallSettings callSettings = null)

Gets details of a single AccountConnector.

Parameters
Name Description
request GetAccountConnectorRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAccountConnector

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GetAccountConnectorRequest request = new GetAccountConnectorRequest
{
    AccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
};
// Make the request
AccountConnector response = await developerConnectClient.GetAccountConnectorAsync(request);

GetAccountConnectorAsync(GetAccountConnectorRequest, CancellationToken)

public virtual Task<AccountConnector> GetAccountConnectorAsync(GetAccountConnectorRequest request, CancellationToken cancellationToken)

Gets details of a single AccountConnector.

Parameters
Name Description
request GetAccountConnectorRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskAccountConnector

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GetAccountConnectorRequest request = new GetAccountConnectorRequest
{
    AccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
};
// Make the request
AccountConnector response = await developerConnectClient.GetAccountConnectorAsync(request);

GetAccountConnectorAsync(string, CallSettings)

public virtual Task<AccountConnector> GetAccountConnectorAsync(string name, CallSettings callSettings = null)

Gets details of a single AccountConnector.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAccountConnector

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
AccountConnector response = await developerConnectClient.GetAccountConnectorAsync(name);

GetAccountConnectorAsync(string, CancellationToken)

public virtual Task<AccountConnector> GetAccountConnectorAsync(string name, CancellationToken cancellationToken)

Gets details of a single AccountConnector.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskAccountConnector

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
AccountConnector response = await developerConnectClient.GetAccountConnectorAsync(name);

GetConnection(ConnectionName, CallSettings)

public virtual Connection GetConnection(ConnectionName name, CallSettings callSettings = null)

Gets details of a single Connection.

Parameters
Name Description
name ConnectionName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Connection

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Connection response = developerConnectClient.GetConnection(name);

GetConnection(GetConnectionRequest, CallSettings)

public virtual Connection GetConnection(GetConnectionRequest request, CallSettings callSettings = null)

Gets details of a single Connection.

Parameters
Name Description
request GetConnectionRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Connection

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
GetConnectionRequest request = new GetConnectionRequest
{
    ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
Connection response = developerConnectClient.GetConnection(request);

GetConnection(string, CallSettings)

public virtual Connection GetConnection(string name, CallSettings callSettings = null)

Gets details of a single Connection.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Connection

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Connection response = developerConnectClient.GetConnection(name);

GetConnectionAsync(ConnectionName, CallSettings)

public virtual Task<Connection> GetConnectionAsync(ConnectionName name, CallSettings callSettings = null)

Gets details of a single Connection.

Parameters
Name Description
name ConnectionName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConnection

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Connection response = await developerConnectClient.GetConnectionAsync(name);

GetConnectionAsync(ConnectionName, CancellationToken)

public virtual Task<Connection> GetConnectionAsync(ConnectionName name, CancellationToken cancellationToken)

Gets details of a single Connection.

Parameters
Name Description
name ConnectionName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConnection

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
ConnectionName name = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
Connection response = await developerConnectClient.GetConnectionAsync(name);

GetConnectionAsync(GetConnectionRequest, CallSettings)

public virtual Task<Connection> GetConnectionAsync(GetConnectionRequest request, CallSettings callSettings = null)

Gets details of a single Connection.

Parameters
Name Description
request GetConnectionRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConnection

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GetConnectionRequest request = new GetConnectionRequest
{
    ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
Connection response = await developerConnectClient.GetConnectionAsync(request);

GetConnectionAsync(GetConnectionRequest, CancellationToken)

public virtual Task<Connection> GetConnectionAsync(GetConnectionRequest request, CancellationToken cancellationToken)

Gets details of a single Connection.

Parameters
Name Description
request GetConnectionRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConnection

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GetConnectionRequest request = new GetConnectionRequest
{
    ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
};
// Make the request
Connection response = await developerConnectClient.GetConnectionAsync(request);

GetConnectionAsync(string, CallSettings)

public virtual Task<Connection> GetConnectionAsync(string name, CallSettings callSettings = null)

Gets details of a single Connection.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskConnection

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Connection response = await developerConnectClient.GetConnectionAsync(name);

GetConnectionAsync(string, CancellationToken)

public virtual Task<Connection> GetConnectionAsync(string name, CancellationToken cancellationToken)

Gets details of a single Connection.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskConnection

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
Connection response = await developerConnectClient.GetConnectionAsync(name);
public virtual GitRepositoryLink GetGitRepositoryLink(GetGitRepositoryLinkRequest request, CallSettings callSettings = null)

Gets details of a single GitRepositoryLink.

Parameters
Name Description
request GetGitRepositoryLinkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GitRepositoryLink

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
GetGitRepositoryLinkRequest request = new GetGitRepositoryLinkRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
};
// Make the request
GitRepositoryLink response = developerConnectClient.GetGitRepositoryLink(request);
public virtual GitRepositoryLink GetGitRepositoryLink(GitRepositoryLinkName name, CallSettings callSettings = null)

Gets details of a single GitRepositoryLink.

Parameters
Name Description
name GitRepositoryLinkName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GitRepositoryLink

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
// Make the request
GitRepositoryLink response = developerConnectClient.GetGitRepositoryLink(name);
public virtual GitRepositoryLink GetGitRepositoryLink(string name, CallSettings callSettings = null)

Gets details of a single GitRepositoryLink.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GitRepositoryLink

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
// Make the request
GitRepositoryLink response = developerConnectClient.GetGitRepositoryLink(name);

GetGitRepositoryLinkAsync(GetGitRepositoryLinkRequest, CallSettings)

public virtual Task<GitRepositoryLink> GetGitRepositoryLinkAsync(GetGitRepositoryLinkRequest request, CallSettings callSettings = null)

Gets details of a single GitRepositoryLink.

Parameters
Name Description
request GetGitRepositoryLinkRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGitRepositoryLink

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GetGitRepositoryLinkRequest request = new GetGitRepositoryLinkRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
};
// Make the request
GitRepositoryLink response = await developerConnectClient.GetGitRepositoryLinkAsync(request);

GetGitRepositoryLinkAsync(GetGitRepositoryLinkRequest, CancellationToken)

public virtual Task<GitRepositoryLink> GetGitRepositoryLinkAsync(GetGitRepositoryLinkRequest request, CancellationToken cancellationToken)

Gets details of a single GitRepositoryLink.

Parameters
Name Description
request GetGitRepositoryLinkRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGitRepositoryLink

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GetGitRepositoryLinkRequest request = new GetGitRepositoryLinkRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
};
// Make the request
GitRepositoryLink response = await developerConnectClient.GetGitRepositoryLinkAsync(request);

GetGitRepositoryLinkAsync(GitRepositoryLinkName, CallSettings)

public virtual Task<GitRepositoryLink> GetGitRepositoryLinkAsync(GitRepositoryLinkName name, CallSettings callSettings = null)

Gets details of a single GitRepositoryLink.

Parameters
Name Description
name GitRepositoryLinkName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGitRepositoryLink

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
// Make the request
GitRepositoryLink response = await developerConnectClient.GetGitRepositoryLinkAsync(name);

GetGitRepositoryLinkAsync(GitRepositoryLinkName, CancellationToken)

public virtual Task<GitRepositoryLink> GetGitRepositoryLinkAsync(GitRepositoryLinkName name, CancellationToken cancellationToken)

Gets details of a single GitRepositoryLink.

Parameters
Name Description
name GitRepositoryLinkName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGitRepositoryLink

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
// Make the request
GitRepositoryLink response = await developerConnectClient.GetGitRepositoryLinkAsync(name);

GetGitRepositoryLinkAsync(string, CallSettings)

public virtual Task<GitRepositoryLink> GetGitRepositoryLinkAsync(string name, CallSettings callSettings = null)

Gets details of a single GitRepositoryLink.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGitRepositoryLink

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
// Make the request
GitRepositoryLink response = await developerConnectClient.GetGitRepositoryLinkAsync(name);

GetGitRepositoryLinkAsync(string, CancellationToken)

public virtual Task<GitRepositoryLink> GetGitRepositoryLinkAsync(string name, CancellationToken cancellationToken)

Gets details of a single GitRepositoryLink.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGitRepositoryLink

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
// Make the request
GitRepositoryLink response = await developerConnectClient.GetGitRepositoryLinkAsync(name);

ListAccountConnectors(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListAccountConnectorsResponse, AccountConnector> ListAccountConnectors(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists AccountConnectors in a given project and location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListAccountConnectorsRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListAccountConnectorsResponseAccountConnector

A pageable sequence of AccountConnector resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListAccountConnectorsResponse, AccountConnector> response = developerConnectClient.ListAccountConnectors(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (AccountConnector item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAccountConnectorsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AccountConnector item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AccountConnector> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AccountConnector item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAccountConnectors(ListAccountConnectorsRequest, CallSettings)

public virtual PagedEnumerable<ListAccountConnectorsResponse, AccountConnector> ListAccountConnectors(ListAccountConnectorsRequest request, CallSettings callSettings = null)

Lists AccountConnectors in a given project and location.

Parameters
Name Description
request ListAccountConnectorsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListAccountConnectorsResponseAccountConnector

A pageable sequence of AccountConnector resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
ListAccountConnectorsRequest request = new ListAccountConnectorsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListAccountConnectorsResponse, AccountConnector> response = developerConnectClient.ListAccountConnectors(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (AccountConnector item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAccountConnectorsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AccountConnector item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AccountConnector> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AccountConnector item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAccountConnectors(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListAccountConnectorsResponse, AccountConnector> ListAccountConnectors(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists AccountConnectors in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListAccountConnectorsRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListAccountConnectorsResponseAccountConnector

A pageable sequence of AccountConnector resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListAccountConnectorsResponse, AccountConnector> response = developerConnectClient.ListAccountConnectors(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (AccountConnector item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAccountConnectorsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AccountConnector item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AccountConnector> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AccountConnector item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAccountConnectorsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListAccountConnectorsResponse, AccountConnector> ListAccountConnectorsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists AccountConnectors in a given project and location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListAccountConnectorsRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListAccountConnectorsResponseAccountConnector

A pageable asynchronous sequence of AccountConnector resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListAccountConnectorsResponse, AccountConnector> response = developerConnectClient.ListAccountConnectorsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (AccountConnector item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListAccountConnectorsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AccountConnector item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AccountConnector> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AccountConnector item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAccountConnectorsAsync(ListAccountConnectorsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListAccountConnectorsResponse, AccountConnector> ListAccountConnectorsAsync(ListAccountConnectorsRequest request, CallSettings callSettings = null)

Lists AccountConnectors in a given project and location.

Parameters
Name Description
request ListAccountConnectorsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListAccountConnectorsResponseAccountConnector

A pageable asynchronous sequence of AccountConnector resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
ListAccountConnectorsRequest request = new ListAccountConnectorsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListAccountConnectorsResponse, AccountConnector> response = developerConnectClient.ListAccountConnectorsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (AccountConnector item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListAccountConnectorsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AccountConnector item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AccountConnector> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AccountConnector item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAccountConnectorsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListAccountConnectorsResponse, AccountConnector> ListAccountConnectorsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists AccountConnectors in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListAccountConnectorsRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListAccountConnectorsResponseAccountConnector

A pageable asynchronous sequence of AccountConnector resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListAccountConnectorsResponse, AccountConnector> response = developerConnectClient.ListAccountConnectorsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (AccountConnector item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListAccountConnectorsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AccountConnector item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AccountConnector> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AccountConnector item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnections(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListConnectionsResponse, Connection> ListConnections(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Connections in a given project and location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListConnectionsRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListConnectionsResponseConnection

A pageable sequence of Connection resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListConnectionsResponse, Connection> response = developerConnectClient.ListConnections(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Connection item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListConnectionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Connection item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnections(ListConnectionsRequest, CallSettings)

public virtual PagedEnumerable<ListConnectionsResponse, Connection> ListConnections(ListConnectionsRequest request, CallSettings callSettings = null)

Lists Connections in a given project and location.

Parameters
Name Description
request ListConnectionsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListConnectionsResponseConnection

A pageable sequence of Connection resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
ListConnectionsRequest request = new ListConnectionsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListConnectionsResponse, Connection> response = developerConnectClient.ListConnections(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Connection item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListConnectionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Connection item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnections(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListConnectionsResponse, Connection> ListConnections(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Connections in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListConnectionsRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListConnectionsResponseConnection

A pageable sequence of Connection resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListConnectionsResponse, Connection> response = developerConnectClient.ListConnections(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Connection item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListConnectionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Connection item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnectionsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListConnectionsResponse, Connection> ListConnectionsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Connections in a given project and location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListConnectionsRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListConnectionsResponseConnection

A pageable asynchronous sequence of Connection resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListConnectionsResponse, Connection> response = developerConnectClient.ListConnectionsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (Connection item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListConnectionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Connection item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnectionsAsync(ListConnectionsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListConnectionsResponse, Connection> ListConnectionsAsync(ListConnectionsRequest request, CallSettings callSettings = null)

Lists Connections in a given project and location.

Parameters
Name Description
request ListConnectionsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListConnectionsResponseConnection

A pageable asynchronous sequence of Connection resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
ListConnectionsRequest request = new ListConnectionsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListConnectionsResponse, Connection> response = developerConnectClient.ListConnectionsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (Connection item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListConnectionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Connection item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListConnectionsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListConnectionsResponse, Connection> ListConnectionsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Connections in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListConnectionsRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListConnectionsResponseConnection

A pageable asynchronous sequence of Connection resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListConnectionsResponse, Connection> response = developerConnectClient.ListConnectionsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (Connection item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListConnectionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Connection item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Connection> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Connection item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
public virtual PagedEnumerable<ListGitRepositoryLinksResponse, GitRepositoryLink> ListGitRepositoryLinks(ConnectionName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GitRepositoryLinks in a given project, location, and connection.

Parameters
Name Description
parent ConnectionName

Required. Parent value for ListGitRepositoryLinksRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGitRepositoryLinksResponseGitRepositoryLink

A pageable sequence of GitRepositoryLink resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
ConnectionName parent = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
PagedEnumerable<ListGitRepositoryLinksResponse, GitRepositoryLink> response = developerConnectClient.ListGitRepositoryLinks(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (GitRepositoryLink item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGitRepositoryLinksResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GitRepositoryLink item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GitRepositoryLink> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GitRepositoryLink item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
public virtual PagedEnumerable<ListGitRepositoryLinksResponse, GitRepositoryLink> ListGitRepositoryLinks(ListGitRepositoryLinksRequest request, CallSettings callSettings = null)

Lists GitRepositoryLinks in a given project, location, and connection.

Parameters
Name Description
request ListGitRepositoryLinksRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGitRepositoryLinksResponseGitRepositoryLink

A pageable sequence of GitRepositoryLink resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
ListGitRepositoryLinksRequest request = new ListGitRepositoryLinksRequest
{
    ParentAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListGitRepositoryLinksResponse, GitRepositoryLink> response = developerConnectClient.ListGitRepositoryLinks(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (GitRepositoryLink item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGitRepositoryLinksResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GitRepositoryLink item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GitRepositoryLink> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GitRepositoryLink item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
public virtual PagedEnumerable<ListGitRepositoryLinksResponse, GitRepositoryLink> ListGitRepositoryLinks(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GitRepositoryLinks in a given project, location, and connection.

Parameters
Name Description
parent string

Required. Parent value for ListGitRepositoryLinksRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGitRepositoryLinksResponseGitRepositoryLink

A pageable sequence of GitRepositoryLink resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
PagedEnumerable<ListGitRepositoryLinksResponse, GitRepositoryLink> response = developerConnectClient.ListGitRepositoryLinks(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (GitRepositoryLink item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGitRepositoryLinksResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GitRepositoryLink item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GitRepositoryLink> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GitRepositoryLink item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGitRepositoryLinksAsync(ConnectionName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGitRepositoryLinksResponse, GitRepositoryLink> ListGitRepositoryLinksAsync(ConnectionName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GitRepositoryLinks in a given project, location, and connection.

Parameters
Name Description
parent ConnectionName

Required. Parent value for ListGitRepositoryLinksRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGitRepositoryLinksResponseGitRepositoryLink

A pageable asynchronous sequence of GitRepositoryLink resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
ConnectionName parent = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
// Make the request
PagedAsyncEnumerable<ListGitRepositoryLinksResponse, GitRepositoryLink> response = developerConnectClient.ListGitRepositoryLinksAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (GitRepositoryLink item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListGitRepositoryLinksResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GitRepositoryLink item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GitRepositoryLink> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GitRepositoryLink item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGitRepositoryLinksAsync(ListGitRepositoryLinksRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListGitRepositoryLinksResponse, GitRepositoryLink> ListGitRepositoryLinksAsync(ListGitRepositoryLinksRequest request, CallSettings callSettings = null)

Lists GitRepositoryLinks in a given project, location, and connection.

Parameters
Name Description
request ListGitRepositoryLinksRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGitRepositoryLinksResponseGitRepositoryLink

A pageable asynchronous sequence of GitRepositoryLink resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
ListGitRepositoryLinksRequest request = new ListGitRepositoryLinksRequest
{
    ParentAsConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListGitRepositoryLinksResponse, GitRepositoryLink> response = developerConnectClient.ListGitRepositoryLinksAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (GitRepositoryLink item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListGitRepositoryLinksResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GitRepositoryLink item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GitRepositoryLink> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GitRepositoryLink item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGitRepositoryLinksAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGitRepositoryLinksResponse, GitRepositoryLink> ListGitRepositoryLinksAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GitRepositoryLinks in a given project, location, and connection.

Parameters
Name Description
parent string

Required. Parent value for ListGitRepositoryLinksRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGitRepositoryLinksResponseGitRepositoryLink

A pageable asynchronous sequence of GitRepositoryLink resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
// Make the request
PagedAsyncEnumerable<ListGitRepositoryLinksResponse, GitRepositoryLink> response = developerConnectClient.ListGitRepositoryLinksAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (GitRepositoryLink item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListGitRepositoryLinksResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GitRepositoryLink item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GitRepositoryLink> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GitRepositoryLink item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListUsers(AccountConnectorName, string, int?, CallSettings)

public virtual PagedEnumerable<ListUsersResponse, User> ListUsers(AccountConnectorName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Users in a given project, location, and account_connector.

Parameters
Name Description
parent AccountConnectorName

Required. Parent value for ListUsersRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListUsersResponseUser

A pageable sequence of User resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
AccountConnectorName parent = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
PagedEnumerable<ListUsersResponse, User> response = developerConnectClient.ListUsers(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (User item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListUsersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (User item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<User> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (User item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListUsers(ListUsersRequest, CallSettings)

public virtual PagedEnumerable<ListUsersResponse, User> ListUsers(ListUsersRequest request, CallSettings callSettings = null)

Lists Users in a given project, location, and account_connector.

Parameters
Name Description
request ListUsersRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListUsersResponseUser

A pageable sequence of User resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
ListUsersRequest request = new ListUsersRequest
{
    ParentAsAccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListUsersResponse, User> response = developerConnectClient.ListUsers(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (User item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListUsersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (User item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<User> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (User item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListUsers(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListUsersResponse, User> ListUsers(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Users in a given project, location, and account_connector.

Parameters
Name Description
parent string

Required. Parent value for ListUsersRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListUsersResponseUser

A pageable sequence of User resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
PagedEnumerable<ListUsersResponse, User> response = developerConnectClient.ListUsers(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (User item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListUsersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (User item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<User> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (User item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListUsersAsync(AccountConnectorName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListUsersResponse, User> ListUsersAsync(AccountConnectorName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Users in a given project, location, and account_connector.

Parameters
Name Description
parent AccountConnectorName

Required. Parent value for ListUsersRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListUsersResponseUser

A pageable asynchronous sequence of User resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AccountConnectorName parent = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
PagedAsyncEnumerable<ListUsersResponse, User> response = developerConnectClient.ListUsersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (User item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListUsersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (User item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<User> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (User item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListUsersAsync(ListUsersRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListUsersResponse, User> ListUsersAsync(ListUsersRequest request, CallSettings callSettings = null)

Lists Users in a given project, location, and account_connector.

Parameters
Name Description
request ListUsersRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListUsersResponseUser

A pageable asynchronous sequence of User resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
ListUsersRequest request = new ListUsersRequest
{
    ParentAsAccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListUsersResponse, User> response = developerConnectClient.ListUsersAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (User item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListUsersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (User item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<User> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (User item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListUsersAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListUsersResponse, User> ListUsersAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Users in a given project, location, and account_connector.

Parameters
Name Description
parent string

Required. Parent value for ListUsersRequest

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListUsersResponseUser

A pageable asynchronous sequence of User resources.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
PagedAsyncEnumerable<ListUsersResponse, User> response = developerConnectClient.ListUsersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (User item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListUsersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (User item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<User> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (User item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ModifyGitRepositoryLinkPullRequest(GitRepositoryLinkName, string, CallSettings)

public virtual PullRequest ModifyGitRepositoryLinkPullRequest(GitRepositoryLinkName name, string pullRequestId, CallSettings callSettings = null)

Modifies a Pull Request in the remote SCM repository associated with a GitRepositoryLink.

Parameters
Name Description
name GitRepositoryLinkName

Required. The GitRepositoryLink resource name in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The SCM-specific Pull Request identifier (e.g., "45").

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PullRequest

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string pullRequestId = "";
// Make the request
PullRequest response = developerConnectClient.ModifyGitRepositoryLinkPullRequest(name, pullRequestId);

ModifyGitRepositoryLinkPullRequest(ModifyGitRepositoryLinkPullRequestRequest, CallSettings)

public virtual PullRequest ModifyGitRepositoryLinkPullRequest(ModifyGitRepositoryLinkPullRequestRequest request, CallSettings callSettings = null)

Modifies a Pull Request in the remote SCM repository associated with a GitRepositoryLink.

Parameters
Name Description
request ModifyGitRepositoryLinkPullRequestRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PullRequest

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
ModifyGitRepositoryLinkPullRequestRequest request = new ModifyGitRepositoryLinkPullRequestRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    PullRequestId = "",
    Title = "",
    Body = "",
    BaseRef = "",
    State = ModifyGitRepositoryLinkPullRequestRequest.Types.State.Unspecified,
};
// Make the request
PullRequest response = developerConnectClient.ModifyGitRepositoryLinkPullRequest(request);

ModifyGitRepositoryLinkPullRequest(string, string, CallSettings)

public virtual PullRequest ModifyGitRepositoryLinkPullRequest(string name, string pullRequestId, CallSettings callSettings = null)

Modifies a Pull Request in the remote SCM repository associated with a GitRepositoryLink.

Parameters
Name Description
name string

Required. The GitRepositoryLink resource name in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The SCM-specific Pull Request identifier (e.g., "45").

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PullRequest

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string pullRequestId = "";
// Make the request
PullRequest response = developerConnectClient.ModifyGitRepositoryLinkPullRequest(name, pullRequestId);

ModifyGitRepositoryLinkPullRequestAsync(GitRepositoryLinkName, string, CallSettings)

public virtual Task<PullRequest> ModifyGitRepositoryLinkPullRequestAsync(GitRepositoryLinkName name, string pullRequestId, CallSettings callSettings = null)

Modifies a Pull Request in the remote SCM repository associated with a GitRepositoryLink.

Parameters
Name Description
name GitRepositoryLinkName

Required. The GitRepositoryLink resource name in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The SCM-specific Pull Request identifier (e.g., "45").

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPullRequest

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string pullRequestId = "";
// Make the request
PullRequest response = await developerConnectClient.ModifyGitRepositoryLinkPullRequestAsync(name, pullRequestId);

ModifyGitRepositoryLinkPullRequestAsync(GitRepositoryLinkName, string, CancellationToken)

public virtual Task<PullRequest> ModifyGitRepositoryLinkPullRequestAsync(GitRepositoryLinkName name, string pullRequestId, CancellationToken cancellationToken)

Modifies a Pull Request in the remote SCM repository associated with a GitRepositoryLink.

Parameters
Name Description
name GitRepositoryLinkName

Required. The GitRepositoryLink resource name in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The SCM-specific Pull Request identifier (e.g., "45").

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPullRequest

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
string pullRequestId = "";
// Make the request
PullRequest response = await developerConnectClient.ModifyGitRepositoryLinkPullRequestAsync(name, pullRequestId);

ModifyGitRepositoryLinkPullRequestAsync(ModifyGitRepositoryLinkPullRequestRequest, CallSettings)

public virtual Task<PullRequest> ModifyGitRepositoryLinkPullRequestAsync(ModifyGitRepositoryLinkPullRequestRequest request, CallSettings callSettings = null)

Modifies a Pull Request in the remote SCM repository associated with a GitRepositoryLink.

Parameters
Name Description
request ModifyGitRepositoryLinkPullRequestRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPullRequest

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
ModifyGitRepositoryLinkPullRequestRequest request = new ModifyGitRepositoryLinkPullRequestRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    PullRequestId = "",
    Title = "",
    Body = "",
    BaseRef = "",
    State = ModifyGitRepositoryLinkPullRequestRequest.Types.State.Unspecified,
};
// Make the request
PullRequest response = await developerConnectClient.ModifyGitRepositoryLinkPullRequestAsync(request);

ModifyGitRepositoryLinkPullRequestAsync(ModifyGitRepositoryLinkPullRequestRequest, CancellationToken)

public virtual Task<PullRequest> ModifyGitRepositoryLinkPullRequestAsync(ModifyGitRepositoryLinkPullRequestRequest request, CancellationToken cancellationToken)

Modifies a Pull Request in the remote SCM repository associated with a GitRepositoryLink.

Parameters
Name Description
request ModifyGitRepositoryLinkPullRequestRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPullRequest

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
ModifyGitRepositoryLinkPullRequestRequest request = new ModifyGitRepositoryLinkPullRequestRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    PullRequestId = "",
    Title = "",
    Body = "",
    BaseRef = "",
    State = ModifyGitRepositoryLinkPullRequestRequest.Types.State.Unspecified,
};
// Make the request
PullRequest response = await developerConnectClient.ModifyGitRepositoryLinkPullRequestAsync(request);

ModifyGitRepositoryLinkPullRequestAsync(string, string, CallSettings)

public virtual Task<PullRequest> ModifyGitRepositoryLinkPullRequestAsync(string name, string pullRequestId, CallSettings callSettings = null)

Modifies a Pull Request in the remote SCM repository associated with a GitRepositoryLink.

Parameters
Name Description
name string

Required. The GitRepositoryLink resource name in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The SCM-specific Pull Request identifier (e.g., "45").

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPullRequest

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string pullRequestId = "";
// Make the request
PullRequest response = await developerConnectClient.ModifyGitRepositoryLinkPullRequestAsync(name, pullRequestId);

ModifyGitRepositoryLinkPullRequestAsync(string, string, CancellationToken)

public virtual Task<PullRequest> ModifyGitRepositoryLinkPullRequestAsync(string name, string pullRequestId, CancellationToken cancellationToken)

Modifies a Pull Request in the remote SCM repository associated with a GitRepositoryLink.

Parameters
Name Description
name string

Required. The GitRepositoryLink resource name in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequestId string

Required. The SCM-specific Pull Request identifier (e.g., "45").

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPullRequest

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
string pullRequestId = "";
// Make the request
PullRequest response = await developerConnectClient.ModifyGitRepositoryLinkPullRequestAsync(name, pullRequestId);

OpenGitRepositoryLinkPullRequest(GitRepositoryLinkName, PullRequest, CallSettings)

public virtual PullRequest OpenGitRepositoryLinkPullRequest(GitRepositoryLinkName name, PullRequest pullRequest, CallSettings callSettings = null)

Opens a Pull Request in the remote SCM repository associated with a GitRepositoryLink.

Parameters
Name Description
name GitRepositoryLinkName

Required. The GitRepositoryLink resource name in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequest PullRequest

Required. The Pull Request details to open. Input fields used: title, body, head_ref, base_ref.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PullRequest

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
PullRequest pullRequest = new PullRequest();
// Make the request
PullRequest response = developerConnectClient.OpenGitRepositoryLinkPullRequest(name, pullRequest);

OpenGitRepositoryLinkPullRequest(OpenGitRepositoryLinkPullRequestRequest, CallSettings)

public virtual PullRequest OpenGitRepositoryLinkPullRequest(OpenGitRepositoryLinkPullRequestRequest request, CallSettings callSettings = null)

Opens a Pull Request in the remote SCM repository associated with a GitRepositoryLink.

Parameters
Name Description
request OpenGitRepositoryLinkPullRequestRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PullRequest

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
OpenGitRepositoryLinkPullRequestRequest request = new OpenGitRepositoryLinkPullRequestRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    PullRequest = new PullRequest(),
};
// Make the request
PullRequest response = developerConnectClient.OpenGitRepositoryLinkPullRequest(request);

OpenGitRepositoryLinkPullRequest(string, PullRequest, CallSettings)

public virtual PullRequest OpenGitRepositoryLinkPullRequest(string name, PullRequest pullRequest, CallSettings callSettings = null)

Opens a Pull Request in the remote SCM repository associated with a GitRepositoryLink.

Parameters
Name Description
name string

Required. The GitRepositoryLink resource name in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequest PullRequest

Required. The Pull Request details to open. Input fields used: title, body, head_ref, base_ref.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PullRequest

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
PullRequest pullRequest = new PullRequest();
// Make the request
PullRequest response = developerConnectClient.OpenGitRepositoryLinkPullRequest(name, pullRequest);

OpenGitRepositoryLinkPullRequestAsync(GitRepositoryLinkName, PullRequest, CallSettings)

public virtual Task<PullRequest> OpenGitRepositoryLinkPullRequestAsync(GitRepositoryLinkName name, PullRequest pullRequest, CallSettings callSettings = null)

Opens a Pull Request in the remote SCM repository associated with a GitRepositoryLink.

Parameters
Name Description
name GitRepositoryLinkName

Required. The GitRepositoryLink resource name in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequest PullRequest

Required. The Pull Request details to open. Input fields used: title, body, head_ref, base_ref.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPullRequest

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
PullRequest pullRequest = new PullRequest();
// Make the request
PullRequest response = await developerConnectClient.OpenGitRepositoryLinkPullRequestAsync(name, pullRequest);

OpenGitRepositoryLinkPullRequestAsync(GitRepositoryLinkName, PullRequest, CancellationToken)

public virtual Task<PullRequest> OpenGitRepositoryLinkPullRequestAsync(GitRepositoryLinkName name, PullRequest pullRequest, CancellationToken cancellationToken)

Opens a Pull Request in the remote SCM repository associated with a GitRepositoryLink.

Parameters
Name Description
name GitRepositoryLinkName

Required. The GitRepositoryLink resource name in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequest PullRequest

Required. The Pull Request details to open. Input fields used: title, body, head_ref, base_ref.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPullRequest

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
GitRepositoryLinkName name = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]");
PullRequest pullRequest = new PullRequest();
// Make the request
PullRequest response = await developerConnectClient.OpenGitRepositoryLinkPullRequestAsync(name, pullRequest);

OpenGitRepositoryLinkPullRequestAsync(OpenGitRepositoryLinkPullRequestRequest, CallSettings)

public virtual Task<PullRequest> OpenGitRepositoryLinkPullRequestAsync(OpenGitRepositoryLinkPullRequestRequest request, CallSettings callSettings = null)

Opens a Pull Request in the remote SCM repository associated with a GitRepositoryLink.

Parameters
Name Description
request OpenGitRepositoryLinkPullRequestRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPullRequest

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
OpenGitRepositoryLinkPullRequestRequest request = new OpenGitRepositoryLinkPullRequestRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    PullRequest = new PullRequest(),
};
// Make the request
PullRequest response = await developerConnectClient.OpenGitRepositoryLinkPullRequestAsync(request);

OpenGitRepositoryLinkPullRequestAsync(OpenGitRepositoryLinkPullRequestRequest, CancellationToken)

public virtual Task<PullRequest> OpenGitRepositoryLinkPullRequestAsync(OpenGitRepositoryLinkPullRequestRequest request, CancellationToken cancellationToken)

Opens a Pull Request in the remote SCM repository associated with a GitRepositoryLink.

Parameters
Name Description
request OpenGitRepositoryLinkPullRequestRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPullRequest

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
OpenGitRepositoryLinkPullRequestRequest request = new OpenGitRepositoryLinkPullRequestRequest
{
    GitRepositoryLinkName = GitRepositoryLinkName.FromProjectLocationConnectionGitRepositoryLink("[PROJECT]", "[LOCATION]", "[CONNECTION]", "[GIT_REPOSITORY_LINK]"),
    PullRequest = new PullRequest(),
};
// Make the request
PullRequest response = await developerConnectClient.OpenGitRepositoryLinkPullRequestAsync(request);

OpenGitRepositoryLinkPullRequestAsync(string, PullRequest, CallSettings)

public virtual Task<PullRequest> OpenGitRepositoryLinkPullRequestAsync(string name, PullRequest pullRequest, CallSettings callSettings = null)

Opens a Pull Request in the remote SCM repository associated with a GitRepositoryLink.

Parameters
Name Description
name string

Required. The GitRepositoryLink resource name in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequest PullRequest

Required. The Pull Request details to open. Input fields used: title, body, head_ref, base_ref.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPullRequest

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
PullRequest pullRequest = new PullRequest();
// Make the request
PullRequest response = await developerConnectClient.OpenGitRepositoryLinkPullRequestAsync(name, pullRequest);

OpenGitRepositoryLinkPullRequestAsync(string, PullRequest, CancellationToken)

public virtual Task<PullRequest> OpenGitRepositoryLinkPullRequestAsync(string name, PullRequest pullRequest, CancellationToken cancellationToken)

Opens a Pull Request in the remote SCM repository associated with a GitRepositoryLink.

Parameters
Name Description
name string

Required. The GitRepositoryLink resource name in the format projects/*/locations/*/connections/*/gitRepositoryLinks/*.

pullRequest PullRequest

Required. The Pull Request details to open. Input fields used: title, body, head_ref, base_ref.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPullRequest

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]/gitRepositoryLinks/[GIT_REPOSITORY_LINK]";
PullRequest pullRequest = new PullRequest();
// Make the request
PullRequest response = await developerConnectClient.OpenGitRepositoryLinkPullRequestAsync(name, pullRequest);

PollOnceCreateAccountConnector(string, CallSettings)

public virtual Operation<AccountConnector, OperationMetadata> PollOnceCreateAccountConnector(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateAccountConnector.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAccountConnectorOperationMetadata

The result of polling the operation.

PollOnceCreateAccountConnectorAsync(string, CallSettings)

public virtual Task<Operation<AccountConnector, OperationMetadata>> PollOnceCreateAccountConnectorAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateAccountConnector.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAccountConnectorOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateConnection(string, CallSettings)

public virtual Operation<Connection, OperationMetadata> PollOnceCreateConnection(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateConnection.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConnectionOperationMetadata

The result of polling the operation.

PollOnceCreateConnectionAsync(string, CallSettings)

public virtual Task<Operation<Connection, OperationMetadata>> PollOnceCreateConnectionAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateConnection.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A task representing the result of polling the operation.

public virtual Operation<GitRepositoryLink, OperationMetadata> PollOnceCreateGitRepositoryLink(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateGitRepositoryLink.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGitRepositoryLinkOperationMetadata

The result of polling the operation.

PollOnceCreateGitRepositoryLinkAsync(string, CallSettings)

public virtual Task<Operation<GitRepositoryLink, OperationMetadata>> PollOnceCreateGitRepositoryLinkAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateGitRepositoryLink.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGitRepositoryLinkOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteAccountConnector(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteAccountConnector(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteAccountConnector.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteAccountConnectorAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteAccountConnectorAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteAccountConnector.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteConnection(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteConnection(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteConnection.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteConnectionAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteConnectionAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteConnection.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteGitRepositoryLink(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteGitRepositoryLink.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteGitRepositoryLinkAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteGitRepositoryLinkAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteGitRepositoryLink.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteSelf(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteSelf(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteSelf.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteSelfAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteSelfAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteSelf.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteUser(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteUser(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteUser.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteUserAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteUserAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteUser.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateAccountConnector(string, CallSettings)

public virtual Operation<AccountConnector, OperationMetadata> PollOnceUpdateAccountConnector(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateAccountConnector.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAccountConnectorOperationMetadata

The result of polling the operation.

PollOnceUpdateAccountConnectorAsync(string, CallSettings)

public virtual Task<Operation<AccountConnector, OperationMetadata>> PollOnceUpdateAccountConnectorAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateAccountConnector.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAccountConnectorOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateConnection(string, CallSettings)

public virtual Operation<Connection, OperationMetadata> PollOnceUpdateConnection(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateConnection.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConnectionOperationMetadata

The result of polling the operation.

PollOnceUpdateConnectionAsync(string, CallSettings)

public virtual Task<Operation<Connection, OperationMetadata>> PollOnceUpdateConnectionAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateConnection.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A task representing the result of polling the operation.

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

StartOAuth(AccountConnectorName, CallSettings)

public virtual StartOAuthResponse StartOAuth(AccountConnectorName accountConnector, CallSettings callSettings = null)

Starts OAuth flow for an account connector.

Parameters
Name Description
accountConnector AccountConnectorName

Required. The resource name of the AccountConnector in the format projects/*/locations/*/accountConnectors/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
StartOAuthResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
AccountConnectorName accountConnector = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
StartOAuthResponse response = developerConnectClient.StartOAuth(accountConnector);

StartOAuth(StartOAuthRequest, CallSettings)

public virtual StartOAuthResponse StartOAuth(StartOAuthRequest request, CallSettings callSettings = null)

Starts OAuth flow for an account connector.

Parameters
Name Description
request StartOAuthRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
StartOAuthResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
StartOAuthRequest request = new StartOAuthRequest
{
    AccountConnectorAsAccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
};
// Make the request
StartOAuthResponse response = developerConnectClient.StartOAuth(request);

StartOAuth(string, CallSettings)

public virtual StartOAuthResponse StartOAuth(string accountConnector, CallSettings callSettings = null)

Starts OAuth flow for an account connector.

Parameters
Name Description
accountConnector string

Required. The resource name of the AccountConnector in the format projects/*/locations/*/accountConnectors/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
StartOAuthResponse

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
string accountConnector = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
StartOAuthResponse response = developerConnectClient.StartOAuth(accountConnector);

StartOAuthAsync(AccountConnectorName, CallSettings)

public virtual Task<StartOAuthResponse> StartOAuthAsync(AccountConnectorName accountConnector, CallSettings callSettings = null)

Starts OAuth flow for an account connector.

Parameters
Name Description
accountConnector AccountConnectorName

Required. The resource name of the AccountConnector in the format projects/*/locations/*/accountConnectors/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskStartOAuthResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AccountConnectorName accountConnector = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
StartOAuthResponse response = await developerConnectClient.StartOAuthAsync(accountConnector);

StartOAuthAsync(AccountConnectorName, CancellationToken)

public virtual Task<StartOAuthResponse> StartOAuthAsync(AccountConnectorName accountConnector, CancellationToken cancellationToken)

Starts OAuth flow for an account connector.

Parameters
Name Description
accountConnector AccountConnectorName

Required. The resource name of the AccountConnector in the format projects/*/locations/*/accountConnectors/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskStartOAuthResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AccountConnectorName accountConnector = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]");
// Make the request
StartOAuthResponse response = await developerConnectClient.StartOAuthAsync(accountConnector);

StartOAuthAsync(StartOAuthRequest, CallSettings)

public virtual Task<StartOAuthResponse> StartOAuthAsync(StartOAuthRequest request, CallSettings callSettings = null)

Starts OAuth flow for an account connector.

Parameters
Name Description
request StartOAuthRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskStartOAuthResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
StartOAuthRequest request = new StartOAuthRequest
{
    AccountConnectorAsAccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
};
// Make the request
StartOAuthResponse response = await developerConnectClient.StartOAuthAsync(request);

StartOAuthAsync(StartOAuthRequest, CancellationToken)

public virtual Task<StartOAuthResponse> StartOAuthAsync(StartOAuthRequest request, CancellationToken cancellationToken)

Starts OAuth flow for an account connector.

Parameters
Name Description
request StartOAuthRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskStartOAuthResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
StartOAuthRequest request = new StartOAuthRequest
{
    AccountConnectorAsAccountConnectorName = AccountConnectorName.FromProjectLocationAccountConnector("[PROJECT]", "[LOCATION]", "[ACCOUNT_CONNECTOR]"),
};
// Make the request
StartOAuthResponse response = await developerConnectClient.StartOAuthAsync(request);

StartOAuthAsync(string, CallSettings)

public virtual Task<StartOAuthResponse> StartOAuthAsync(string accountConnector, CallSettings callSettings = null)

Starts OAuth flow for an account connector.

Parameters
Name Description
accountConnector string

Required. The resource name of the AccountConnector in the format projects/*/locations/*/accountConnectors/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskStartOAuthResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string accountConnector = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
StartOAuthResponse response = await developerConnectClient.StartOAuthAsync(accountConnector);

StartOAuthAsync(string, CancellationToken)

public virtual Task<StartOAuthResponse> StartOAuthAsync(string accountConnector, CancellationToken cancellationToken)

Starts OAuth flow for an account connector.

Parameters
Name Description
accountConnector string

Required. The resource name of the AccountConnector in the format projects/*/locations/*/accountConnectors/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskStartOAuthResponse

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
string accountConnector = "projects/[PROJECT]/locations/[LOCATION]/accountConnectors/[ACCOUNT_CONNECTOR]";
// Make the request
StartOAuthResponse response = await developerConnectClient.StartOAuthAsync(accountConnector);

UpdateAccountConnector(AccountConnector, FieldMask, CallSettings)

public virtual Operation<AccountConnector, OperationMetadata> UpdateAccountConnector(AccountConnector accountConnector, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single AccountConnector.

Parameters
Name Description
accountConnector AccountConnector

Required. The AccountConnector to update.

updateMask FieldMask

Optional. The list of fields to be updated.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAccountConnectorOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
AccountConnector accountConnector = new AccountConnector();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<AccountConnector, OperationMetadata> response = developerConnectClient.UpdateAccountConnector(accountConnector, updateMask);

// Poll until the returned long-running operation is complete
Operation<AccountConnector, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AccountConnector result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccountConnector, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceUpdateAccountConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccountConnector retrievedResult = retrievedResponse.Result;
}

UpdateAccountConnector(UpdateAccountConnectorRequest, CallSettings)

public virtual Operation<AccountConnector, OperationMetadata> UpdateAccountConnector(UpdateAccountConnectorRequest request, CallSettings callSettings = null)

Updates the parameters of a single AccountConnector.

Parameters
Name Description
request UpdateAccountConnectorRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAccountConnectorOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
UpdateAccountConnectorRequest request = new UpdateAccountConnectorRequest
{
    UpdateMask = new FieldMask(),
    AccountConnector = new AccountConnector(),
    RequestId = "",
    AllowMissing = false,
    ValidateOnly = false,
};
// Make the request
Operation<AccountConnector, OperationMetadata> response = developerConnectClient.UpdateAccountConnector(request);

// Poll until the returned long-running operation is complete
Operation<AccountConnector, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AccountConnector result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccountConnector, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceUpdateAccountConnector(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccountConnector retrievedResult = retrievedResponse.Result;
}

UpdateAccountConnectorAsync(AccountConnector, FieldMask, CallSettings)

public virtual Task<Operation<AccountConnector, OperationMetadata>> UpdateAccountConnectorAsync(AccountConnector accountConnector, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single AccountConnector.

Parameters
Name Description
accountConnector AccountConnector

Required. The AccountConnector to update.

updateMask FieldMask

Optional. The list of fields to be updated.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAccountConnectorOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AccountConnector accountConnector = new AccountConnector();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<AccountConnector, OperationMetadata> response = await developerConnectClient.UpdateAccountConnectorAsync(accountConnector, updateMask);

// Poll until the returned long-running operation is complete
Operation<AccountConnector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccountConnector result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccountConnector, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceUpdateAccountConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccountConnector retrievedResult = retrievedResponse.Result;
}

UpdateAccountConnectorAsync(AccountConnector, FieldMask, CancellationToken)

public virtual Task<Operation<AccountConnector, OperationMetadata>> UpdateAccountConnectorAsync(AccountConnector accountConnector, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single AccountConnector.

Parameters
Name Description
accountConnector AccountConnector

Required. The AccountConnector to update.

updateMask FieldMask

Optional. The list of fields to be updated.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAccountConnectorOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
AccountConnector accountConnector = new AccountConnector();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<AccountConnector, OperationMetadata> response = await developerConnectClient.UpdateAccountConnectorAsync(accountConnector, updateMask);

// Poll until the returned long-running operation is complete
Operation<AccountConnector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccountConnector result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccountConnector, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceUpdateAccountConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccountConnector retrievedResult = retrievedResponse.Result;
}

UpdateAccountConnectorAsync(UpdateAccountConnectorRequest, CallSettings)

public virtual Task<Operation<AccountConnector, OperationMetadata>> UpdateAccountConnectorAsync(UpdateAccountConnectorRequest request, CallSettings callSettings = null)

Updates the parameters of a single AccountConnector.

Parameters
Name Description
request UpdateAccountConnectorRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAccountConnectorOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
UpdateAccountConnectorRequest request = new UpdateAccountConnectorRequest
{
    UpdateMask = new FieldMask(),
    AccountConnector = new AccountConnector(),
    RequestId = "",
    AllowMissing = false,
    ValidateOnly = false,
};
// Make the request
Operation<AccountConnector, OperationMetadata> response = await developerConnectClient.UpdateAccountConnectorAsync(request);

// Poll until the returned long-running operation is complete
Operation<AccountConnector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccountConnector result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccountConnector, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceUpdateAccountConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccountConnector retrievedResult = retrievedResponse.Result;
}

UpdateAccountConnectorAsync(UpdateAccountConnectorRequest, CancellationToken)

public virtual Task<Operation<AccountConnector, OperationMetadata>> UpdateAccountConnectorAsync(UpdateAccountConnectorRequest request, CancellationToken cancellationToken)

Updates the parameters of a single AccountConnector.

Parameters
Name Description
request UpdateAccountConnectorRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAccountConnectorOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
UpdateAccountConnectorRequest request = new UpdateAccountConnectorRequest
{
    UpdateMask = new FieldMask(),
    AccountConnector = new AccountConnector(),
    RequestId = "",
    AllowMissing = false,
    ValidateOnly = false,
};
// Make the request
Operation<AccountConnector, OperationMetadata> response = await developerConnectClient.UpdateAccountConnectorAsync(request);

// Poll until the returned long-running operation is complete
Operation<AccountConnector, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccountConnector result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccountConnector, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceUpdateAccountConnectorAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccountConnector retrievedResult = retrievedResponse.Result;
}

UpdateConnection(Connection, FieldMask, CallSettings)

public virtual Operation<Connection, OperationMetadata> UpdateConnection(Connection connection, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Connection.

Parameters
Name Description
connection Connection

Required. The resource being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Connection resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConnectionOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
Connection connection = new Connection();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Connection, OperationMetadata> response = developerConnectClient.UpdateConnection(connection, updateMask);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceUpdateConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

UpdateConnection(UpdateConnectionRequest, CallSettings)

public virtual Operation<Connection, OperationMetadata> UpdateConnection(UpdateConnectionRequest request, CallSettings callSettings = null)

Updates the parameters of a single Connection.

Parameters
Name Description
request UpdateConnectionRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationConnectionOperationMetadata

The RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = DeveloperConnectClient.Create();
// Initialize request argument(s)
UpdateConnectionRequest request = new UpdateConnectionRequest
{
    UpdateMask = new FieldMask(),
    Connection = new Connection(),
    RequestId = "",
    AllowMissing = false,
    ValidateOnly = false,
};
// Make the request
Operation<Connection, OperationMetadata> response = developerConnectClient.UpdateConnection(request);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = developerConnectClient.PollOnceUpdateConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

UpdateConnectionAsync(Connection, FieldMask, CallSettings)

public virtual Task<Operation<Connection, OperationMetadata>> UpdateConnectionAsync(Connection connection, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Connection.

Parameters
Name Description
connection Connection

Required. The resource being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Connection resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
Connection connection = new Connection();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Connection, OperationMetadata> response = await developerConnectClient.UpdateConnectionAsync(connection, updateMask);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceUpdateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

UpdateConnectionAsync(Connection, FieldMask, CancellationToken)

public virtual Task<Operation<Connection, OperationMetadata>> UpdateConnectionAsync(Connection connection, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single Connection.

Parameters
Name Description
connection Connection

Required. The resource being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Connection resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
Connection connection = new Connection();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Connection, OperationMetadata> response = await developerConnectClient.UpdateConnectionAsync(connection, updateMask);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceUpdateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

UpdateConnectionAsync(UpdateConnectionRequest, CallSettings)

public virtual Task<Operation<Connection, OperationMetadata>> UpdateConnectionAsync(UpdateConnectionRequest request, CallSettings callSettings = null)

Updates the parameters of a single Connection.

Parameters
Name Description
request UpdateConnectionRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
UpdateConnectionRequest request = new UpdateConnectionRequest
{
    UpdateMask = new FieldMask(),
    Connection = new Connection(),
    RequestId = "",
    AllowMissing = false,
    ValidateOnly = false,
};
// Make the request
Operation<Connection, OperationMetadata> response = await developerConnectClient.UpdateConnectionAsync(request);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceUpdateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}

UpdateConnectionAsync(UpdateConnectionRequest, CancellationToken)

public virtual Task<Operation<Connection, OperationMetadata>> UpdateConnectionAsync(UpdateConnectionRequest request, CancellationToken cancellationToken)

Updates the parameters of a single Connection.

Parameters
Name Description
request UpdateConnectionRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DeveloperConnectClient developerConnectClient = await DeveloperConnectClient.CreateAsync();
// Initialize request argument(s)
UpdateConnectionRequest request = new UpdateConnectionRequest
{
    UpdateMask = new FieldMask(),
    Connection = new Connection(),
    RequestId = "",
    AllowMissing = false,
    ValidateOnly = false,
};
// Make the request
Operation<Connection, OperationMetadata> response = await developerConnectClient.UpdateConnectionAsync(request);

// Poll until the returned long-running operation is complete
Operation<Connection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Connection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Connection, OperationMetadata> retrievedResponse = await developerConnectClient.PollOnceUpdateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Connection retrievedResult = retrievedResponse.Result;
}