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

            // Initialize request argument(s)
            string name = "projects/[PROJECT]/feeds/[FEED]";
            // Make the request
            Feed response = await assetServiceClient.GetFeedAsync(name);
        }
 /// <summary>Snippet for GetFeedAsync</summary>
 public async Task GetFeedResourceNamesAsync()
 {
     // Snippet: GetFeedAsync(FeedName, CallSettings)
     // Additional: GetFeedAsync(FeedName, CancellationToken)
     // Create client
     AssetServiceClient assetServiceClient = await AssetServiceClient.CreateAsync();
     // Initialize request argument(s)
     FeedName name = FeedName.FromProjectFeed("[PROJECT]", "[FEED]");
     // Make the request
     Feed response = await assetServiceClient.GetFeedAsync(name);
     // End snippet
 }
 /// <summary>Snippet for GetFeedAsync</summary>
 public async Task GetFeedAsync()
 {
     // Snippet: GetFeedAsync(string, CallSettings)
     // Additional: GetFeedAsync(string, CancellationToken)
     // Create client
     AssetServiceClient assetServiceClient = await AssetServiceClient.CreateAsync();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/feeds/[FEED]";
     // Make the request
     Feed response = await assetServiceClient.GetFeedAsync(name);
     // End snippet
 }
Example #4
0
        /// <summary>Snippet for GetFeedAsync</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 GetFeedRequestObjectAsync()
        {
            // Create client
            AssetServiceClient assetServiceClient = await AssetServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetFeedRequest request = new GetFeedRequest
            {
                FeedName = FeedName.FromProjectFeed("[PROJECT]", "[FEED]"),
            };
            // Make the request
            Feed response = await assetServiceClient.GetFeedAsync(request);
        }
Example #5
0
        /// <summary>Snippet for GetFeedAsync</summary>
        public async Task GetFeedAsync()
        {
            // Snippet: GetFeedAsync(string,CallSettings)
            // Additional: GetFeedAsync(string,CancellationToken)
            // Create client
            AssetServiceClient assetServiceClient = await AssetServiceClient.CreateAsync();

            // Initialize request argument(s)
            string formattedName = new FeedName("[PROJECT]", "[FEED]").ToString();
            // Make the request
            Feed response = await assetServiceClient.GetFeedAsync(formattedName);

            // End snippet
        }