Class ManagedIdentitiesServiceClient (2.2.0)

public abstract class ManagedIdentitiesServiceClient

ManagedIdentitiesService client wrapper, for convenient use.

Inheritance

Object > ManagedIdentitiesServiceClient

Namespace

Google.Cloud.ManagedIdentities.V1

Assembly

Google.Cloud.ManagedIdentities.V1.dll

Remarks

API Overview

The managedidentites.googleapis.com service implements the Google Cloud Managed Identites API for identity services (e.g. Microsoft Active Directory).

The Managed Identities service provides methods to manage (create/read/update/delete) domains, reset managed identities admin password, add/remove domain controllers in GCP regions and add/remove VPC peering.

Data Model

The Managed Identities service exposes the following resources:

  • Locations as global, named as follows: projects/{project_id}/locations/global.

  • Domains, named as follows: /projects/{project_id}/locations/global/domain/{domain_name}.

The {domain_name} refers to fully qualified domain name in the customer project e.g. mydomain.myorganization.com, with the following restrictions:

  • Must contain only lowercase letters, numbers, periods and hyphens.
  • Must start with a letter.
  • Must contain between 2-64 characters.
  • Must end with a number or a letter.
  • Must not start with period.
  • First segement length (mydomain form example above) shouldn't exceed 15 chars.
  • The last segment cannot be fully numeric.
  • Must be unique within the customer project.

Properties

AttachTrustOperationsClient

public virtual OperationsClient AttachTrustOperationsClient { get; }

The long-running operations client for AttachTrust.

Property Value
TypeDescription
Google.LongRunning.OperationsClient

CreateMicrosoftAdDomainOperationsClient

public virtual OperationsClient CreateMicrosoftAdDomainOperationsClient { get; }

The long-running operations client for CreateMicrosoftAdDomain.

Property Value
TypeDescription
Google.LongRunning.OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default ManagedIdentitiesService scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

The default ManagedIdentitiesService scopes are:

DeleteDomainOperationsClient

public virtual OperationsClient DeleteDomainOperationsClient { get; }

The long-running operations client for DeleteDomain.

Property Value
TypeDescription
Google.LongRunning.OperationsClient

DetachTrustOperationsClient

public virtual OperationsClient DetachTrustOperationsClient { get; }

The long-running operations client for DetachTrust.

Property Value
TypeDescription
Google.LongRunning.OperationsClient

GrpcClient

public virtual ManagedIdentitiesService.ManagedIdentitiesServiceClient GrpcClient { get; }

The underlying gRPC ManagedIdentitiesService client

Property Value
TypeDescription
ManagedIdentitiesService.ManagedIdentitiesServiceClient

ReconfigureTrustOperationsClient

public virtual OperationsClient ReconfigureTrustOperationsClient { get; }

The long-running operations client for ReconfigureTrust.

Property Value
TypeDescription
Google.LongRunning.OperationsClient

UpdateDomainOperationsClient

public virtual OperationsClient UpdateDomainOperationsClient { get; }

The long-running operations client for UpdateDomain.

Property Value
TypeDescription
Google.LongRunning.OperationsClient

ValidateTrustOperationsClient

public virtual OperationsClient ValidateTrustOperationsClient { get; }

The long-running operations client for ValidateTrust.

Property Value
TypeDescription
Google.LongRunning.OperationsClient

Methods

AttachTrust(AttachTrustRequest, CallSettings)

public virtual Operation<Domain, OpMetadata> AttachTrust(AttachTrustRequest request, CallSettings callSettings = null)

Adds an AD trust to a domain.

