Class ApplicationServiceClient (2.0.0-beta07)

public abstract class ApplicationServiceClient

ApplicationService client wrapper, for convenient use.

Inheritance

Object > ApplicationServiceClient

Namespace

Google.Cloud.Talent.V4Beta1

Assembly

Google.Cloud.Talent.V4Beta1.dll

Remarks

A service that handles application management, including CRUD and enumeration.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
Type Description
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default ApplicationService scopes.

Property Value
Type Description
IReadOnlyList<String>
Remarks

GrpcClient

public virtual ApplicationService.ApplicationServiceClient GrpcClient { get; }

The underlying gRPC ApplicationService client

Property Value
Type Description
ApplicationService.ApplicationServiceClient

Methods

Create()

public static ApplicationServiceClient Create()

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

Returns
Type Description
ApplicationServiceClient

The created ApplicationServiceClient.

CreateApplication(CreateApplicationRequest, CallSettings)

public virtual Application CreateApplication(CreateApplicationRequest request, CallSettings callSettings = null)

Creates a new application entity.

Parameters
Name Description
request CreateApplicationRequest

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
Application

The RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.Create();
// Initialize request argument(s)
CreateApplicationRequest request = new CreateApplicationRequest
{
    ParentAsProfileName = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]"),
    Application = new Application(),
};
// Make the request
Application response = applicationServiceClient.CreateApplication(request);

CreateApplication(ProfileName, Application, CallSettings)

public virtual Application CreateApplication(ProfileName parent, Application application, CallSettings callSettings = null)

Creates a new application entity.

Parameters
Name Description
parent ProfileName

Required. Resource name of the profile under which the application is created.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For example, "projects/foo/tenants/bar/profiles/baz".

application Application

Required. The application to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Application

The RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.Create();
// Initialize request argument(s)
ProfileName parent = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]");
Application application = new Application();
// Make the request
Application response = applicationServiceClient.CreateApplication(parent, application);

CreateApplication(String, Application, CallSettings)

public virtual Application CreateApplication(string parent, Application application, CallSettings callSettings = null)

Creates a new application entity.

Parameters
Name Description
parent String

Required. Resource name of the profile under which the application is created.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For example, "projects/foo/tenants/bar/profiles/baz".

application Application

Required. The application to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Application

The RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]/profiles/[PROFILE]";
Application application = new Application();
// Make the request
Application response = applicationServiceClient.CreateApplication(parent, application);

CreateApplicationAsync(CreateApplicationRequest, CallSettings)

public virtual Task<Application> CreateApplicationAsync(CreateApplicationRequest request, CallSettings callSettings = null)

Creates a new application entity.

Parameters
Name Description
request CreateApplicationRequest

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
Task<Application>

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateApplicationRequest request = new CreateApplicationRequest
{
    ParentAsProfileName = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]"),
    Application = new Application(),
};
// Make the request
Application response = await applicationServiceClient.CreateApplicationAsync(request);

CreateApplicationAsync(CreateApplicationRequest, CancellationToken)

public virtual Task<Application> CreateApplicationAsync(CreateApplicationRequest request, CancellationToken cancellationToken)

Creates a new application entity.

Parameters
Name Description
request CreateApplicationRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Application>

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateApplicationRequest request = new CreateApplicationRequest
{
    ParentAsProfileName = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]"),
    Application = new Application(),
};
// Make the request
Application response = await applicationServiceClient.CreateApplicationAsync(request);

CreateApplicationAsync(ProfileName, Application, CallSettings)

public virtual Task<Application> CreateApplicationAsync(ProfileName parent, Application application, CallSettings callSettings = null)

Creates a new application entity.

Parameters
Name Description
parent ProfileName

Required. Resource name of the profile under which the application is created.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For example, "projects/foo/tenants/bar/profiles/baz".

application Application

Required. The application to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Application>

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
ProfileName parent = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]");
Application application = new Application();
// Make the request
Application response = await applicationServiceClient.CreateApplicationAsync(parent, application);

CreateApplicationAsync(ProfileName, Application, CancellationToken)

public virtual Task<Application> CreateApplicationAsync(ProfileName parent, Application application, CancellationToken cancellationToken)

