예제 #1
0
        /// <summary>Snippet for UpdateConnectionAsync</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 UpdateConnectionAsync()
        {
            // Create client
            ConnectionServiceClient connectionServiceClient = await ConnectionServiceClient.CreateAsync();

            // Initialize request argument(s)
            string     name       = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
            Connection connection = new Connection();
            FieldMask  updateMask = new FieldMask();
            // Make the request
            Connection response = await connectionServiceClient.UpdateConnectionAsync(name, connection, updateMask);
        }
        /// <summary>Snippet for UpdateConnectionAsync</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 UpdateConnectionResourceNamesAsync()
        {
            // Create client
            ConnectionServiceClient connectionServiceClient = await ConnectionServiceClient.CreateAsync();

            // Initialize request argument(s)
            ConnectionName name       = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
            Connection     connection = new Connection();
            FieldMask      updateMask = new FieldMask();
            // Make the request
            Connection response = await connectionServiceClient.UpdateConnectionAsync(name, connection, updateMask);
        }
예제 #3
0
        /// <summary>Snippet for UpdateConnectionAsync</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 UpdateConnectionRequestObjectAsync()
        {
            // Create client
            ConnectionServiceClient connectionServiceClient = await ConnectionServiceClient.CreateAsync();

            // Initialize request argument(s)
            UpdateConnectionRequest request = new UpdateConnectionRequest
            {
                ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
                Connection     = new Connection(),
                UpdateMask     = new FieldMask(),
            };
            // Make the request
            Connection response = await connectionServiceClient.UpdateConnectionAsync(request);
        }
예제 #4
0
        /// <summary>Snippet for UpdateConnectionAsync</summary>
        public async Task UpdateConnectionResourceNamesAsync()
        {
            // Snippet: UpdateConnectionAsync(ConnectionName, Connection, FieldMask, CallSettings)
            // Additional: UpdateConnectionAsync(ConnectionName, Connection, FieldMask, CancellationToken)
            // Create client
            ConnectionServiceClient connectionServiceClient = await ConnectionServiceClient.CreateAsync();

            // Initialize request argument(s)
            ConnectionName name       = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
            Connection     connection = new Connection();
            FieldMask      updateMask = new FieldMask();
            // Make the request
            Connection response = await connectionServiceClient.UpdateConnectionAsync(name, connection, updateMask);

            // End snippet
        }
예제 #5
0
        /// <summary>Snippet for UpdateConnectionAsync</summary>
        public async Task UpdateConnectionAsync()
        {
            // Snippet: UpdateConnectionAsync(string, Connection, FieldMask, CallSettings)
            // Additional: UpdateConnectionAsync(string, Connection, FieldMask, CancellationToken)
            // Create client
            ConnectionServiceClient connectionServiceClient = await ConnectionServiceClient.CreateAsync();

            // Initialize request argument(s)
            string     name       = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
            Connection connection = new Connection();
            FieldMask  updateMask = new FieldMask();
            // Make the request
            Connection response = await connectionServiceClient.UpdateConnectionAsync(name, connection, updateMask);

            // End snippet
        }