Parameters
NameDescription
requestAttachTrustRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
AttachTrustRequest request = new AttachTrustRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
    Trust = new Trust(),
};
// Make the request
Operation<Domain, OpMetadata> response = managedIdentitiesServiceClient.AttachTrust(request);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = managedIdentitiesServiceClient.PollOnceAttachTrust(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

AttachTrust(DomainName, Trust, CallSettings)

public virtual Operation<Domain, OpMetadata> AttachTrust(DomainName name, Trust trust, CallSettings callSettings = null)

Adds an AD trust to a domain.

Parameters
NameDescription
nameDomainName

Required. The resource domain name, project name and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

trustTrust

Required. The domain trust resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
Trust trust = new Trust();
// Make the request
Operation<Domain, OpMetadata> response = managedIdentitiesServiceClient.AttachTrust(name, trust);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = managedIdentitiesServiceClient.PollOnceAttachTrust(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

AttachTrust(String, Trust, CallSettings)

public virtual Operation<Domain, OpMetadata> AttachTrust(string name, Trust trust, CallSettings callSettings = null)

Adds an AD trust to a domain.

Parameters
NameDescription
nameString

Required. The resource domain name, project name and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

trustTrust

Required. The domain trust resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
Trust trust = new Trust();
// Make the request
Operation<Domain, OpMetadata> response = managedIdentitiesServiceClient.AttachTrust(name, trust);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = managedIdentitiesServiceClient.PollOnceAttachTrust(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

AttachTrustAsync(AttachTrustRequest, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> AttachTrustAsync(AttachTrustRequest request, CallSettings callSettings = null)

Adds an AD trust to a domain.

Parameters
NameDescription
requestAttachTrustRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
AttachTrustRequest request = new AttachTrustRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
    Trust = new Trust(),
};
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.AttachTrustAsync(request);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceAttachTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

AttachTrustAsync(AttachTrustRequest, CancellationToken)

public virtual Task<Operation<Domain, OpMetadata>> AttachTrustAsync(AttachTrustRequest request, CancellationToken cancellationToken)

Adds an AD trust to a domain.

Parameters
NameDescription
requestAttachTrustRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
AttachTrustRequest request = new AttachTrustRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
    Trust = new Trust(),
};
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.AttachTrustAsync(request);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceAttachTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

AttachTrustAsync(DomainName, Trust, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> AttachTrustAsync(DomainName name, Trust trust, CallSettings callSettings = null)

Adds an AD trust to a domain.

Parameters
NameDescription
nameDomainName

Required. The resource domain name, project name and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

trustTrust

Required. The domain trust resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
Trust trust = new Trust();
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.AttachTrustAsync(name, trust);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceAttachTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

AttachTrustAsync(DomainName, Trust, CancellationToken)

public virtual Task<Operation<Domain, OpMetadata>> AttachTrustAsync(DomainName name, Trust trust, CancellationToken cancellationToken)

Adds an AD trust to a domain.

Parameters
NameDescription
nameDomainName

Required. The resource domain name, project name and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

trustTrust

Required. The domain trust resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
Trust trust = new Trust();
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.AttachTrustAsync(name, trust);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceAttachTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

AttachTrustAsync(String, Trust, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> AttachTrustAsync(string name, Trust trust, CallSettings callSettings = null)

Adds an AD trust to a domain.

Parameters
NameDescription
nameString

Required. The resource domain name, project name and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

trustTrust

Required. The domain trust resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
Trust trust = new Trust();
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.AttachTrustAsync(name, trust);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceAttachTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

AttachTrustAsync(String, Trust, CancellationToken)

public virtual Task<Operation<Domain, OpMetadata>> AttachTrustAsync(string name, Trust trust, CancellationToken cancellationToken)

Adds an AD trust to a domain.

Parameters
NameDescription
nameString

Required. The resource domain name, project name and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

trustTrust

Required. The domain trust resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
Trust trust = new Trust();
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.AttachTrustAsync(name, trust);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceAttachTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

Create()

public static ManagedIdentitiesServiceClient Create()

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

Returns
TypeDescription
ManagedIdentitiesServiceClient

The created ManagedIdentitiesServiceClient.

CreateAsync(CancellationToken)

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

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

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<ManagedIdentitiesServiceClient>

The task representing the created ManagedIdentitiesServiceClient.

CreateMicrosoftAdDomain(LocationName, String, Domain, CallSettings)

public virtual Operation<Domain, OpMetadata> CreateMicrosoftAdDomain(LocationName parent, string domainName, Domain domain, CallSettings callSettings = null)

Creates a Microsoft AD domain.

Parameters
NameDescription
parentLocationName

Required. The resource project name and location using the form: projects/{project_id}/locations/global

domainNameString

Required. The fully qualified domain name. e.g. mydomain.myorganization.com, with the following restrictions:

  • Must contain only lowercase letters, numbers, periods and hyphens.
  • Must start with a letter.
  • Must contain between 2-64 characters.
  • Must end with a number or a letter.
  • Must not start with period.
  • First segement length (mydomain form example above) shouldn't exceed 15 chars.
  • The last segment cannot be fully numeric.
  • Must be unique within the customer project.
domainDomain

Required. A Managed Identity domain resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
string domainName = "";
Domain domain = new Domain();
// Make the request
Operation<Domain, OpMetadata> response = managedIdentitiesServiceClient.CreateMicrosoftAdDomain(parent, domainName, domain);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = managedIdentitiesServiceClient.PollOnceCreateMicrosoftAdDomain(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

CreateMicrosoftAdDomain(CreateMicrosoftAdDomainRequest, CallSettings)

public virtual Operation<Domain, OpMetadata> CreateMicrosoftAdDomain(CreateMicrosoftAdDomainRequest request, CallSettings callSettings = null)

Creates a Microsoft AD domain.

Parameters
NameDescription
requestCreateMicrosoftAdDomainRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
CreateMicrosoftAdDomainRequest request = new CreateMicrosoftAdDomainRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    DomainName = "",
    Domain = new Domain(),
};
// Make the request
Operation<Domain, OpMetadata> response = managedIdentitiesServiceClient.CreateMicrosoftAdDomain(request);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = managedIdentitiesServiceClient.PollOnceCreateMicrosoftAdDomain(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

CreateMicrosoftAdDomain(String, String, Domain, CallSettings)

public virtual Operation<Domain, OpMetadata> CreateMicrosoftAdDomain(string parent, string domainName, Domain domain, CallSettings callSettings = null)

Creates a Microsoft AD domain.

Parameters
NameDescription
parentString

Required. The resource project name and location using the form: projects/{project_id}/locations/global

domainNameString

Required. The fully qualified domain name. e.g. mydomain.myorganization.com, with the following restrictions:

  • Must contain only lowercase letters, numbers, periods and hyphens.
  • Must start with a letter.
  • Must contain between 2-64 characters.
  • Must end with a number or a letter.
  • Must not start with period.
  • First segement length (mydomain form example above) shouldn't exceed 15 chars.
  • The last segment cannot be fully numeric.
  • Must be unique within the customer project.
domainDomain

Required. A Managed Identity domain resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
string domainName = "";
Domain domain = new Domain();
// Make the request
Operation<Domain, OpMetadata> response = managedIdentitiesServiceClient.CreateMicrosoftAdDomain(parent, domainName, domain);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = managedIdentitiesServiceClient.PollOnceCreateMicrosoftAdDomain(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

CreateMicrosoftAdDomainAsync(LocationName, String, Domain, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> CreateMicrosoftAdDomainAsync(LocationName parent, string domainName, Domain domain, CallSettings callSettings = null)

Creates a Microsoft AD domain.

Parameters
NameDescription
parentLocationName

Required. The resource project name and location using the form: projects/{project_id}/locations/global

domainNameString

Required. The fully qualified domain name. e.g. mydomain.myorganization.com, with the following restrictions:

  • Must contain only lowercase letters, numbers, periods and hyphens.
  • Must start with a letter.
  • Must contain between 2-64 characters.
  • Must end with a number or a letter.
  • Must not start with period.
  • First segement length (mydomain form example above) shouldn't exceed 15 chars.
  • The last segment cannot be fully numeric.
  • Must be unique within the customer project.
domainDomain

Required. A Managed Identity domain resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
string domainName = "";
Domain domain = new Domain();
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.CreateMicrosoftAdDomainAsync(parent, domainName, domain);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceCreateMicrosoftAdDomainAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

CreateMicrosoftAdDomainAsync(LocationName, String, Domain, CancellationToken)

public virtual Task<Operation<Domain, OpMetadata>> CreateMicrosoftAdDomainAsync(LocationName parent, string domainName, Domain domain, CancellationToken cancellationToken)

Creates a Microsoft AD domain.

Parameters
NameDescription
parentLocationName

Required. The resource project name and location using the form: projects/{project_id}/locations/global

domainNameString

Required. The fully qualified domain name. e.g. mydomain.myorganization.com, with the following restrictions:

  • Must contain only lowercase letters, numbers, periods and hyphens.
  • Must start with a letter.
  • Must contain between 2-64 characters.
  • Must end with a number or a letter.
  • Must not start with period.
  • First segement length (mydomain form example above) shouldn't exceed 15 chars.
  • The last segment cannot be fully numeric.
  • Must be unique within the customer project.
domainDomain

Required. A Managed Identity domain resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
string domainName = "";
Domain domain = new Domain();
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.CreateMicrosoftAdDomainAsync(parent, domainName, domain);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceCreateMicrosoftAdDomainAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

CreateMicrosoftAdDomainAsync(CreateMicrosoftAdDomainRequest, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> CreateMicrosoftAdDomainAsync(CreateMicrosoftAdDomainRequest request, CallSettings callSettings = null)

Creates a Microsoft AD domain.

Parameters
NameDescription
requestCreateMicrosoftAdDomainRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
CreateMicrosoftAdDomainRequest request = new CreateMicrosoftAdDomainRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    DomainName = "",
    Domain = new Domain(),
};
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.CreateMicrosoftAdDomainAsync(request);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceCreateMicrosoftAdDomainAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

CreateMicrosoftAdDomainAsync(CreateMicrosoftAdDomainRequest, CancellationToken)

public virtual Task<Operation<Domain, OpMetadata>> CreateMicrosoftAdDomainAsync(CreateMicrosoftAdDomainRequest request, CancellationToken cancellationToken)

Creates a Microsoft AD domain.

Parameters
NameDescription
requestCreateMicrosoftAdDomainRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
CreateMicrosoftAdDomainRequest request = new CreateMicrosoftAdDomainRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    DomainName = "",
    Domain = new Domain(),
};
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.CreateMicrosoftAdDomainAsync(request);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceCreateMicrosoftAdDomainAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

CreateMicrosoftAdDomainAsync(String, String, Domain, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> CreateMicrosoftAdDomainAsync(string parent, string domainName, Domain domain, CallSettings callSettings = null)

Creates a Microsoft AD domain.

Parameters
NameDescription
parentString

Required. The resource project name and location using the form: projects/{project_id}/locations/global

domainNameString

Required. The fully qualified domain name. e.g. mydomain.myorganization.com, with the following restrictions:

  • Must contain only lowercase letters, numbers, periods and hyphens.
  • Must start with a letter.
  • Must contain between 2-64 characters.
  • Must end with a number or a letter.
  • Must not start with period.
  • First segement length (mydomain form example above) shouldn't exceed 15 chars.
  • The last segment cannot be fully numeric.
  • Must be unique within the customer project.
domainDomain

Required. A Managed Identity domain resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
string domainName = "";
Domain domain = new Domain();
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.CreateMicrosoftAdDomainAsync(parent, domainName, domain);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceCreateMicrosoftAdDomainAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

CreateMicrosoftAdDomainAsync(String, String, Domain, CancellationToken)

public virtual Task<Operation<Domain, OpMetadata>> CreateMicrosoftAdDomainAsync(string parent, string domainName, Domain domain, CancellationToken cancellationToken)

Creates a Microsoft AD domain.

Parameters
NameDescription
parentString

Required. The resource project name and location using the form: projects/{project_id}/locations/global

domainNameString

Required. The fully qualified domain name. e.g. mydomain.myorganization.com, with the following restrictions:

  • Must contain only lowercase letters, numbers, periods and hyphens.
  • Must start with a letter.
  • Must contain between 2-64 characters.
  • Must end with a number or a letter.
  • Must not start with period.
  • First segement length (mydomain form example above) shouldn't exceed 15 chars.
  • The last segment cannot be fully numeric.
  • Must be unique within the customer project.
domainDomain

Required. A Managed Identity domain resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
string domainName = "";
Domain domain = new Domain();
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.CreateMicrosoftAdDomainAsync(parent, domainName, domain);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceCreateMicrosoftAdDomainAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

DeleteDomain(DeleteDomainRequest, CallSettings)

public virtual Operation<Empty, OpMetadata> DeleteDomain(DeleteDomainRequest request, CallSettings callSettings = null)

Deletes a domain.

Parameters
NameDescription
requestDeleteDomainRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Empty, OpMetadata>

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
DeleteDomainRequest request = new DeleteDomainRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
};
// Make the request
Operation<Empty, OpMetadata> response = managedIdentitiesServiceClient.DeleteDomain(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OpMetadata> 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, OpMetadata> retrievedResponse = managedIdentitiesServiceClient.PollOnceDeleteDomain(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;
}

DeleteDomain(DomainName, CallSettings)

public virtual Operation<Empty, OpMetadata> DeleteDomain(DomainName name, CallSettings callSettings = null)

Deletes a domain.

Parameters
NameDescription
nameDomainName

Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Empty, OpMetadata>

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
// Make the request
Operation<Empty, OpMetadata> response = managedIdentitiesServiceClient.DeleteDomain(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OpMetadata> 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, OpMetadata> retrievedResponse = managedIdentitiesServiceClient.PollOnceDeleteDomain(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;
}

DeleteDomain(String, CallSettings)

public virtual Operation<Empty, OpMetadata> DeleteDomain(string name, CallSettings callSettings = null)

Deletes a domain.

Parameters
NameDescription
nameString

Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Empty, OpMetadata>

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
// Make the request
Operation<Empty, OpMetadata> response = managedIdentitiesServiceClient.DeleteDomain(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OpMetadata> 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, OpMetadata> retrievedResponse = managedIdentitiesServiceClient.PollOnceDeleteDomain(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;
}

DeleteDomainAsync(DeleteDomainRequest, CallSettings)

public virtual Task<Operation<Empty, OpMetadata>> DeleteDomainAsync(DeleteDomainRequest request, CallSettings callSettings = null)

Deletes a domain.

Parameters
NameDescription
requestDeleteDomainRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Empty, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteDomainRequest request = new DeleteDomainRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
};
// Make the request
Operation<Empty, OpMetadata> response = await managedIdentitiesServiceClient.DeleteDomainAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OpMetadata> 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, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceDeleteDomainAsync(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;
}

DeleteDomainAsync(DeleteDomainRequest, CancellationToken)

public virtual Task<Operation<Empty, OpMetadata>> DeleteDomainAsync(DeleteDomainRequest request, CancellationToken cancellationToken)

Deletes a domain.

Parameters
NameDescription
requestDeleteDomainRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Empty, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteDomainRequest request = new DeleteDomainRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
};
// Make the request
Operation<Empty, OpMetadata> response = await managedIdentitiesServiceClient.DeleteDomainAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OpMetadata> 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, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceDeleteDomainAsync(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;
}

DeleteDomainAsync(DomainName, CallSettings)

public virtual Task<Operation<Empty, OpMetadata>> DeleteDomainAsync(DomainName name, CallSettings callSettings = null)

Deletes a domain.

Parameters
NameDescription
nameDomainName

Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Empty, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
// Make the request
Operation<Empty, OpMetadata> response = await managedIdentitiesServiceClient.DeleteDomainAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OpMetadata> 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, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceDeleteDomainAsync(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;
}

DeleteDomainAsync(DomainName, CancellationToken)

public virtual Task<Operation<Empty, OpMetadata>> DeleteDomainAsync(DomainName name, CancellationToken cancellationToken)

Deletes a domain.

Parameters
NameDescription
nameDomainName

Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Empty, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
// Make the request
Operation<Empty, OpMetadata> response = await managedIdentitiesServiceClient.DeleteDomainAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OpMetadata> 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, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceDeleteDomainAsync(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;
}

DeleteDomainAsync(String, CallSettings)

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

Deletes a domain.

Parameters
NameDescription
nameString

Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Empty, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
// Make the request
Operation<Empty, OpMetadata> response = await managedIdentitiesServiceClient.DeleteDomainAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OpMetadata> 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, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceDeleteDomainAsync(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;
}

DeleteDomainAsync(String, CancellationToken)

public virtual Task<Operation<Empty, OpMetadata>> DeleteDomainAsync(string name, CancellationToken cancellationToken)

Deletes a domain.

Parameters
NameDescription
nameString

Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Empty, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
// Make the request
Operation<Empty, OpMetadata> response = await managedIdentitiesServiceClient.DeleteDomainAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OpMetadata> 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, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceDeleteDomainAsync(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;
}

DetachTrust(DetachTrustRequest, CallSettings)

public virtual Operation<Domain, OpMetadata> DetachTrust(DetachTrustRequest request, CallSettings callSettings = null)

Removes an AD trust.

Parameters
NameDescription
requestDetachTrustRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
DetachTrustRequest request = new DetachTrustRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
    Trust = new Trust(),
};
// Make the request
Operation<Domain, OpMetadata> response = managedIdentitiesServiceClient.DetachTrust(request);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = managedIdentitiesServiceClient.PollOnceDetachTrust(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

DetachTrust(DomainName, Trust, CallSettings)

public virtual Operation<Domain, OpMetadata> DetachTrust(DomainName name, Trust trust, CallSettings callSettings = null)

Removes an AD trust.

Parameters
NameDescription
nameDomainName

Required. The resource domain name, project name, and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

trustTrust

Required. The domain trust resource to removed.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
Trust trust = new Trust();
// Make the request
Operation<Domain, OpMetadata> response = managedIdentitiesServiceClient.DetachTrust(name, trust);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = managedIdentitiesServiceClient.PollOnceDetachTrust(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

DetachTrust(String, Trust, CallSettings)

public virtual Operation<Domain, OpMetadata> DetachTrust(string name, Trust trust, CallSettings callSettings = null)

Removes an AD trust.

Parameters
NameDescription
nameString

Required. The resource domain name, project name, and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

trustTrust

Required. The domain trust resource to removed.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
Trust trust = new Trust();
// Make the request
Operation<Domain, OpMetadata> response = managedIdentitiesServiceClient.DetachTrust(name, trust);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = managedIdentitiesServiceClient.PollOnceDetachTrust(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

DetachTrustAsync(DetachTrustRequest, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> DetachTrustAsync(DetachTrustRequest request, CallSettings callSettings = null)

Removes an AD trust.

Parameters
NameDescription
requestDetachTrustRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
DetachTrustRequest request = new DetachTrustRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
    Trust = new Trust(),
};
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.DetachTrustAsync(request);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceDetachTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

DetachTrustAsync(DetachTrustRequest, CancellationToken)

public virtual Task<Operation<Domain, OpMetadata>> DetachTrustAsync(DetachTrustRequest request, CancellationToken cancellationToken)

Removes an AD trust.

Parameters
NameDescription
requestDetachTrustRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
DetachTrustRequest request = new DetachTrustRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
    Trust = new Trust(),
};
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.DetachTrustAsync(request);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceDetachTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

DetachTrustAsync(DomainName, Trust, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> DetachTrustAsync(DomainName name, Trust trust, CallSettings callSettings = null)

Removes an AD trust.

Parameters
NameDescription
nameDomainName

Required. The resource domain name, project name, and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

trustTrust

Required. The domain trust resource to removed.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
Trust trust = new Trust();
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.DetachTrustAsync(name, trust);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceDetachTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

DetachTrustAsync(DomainName, Trust, CancellationToken)

public virtual Task<Operation<Domain, OpMetadata>> DetachTrustAsync(DomainName name, Trust trust, CancellationToken cancellationToken)

Removes an AD trust.

Parameters
NameDescription
nameDomainName

Required. The resource domain name, project name, and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

trustTrust

Required. The domain trust resource to removed.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
Trust trust = new Trust();
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.DetachTrustAsync(name, trust);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceDetachTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

DetachTrustAsync(String, Trust, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> DetachTrustAsync(string name, Trust trust, CallSettings callSettings = null)

Removes an AD trust.

Parameters
NameDescription
nameString

Required. The resource domain name, project name, and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

trustTrust

Required. The domain trust resource to removed.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
Trust trust = new Trust();
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.DetachTrustAsync(name, trust);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceDetachTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

DetachTrustAsync(String, Trust, CancellationToken)

public virtual Task<Operation<Domain, OpMetadata>> DetachTrustAsync(string name, Trust trust, CancellationToken cancellationToken)

Removes an AD trust.

Parameters
NameDescription
nameString

Required. The resource domain name, project name, and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

trustTrust

Required. The domain trust resource to removed.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
Trust trust = new Trust();
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.DetachTrustAsync(name, trust);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceDetachTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

GetDomain(DomainName, CallSettings)

public virtual Domain GetDomain(DomainName name, CallSettings callSettings = null)

Gets information about a domain.

Parameters
NameDescription
nameDomainName

Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Domain

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
// Make the request
Domain response = managedIdentitiesServiceClient.GetDomain(name);

GetDomain(GetDomainRequest, CallSettings)

public virtual Domain GetDomain(GetDomainRequest request, CallSettings callSettings = null)

Gets information about a domain.

Parameters
NameDescription
requestGetDomainRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Domain

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
GetDomainRequest request = new GetDomainRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
};
// Make the request
Domain response = managedIdentitiesServiceClient.GetDomain(request);

GetDomain(String, CallSettings)

public virtual Domain GetDomain(string name, CallSettings callSettings = null)

Gets information about a domain.

Parameters
NameDescription
nameString

Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Domain

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
// Make the request
Domain response = managedIdentitiesServiceClient.GetDomain(name);

GetDomainAsync(DomainName, CallSettings)

public virtual Task<Domain> GetDomainAsync(DomainName name, CallSettings callSettings = null)

Gets information about a domain.

Parameters
NameDescription
nameDomainName

Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Domain>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
// Make the request
Domain response = await managedIdentitiesServiceClient.GetDomainAsync(name);

GetDomainAsync(DomainName, CancellationToken)

public virtual Task<Domain> GetDomainAsync(DomainName name, CancellationToken cancellationToken)

Gets information about a domain.

Parameters
NameDescription
nameDomainName

Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Domain>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
// Make the request
Domain response = await managedIdentitiesServiceClient.GetDomainAsync(name);

GetDomainAsync(GetDomainRequest, CallSettings)

public virtual Task<Domain> GetDomainAsync(GetDomainRequest request, CallSettings callSettings = null)

Gets information about a domain.

Parameters
NameDescription
requestGetDomainRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Domain>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
GetDomainRequest request = new GetDomainRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
};
// Make the request
Domain response = await managedIdentitiesServiceClient.GetDomainAsync(request);

GetDomainAsync(GetDomainRequest, CancellationToken)

public virtual Task<Domain> GetDomainAsync(GetDomainRequest request, CancellationToken cancellationToken)

Gets information about a domain.

Parameters
NameDescription
requestGetDomainRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Domain>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
GetDomainRequest request = new GetDomainRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
};
// Make the request
Domain response = await managedIdentitiesServiceClient.GetDomainAsync(request);

GetDomainAsync(String, CallSettings)

public virtual Task<Domain> GetDomainAsync(string name, CallSettings callSettings = null)

Gets information about a domain.

Parameters
NameDescription
nameString

Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Domain>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
// Make the request
Domain response = await managedIdentitiesServiceClient.GetDomainAsync(name);

GetDomainAsync(String, CancellationToken)

public virtual Task<Domain> GetDomainAsync(string name, CancellationToken cancellationToken)

Gets information about a domain.

Parameters
NameDescription
nameString

Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Domain>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
// Make the request
Domain response = await managedIdentitiesServiceClient.GetDomainAsync(name);

ListDomains(LocationName, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListDomainsResponse, Domain> ListDomains(LocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists domains in a project.

Parameters
NameDescription
parentLocationName

Required. The resource name of the domain location using the form: projects/{project_id}/locations/global

pageTokenString

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

pageSizeNullable<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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListDomainsResponse, Domain>

A pageable sequence of Domain resources.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListDomainsResponse, Domain> response = managedIdentitiesServiceClient.ListDomains(parent);

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

ListDomains(ListDomainsRequest, CallSettings)

public virtual PagedEnumerable<ListDomainsResponse, Domain> ListDomains(ListDomainsRequest request, CallSettings callSettings = null)

Lists domains in a project.

Parameters
NameDescription
requestListDomainsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListDomainsResponse, Domain>

A pageable sequence of Domain resources.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
ListDomainsRequest request = new ListDomainsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListDomainsResponse, Domain> response = managedIdentitiesServiceClient.ListDomains(request);

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

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

public virtual PagedEnumerable<ListDomainsResponse, Domain> ListDomains(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists domains in a project.

Parameters
NameDescription
parentString

Required. The resource name of the domain location using the form: projects/{project_id}/locations/global

pageTokenString

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

pageSizeNullable<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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListDomainsResponse, Domain>

A pageable sequence of Domain resources.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListDomainsResponse, Domain> response = managedIdentitiesServiceClient.ListDomains(parent);

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

ListDomainsAsync(LocationName, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListDomainsResponse, Domain> ListDomainsAsync(LocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists domains in a project.

Parameters
NameDescription
parentLocationName

Required. The resource name of the domain location using the form: projects/{project_id}/locations/global

pageTokenString

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

pageSizeNullable<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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListDomainsResponse, Domain>

A pageable asynchronous sequence of Domain resources.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListDomainsResponse, Domain> response = managedIdentitiesServiceClient.ListDomainsAsync(parent);

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

ListDomainsAsync(ListDomainsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListDomainsResponse, Domain> ListDomainsAsync(ListDomainsRequest request, CallSettings callSettings = null)

Lists domains in a project.

Parameters
NameDescription
requestListDomainsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListDomainsResponse, Domain>

A pageable asynchronous sequence of Domain resources.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
ListDomainsRequest request = new ListDomainsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListDomainsResponse, Domain> response = managedIdentitiesServiceClient.ListDomainsAsync(request);

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

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

public virtual PagedAsyncEnumerable<ListDomainsResponse, Domain> ListDomainsAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists domains in a project.

Parameters
NameDescription
parentString

Required. The resource name of the domain location using the form: projects/{project_id}/locations/global

pageTokenString

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

pageSizeNullable<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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListDomainsResponse, Domain>

A pageable asynchronous sequence of Domain resources.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListDomainsResponse, Domain> response = managedIdentitiesServiceClient.ListDomainsAsync(parent);

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

PollOnceAttachTrust(String, CallSettings)

public virtual Operation<Domain, OpMetadata> PollOnceAttachTrust(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of AttachTrust.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The result of polling the operation.

PollOnceAttachTrustAsync(String, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> PollOnceAttachTrustAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of AttachTrust.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A task representing the result of polling the operation.

PollOnceCreateMicrosoftAdDomain(String, CallSettings)

public virtual Operation<Domain, OpMetadata> PollOnceCreateMicrosoftAdDomain(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateMicrosoftAdDomain.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The result of polling the operation.

PollOnceCreateMicrosoftAdDomainAsync(String, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> PollOnceCreateMicrosoftAdDomainAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateMicrosoftAdDomain.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A task representing the result of polling the operation.

PollOnceDeleteDomain(String, CallSettings)

public virtual Operation<Empty, OpMetadata> PollOnceDeleteDomain(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteDomain.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Empty, OpMetadata>

The result of polling the operation.

PollOnceDeleteDomainAsync(String, CallSettings)

public virtual Task<Operation<Empty, OpMetadata>> PollOnceDeleteDomainAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteDomain.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Empty, OpMetadata>>

A task representing the result of polling the operation.

PollOnceDetachTrust(String, CallSettings)

public virtual Operation<Domain, OpMetadata> PollOnceDetachTrust(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DetachTrust.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The result of polling the operation.

PollOnceDetachTrustAsync(String, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> PollOnceDetachTrustAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DetachTrust.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A task representing the result of polling the operation.

PollOnceReconfigureTrust(String, CallSettings)

public virtual Operation<Domain, OpMetadata> PollOnceReconfigureTrust(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of ReconfigureTrust.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The result of polling the operation.

PollOnceReconfigureTrustAsync(String, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> PollOnceReconfigureTrustAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of ReconfigureTrust.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A task representing the result of polling the operation.

PollOnceUpdateDomain(String, CallSettings)

public virtual Operation<Domain, OpMetadata> PollOnceUpdateDomain(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateDomain.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The result of polling the operation.

PollOnceUpdateDomainAsync(String, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> PollOnceUpdateDomainAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateDomain.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A task representing the result of polling the operation.

PollOnceValidateTrust(String, CallSettings)

public virtual Operation<Domain, OpMetadata> PollOnceValidateTrust(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of ValidateTrust.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The result of polling the operation.

PollOnceValidateTrustAsync(String, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> PollOnceValidateTrustAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of ValidateTrust.

Parameters
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A task representing the result of polling the operation.

ReconfigureTrust(DomainName, String, IEnumerable<String>, CallSettings)

public virtual Operation<Domain, OpMetadata> ReconfigureTrust(DomainName name, string targetDomainName, IEnumerable<string> targetDnsIpAddresses, CallSettings callSettings = null)

Updates the DNS conditional forwarder.

Parameters
NameDescription
nameDomainName

Required. The resource domain name, project name and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

targetDomainNameString

Required. The fully-qualified target domain name which will be in trust with current domain.

targetDnsIpAddressesIEnumerable<String>

Required. The target DNS server IP addresses to resolve the remote domain involved in the trust.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
string targetDomainName = "";
IEnumerable<string> targetDnsIpAddresses = new string[] { "", };
// Make the request
Operation<Domain, OpMetadata> response = managedIdentitiesServiceClient.ReconfigureTrust(name, targetDomainName, targetDnsIpAddresses);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = managedIdentitiesServiceClient.PollOnceReconfigureTrust(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

ReconfigureTrust(ReconfigureTrustRequest, CallSettings)

public virtual Operation<Domain, OpMetadata> ReconfigureTrust(ReconfigureTrustRequest request, CallSettings callSettings = null)

Updates the DNS conditional forwarder.

Parameters
NameDescription
requestReconfigureTrustRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
ReconfigureTrustRequest request = new ReconfigureTrustRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
    TargetDomainName = "",
    TargetDnsIpAddresses = { "", },
};
// Make the request
Operation<Domain, OpMetadata> response = managedIdentitiesServiceClient.ReconfigureTrust(request);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = managedIdentitiesServiceClient.PollOnceReconfigureTrust(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

ReconfigureTrust(String, String, IEnumerable<String>, CallSettings)

public virtual Operation<Domain, OpMetadata> ReconfigureTrust(string name, string targetDomainName, IEnumerable<string> targetDnsIpAddresses, CallSettings callSettings = null)

Updates the DNS conditional forwarder.

Parameters
NameDescription
nameString

Required. The resource domain name, project name and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

targetDomainNameString

Required. The fully-qualified target domain name which will be in trust with current domain.

targetDnsIpAddressesIEnumerable<String>

Required. The target DNS server IP addresses to resolve the remote domain involved in the trust.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
string targetDomainName = "";
IEnumerable<string> targetDnsIpAddresses = new string[] { "", };
// Make the request
Operation<Domain, OpMetadata> response = managedIdentitiesServiceClient.ReconfigureTrust(name, targetDomainName, targetDnsIpAddresses);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = managedIdentitiesServiceClient.PollOnceReconfigureTrust(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

ReconfigureTrustAsync(DomainName, String, IEnumerable<String>, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> ReconfigureTrustAsync(DomainName name, string targetDomainName, IEnumerable<string> targetDnsIpAddresses, CallSettings callSettings = null)

Updates the DNS conditional forwarder.

Parameters
NameDescription
nameDomainName

Required. The resource domain name, project name and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

targetDomainNameString

Required. The fully-qualified target domain name which will be in trust with current domain.

targetDnsIpAddressesIEnumerable<String>

Required. The target DNS server IP addresses to resolve the remote domain involved in the trust.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
string targetDomainName = "";
IEnumerable<string> targetDnsIpAddresses = new string[] { "", };
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.ReconfigureTrustAsync(name, targetDomainName, targetDnsIpAddresses);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceReconfigureTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

ReconfigureTrustAsync(DomainName, String, IEnumerable<String>, CancellationToken)

public virtual Task<Operation<Domain, OpMetadata>> ReconfigureTrustAsync(DomainName name, string targetDomainName, IEnumerable<string> targetDnsIpAddresses, CancellationToken cancellationToken)

Updates the DNS conditional forwarder.

Parameters
NameDescription
nameDomainName

Required. The resource domain name, project name and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

targetDomainNameString

Required. The fully-qualified target domain name which will be in trust with current domain.

targetDnsIpAddressesIEnumerable<String>

Required. The target DNS server IP addresses to resolve the remote domain involved in the trust.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
string targetDomainName = "";
IEnumerable<string> targetDnsIpAddresses = new string[] { "", };
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.ReconfigureTrustAsync(name, targetDomainName, targetDnsIpAddresses);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceReconfigureTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

ReconfigureTrustAsync(ReconfigureTrustRequest, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> ReconfigureTrustAsync(ReconfigureTrustRequest request, CallSettings callSettings = null)

Updates the DNS conditional forwarder.

Parameters
NameDescription
requestReconfigureTrustRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
ReconfigureTrustRequest request = new ReconfigureTrustRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
    TargetDomainName = "",
    TargetDnsIpAddresses = { "", },
};
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.ReconfigureTrustAsync(request);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceReconfigureTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

ReconfigureTrustAsync(ReconfigureTrustRequest, CancellationToken)

public virtual Task<Operation<Domain, OpMetadata>> ReconfigureTrustAsync(ReconfigureTrustRequest request, CancellationToken cancellationToken)

Updates the DNS conditional forwarder.

Parameters
NameDescription
requestReconfigureTrustRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
ReconfigureTrustRequest request = new ReconfigureTrustRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
    TargetDomainName = "",
    TargetDnsIpAddresses = { "", },
};
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.ReconfigureTrustAsync(request);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceReconfigureTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

ReconfigureTrustAsync(String, String, IEnumerable<String>, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> ReconfigureTrustAsync(string name, string targetDomainName, IEnumerable<string> targetDnsIpAddresses, CallSettings callSettings = null)

Updates the DNS conditional forwarder.

Parameters
NameDescription
nameString

Required. The resource domain name, project name and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

targetDomainNameString

Required. The fully-qualified target domain name which will be in trust with current domain.

targetDnsIpAddressesIEnumerable<String>

Required. The target DNS server IP addresses to resolve the remote domain involved in the trust.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
string targetDomainName = "";
IEnumerable<string> targetDnsIpAddresses = new string[] { "", };
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.ReconfigureTrustAsync(name, targetDomainName, targetDnsIpAddresses);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceReconfigureTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

ReconfigureTrustAsync(String, String, IEnumerable<String>, CancellationToken)

public virtual Task<Operation<Domain, OpMetadata>> ReconfigureTrustAsync(string name, string targetDomainName, IEnumerable<string> targetDnsIpAddresses, CancellationToken cancellationToken)

Updates the DNS conditional forwarder.

Parameters
NameDescription
nameString

Required. The resource domain name, project name and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

targetDomainNameString

Required. The fully-qualified target domain name which will be in trust with current domain.

targetDnsIpAddressesIEnumerable<String>

Required. The target DNS server IP addresses to resolve the remote domain involved in the trust.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
string targetDomainName = "";
IEnumerable<string> targetDnsIpAddresses = new string[] { "", };
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.ReconfigureTrustAsync(name, targetDomainName, targetDnsIpAddresses);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceReconfigureTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

ResetAdminPassword(DomainName, CallSettings)

public virtual ResetAdminPasswordResponse ResetAdminPassword(DomainName name, CallSettings callSettings = null)

Resets a domain's administrator password.

Parameters
NameDescription
nameDomainName

Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ResetAdminPasswordResponse

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
// Make the request
ResetAdminPasswordResponse response = managedIdentitiesServiceClient.ResetAdminPassword(name);

ResetAdminPassword(ResetAdminPasswordRequest, CallSettings)

public virtual ResetAdminPasswordResponse ResetAdminPassword(ResetAdminPasswordRequest request, CallSettings callSettings = null)

Resets a domain's administrator password.

Parameters
NameDescription
requestResetAdminPasswordRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ResetAdminPasswordResponse

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
ResetAdminPasswordRequest request = new ResetAdminPasswordRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
};
// Make the request
ResetAdminPasswordResponse response = managedIdentitiesServiceClient.ResetAdminPassword(request);

ResetAdminPassword(String, CallSettings)

public virtual ResetAdminPasswordResponse ResetAdminPassword(string name, CallSettings callSettings = null)

Resets a domain's administrator password.

Parameters
NameDescription
nameString

Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ResetAdminPasswordResponse

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
// Make the request
ResetAdminPasswordResponse response = managedIdentitiesServiceClient.ResetAdminPassword(name);

ResetAdminPasswordAsync(DomainName, CallSettings)

public virtual Task<ResetAdminPasswordResponse> ResetAdminPasswordAsync(DomainName name, CallSettings callSettings = null)

Resets a domain's administrator password.

Parameters
NameDescription
nameDomainName

Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ResetAdminPasswordResponse>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
// Make the request
ResetAdminPasswordResponse response = await managedIdentitiesServiceClient.ResetAdminPasswordAsync(name);

ResetAdminPasswordAsync(DomainName, CancellationToken)

public virtual Task<ResetAdminPasswordResponse> ResetAdminPasswordAsync(DomainName name, CancellationToken cancellationToken)

Resets a domain's administrator password.

Parameters
NameDescription
nameDomainName

Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ResetAdminPasswordResponse>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
// Make the request
ResetAdminPasswordResponse response = await managedIdentitiesServiceClient.ResetAdminPasswordAsync(name);

ResetAdminPasswordAsync(ResetAdminPasswordRequest, CallSettings)

public virtual Task<ResetAdminPasswordResponse> ResetAdminPasswordAsync(ResetAdminPasswordRequest request, CallSettings callSettings = null)

Resets a domain's administrator password.

Parameters
NameDescription
requestResetAdminPasswordRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ResetAdminPasswordResponse>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
ResetAdminPasswordRequest request = new ResetAdminPasswordRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
};
// Make the request
ResetAdminPasswordResponse response = await managedIdentitiesServiceClient.ResetAdminPasswordAsync(request);

ResetAdminPasswordAsync(ResetAdminPasswordRequest, CancellationToken)

public virtual Task<ResetAdminPasswordResponse> ResetAdminPasswordAsync(ResetAdminPasswordRequest request, CancellationToken cancellationToken)

Resets a domain's administrator password.

Parameters
NameDescription
requestResetAdminPasswordRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ResetAdminPasswordResponse>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
ResetAdminPasswordRequest request = new ResetAdminPasswordRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
};
// Make the request
ResetAdminPasswordResponse response = await managedIdentitiesServiceClient.ResetAdminPasswordAsync(request);

ResetAdminPasswordAsync(String, CallSettings)

public virtual Task<ResetAdminPasswordResponse> ResetAdminPasswordAsync(string name, CallSettings callSettings = null)

Resets a domain's administrator password.

Parameters
NameDescription
nameString

Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ResetAdminPasswordResponse>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
// Make the request
ResetAdminPasswordResponse response = await managedIdentitiesServiceClient.ResetAdminPasswordAsync(name);

ResetAdminPasswordAsync(String, CancellationToken)

public virtual Task<ResetAdminPasswordResponse> ResetAdminPasswordAsync(string name, CancellationToken cancellationToken)

Resets a domain's administrator password.

Parameters
NameDescription
nameString

Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ResetAdminPasswordResponse>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
// Make the request
ResetAdminPasswordResponse response = await managedIdentitiesServiceClient.ResetAdminPasswordAsync(name);

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
TypeDescription
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.

UpdateDomain(Domain, FieldMask, CallSettings)

public virtual Operation<Domain, OpMetadata> UpdateDomain(Domain domain, FieldMask updateMask, CallSettings callSettings = null)

Updates the metadata and configuration of a domain.

Parameters
NameDescription
domainDomain

Required. Domain message with updated fields. Only supported fields specified in update_mask are updated.

updateMaskFieldMask

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include fields from [Domain][google.cloud.managedidentities.v1.Domain]:

  • labels
  • locations
  • authorized_networks
callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
Domain domain = new Domain();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Domain, OpMetadata> response = managedIdentitiesServiceClient.UpdateDomain(domain, updateMask);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = managedIdentitiesServiceClient.PollOnceUpdateDomain(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

UpdateDomain(UpdateDomainRequest, CallSettings)

public virtual Operation<Domain, OpMetadata> UpdateDomain(UpdateDomainRequest request, CallSettings callSettings = null)

Updates the metadata and configuration of a domain.

Parameters
NameDescription
requestUpdateDomainRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
UpdateDomainRequest request = new UpdateDomainRequest
{
    UpdateMask = new FieldMask(),
    Domain = new Domain(),
};
// Make the request
Operation<Domain, OpMetadata> response = managedIdentitiesServiceClient.UpdateDomain(request);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = managedIdentitiesServiceClient.PollOnceUpdateDomain(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

UpdateDomainAsync(Domain, FieldMask, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> UpdateDomainAsync(Domain domain, FieldMask updateMask, CallSettings callSettings = null)

Updates the metadata and configuration of a domain.

Parameters
NameDescription
domainDomain

Required. Domain message with updated fields. Only supported fields specified in update_mask are updated.

updateMaskFieldMask

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include fields from [Domain][google.cloud.managedidentities.v1.Domain]:

  • labels
  • locations
  • authorized_networks
callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
Domain domain = new Domain();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.UpdateDomainAsync(domain, updateMask);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceUpdateDomainAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

UpdateDomainAsync(Domain, FieldMask, CancellationToken)

public virtual Task<Operation<Domain, OpMetadata>> UpdateDomainAsync(Domain domain, FieldMask updateMask, CancellationToken cancellationToken)

Updates the metadata and configuration of a domain.

Parameters
NameDescription
domainDomain

Required. Domain message with updated fields. Only supported fields specified in update_mask are updated.

updateMaskFieldMask

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include fields from [Domain][google.cloud.managedidentities.v1.Domain]:

  • labels
  • locations
  • authorized_networks
cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
Domain domain = new Domain();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.UpdateDomainAsync(domain, updateMask);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceUpdateDomainAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

UpdateDomainAsync(UpdateDomainRequest, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> UpdateDomainAsync(UpdateDomainRequest request, CallSettings callSettings = null)

Updates the metadata and configuration of a domain.

Parameters
NameDescription
requestUpdateDomainRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateDomainRequest request = new UpdateDomainRequest
{
    UpdateMask = new FieldMask(),
    Domain = new Domain(),
};
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.UpdateDomainAsync(request);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceUpdateDomainAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

UpdateDomainAsync(UpdateDomainRequest, CancellationToken)

public virtual Task<Operation<Domain, OpMetadata>> UpdateDomainAsync(UpdateDomainRequest request, CancellationToken cancellationToken)

Updates the metadata and configuration of a domain.

Parameters
NameDescription
requestUpdateDomainRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateDomainRequest request = new UpdateDomainRequest
{
    UpdateMask = new FieldMask(),
    Domain = new Domain(),
};
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.UpdateDomainAsync(request);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceUpdateDomainAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

ValidateTrust(DomainName, Trust, CallSettings)

public virtual Operation<Domain, OpMetadata> ValidateTrust(DomainName name, Trust trust, CallSettings callSettings = null)

Validates a trust state, that the target domain is reachable, and that the target domain is able to accept incoming trust requests.

Parameters
NameDescription
nameDomainName

Required. The resource domain name, project name, and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

trustTrust

Required. The domain trust to validate trust state for.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
Trust trust = new Trust();
// Make the request
Operation<Domain, OpMetadata> response = managedIdentitiesServiceClient.ValidateTrust(name, trust);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = managedIdentitiesServiceClient.PollOnceValidateTrust(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

ValidateTrust(ValidateTrustRequest, CallSettings)

public virtual Operation<Domain, OpMetadata> ValidateTrust(ValidateTrustRequest request, CallSettings callSettings = null)

Validates a trust state, that the target domain is reachable, and that the target domain is able to accept incoming trust requests.

Parameters
NameDescription
requestValidateTrustRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
ValidateTrustRequest request = new ValidateTrustRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
    Trust = new Trust(),
};
// Make the request
Operation<Domain, OpMetadata> response = managedIdentitiesServiceClient.ValidateTrust(request);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = managedIdentitiesServiceClient.PollOnceValidateTrust(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

ValidateTrust(String, Trust, CallSettings)

public virtual Operation<Domain, OpMetadata> ValidateTrust(string name, Trust trust, CallSettings callSettings = null)

Validates a trust state, that the target domain is reachable, and that the target domain is able to accept incoming trust requests.

Parameters
NameDescription
nameString

Required. The resource domain name, project name, and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

trustTrust

Required. The domain trust to validate trust state for.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.LongRunning.Operation<Domain, OpMetadata>

The RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = ManagedIdentitiesServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
Trust trust = new Trust();
// Make the request
Operation<Domain, OpMetadata> response = managedIdentitiesServiceClient.ValidateTrust(name, trust);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = managedIdentitiesServiceClient.PollOnceValidateTrust(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

ValidateTrustAsync(DomainName, Trust, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> ValidateTrustAsync(DomainName name, Trust trust, CallSettings callSettings = null)

Validates a trust state, that the target domain is reachable, and that the target domain is able to accept incoming trust requests.

Parameters
NameDescription
nameDomainName

Required. The resource domain name, project name, and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

trustTrust

Required. The domain trust to validate trust state for.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
Trust trust = new Trust();
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.ValidateTrustAsync(name, trust);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceValidateTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

ValidateTrustAsync(DomainName, Trust, CancellationToken)

public virtual Task<Operation<Domain, OpMetadata>> ValidateTrustAsync(DomainName name, Trust trust, CancellationToken cancellationToken)

Validates a trust state, that the target domain is reachable, and that the target domain is able to accept incoming trust requests.

Parameters
NameDescription
nameDomainName

Required. The resource domain name, project name, and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

trustTrust

Required. The domain trust to validate trust state for.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
DomainName name = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]");
Trust trust = new Trust();
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.ValidateTrustAsync(name, trust);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceValidateTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

ValidateTrustAsync(ValidateTrustRequest, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> ValidateTrustAsync(ValidateTrustRequest request, CallSettings callSettings = null)

Validates a trust state, that the target domain is reachable, and that the target domain is able to accept incoming trust requests.

Parameters
NameDescription
requestValidateTrustRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
ValidateTrustRequest request = new ValidateTrustRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
    Trust = new Trust(),
};
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.ValidateTrustAsync(request);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceValidateTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

ValidateTrustAsync(ValidateTrustRequest, CancellationToken)

public virtual Task<Operation<Domain, OpMetadata>> ValidateTrustAsync(ValidateTrustRequest request, CancellationToken cancellationToken)

Validates a trust state, that the target domain is reachable, and that the target domain is able to accept incoming trust requests.

Parameters
NameDescription
requestValidateTrustRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
ValidateTrustRequest request = new ValidateTrustRequest
{
    DomainName = DomainName.FromProjectLocationDomain("[PROJECT]", "[LOCATION]", "[DOMAIN]"),
    Trust = new Trust(),
};
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.ValidateTrustAsync(request);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceValidateTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

ValidateTrustAsync(String, Trust, CallSettings)

public virtual Task<Operation<Domain, OpMetadata>> ValidateTrustAsync(string name, Trust trust, CallSettings callSettings = null)

Validates a trust state, that the target domain is reachable, and that the target domain is able to accept incoming trust requests.

Parameters
NameDescription
nameString

Required. The resource domain name, project name, and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

trustTrust

Required. The domain trust to validate trust state for.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
Trust trust = new Trust();
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.ValidateTrustAsync(name, trust);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceValidateTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}

ValidateTrustAsync(String, Trust, CancellationToken)

public virtual Task<Operation<Domain, OpMetadata>> ValidateTrustAsync(string name, Trust trust, CancellationToken cancellationToken)

Validates a trust state, that the target domain is reachable, and that the target domain is able to accept incoming trust requests.

Parameters
NameDescription
nameString

Required. The resource domain name, project name, and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

trustTrust

Required. The domain trust to validate trust state for.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Google.LongRunning.Operation<Domain, OpMetadata>>

A Task containing the RPC response.

Example
// Create client
ManagedIdentitiesServiceClient managedIdentitiesServiceClient = await ManagedIdentitiesServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/domains/[DOMAIN]";
Trust trust = new Trust();
// Make the request
Operation<Domain, OpMetadata> response = await managedIdentitiesServiceClient.ValidateTrustAsync(name, trust);

// Poll until the returned long-running operation is complete
Operation<Domain, OpMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Domain 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<Domain, OpMetadata> retrievedResponse = await managedIdentitiesServiceClient.PollOnceValidateTrustAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Domain retrievedResult = retrievedResponse.Result;
}