コード例 #1
0
        /// <summary>Snippet for InsertAsync</summary>
        public async Task InsertAsync()
        {
            // Snippet: InsertAsync(string, Image, CallSettings)
            // Additional: InsertAsync(string, Image, CancellationToken)
            // Create client
            ImagesClient imagesClient = await ImagesClient.CreateAsync();

            // Initialize request argument(s)
            string project       = "";
            Image  imageResource = new Image();
            // Make the request
            Operation response = await imagesClient.InsertAsync(project, imageResource);

            // End snippet
        }
コード例 #2
0
        /// <summary>Snippet for InsertAsync</summary>
        public async Task InsertRequestObjectAsync()
        {
            // Snippet: InsertAsync(InsertImageRequest, CallSettings)
            // Additional: InsertAsync(InsertImageRequest, CancellationToken)
            // Create client
            ImagesClient imagesClient = await ImagesClient.CreateAsync();

            // Initialize request argument(s)
            InsertImageRequest request = new InsertImageRequest
            {
                RequestId     = "",
                ForceCreate   = false,
                Project       = "",
                ImageResource = new Image(),
            };
            // Make the request
            Operation response = await imagesClient.InsertAsync(request);

            // End snippet
        }