public abstract class DeveloperConnectClient
Reference documentation and code samples for the Developer Connect v1 API class DeveloperConnectClient.
DeveloperConnect client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.DeveloperConnect.V1Assembly
Google.Cloud.DeveloperConnect.V1.dll
Remarks
Service describing handlers for resources
Properties
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 |
The default DeveloperConnect scopes are:
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 |
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 |
UpdateConnectionOperationsClient
public virtual OperationsClient UpdateConnectionOperationsClient { get; }
The long-running operations client for UpdateConnection
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
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. |
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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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;
}
CreateGitRepositoryLink(ConnectionName, GitRepositoryLink, string, CallSettings)
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. 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 -._~%!$&'()*+,;=@. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationGitRepositoryLinkOperationMetadata |
The RPC response. |
// 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;
}
CreateGitRepositoryLink(CreateGitRepositoryLinkRequest, CallSettings)
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. 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. |
// 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;
}
CreateGitRepositoryLink(string, GitRepositoryLink, string, CallSettings)
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. 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 -._~%!$&'()*+,;=@. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationGitRepositoryLinkOperationMetadata |
The RPC response. |
// 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;
}
CreateGitRepositoryLinkAsync(ConnectionName, GitRepositoryLink, string, CallSettings)
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. 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 -._~%!$&'()*+,;=@. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationGitRepositoryLinkOperationMetadata |
A Task containing the RPC response. |
// 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(ConnectionName, GitRepositoryLink, string, CancellationToken)
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. 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 -._~%!$&'()*+,;=@. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationGitRepositoryLinkOperationMetadata |
A Task containing the RPC response. |
// 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. 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. |
// 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. 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. |
// 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(string, GitRepositoryLink, string, CallSettings)
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. 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 -._~%!$&'()*+,;=@. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationGitRepositoryLinkOperationMetadata |
A Task containing the RPC response. |
// 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;
}
CreateGitRepositoryLinkAsync(string, GitRepositoryLink, string, CancellationToken)
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. 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 -._~%!$&'()*+,;=@. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationGitRepositoryLinkOperationMetadata |
A Task containing the RPC response. |
// 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;
}
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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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;
}
DeleteGitRepositoryLink(DeleteGitRepositoryLinkRequest, CallSettings)
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. |
// 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;
}
DeleteGitRepositoryLink(GitRepositoryLinkName, CallSettings)
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. |
// 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;
}
DeleteGitRepositoryLink(string, CallSettings)
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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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;
}
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
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FetchGitHubInstallationsResponse |
The RPC response. |
// 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. |
// 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
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FetchGitHubInstallationsResponse |
The RPC response. |
// 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
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFetchGitHubInstallationsResponse |
A Task containing the RPC response. |
// 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
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFetchGitHubInstallationsResponse |
A Task containing the RPC response. |
// 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. |
// 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. |
// 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
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFetchGitHubInstallationsResponse |
A Task containing the RPC response. |
// 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
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFetchGitHubInstallationsResponse |
A Task containing the RPC response. |
// 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. |
// 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
|
refType |
FetchGitRefsRequestTypesRefType Required. Type of refs to fetch. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableFetchGitRefsResponsestring |
A pageable sequence of string resources. |
// 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
|
refType |
FetchGitRefsRequestTypesRefType Required. Type of refs to fetch. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableFetchGitRefsResponsestring |
A pageable sequence of string resources. |
// 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. |
// 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 response.ForEachAsync((string item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((FetchGitRefsResponse page) =>
{
// 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
|
refType |
FetchGitRefsRequestTypesRefType Required. Type of refs to fetch. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableFetchGitRefsResponsestring |
A pageable asynchronous sequence of string resources. |
// 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 response.ForEachAsync((string item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((FetchGitRefsResponse page) =>
{
// 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
|
refType |
FetchGitRefsRequestTypesRefType Required. Type of refs to fetch. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableFetchGitRefsResponsestring |
A pageable asynchronous sequence of string resources. |
// 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 response.ForEachAsync((string item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((FetchGitRefsResponse page) =>
{
// 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;
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: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableFetchLinkableGitRepositoriesResponseLinkableGitRepository |
A pageable sequence of LinkableGitRepository resources. |
// 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. |
// 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: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableFetchLinkableGitRepositoriesResponseLinkableGitRepository |
A pageable sequence of LinkableGitRepository resources. |
// 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: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableFetchLinkableGitRepositoriesResponseLinkableGitRepository |
A pageable asynchronous sequence of LinkableGitRepository resources. |
// 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 response.ForEachAsync((LinkableGitRepository item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((FetchLinkableGitRepositoriesResponse page) =>
{
// 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. |
// 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 response.ForEachAsync((LinkableGitRepository item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((FetchLinkableGitRepositoriesResponse page) =>
{
// 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: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableFetchLinkableGitRepositoriesResponseLinkableGitRepository |
A pageable asynchronous sequence of LinkableGitRepository resources. |
// 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 response.ForEachAsync((LinkableGitRepository item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((FetchLinkableGitRepositoriesResponse page) =>
{
// 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. |
// 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
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FetchReadTokenResponse |
The RPC response. |
// 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
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FetchReadTokenResponse |
The RPC response. |
// 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. |
// 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. |
// 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
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFetchReadTokenResponse |
A Task containing the RPC response. |
// 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
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFetchReadTokenResponse |
A Task containing the RPC response. |
// 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
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFetchReadTokenResponse |
A Task containing the RPC response. |
// 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
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFetchReadTokenResponse |
A Task containing the RPC response. |
// 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. |
// 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
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FetchReadWriteTokenResponse |
The RPC response. |
// 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
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
FetchReadWriteTokenResponse |
The RPC response. |
// 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. |
// 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. |
// 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
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFetchReadWriteTokenResponse |
A Task containing the RPC response. |
// 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
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFetchReadWriteTokenResponse |
A Task containing the RPC response. |
// 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
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFetchReadWriteTokenResponse |
A Task containing the RPC response. |
// 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
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFetchReadWriteTokenResponse |
A Task containing the RPC response. |
// 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);
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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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);
GetGitRepositoryLink(GetGitRepositoryLinkRequest, CallSettings)
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. |
// 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);
GetGitRepositoryLink(GitRepositoryLinkName, CallSettings)
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. |
// 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);
GetGitRepositoryLink(string, CallSettings)
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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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);
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 |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListConnectionsResponseConnection |
A pageable sequence of Connection resources. |
// 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. |
// 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 |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListConnectionsResponseConnection |
A pageable sequence of Connection resources. |
// 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 |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListConnectionsResponseConnection |
A pageable asynchronous sequence of Connection resources. |
// 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 response.ForEachAsync((Connection item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListConnectionsResponse page) =>
{
// 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. |
// 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 response.ForEachAsync((Connection item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListConnectionsResponse page) =>
{
// 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 |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListConnectionsResponseConnection |
A pageable asynchronous sequence of Connection resources. |
// 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 response.ForEachAsync((Connection item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListConnectionsResponse page) =>
{
// 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;
ListGitRepositoryLinks(ConnectionName, string, int?, CallSettings)
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 |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListGitRepositoryLinksResponseGitRepositoryLink |
A pageable sequence of GitRepositoryLink resources. |
// 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;
ListGitRepositoryLinks(ListGitRepositoryLinksRequest, CallSettings)
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. |
// 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;
ListGitRepositoryLinks(string, string, int?, CallSettings)
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 |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListGitRepositoryLinksResponseGitRepositoryLink |
A pageable sequence of GitRepositoryLink resources. |
// 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 |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListGitRepositoryLinksResponseGitRepositoryLink |
A pageable asynchronous sequence of GitRepositoryLink resources. |
// 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 response.ForEachAsync((GitRepositoryLink item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListGitRepositoryLinksResponse page) =>
{
// 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. |
// 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 response.ForEachAsync((GitRepositoryLink item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListGitRepositoryLinksResponse page) =>
{
// 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 |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListGitRepositoryLinksResponseGitRepositoryLink |
A pageable asynchronous sequence of GitRepositoryLink resources. |
// 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 response.ForEachAsync((GitRepositoryLink item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListGitRepositoryLinksResponse page) =>
{
// 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;
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 |
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 |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationConnectionOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateGitRepositoryLink(string, CallSettings)
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 |
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 |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationGitRepositoryLinkOperationMetadata |
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 |
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 |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteGitRepositoryLink(string, CallSettings)
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 |
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 |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
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 |
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 |
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. |
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.
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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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. |
// 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;
}