Creates a new application entity.

Parameters
Name Description
parent ProfileName

Required. Resource name of the profile under which the application is created.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For example, "projects/foo/tenants/bar/profiles/baz".

application Application

Required. The application to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Application>

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
ProfileName parent = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]");
Application application = new Application();
// Make the request
Application response = await applicationServiceClient.CreateApplicationAsync(parent, application);

CreateApplicationAsync(String, Application, CallSettings)

public virtual Task<Application> CreateApplicationAsync(string parent, Application application, CallSettings callSettings = null)

Creates a new application entity.

Parameters
Name Description
parent String

Required. Resource name of the profile under which the application is created.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For example, "projects/foo/tenants/bar/profiles/baz".

application Application

Required. The application to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Application>

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]/profiles/[PROFILE]";
Application application = new Application();
// Make the request
Application response = await applicationServiceClient.CreateApplicationAsync(parent, application);

CreateApplicationAsync(String, Application, CancellationToken)

public virtual Task<Application> CreateApplicationAsync(string parent, Application application, CancellationToken cancellationToken)

Creates a new application entity.

Parameters
Name Description
parent String

Required. Resource name of the profile under which the application is created.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For example, "projects/foo/tenants/bar/profiles/baz".

application Application

Required. The application to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Application>

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]/profiles/[PROFILE]";
Application application = new Application();
// Make the request
Application response = await applicationServiceClient.CreateApplicationAsync(parent, application);

CreateAsync(CancellationToken)

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

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
Task<ApplicationServiceClient>

The task representing the created ApplicationServiceClient.

DeleteApplication(ApplicationName, CallSettings)

public virtual void DeleteApplication(ApplicationName name, CallSettings callSettings = null)

Deletes specified application.

Parameters
Name Description
name ApplicationName

Required. The resource name of the application to be deleted.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.Create();
// Initialize request argument(s)
ApplicationName name = ApplicationName.FromProjectTenantProfileApplication("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]");
// Make the request
applicationServiceClient.DeleteApplication(name);

DeleteApplication(DeleteApplicationRequest, CallSettings)

public virtual void DeleteApplication(DeleteApplicationRequest request, CallSettings callSettings = null)

Deletes specified application.

Parameters
Name Description
request DeleteApplicationRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.Create();
// Initialize request argument(s)
DeleteApplicationRequest request = new DeleteApplicationRequest
{
    ApplicationName = ApplicationName.FromProjectTenantProfileApplication("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]"),
};
// Make the request
applicationServiceClient.DeleteApplication(request);

DeleteApplication(String, CallSettings)

public virtual void DeleteApplication(string name, CallSettings callSettings = null)

Deletes specified application.

Parameters
Name Description
name String

Required. The resource name of the application to be deleted.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/profiles/[PROFILE]/applications/[APPLICATION]";
// Make the request
applicationServiceClient.DeleteApplication(name);

DeleteApplicationAsync(ApplicationName, CallSettings)

public virtual Task DeleteApplicationAsync(ApplicationName name, CallSettings callSettings = null)

Deletes specified application.

Parameters
Name Description
name ApplicationName

Required. The resource name of the application to be deleted.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
ApplicationName name = ApplicationName.FromProjectTenantProfileApplication("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]");
// Make the request
await applicationServiceClient.DeleteApplicationAsync(name);

DeleteApplicationAsync(ApplicationName, CancellationToken)

public virtual Task DeleteApplicationAsync(ApplicationName name, CancellationToken cancellationToken)

Deletes specified application.

Parameters
Name Description
name ApplicationName

Required. The resource name of the application to be deleted.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
ApplicationName name = ApplicationName.FromProjectTenantProfileApplication("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]");
// Make the request
await applicationServiceClient.DeleteApplicationAsync(name);

DeleteApplicationAsync(DeleteApplicationRequest, CallSettings)

public virtual Task DeleteApplicationAsync(DeleteApplicationRequest request, CallSettings callSettings = null)

Deletes specified application.

