示例#1
0
        /// <summary>Snippet for MutateAssetsAsync</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 MutateAssetsAsync()
        {
            // Create client
            AssetServiceClient assetServiceClient = await AssetServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <AssetOperation> operations = new AssetOperation[]
            {
                new AssetOperation(),
            };
            // Make the request
            MutateAssetsResponse response = await assetServiceClient.MutateAssetsAsync(customerId, operations);
        }
        /// <summary>Snippet for MutateAssetsAsync</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 MutateAssetsRequestObjectAsync()
        {
            // Create client
            AssetServiceClient assetServiceClient = await AssetServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateAssetsRequest request = new MutateAssetsRequest
            {
                CustomerId = "",
                Operations =
                {
                    new AssetOperation(),
                },
            };
            // Make the request
            MutateAssetsResponse response = await assetServiceClient.MutateAssetsAsync(request);
        }
        /// <summary>Snippet for MutateAssetsAsync</summary>
        public async Task MutateAssetsAsync()
        {
            // Snippet: MutateAssetsAsync(string, IEnumerable<AssetOperation>, CallSettings)
            // Additional: MutateAssetsAsync(string, IEnumerable<AssetOperation>, CancellationToken)
            // Create client
            AssetServiceClient assetServiceClient = await AssetServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <AssetOperation> operations = new AssetOperation[]
            {
                new AssetOperation(),
            };
            // Make the request
            MutateAssetsResponse response = await assetServiceClient.MutateAssetsAsync(customerId, operations);

            // End snippet
        }
        /// <summary>Snippet for MutateAssetsAsync</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 MutateAssetsRequestObjectAsync()
        {
            // Create client
            AssetServiceClient assetServiceClient = await AssetServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateAssetsRequest request = new MutateAssetsRequest
            {
                CustomerId = "",
                Operations =
                {
                    new AssetOperation(),
                },
                ResponseContentType = ResponseContentTypeEnum.Types.ResponseContentType.Unspecified,
                ValidateOnly        = false,
                PartialFailure      = false,
            };
            // Make the request
            MutateAssetsResponse response = await assetServiceClient.MutateAssetsAsync(request);
        }
        /// <summary>Snippet for MutateAssetsAsync</summary>
        public async Task MutateAssetsRequestObjectAsync()
        {
            // Snippet: MutateAssetsAsync(MutateAssetsRequest, CallSettings)
            // Additional: MutateAssetsAsync(MutateAssetsRequest, CancellationToken)
            // Create client
            AssetServiceClient assetServiceClient = await AssetServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateAssetsRequest request = new MutateAssetsRequest
            {
                CustomerId = "",
                Operations =
                {
                    new AssetOperation(),
                },
            };
            // Make the request
            MutateAssetsResponse response = await assetServiceClient.MutateAssetsAsync(request);

            // End snippet
        }