/// <summary>Snippet for DeletePhoneNumberInstance</summary> public void DeletePhoneNumberInstance() { // Snippet: DeletePhoneNumberInstance(string, CallSettings) // Create client PhoneNumberInstancesClient phoneNumberInstancesClient = PhoneNumberInstancesClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/phoneNumberInstances/[PHONE_NUMBER_INSTANCE]"; // Make the request PhoneNumberInstance response = phoneNumberInstancesClient.DeletePhoneNumberInstance(name); // End snippet }
/// <summary>Snippet for DeletePhoneNumberInstance</summary> public void DeletePhoneNumberInstanceResourceNames() { // Snippet: DeletePhoneNumberInstance(PhoneNumberInstanceName, CallSettings) // Create client PhoneNumberInstancesClient phoneNumberInstancesClient = PhoneNumberInstancesClient.Create(); // Initialize request argument(s) PhoneNumberInstanceName name = PhoneNumberInstanceName.FromProjectPhoneNumberInstance("[PROJECT]", "[PHONE_NUMBER_INSTANCE]"); // Make the request PhoneNumberInstance response = phoneNumberInstancesClient.DeletePhoneNumberInstance(name); // End snippet }
/// <summary>Snippet for CreatePhoneNumberInstance</summary> public void CreatePhoneNumberInstanceResourceNames() { // Snippet: CreatePhoneNumberInstance(ProjectName, PhoneNumberInstance, CallSettings) // Create client PhoneNumberInstancesClient phoneNumberInstancesClient = PhoneNumberInstancesClient.Create(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); PhoneNumberInstance phoneNumberInstance = new PhoneNumberInstance(); // Make the request PhoneNumberInstance response = phoneNumberInstancesClient.CreatePhoneNumberInstance(parent, phoneNumberInstance); // End snippet }
/// <summary>Snippet for CreatePhoneNumberInstance</summary> public void CreatePhoneNumberInstance() { // Snippet: CreatePhoneNumberInstance(string, PhoneNumberInstance, CallSettings) // Create client PhoneNumberInstancesClient phoneNumberInstancesClient = PhoneNumberInstancesClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; PhoneNumberInstance phoneNumberInstance = new PhoneNumberInstance(); // Make the request PhoneNumberInstance response = phoneNumberInstancesClient.CreatePhoneNumberInstance(parent, phoneNumberInstance); // End snippet }
/// <summary>Snippet for UpdatePhoneNumberInstance</summary> public void UpdatePhoneNumberInstance() { // Snippet: UpdatePhoneNumberInstance(string, PhoneNumberInstance, FieldMask, CallSettings) // Create client PhoneNumberInstancesClient phoneNumberInstancesClient = PhoneNumberInstancesClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/phoneNumberInstances/[PHONE_NUMBER_INSTANCE]"; PhoneNumberInstance phoneNumberInstance = new PhoneNumberInstance(); FieldMask updateMask = new FieldMask(); // Make the request PhoneNumberInstance response = phoneNumberInstancesClient.UpdatePhoneNumberInstance(name, phoneNumberInstance, updateMask); // End snippet }
/// <summary>Snippet for UpdatePhoneNumberInstance</summary> public void UpdatePhoneNumberInstanceResourceNames() { // Snippet: UpdatePhoneNumberInstance(PhoneNumberInstanceName, PhoneNumberInstance, FieldMask, CallSettings) // Create client PhoneNumberInstancesClient phoneNumberInstancesClient = PhoneNumberInstancesClient.Create(); // Initialize request argument(s) PhoneNumberInstanceName name = PhoneNumberInstanceName.FromProjectPhoneNumberInstance("[PROJECT]", "[PHONE_NUMBER_INSTANCE]"); PhoneNumberInstance phoneNumberInstance = new PhoneNumberInstance(); FieldMask updateMask = new FieldMask(); // Make the request PhoneNumberInstance response = phoneNumberInstancesClient.UpdatePhoneNumberInstance(name, phoneNumberInstance, updateMask); // End snippet }
/// <summary>Snippet for DeletePhoneNumberInstanceAsync</summary> public async Task DeletePhoneNumberInstanceResourceNamesAsync() { // Snippet: DeletePhoneNumberInstanceAsync(PhoneNumberInstanceName, CallSettings) // Additional: DeletePhoneNumberInstanceAsync(PhoneNumberInstanceName, CancellationToken) // Create client PhoneNumberInstancesClient phoneNumberInstancesClient = await PhoneNumberInstancesClient.CreateAsync(); // Initialize request argument(s) PhoneNumberInstanceName name = PhoneNumberInstanceName.FromProjectPhoneNumberInstance("[PROJECT]", "[PHONE_NUMBER_INSTANCE]"); // Make the request PhoneNumberInstance response = await phoneNumberInstancesClient.DeletePhoneNumberInstanceAsync(name); // End snippet }
/// <summary>Snippet for DeletePhoneNumberInstanceAsync</summary> public async Task DeletePhoneNumberInstanceAsync() { // Snippet: DeletePhoneNumberInstanceAsync(string, CallSettings) // Additional: DeletePhoneNumberInstanceAsync(string, CancellationToken) // Create client PhoneNumberInstancesClient phoneNumberInstancesClient = await PhoneNumberInstancesClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/phoneNumberInstances/[PHONE_NUMBER_INSTANCE]"; // Make the request PhoneNumberInstance response = await phoneNumberInstancesClient.DeletePhoneNumberInstanceAsync(name); // End snippet }
/// <summary>Snippet for DeletePhoneNumberInstance</summary> public void DeletePhoneNumberInstanceRequestObject() { // Snippet: DeletePhoneNumberInstance(DeletePhoneNumberInstanceRequest, CallSettings) // Create client PhoneNumberInstancesClient phoneNumberInstancesClient = PhoneNumberInstancesClient.Create(); // Initialize request argument(s) DeletePhoneNumberInstanceRequest request = new DeletePhoneNumberInstanceRequest { PhoneNumberInstanceName = PhoneNumberInstanceName.FromProjectPhoneNumberInstance("[PROJECT]", "[PHONE_NUMBER_INSTANCE]"), }; // Make the request PhoneNumberInstance response = phoneNumberInstancesClient.DeletePhoneNumberInstance(request); // End snippet }
/// <summary>Snippet for CreatePhoneNumberInstanceAsync</summary> public async Task CreatePhoneNumberInstanceAsync() { // Snippet: CreatePhoneNumberInstanceAsync(string, PhoneNumberInstance, CallSettings) // Additional: CreatePhoneNumberInstanceAsync(string, PhoneNumberInstance, CancellationToken) // Create client PhoneNumberInstancesClient phoneNumberInstancesClient = await PhoneNumberInstancesClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; PhoneNumberInstance phoneNumberInstance = new PhoneNumberInstance(); // Make the request PhoneNumberInstance response = await phoneNumberInstancesClient.CreatePhoneNumberInstanceAsync(parent, phoneNumberInstance); // End snippet }
/// <summary>Snippet for CreatePhoneNumberInstance</summary> public void CreatePhoneNumberInstanceRequestObject() { // Snippet: CreatePhoneNumberInstance(CreatePhoneNumberInstanceRequest, CallSettings) // Create client PhoneNumberInstancesClient phoneNumberInstancesClient = PhoneNumberInstancesClient.Create(); // Initialize request argument(s) CreatePhoneNumberInstanceRequest request = new CreatePhoneNumberInstanceRequest { ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), PhoneNumberInstance = new PhoneNumberInstance(), }; // Make the request PhoneNumberInstance response = phoneNumberInstancesClient.CreatePhoneNumberInstance(request); // End snippet }
/// <summary>Snippet for CreatePhoneNumberInstanceAsync</summary> public async Task CreatePhoneNumberInstanceResourceNamesAsync() { // Snippet: CreatePhoneNumberInstanceAsync(ProjectName, PhoneNumberInstance, CallSettings) // Additional: CreatePhoneNumberInstanceAsync(ProjectName, PhoneNumberInstance, CancellationToken) // Create client PhoneNumberInstancesClient phoneNumberInstancesClient = await PhoneNumberInstancesClient.CreateAsync(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); PhoneNumberInstance phoneNumberInstance = new PhoneNumberInstance(); // Make the request PhoneNumberInstance response = await phoneNumberInstancesClient.CreatePhoneNumberInstanceAsync(parent, phoneNumberInstance); // End snippet }
/// <summary>Snippet for UpdatePhoneNumberInstanceAsync</summary> public async Task UpdatePhoneNumberInstanceResourceNamesAsync() { // Snippet: UpdatePhoneNumberInstanceAsync(PhoneNumberInstanceName, PhoneNumberInstance, FieldMask, CallSettings) // Additional: UpdatePhoneNumberInstanceAsync(PhoneNumberInstanceName, PhoneNumberInstance, FieldMask, CancellationToken) // Create client PhoneNumberInstancesClient phoneNumberInstancesClient = await PhoneNumberInstancesClient.CreateAsync(); // Initialize request argument(s) PhoneNumberInstanceName name = PhoneNumberInstanceName.FromProjectPhoneNumberInstance("[PROJECT]", "[PHONE_NUMBER_INSTANCE]"); PhoneNumberInstance phoneNumberInstance = new PhoneNumberInstance(); FieldMask updateMask = new FieldMask(); // Make the request PhoneNumberInstance response = await phoneNumberInstancesClient.UpdatePhoneNumberInstanceAsync(name, phoneNumberInstance, updateMask); // End snippet }
/// <summary>Snippet for UpdatePhoneNumberInstanceAsync</summary> public async Task UpdatePhoneNumberInstanceAsync() { // Snippet: UpdatePhoneNumberInstanceAsync(string, PhoneNumberInstance, FieldMask, CallSettings) // Additional: UpdatePhoneNumberInstanceAsync(string, PhoneNumberInstance, FieldMask, CancellationToken) // Create client PhoneNumberInstancesClient phoneNumberInstancesClient = await PhoneNumberInstancesClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/phoneNumberInstances/[PHONE_NUMBER_INSTANCE]"; PhoneNumberInstance phoneNumberInstance = new PhoneNumberInstance(); FieldMask updateMask = new FieldMask(); // Make the request PhoneNumberInstance response = await phoneNumberInstancesClient.UpdatePhoneNumberInstanceAsync(name, phoneNumberInstance, updateMask); // End snippet }
/// <summary>Snippet for GetPhoneNumberInstanceAsync</summary> public async Task GetPhoneNumberInstanceRequestObjectAsync() { // Snippet: GetPhoneNumberInstanceAsync(GetPhoneNumberInstanceRequest, CallSettings) // Additional: GetPhoneNumberInstanceAsync(GetPhoneNumberInstanceRequest, CancellationToken) // Create client PhoneNumberInstancesClient phoneNumberInstancesClient = await PhoneNumberInstancesClient.CreateAsync(); // Initialize request argument(s) GetPhoneNumberInstanceRequest request = new GetPhoneNumberInstanceRequest { PhoneNumberInstanceName = PhoneNumberInstanceName.FromProjectPhoneNumberInstance("[PROJECT]", "[PHONE_NUMBER_INSTANCE]"), }; // Make the request PhoneNumberInstance response = await phoneNumberInstancesClient.GetPhoneNumberInstanceAsync(request); // End snippet }
/// <summary>Snippet for CreatePhoneNumberInstanceAsync</summary> public async Task CreatePhoneNumberInstanceRequestObjectAsync() { // Snippet: CreatePhoneNumberInstanceAsync(CreatePhoneNumberInstanceRequest, CallSettings) // Additional: CreatePhoneNumberInstanceAsync(CreatePhoneNumberInstanceRequest, CancellationToken) // Create client PhoneNumberInstancesClient phoneNumberInstancesClient = await PhoneNumberInstancesClient.CreateAsync(); // Initialize request argument(s) CreatePhoneNumberInstanceRequest request = new CreatePhoneNumberInstanceRequest { ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), PhoneNumberInstance = new PhoneNumberInstance(), }; // Make the request PhoneNumberInstance response = await phoneNumberInstancesClient.CreatePhoneNumberInstanceAsync(request); // End snippet }