Parameters
Name Description
request DeleteApplicationRequest

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
Task

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteApplicationRequest request = new DeleteApplicationRequest
{
    ApplicationName = ApplicationName.FromProjectTenantProfileApplication("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]"),
};
// Make the request
await applicationServiceClient.DeleteApplicationAsync(request);

DeleteApplicationAsync(DeleteApplicationRequest, CancellationToken)

public virtual Task DeleteApplicationAsync(DeleteApplicationRequest request, CancellationToken cancellationToken)

Deletes specified application.

Parameters
Name Description
request DeleteApplicationRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteApplicationRequest request = new DeleteApplicationRequest
{
    ApplicationName = ApplicationName.FromProjectTenantProfileApplication("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]"),
};
// Make the request
await applicationServiceClient.DeleteApplicationAsync(request);

DeleteApplicationAsync(String, CallSettings)

public virtual Task DeleteApplicationAsync(string name, CallSettings callSettings = null)

Deletes specified application.

Parameters
Name Description
name String

Required. The resource name of the application to be deleted.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/profiles/[PROFILE]/applications/[APPLICATION]";
// Make the request
await applicationServiceClient.DeleteApplicationAsync(name);

DeleteApplicationAsync(String, CancellationToken)

public virtual Task DeleteApplicationAsync(string name, CancellationToken cancellationToken)

Deletes specified application.

Parameters
Name Description
name String

Required. The resource name of the application to be deleted.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/profiles/[PROFILE]/applications/[APPLICATION]";
// Make the request
await applicationServiceClient.DeleteApplicationAsync(name);

GetApplication(ApplicationName, CallSettings)

public virtual Application GetApplication(ApplicationName name, CallSettings callSettings = null)

Retrieves specified application.

Parameters
Name Description
name ApplicationName

Required. The resource name of the application to be retrieved.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Application

The RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.Create();
// Initialize request argument(s)
ApplicationName name = ApplicationName.FromProjectTenantProfileApplication("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]");
// Make the request
Application response = applicationServiceClient.GetApplication(name);

GetApplication(GetApplicationRequest, CallSettings)

public virtual Application GetApplication(GetApplicationRequest request, CallSettings callSettings = null)

Retrieves specified application.

Parameters
Name Description
request GetApplicationRequest

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
Application

The RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.Create();
// Initialize request argument(s)
GetApplicationRequest request = new GetApplicationRequest
{
    ApplicationName = ApplicationName.FromProjectTenantProfileApplication("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]"),
};
// Make the request
Application response = applicationServiceClient.GetApplication(request);

GetApplication(String, CallSettings)

public virtual Application GetApplication(string name, CallSettings callSettings = null)

Retrieves specified application.

Parameters
Name Description
name String

Required. The resource name of the application to be retrieved.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Application

The RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/profiles/[PROFILE]/applications/[APPLICATION]";
// Make the request
Application response = applicationServiceClient.GetApplication(name);

GetApplicationAsync(ApplicationName, CallSettings)

public virtual Task<Application> GetApplicationAsync(ApplicationName name, CallSettings callSettings = null)

Retrieves specified application.

Parameters
Name Description
name ApplicationName

Required. The resource name of the application to be retrieved.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Application>

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
ApplicationName name = ApplicationName.FromProjectTenantProfileApplication("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]");
// Make the request
Application response = await applicationServiceClient.GetApplicationAsync(name);

GetApplicationAsync(ApplicationName, CancellationToken)

public virtual Task<Application> GetApplicationAsync(ApplicationName name, CancellationToken cancellationToken)

Retrieves specified application.

Parameters
Name Description
name ApplicationName

Required. The resource name of the application to be retrieved.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Application>

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
ApplicationName name = ApplicationName.FromProjectTenantProfileApplication("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]");
// Make the request
Application response = await applicationServiceClient.GetApplicationAsync(name);

GetApplicationAsync(GetApplicationRequest, CallSettings)

public virtual Task<Application> GetApplicationAsync(GetApplicationRequest request, CallSettings callSettings = null)

Retrieves specified application.

Parameters
Name Description
request GetApplicationRequest

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
Task<Application>

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
GetApplicationRequest request = new GetApplicationRequest
{
    ApplicationName = ApplicationName.FromProjectTenantProfileApplication("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]"),
};
// Make the request
Application response = await applicationServiceClient.GetApplicationAsync(request);

