/// <summary>Snippet for TransferEntitlements</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void TransferEntitlementsRequestObject() { // Create client CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.Create(); // Initialize request argument(s) TransferEntitlementsRequest request = new TransferEntitlementsRequest { Parent = "", Entitlements = { new Entitlement(), }, AuthToken = "", RequestId = "", }; // Make the request Operation <TransferEntitlementsResponse, OperationMetadata> response = cloudChannelServiceClient.TransferEntitlements(request); // Poll until the returned long-running operation is complete Operation <TransferEntitlementsResponse, OperationMetadata> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result TransferEntitlementsResponse result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <TransferEntitlementsResponse, OperationMetadata> retrievedResponse = cloudChannelServiceClient.PollOnceTransferEntitlements(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result TransferEntitlementsResponse retrievedResult = retrievedResponse.Result; } }
/// <summary>Snippet for ChangeOfferAsync</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 ChangeOfferRequestObjectAsync() { // Create client CloudChannelServiceClient cloudChannelServiceClient = await CloudChannelServiceClient.CreateAsync(); // Initialize request argument(s) ChangeOfferRequest request = new ChangeOfferRequest { Name = "", OfferAsOfferName = OfferName.FromAccountOffer("[ACCOUNT]", "[OFFER]"), Parameters = { new Parameter(), }, PurchaseOrderId = "", RequestId = "", }; // Make the request Operation <Entitlement, OperationMetadata> response = await cloudChannelServiceClient.ChangeOfferAsync(request); // Poll until the returned long-running operation is complete Operation <Entitlement, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync(); // Retrieve the operation result Entitlement result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <Entitlement, OperationMetadata> retrievedResponse = await cloudChannelServiceClient.PollOnceChangeOfferAsync(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Entitlement retrievedResult = retrievedResponse.Result; } }
/// <summary>Snippet for ChangeParameters</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void ChangeParametersRequestObject() { // Create client CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.Create(); // Initialize request argument(s) ChangeParametersRequest request = new ChangeParametersRequest { Name = "", Parameters = { new Parameter(), }, RequestId = "", PurchaseOrderId = "", }; // Make the request Operation <Entitlement, OperationMetadata> response = cloudChannelServiceClient.ChangeParameters(request); // Poll until the returned long-running operation is complete Operation <Entitlement, OperationMetadata> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Entitlement result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <Entitlement, OperationMetadata> retrievedResponse = cloudChannelServiceClient.PollOnceChangeParameters(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Entitlement retrievedResult = retrievedResponse.Result; } }
/// <summary>Snippet for ActivateEntitlementAsync</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 ActivateEntitlementRequestObjectAsync() { // Create client CloudChannelServiceClient cloudChannelServiceClient = await CloudChannelServiceClient.CreateAsync(); // Initialize request argument(s) ActivateEntitlementRequest request = new ActivateEntitlementRequest { Name = "", RequestId = "", }; // Make the request Operation <Entitlement, OperationMetadata> response = await cloudChannelServiceClient.ActivateEntitlementAsync(request); // Poll until the returned long-running operation is complete Operation <Entitlement, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync(); // Retrieve the operation result Entitlement result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <Entitlement, OperationMetadata> retrievedResponse = await cloudChannelServiceClient.PollOnceActivateEntitlementAsync(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Entitlement retrievedResult = retrievedResponse.Result; } }
/// <summary>Snippet for CreateEntitlement</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreateEntitlementRequestObject() { // Create client CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.Create(); // Initialize request argument(s) CreateEntitlementRequest request = new CreateEntitlementRequest { ParentAsCustomerName = CustomerName.FromAccountCustomer("[ACCOUNT]", "[CUSTOMER]"), Entitlement = new Entitlement(), RequestId = "", }; // Make the request Operation <Entitlement, OperationMetadata> response = cloudChannelServiceClient.CreateEntitlement(request); // Poll until the returned long-running operation is complete Operation <Entitlement, OperationMetadata> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Entitlement result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <Entitlement, OperationMetadata> retrievedResponse = cloudChannelServiceClient.PollOnceCreateEntitlement(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Entitlement retrievedResult = retrievedResponse.Result; } }
/// <summary>Snippet for ProvisionCloudIdentityAsync</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 ProvisionCloudIdentityRequestObjectAsync() { // Create client CloudChannelServiceClient cloudChannelServiceClient = await CloudChannelServiceClient.CreateAsync(); // Initialize request argument(s) ProvisionCloudIdentityRequest request = new ProvisionCloudIdentityRequest { CustomerAsCustomerName = CustomerName.FromAccountCustomer("[ACCOUNT]", "[CUSTOMER]"), CloudIdentityInfo = new CloudIdentityInfo(), User = new AdminUser(), ValidateOnly = false, }; // Make the request Operation <Customer, OperationMetadata> response = await cloudChannelServiceClient.ProvisionCloudIdentityAsync(request); // Poll until the returned long-running operation is complete Operation <Customer, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync(); // Retrieve the operation result Customer result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <Customer, OperationMetadata> retrievedResponse = await cloudChannelServiceClient.PollOnceProvisionCloudIdentityAsync(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Customer retrievedResult = retrievedResponse.Result; } }
/// <summary>Snippet for GetCustomer</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetCustomer() { // Create client CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.Create(); // Initialize request argument(s) string name = "accounts/[ACCOUNT]/customers/[CUSTOMER]"; // Make the request Customer response = cloudChannelServiceClient.GetCustomer(name); }
/// <summary>Snippet for GetCustomer</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetCustomerResourceNames() { // Create client CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.Create(); // Initialize request argument(s) CustomerName name = CustomerName.FromAccountCustomer("[ACCOUNT]", "[CUSTOMER]"); // Make the request Customer response = cloudChannelServiceClient.GetCustomer(name); }
/// <summary>Snippet for GetCustomerAsync</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 GetCustomerAsync() { // Create client CloudChannelServiceClient cloudChannelServiceClient = await CloudChannelServiceClient.CreateAsync(); // Initialize request argument(s) string name = "accounts/[ACCOUNT]/customers/[CUSTOMER]"; // Make the request Customer response = await cloudChannelServiceClient.GetCustomerAsync(name); }
/// <summary>Snippet for GetCustomerAsync</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 GetCustomerResourceNamesAsync() { // Create client CloudChannelServiceClient cloudChannelServiceClient = await CloudChannelServiceClient.CreateAsync(); // Initialize request argument(s) CustomerName name = CustomerName.FromAccountCustomer("[ACCOUNT]", "[CUSTOMER]"); // Make the request Customer response = await cloudChannelServiceClient.GetCustomerAsync(name); }
/// <summary>Snippet for GetEntitlement</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetEntitlementRequestObject() { // Create client CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.Create(); // Initialize request argument(s) GetEntitlementRequest request = new GetEntitlementRequest { EntitlementName = EntitlementName.FromAccountCustomerEntitlement("[ACCOUNT]", "[CUSTOMER]", "[ENTITLEMENT]"), }; // Make the request Entitlement response = cloudChannelServiceClient.GetEntitlement(request); }
/// <summary>Snippet for GetCustomer</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetCustomerRequestObject() { // Create client CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.Create(); // Initialize request argument(s) GetCustomerRequest request = new GetCustomerRequest { CustomerName = CustomerName.FromAccountCustomer("[ACCOUNT]", "[CUSTOMER]"), }; // Make the request Customer response = cloudChannelServiceClient.GetCustomer(request); }
/// <summary>Snippet for CreateChannelPartnerLink</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreateChannelPartnerLinkRequestObject() { // Create client CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.Create(); // Initialize request argument(s) CreateChannelPartnerLinkRequest request = new CreateChannelPartnerLinkRequest { Parent = "", ChannelPartnerLink = new ChannelPartnerLink(), }; // Make the request ChannelPartnerLink response = cloudChannelServiceClient.CreateChannelPartnerLink(request); }
/// <summary>Snippet for DeleteCustomerAsync</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 DeleteCustomerRequestObjectAsync() { // Create client CloudChannelServiceClient cloudChannelServiceClient = await CloudChannelServiceClient.CreateAsync(); // Initialize request argument(s) DeleteCustomerRequest request = new DeleteCustomerRequest { CustomerName = CustomerName.FromAccountCustomer("[ACCOUNT]", "[CUSTOMER]"), }; // Make the request await cloudChannelServiceClient.DeleteCustomerAsync(request); }
/// <summary>Snippet for UnregisterSubscriber</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void UnregisterSubscriberRequestObject() { // Create client CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.Create(); // Initialize request argument(s) UnregisterSubscriberRequest request = new UnregisterSubscriberRequest { Account = "", ServiceAccount = "", }; // Make the request UnregisterSubscriberResponse response = cloudChannelServiceClient.UnregisterSubscriber(request); }
/// <summary>Snippet for LookupOfferAsync</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 LookupOfferRequestObjectAsync() { // Create client CloudChannelServiceClient cloudChannelServiceClient = await CloudChannelServiceClient.CreateAsync(); // Initialize request argument(s) LookupOfferRequest request = new LookupOfferRequest { EntitlementAsEntitlementName = EntitlementName.FromAccountCustomerEntitlement("[ACCOUNT]", "[CUSTOMER]", "[ENTITLEMENT]"), }; // Make the request Offer response = await cloudChannelServiceClient.LookupOfferAsync(request); }
/// <summary>Snippet for UpdateCustomer</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void UpdateCustomerRequestObject() { // Create client CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.Create(); // Initialize request argument(s) UpdateCustomerRequest request = new UpdateCustomerRequest { Customer = new Customer(), UpdateMask = new FieldMask(), }; // Make the request Customer response = cloudChannelServiceClient.UpdateCustomer(request); }
/// <summary>Snippet for CreateCustomer</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreateCustomerRequestObject() { // Create client CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.Create(); // Initialize request argument(s) CreateCustomerRequest request = new CreateCustomerRequest { Parent = "", Customer = new Customer(), }; // Make the request Customer response = cloudChannelServiceClient.CreateCustomer(request); }
/// <summary>Snippet for CheckCloudIdentityAccountsExist</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CheckCloudIdentityAccountsExistRequestObject() { // Create client CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.Create(); // Initialize request argument(s) CheckCloudIdentityAccountsExistRequest request = new CheckCloudIdentityAccountsExistRequest { Parent = "", Domain = "", }; // Make the request CheckCloudIdentityAccountsExistResponse response = cloudChannelServiceClient.CheckCloudIdentityAccountsExist(request); }
/// <summary>Snippet for GetChannelPartnerLink</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetChannelPartnerLinkRequestObject() { // Create client CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.Create(); // Initialize request argument(s) GetChannelPartnerLinkRequest request = new GetChannelPartnerLinkRequest { Name = "", View = ChannelPartnerLinkView.Unspecified, }; // Make the request ChannelPartnerLink response = cloudChannelServiceClient.GetChannelPartnerLink(request); }
/// <summary>Snippet for CheckCloudIdentityAccountsExistAsync</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 CheckCloudIdentityAccountsExistRequestObjectAsync() { // Create client CloudChannelServiceClient cloudChannelServiceClient = await CloudChannelServiceClient.CreateAsync(); // Initialize request argument(s) CheckCloudIdentityAccountsExistRequest request = new CheckCloudIdentityAccountsExistRequest { Parent = "", Domain = "", }; // Make the request CheckCloudIdentityAccountsExistResponse response = await cloudChannelServiceClient.CheckCloudIdentityAccountsExistAsync(request); }
/// <summary>Snippet for CreateChannelPartnerLinkAsync</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 CreateChannelPartnerLinkRequestObjectAsync() { // Create client CloudChannelServiceClient cloudChannelServiceClient = await CloudChannelServiceClient.CreateAsync(); // Initialize request argument(s) CreateChannelPartnerLinkRequest request = new CreateChannelPartnerLinkRequest { Parent = "", ChannelPartnerLink = new ChannelPartnerLink(), }; // Make the request ChannelPartnerLink response = await cloudChannelServiceClient.CreateChannelPartnerLinkAsync(request); }
/// <summary>Snippet for GetChannelPartnerLinkAsync</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 GetChannelPartnerLinkRequestObjectAsync() { // Create client CloudChannelServiceClient cloudChannelServiceClient = await CloudChannelServiceClient.CreateAsync(); // Initialize request argument(s) GetChannelPartnerLinkRequest request = new GetChannelPartnerLinkRequest { Name = "", View = ChannelPartnerLinkView.Unspecified, }; // Make the request ChannelPartnerLink response = await cloudChannelServiceClient.GetChannelPartnerLinkAsync(request); }
/// <summary>Snippet for RegisterSubscriberAsync</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 RegisterSubscriberRequestObjectAsync() { // Create client CloudChannelServiceClient cloudChannelServiceClient = await CloudChannelServiceClient.CreateAsync(); // Initialize request argument(s) RegisterSubscriberRequest request = new RegisterSubscriberRequest { Account = "", ServiceAccount = "", }; // Make the request RegisterSubscriberResponse response = await cloudChannelServiceClient.RegisterSubscriberAsync(request); }
/// <summary>Snippet for UpdateCustomerAsync</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 UpdateCustomerRequestObjectAsync() { // Create client CloudChannelServiceClient cloudChannelServiceClient = await CloudChannelServiceClient.CreateAsync(); // Initialize request argument(s) UpdateCustomerRequest request = new UpdateCustomerRequest { Customer = new Customer(), UpdateMask = new FieldMask(), }; // Make the request Customer response = await cloudChannelServiceClient.UpdateCustomerAsync(request); }
/// <summary>Snippet for UpdateChannelPartnerLink</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void UpdateChannelPartnerLinkRequestObject() { // Create client CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.Create(); // Initialize request argument(s) UpdateChannelPartnerLinkRequest request = new UpdateChannelPartnerLinkRequest { Name = "", ChannelPartnerLink = new ChannelPartnerLink(), UpdateMask = new FieldMask(), }; // Make the request ChannelPartnerLink response = cloudChannelServiceClient.UpdateChannelPartnerLink(request); }
/// <summary>Snippet for CreateCustomerAsync</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 CreateCustomerRequestObjectAsync() { // Create client CloudChannelServiceClient cloudChannelServiceClient = await CloudChannelServiceClient.CreateAsync(); // Initialize request argument(s) CreateCustomerRequest request = new CreateCustomerRequest { Parent = "", Customer = new Customer(), }; // Make the request Customer response = await cloudChannelServiceClient.CreateCustomerAsync(request); }
/// <summary>Snippet for ListTransferableOffersAsync</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 ListTransferableOffersRequestObjectAsync() { // Create client CloudChannelServiceClient cloudChannelServiceClient = await CloudChannelServiceClient.CreateAsync(); // Initialize request argument(s) ListTransferableOffersRequest request = new ListTransferableOffersRequest { Parent = "", CloudIdentityId = "", Sku = "", LanguageCode = "", }; // Make the request PagedAsyncEnumerable <ListTransferableOffersResponse, TransferableOffer> response = cloudChannelServiceClient.ListTransferableOffersAsync(request); // Iterate over all response items, lazily performing RPCs as required await response.ForEachAsync((TransferableOffer item) => { // Do something with each item Console.WriteLine(item); }); // Or iterate over pages (of server-defined size), performing one RPC per page await response.AsRawResponses().ForEachAsync((ListTransferableOffersResponse page) => { // Do something with each page of items Console.WriteLine("A page of results:"); foreach (TransferableOffer item in page) { // Do something with each item Console.WriteLine(item); } }); // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required int pageSize = 10; Page <TransferableOffer> singlePage = await response.ReadPageAsync(pageSize); // Do something with the page of items Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); foreach (TransferableOffer item in singlePage) { // Do something with each item Console.WriteLine(item); } // Store the pageToken, for when the next page is required. string nextPageToken = singlePage.NextPageToken; }
/// <summary>Snippet for ListPurchasableSkusAsync</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 ListPurchasableSkusRequestObjectAsync() { // Create client CloudChannelServiceClient cloudChannelServiceClient = await CloudChannelServiceClient.CreateAsync(); // Initialize request argument(s) ListPurchasableSkusRequest request = new ListPurchasableSkusRequest { CustomerAsCustomerName = CustomerName.FromAccountCustomer("[ACCOUNT]", "[CUSTOMER]"), CreateEntitlementPurchase = new ListPurchasableSkusRequest.Types.CreateEntitlementPurchase(), LanguageCode = "", }; // Make the request PagedAsyncEnumerable <ListPurchasableSkusResponse, PurchasableSku> response = cloudChannelServiceClient.ListPurchasableSkusAsync(request); // Iterate over all response items, lazily performing RPCs as required await response.ForEachAsync((PurchasableSku item) => { // Do something with each item Console.WriteLine(item); }); // Or iterate over pages (of server-defined size), performing one RPC per page await response.AsRawResponses().ForEachAsync((ListPurchasableSkusResponse page) => { // Do something with each page of items Console.WriteLine("A page of results:"); foreach (PurchasableSku item in page) { // Do something with each item Console.WriteLine(item); } }); // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required int pageSize = 10; Page <PurchasableSku> singlePage = await response.ReadPageAsync(pageSize); // Do something with the page of items Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); foreach (PurchasableSku item in singlePage) { // Do something with each item Console.WriteLine(item); } // Store the pageToken, for when the next page is required. string nextPageToken = singlePage.NextPageToken; }
/// <summary>Snippet for ListSkus</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void ListSkusRequestObject() { // Create client CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.Create(); // Initialize request argument(s) ListSkusRequest request = new ListSkusRequest { ParentAsProductName = ProductName.FromProduct("[PRODUCT]"), Account = "", LanguageCode = "", }; // Make the request PagedEnumerable <ListSkusResponse, Sku> response = cloudChannelServiceClient.ListSkus(request); // Iterate over all response items, lazily performing RPCs as required foreach (Sku item in response) { // Do something with each item Console.WriteLine(item); } // Or iterate over pages (of server-defined size), performing one RPC per page foreach (ListSkusResponse page in response.AsRawResponses()) { // Do something with each page of items Console.WriteLine("A page of results:"); foreach (Sku item in page) { // Do something with each item Console.WriteLine(item); } } // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required int pageSize = 10; Page <Sku> singlePage = response.ReadPage(pageSize); // Do something with the page of items Console.WriteLine($"A page of {pageSize} results (unless it's the final page):"); foreach (Sku item in singlePage) { // Do something with each item Console.WriteLine(item); } // Store the pageToken, for when the next page is required. string nextPageToken = singlePage.NextPageToken; }