示例#1
0
        /// <summary>Snippet for MutateCustomerUserAccessInvitationAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task MutateCustomerUserAccessInvitationRequestObjectAsync()
        {
            // Create client
            CustomerUserAccessInvitationServiceClient customerUserAccessInvitationServiceClient = await CustomerUserAccessInvitationServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateCustomerUserAccessInvitationRequest request = new MutateCustomerUserAccessInvitationRequest
            {
                CustomerId = "",
                Operation  = new CustomerUserAccessInvitationOperation(),
            };
            // Make the request
            MutateCustomerUserAccessInvitationResponse response = await customerUserAccessInvitationServiceClient.MutateCustomerUserAccessInvitationAsync(request);
        }
示例#2
0
        /// <summary>Snippet for GetCustomerUserAccessInvitationAsync</summary>
        public async Task GetCustomerUserAccessInvitationAsync()
        {
            // Snippet: GetCustomerUserAccessInvitationAsync(string, CallSettings)
            // Additional: GetCustomerUserAccessInvitationAsync(string, CancellationToken)
            // Create client
            CustomerUserAccessInvitationServiceClient customerUserAccessInvitationServiceClient = await CustomerUserAccessInvitationServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/customerUserAccessInvitations/[INVITATION_ID]";
            // Make the request
            CustomerUserAccessInvitation response = await customerUserAccessInvitationServiceClient.GetCustomerUserAccessInvitationAsync(resourceName);

            // End snippet
        }
示例#3
0
        /// <summary>Snippet for MutateCustomerUserAccessInvitationAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task MutateCustomerUserAccessInvitationAsync()
        {
            // Create client
            CustomerUserAccessInvitationServiceClient customerUserAccessInvitationServiceClient = await CustomerUserAccessInvitationServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            CustomerUserAccessInvitationOperation operation = new CustomerUserAccessInvitationOperation();
            // Make the request
            MutateCustomerUserAccessInvitationResponse response = await customerUserAccessInvitationServiceClient.MutateCustomerUserAccessInvitationAsync(customerId, operation);
        }
示例#4
0
        /// <summary>Snippet for GetCustomerUserAccessInvitationAsync</summary>
        public async Task GetCustomerUserAccessInvitationRequestObjectAsync()
        {
            // Snippet: GetCustomerUserAccessInvitationAsync(GetCustomerUserAccessInvitationRequest, CallSettings)
            // Additional: GetCustomerUserAccessInvitationAsync(GetCustomerUserAccessInvitationRequest, CancellationToken)
            // Create client
            CustomerUserAccessInvitationServiceClient customerUserAccessInvitationServiceClient = await CustomerUserAccessInvitationServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetCustomerUserAccessInvitationRequest request = new GetCustomerUserAccessInvitationRequest
            {
                ResourceNameAsCustomerUserAccessInvitationName = CustomerUserAccessInvitationName.FromCustomerInvitation("[CUSTOMER_ID]", "[INVITATION_ID]"),
            };
            // Make the request
            CustomerUserAccessInvitation response = await customerUserAccessInvitationServiceClient.GetCustomerUserAccessInvitationAsync(request);

            // End snippet
        }
示例#5
0
        /// <summary>Snippet for MutateCustomerUserAccessInvitationAsync</summary>
        public async Task MutateCustomerUserAccessInvitationAsync()
        {
            // Snippet: MutateCustomerUserAccessInvitationAsync(string, CustomerUserAccessInvitationOperation, CallSettings)
            // Additional: MutateCustomerUserAccessInvitationAsync(string, CustomerUserAccessInvitationOperation, CancellationToken)
            // Create client
            CustomerUserAccessInvitationServiceClient customerUserAccessInvitationServiceClient = await CustomerUserAccessInvitationServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            CustomerUserAccessInvitationOperation operation = new CustomerUserAccessInvitationOperation();
            // Make the request
            MutateCustomerUserAccessInvitationResponse response = await customerUserAccessInvitationServiceClient.MutateCustomerUserAccessInvitationAsync(customerId, operation);

            // End snippet
        }
示例#6
0
        /// <summary>Snippet for MutateCustomerUserAccessInvitationAsync</summary>
        public async Task MutateCustomerUserAccessInvitationRequestObjectAsync()
        {
            // Snippet: MutateCustomerUserAccessInvitationAsync(MutateCustomerUserAccessInvitationRequest, CallSettings)
            // Additional: MutateCustomerUserAccessInvitationAsync(MutateCustomerUserAccessInvitationRequest, CancellationToken)
            // Create client
            CustomerUserAccessInvitationServiceClient customerUserAccessInvitationServiceClient = await CustomerUserAccessInvitationServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateCustomerUserAccessInvitationRequest request = new MutateCustomerUserAccessInvitationRequest
            {
                CustomerId = "",
                Operation  = new CustomerUserAccessInvitationOperation(),
            };
            // Make the request
            MutateCustomerUserAccessInvitationResponse response = await customerUserAccessInvitationServiceClient.MutateCustomerUserAccessInvitationAsync(request);

            // End snippet
        }
        /// <summary>Snippet for GetCustomerUserAccessInvitationAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GetCustomerUserAccessInvitationRequestObjectAsync()
        {
            // Create client
            CustomerUserAccessInvitationServiceClient customerUserAccessInvitationServiceClient = await CustomerUserAccessInvitationServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetCustomerUserAccessInvitationRequest request = new GetCustomerUserAccessInvitationRequest
            {
                ResourceNameAsCustomerUserAccessInvitationName = CustomerUserAccessInvitationName.FromCustomerInvitation("[CUSTOMER_ID]", "[INVITATION_ID]"),
            };
            // Make the request
            CustomerUserAccessInvitation response = await customerUserAccessInvitationServiceClient.GetCustomerUserAccessInvitationAsync(request);
        }
示例#8
0
        /// <summary>Snippet for GetCustomerUserAccessInvitationAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GetCustomerUserAccessInvitationAsync()
        {
            // Create client
            CustomerUserAccessInvitationServiceClient customerUserAccessInvitationServiceClient = await CustomerUserAccessInvitationServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/customerUserAccessInvitations/[INVITATION_ID]";
            // Make the request
            CustomerUserAccessInvitation response = await customerUserAccessInvitationServiceClient.GetCustomerUserAccessInvitationAsync(resourceName);
        }