GetApplicationAsync(GetApplicationRequest, CancellationToken)

public virtual Task<Application> GetApplicationAsync(GetApplicationRequest request, CancellationToken cancellationToken)

Retrieves specified application.

Parameters
Name Description
request GetApplicationRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Application>

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
GetApplicationRequest request = new GetApplicationRequest
{
    ApplicationName = ApplicationName.FromProjectTenantProfileApplication("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]"),
};
// Make the request
Application response = await applicationServiceClient.GetApplicationAsync(request);

GetApplicationAsync(String, CallSettings)

public virtual Task<Application> GetApplicationAsync(string name, CallSettings callSettings = null)

Retrieves specified application.

Parameters
Name Description
name String

Required. The resource name of the application to be retrieved.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Application>

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/profiles/[PROFILE]/applications/[APPLICATION]";
// Make the request
Application response = await applicationServiceClient.GetApplicationAsync(name);

GetApplicationAsync(String, CancellationToken)

public virtual Task<Application> GetApplicationAsync(string name, CancellationToken cancellationToken)

Retrieves specified application.

Parameters
Name Description
name String

Required. The resource name of the application to be retrieved.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Application>

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/profiles/[PROFILE]/applications/[APPLICATION]";
// Make the request
Application response = await applicationServiceClient.GetApplicationAsync(name);

ListApplications(ListApplicationsRequest, CallSettings)

public virtual PagedEnumerable<ListApplicationsResponse, Application> ListApplications(ListApplicationsRequest request, CallSettings callSettings = null)

Lists all applications associated with the profile.

Parameters
Name Description
request ListApplicationsRequest

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
PagedEnumerable<ListApplicationsResponse, Application>

A pageable sequence of Application resources.

Example
// Create client
ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.Create();
// Initialize request argument(s)
ListApplicationsRequest request = new ListApplicationsRequest
{
    ParentAsProfileName = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]"),
};
// Make the request
PagedEnumerable<ListApplicationsResponse, Application> response = applicationServiceClient.ListApplications(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Application 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 (ListApplicationsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Application 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<Application> 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 (Application 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;

ListApplications(ProfileName, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListApplicationsResponse, Application> ListApplications(ProfileName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists all applications associated with the profile.

Parameters
Name Description
parent ProfileName

Required. Resource name of the profile under which the application is created.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for example, "projects/foo/tenants/bar/profiles/baz".

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListApplicationsResponse, Application>

A pageable sequence of Application resources.

Example
// Create client
ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.Create();
// Initialize request argument(s)
ProfileName parent = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]");
// Make the request
PagedEnumerable<ListApplicationsResponse, Application> response = applicationServiceClient.ListApplications(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Application 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 (ListApplicationsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Application 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<Application> 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 (Application 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;

ListApplications(String, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListApplicationsResponse, Application> ListApplications(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists all applications associated with the profile.

Parameters
Name Description
parent String

Required. Resource name of the profile under which the application is created.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for example, "projects/foo/tenants/bar/profiles/baz".

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListApplicationsResponse, Application>

A pageable sequence of Application resources.

Example
// Create client
ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]/profiles/[PROFILE]";
// Make the request
PagedEnumerable<ListApplicationsResponse, Application> response = applicationServiceClient.ListApplications(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Application 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 (ListApplicationsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Application 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<Application> 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 (Application 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;

ListApplicationsAsync(ListApplicationsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListApplicationsResponse, Application> ListApplicationsAsync(ListApplicationsRequest request, CallSettings callSettings = null)

Lists all applications associated with the profile.

Parameters
Name Description
request ListApplicationsRequest

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
PagedAsyncEnumerable<ListApplicationsResponse, Application>

A pageable asynchronous sequence of Application resources.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
ListApplicationsRequest request = new ListApplicationsRequest
{
    ParentAsProfileName = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]"),
};
// Make the request
PagedAsyncEnumerable<ListApplicationsResponse, Application> response = applicationServiceClient.ListApplicationsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Application 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((ListApplicationsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Application 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<Application> 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 (Application 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;

ListApplicationsAsync(ProfileName, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListApplicationsResponse, Application> ListApplicationsAsync(ProfileName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists all applications associated with the profile.

Parameters
Name Description
parent ProfileName

Required. Resource name of the profile under which the application is created.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for example, "projects/foo/tenants/bar/profiles/baz".

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListApplicationsResponse, Application>

A pageable asynchronous sequence of Application resources.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
ProfileName parent = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]");
// Make the request
PagedAsyncEnumerable<ListApplicationsResponse, Application> response = applicationServiceClient.ListApplicationsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Application 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((ListApplicationsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Application 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<Application> 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 (Application 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;

ListApplicationsAsync(String, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListApplicationsResponse, Application> ListApplicationsAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists all applications associated with the profile.

Parameters
Name Description
parent String

Required. Resource name of the profile under which the application is created.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for example, "projects/foo/tenants/bar/profiles/baz".

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListApplicationsResponse, Application>

A pageable asynchronous sequence of Application resources.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]/profiles/[PROFILE]";
// Make the request
PagedAsyncEnumerable<ListApplicationsResponse, Application> response = applicationServiceClient.ListApplicationsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Application 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((ListApplicationsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Application 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<Application> 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 (Application 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;

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UpdateApplication(Application, CallSettings)

public virtual Application UpdateApplication(Application application, CallSettings callSettings = null)

Updates specified application.

Parameters
Name Description
application Application

Required. The application resource to replace the current resource in the system.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Application

The RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.Create();
// Initialize request argument(s)
Application application = new Application();
// Make the request
Application response = applicationServiceClient.UpdateApplication(application);

UpdateApplication(UpdateApplicationRequest, CallSettings)

public virtual Application UpdateApplication(UpdateApplicationRequest request, CallSettings callSettings = null)

Updates specified application.

Parameters
Name Description
request UpdateApplicationRequest

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
Application

The RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.Create();
// Initialize request argument(s)
UpdateApplicationRequest request = new UpdateApplicationRequest
{
    Application = new Application(),
    UpdateMask = new FieldMask(),
};
// Make the request
Application response = applicationServiceClient.UpdateApplication(request);

UpdateApplicationAsync(Application, CallSettings)

public virtual Task<Application> UpdateApplicationAsync(Application application, CallSettings callSettings = null)

Updates specified application.

Parameters
Name Description
application Application

Required. The application resource to replace the current resource in the system.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Application>

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
Application application = new Application();
// Make the request
Application response = await applicationServiceClient.UpdateApplicationAsync(application);

UpdateApplicationAsync(Application, CancellationToken)

public virtual Task<Application> UpdateApplicationAsync(Application application, CancellationToken cancellationToken)

Updates specified application.

Parameters
Name Description
application Application

Required. The application resource to replace the current resource in the system.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Application>

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
Application application = new Application();
// Make the request
Application response = await applicationServiceClient.UpdateApplicationAsync(application);

UpdateApplicationAsync(UpdateApplicationRequest, CallSettings)

public virtual Task<Application> UpdateApplicationAsync(UpdateApplicationRequest request, CallSettings callSettings = null)

Updates specified application.

Parameters
Name Description
request UpdateApplicationRequest

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
Task<Application>

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateApplicationRequest request = new UpdateApplicationRequest
{
    Application = new Application(),
    UpdateMask = new FieldMask(),
};
// Make the request
Application response = await applicationServiceClient.UpdateApplicationAsync(request);

UpdateApplicationAsync(UpdateApplicationRequest, CancellationToken)

public virtual Task<Application> UpdateApplicationAsync(UpdateApplicationRequest request, CancellationToken cancellationToken)

Updates specified application.

Parameters
Name Description
request UpdateApplicationRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Application>

A Task containing the RPC response.

Example
// Create client
ApplicationServiceClient applicationServiceClient = await ApplicationServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateApplicationRequest request = new UpdateApplicationRequest
{
    Application = new Application(),
    UpdateMask = new FieldMask(),
};
// Make the request
Application response = await applicationServiceClient.UpdateApplicationAsync(request);