diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.activate_entitlement.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.activate_entitlement.js index fe3b4bb7e49..4f3c8747897 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.activate_entitlement.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.activate_entitlement.js @@ -23,6 +23,9 @@ function main(name) { // [START cloudchannel_v1_generated_CloudChannelService_ActivateEntitlement_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.cancel_entitlement.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.cancel_entitlement.js index 3051af0e315..c664417d41e 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.cancel_entitlement.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.cancel_entitlement.js @@ -23,6 +23,9 @@ function main(name) { // [START cloudchannel_v1_generated_CloudChannelService_CancelEntitlement_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.change_offer.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.change_offer.js index 1c61cb83a68..67749366e1f 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.change_offer.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.change_offer.js @@ -23,6 +23,9 @@ function main(name, offer) { // [START cloudchannel_v1_generated_CloudChannelService_ChangeOffer_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.change_parameters.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.change_parameters.js index eafb4b7876c..69c955fbbe2 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.change_parameters.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.change_parameters.js @@ -23,6 +23,9 @@ function main(name, parameters) { // [START cloudchannel_v1_generated_CloudChannelService_ChangeParameters_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.change_renewal_settings.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.change_renewal_settings.js index dafea9c647f..71b2d0efda5 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.change_renewal_settings.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.change_renewal_settings.js @@ -23,6 +23,9 @@ function main(name, renewalSettings) { // [START cloudchannel_v1_generated_CloudChannelService_ChangeRenewalSettings_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.check_cloud_identity_accounts_exist.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.check_cloud_identity_accounts_exist.js index 11374689685..c519611c960 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.check_cloud_identity_accounts_exist.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.check_cloud_identity_accounts_exist.js @@ -23,6 +23,9 @@ function main(parent, domain) { // [START cloudchannel_v1_generated_CloudChannelService_CheckCloudIdentityAccountsExist_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.create_channel_partner_link.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.create_channel_partner_link.js index 4bdf138bb32..29afadcf520 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.create_channel_partner_link.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.create_channel_partner_link.js @@ -23,6 +23,9 @@ function main(parent, channelPartnerLink) { // [START cloudchannel_v1_generated_CloudChannelService_CreateChannelPartnerLink_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.create_channel_partner_repricing_config.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.create_channel_partner_repricing_config.js index be5b3ff0d36..ec4b22da1dd 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.create_channel_partner_repricing_config.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.create_channel_partner_repricing_config.js @@ -23,6 +23,9 @@ function main(parent, channelPartnerRepricingConfig) { // [START cloudchannel_v1_generated_CloudChannelService_CreateChannelPartnerRepricingConfig_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.create_customer.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.create_customer.js index 732325a0f37..c7ffac50924 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.create_customer.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.create_customer.js @@ -23,6 +23,9 @@ function main(parent, customer) { // [START cloudchannel_v1_generated_CloudChannelService_CreateCustomer_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.create_customer_repricing_config.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.create_customer_repricing_config.js index 7d0abefb2de..d7e9f1980b7 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.create_customer_repricing_config.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.create_customer_repricing_config.js @@ -23,6 +23,9 @@ function main(parent, customerRepricingConfig) { // [START cloudchannel_v1_generated_CloudChannelService_CreateCustomerRepricingConfig_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.create_entitlement.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.create_entitlement.js index 1488a054c32..f679ab7c6c4 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.create_entitlement.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.create_entitlement.js @@ -23,6 +23,9 @@ function main(parent, entitlement) { // [START cloudchannel_v1_generated_CloudChannelService_CreateEntitlement_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.delete_channel_partner_repricing_config.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.delete_channel_partner_repricing_config.js index 2686b50a9fe..603a19b09f3 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.delete_channel_partner_repricing_config.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.delete_channel_partner_repricing_config.js @@ -23,6 +23,9 @@ function main(name) { // [START cloudchannel_v1_generated_CloudChannelService_DeleteChannelPartnerRepricingConfig_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.delete_customer.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.delete_customer.js index 67a6018cc41..b4c54c9a8b7 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.delete_customer.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.delete_customer.js @@ -23,6 +23,9 @@ function main(name) { // [START cloudchannel_v1_generated_CloudChannelService_DeleteCustomer_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.delete_customer_repricing_config.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.delete_customer_repricing_config.js index ce74c1a9f7e..3337a795604 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.delete_customer_repricing_config.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.delete_customer_repricing_config.js @@ -23,6 +23,9 @@ function main(name) { // [START cloudchannel_v1_generated_CloudChannelService_DeleteCustomerRepricingConfig_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.get_channel_partner_link.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.get_channel_partner_link.js index 4cbc82eac43..dc136c38aa5 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.get_channel_partner_link.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.get_channel_partner_link.js @@ -23,6 +23,9 @@ function main(name) { // [START cloudchannel_v1_generated_CloudChannelService_GetChannelPartnerLink_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.get_channel_partner_repricing_config.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.get_channel_partner_repricing_config.js index f10647a6d48..77803006a9d 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.get_channel_partner_repricing_config.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.get_channel_partner_repricing_config.js @@ -23,6 +23,9 @@ function main(name) { // [START cloudchannel_v1_generated_CloudChannelService_GetChannelPartnerRepricingConfig_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.get_customer.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.get_customer.js index ae444121e9f..7c9be5abcbe 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.get_customer.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.get_customer.js @@ -23,6 +23,9 @@ function main(name) { // [START cloudchannel_v1_generated_CloudChannelService_GetCustomer_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.get_customer_repricing_config.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.get_customer_repricing_config.js index 9a33c85a1eb..dff81702966 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.get_customer_repricing_config.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.get_customer_repricing_config.js @@ -23,6 +23,9 @@ function main(name) { // [START cloudchannel_v1_generated_CloudChannelService_GetCustomerRepricingConfig_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.get_entitlement.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.get_entitlement.js index d4fc87693ea..b9ed504c2c6 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.get_entitlement.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.get_entitlement.js @@ -23,6 +23,9 @@ function main(name) { // [START cloudchannel_v1_generated_CloudChannelService_GetEntitlement_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.import_customer.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.import_customer.js index b8cd40ab582..2238a6a769e 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.import_customer.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.import_customer.js @@ -23,6 +23,9 @@ function main(domain, cloudIdentityId, parent, overwriteIfExists) { // [START cloudchannel_v1_generated_CloudChannelService_ImportCustomer_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_channel_partner_links.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_channel_partner_links.js index cfd775ea61e..5e489026828 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_channel_partner_links.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_channel_partner_links.js @@ -23,6 +23,9 @@ function main(parent) { // [START cloudchannel_v1_generated_CloudChannelService_ListChannelPartnerLinks_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_channel_partner_repricing_configs.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_channel_partner_repricing_configs.js index f201285ad73..7b94fd53b91 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_channel_partner_repricing_configs.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_channel_partner_repricing_configs.js @@ -23,6 +23,9 @@ function main(parent) { // [START cloudchannel_v1_generated_CloudChannelService_ListChannelPartnerRepricingConfigs_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_customer_repricing_configs.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_customer_repricing_configs.js index 2e46e054531..10b7419a8a3 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_customer_repricing_configs.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_customer_repricing_configs.js @@ -23,6 +23,9 @@ function main(parent) { // [START cloudchannel_v1_generated_CloudChannelService_ListCustomerRepricingConfigs_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_customers.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_customers.js index 28b2a254cec..462fa64938f 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_customers.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_customers.js @@ -23,6 +23,9 @@ function main(parent) { // [START cloudchannel_v1_generated_CloudChannelService_ListCustomers_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_entitlements.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_entitlements.js index 923c340430b..ce44dbcab28 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_entitlements.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_entitlements.js @@ -23,6 +23,9 @@ function main(parent) { // [START cloudchannel_v1_generated_CloudChannelService_ListEntitlements_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_offers.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_offers.js index a2dcadbb281..1f558b118af 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_offers.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_offers.js @@ -23,6 +23,9 @@ function main(parent) { // [START cloudchannel_v1_generated_CloudChannelService_ListOffers_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_products.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_products.js index 367a3cfff54..9f91c77921e 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_products.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_products.js @@ -23,6 +23,9 @@ function main(account) { // [START cloudchannel_v1_generated_CloudChannelService_ListProducts_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_purchasable_offers.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_purchasable_offers.js index 97d1cd1da30..8c64e9f9784 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_purchasable_offers.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_purchasable_offers.js @@ -23,6 +23,9 @@ function main(customer) { // [START cloudchannel_v1_generated_CloudChannelService_ListPurchasableOffers_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_purchasable_skus.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_purchasable_skus.js index 4ef6675de37..ea2114b37a5 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_purchasable_skus.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_purchasable_skus.js @@ -23,6 +23,9 @@ function main(customer) { // [START cloudchannel_v1_generated_CloudChannelService_ListPurchasableSkus_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_skus.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_skus.js index 88685298b91..6c85e15d65a 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_skus.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_skus.js @@ -23,6 +23,9 @@ function main(parent, account) { // [START cloudchannel_v1_generated_CloudChannelService_ListSkus_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_subscribers.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_subscribers.js index f3cbcee330c..baaa56399db 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_subscribers.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_subscribers.js @@ -23,6 +23,9 @@ function main(account) { // [START cloudchannel_v1_generated_CloudChannelService_ListSubscribers_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_transferable_offers.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_transferable_offers.js index e78d98768fb..852729bc047 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_transferable_offers.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_transferable_offers.js @@ -23,6 +23,9 @@ function main(parent, sku) { // [START cloudchannel_v1_generated_CloudChannelService_ListTransferableOffers_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_transferable_skus.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_transferable_skus.js index f6575ff2ef1..0c18ac5a79c 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_transferable_skus.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.list_transferable_skus.js @@ -23,6 +23,9 @@ function main(parent) { // [START cloudchannel_v1_generated_CloudChannelService_ListTransferableSkus_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.lookup_offer.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.lookup_offer.js index 9da29c739e7..43c97a05551 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.lookup_offer.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.lookup_offer.js @@ -23,6 +23,9 @@ function main(entitlement) { // [START cloudchannel_v1_generated_CloudChannelService_LookupOffer_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.provision_cloud_identity.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.provision_cloud_identity.js index c5608ffdf98..81b8b0a0ad2 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.provision_cloud_identity.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.provision_cloud_identity.js @@ -23,6 +23,9 @@ function main(customer) { // [START cloudchannel_v1_generated_CloudChannelService_ProvisionCloudIdentity_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.register_subscriber.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.register_subscriber.js index 6aa41724ce7..a25e0a9dbf1 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.register_subscriber.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.register_subscriber.js @@ -23,6 +23,9 @@ function main(account, serviceAccount) { // [START cloudchannel_v1_generated_CloudChannelService_RegisterSubscriber_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.start_paid_service.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.start_paid_service.js index c6f64ac4b99..6140f736ef7 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.start_paid_service.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.start_paid_service.js @@ -23,6 +23,9 @@ function main(name) { // [START cloudchannel_v1_generated_CloudChannelService_StartPaidService_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.suspend_entitlement.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.suspend_entitlement.js index d4c9efae67c..736e5f95c44 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.suspend_entitlement.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.suspend_entitlement.js @@ -23,6 +23,9 @@ function main(name) { // [START cloudchannel_v1_generated_CloudChannelService_SuspendEntitlement_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.transfer_entitlements.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.transfer_entitlements.js index 222f65cf1b8..3320c0f434b 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.transfer_entitlements.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.transfer_entitlements.js @@ -23,6 +23,9 @@ function main(parent, entitlements) { // [START cloudchannel_v1_generated_CloudChannelService_TransferEntitlements_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.transfer_entitlements_to_google.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.transfer_entitlements_to_google.js index dea263e1eda..ca167240567 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.transfer_entitlements_to_google.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.transfer_entitlements_to_google.js @@ -23,6 +23,9 @@ function main(parent, entitlements) { // [START cloudchannel_v1_generated_CloudChannelService_TransferEntitlementsToGoogle_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.unregister_subscriber.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.unregister_subscriber.js index 85fe725db84..45cfe161713 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.unregister_subscriber.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.unregister_subscriber.js @@ -23,6 +23,9 @@ function main(account, serviceAccount) { // [START cloudchannel_v1_generated_CloudChannelService_UnregisterSubscriber_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.update_channel_partner_link.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.update_channel_partner_link.js index 471fdc9d45e..b21cbef5557 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.update_channel_partner_link.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.update_channel_partner_link.js @@ -23,6 +23,9 @@ function main(name, channelPartnerLink, updateMask) { // [START cloudchannel_v1_generated_CloudChannelService_UpdateChannelPartnerLink_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.update_channel_partner_repricing_config.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.update_channel_partner_repricing_config.js index 9b4016e7138..6dfb5c06606 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.update_channel_partner_repricing_config.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.update_channel_partner_repricing_config.js @@ -23,6 +23,9 @@ function main(channelPartnerRepricingConfig) { // [START cloudchannel_v1_generated_CloudChannelService_UpdateChannelPartnerRepricingConfig_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.update_customer.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.update_customer.js index 4283ac74397..fb7ed485b06 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.update_customer.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.update_customer.js @@ -23,6 +23,9 @@ function main(customer) { // [START cloudchannel_v1_generated_CloudChannelService_UpdateCustomer_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.update_customer_repricing_config.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.update_customer_repricing_config.js index 9f21f6b4a14..becdd61604c 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.update_customer_repricing_config.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.update_customer_repricing_config.js @@ -23,6 +23,9 @@ function main(customerRepricingConfig) { // [START cloudchannel_v1_generated_CloudChannelService_UpdateCustomerRepricingConfig_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-channel/samples/generated/v1/snippet_metadata.google.cloud.channel.v1.json b/packages/google-cloud-channel/samples/generated/v1/snippet_metadata.google.cloud.channel.v1.json index 387da0b9174..571aed5b8ff 100644 --- a/packages/google-cloud-channel/samples/generated/v1/snippet_metadata.google.cloud.channel.v1.json +++ b/packages/google-cloud-channel/samples/generated/v1/snippet_metadata.google.cloud.channel.v1.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -74,7 +74,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -114,7 +114,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -158,7 +158,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -202,7 +202,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -246,7 +246,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -286,7 +286,7 @@ "segments": [ { "start": 25, - "end": 88, + "end": 91, "type": "FULL" } ], @@ -350,7 +350,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -402,7 +402,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -450,7 +450,7 @@ "segments": [ { "start": 25, - "end": 93, + "end": 96, "type": "FULL" } ], @@ -514,7 +514,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 88, "type": "FULL" } ], @@ -578,7 +578,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -618,7 +618,7 @@ "segments": [ { "start": 25, - "end": 70, + "end": 73, "type": "FULL" } ], @@ -666,7 +666,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -718,7 +718,7 @@ "segments": [ { "start": 25, - "end": 70, + "end": 73, "type": "FULL" } ], @@ -766,7 +766,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 83, "type": "FULL" } ], @@ -822,7 +822,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -866,7 +866,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -910,7 +910,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -954,7 +954,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -998,7 +998,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -1050,7 +1050,7 @@ "segments": [ { "start": 25, - "end": 70, + "end": 73, "type": "FULL" } ], @@ -1098,7 +1098,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 74, "type": "FULL" } ], @@ -1150,7 +1150,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1194,7 +1194,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -1238,7 +1238,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -1286,7 +1286,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1326,7 +1326,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -1378,7 +1378,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1422,7 +1422,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -1462,7 +1462,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1502,7 +1502,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1542,7 +1542,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 83, "type": "FULL" } ], @@ -1594,7 +1594,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -1638,7 +1638,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -1678,7 +1678,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -1718,7 +1718,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1758,7 +1758,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -1810,7 +1810,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -1866,7 +1866,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -1922,7 +1922,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -1982,7 +1982,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -2042,7 +2042,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -2086,7 +2086,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -2130,7 +2130,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], diff --git a/packages/google-cloud-channel/src/v1/cloud_channel_service_client.ts b/packages/google-cloud-channel/src/v1/cloud_channel_service_client.ts index 33959101434..eaf9d0e22bc 100644 --- a/packages/google-cloud-channel/src/v1/cloud_channel_service_client.ts +++ b/packages/google-cloud-channel/src/v1/cloud_channel_service_client.ts @@ -30,7 +30,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -568,7 +567,8 @@ export class CloudChannelServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -3201,7 +3201,7 @@ export class CloudChannelServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.provisionCloudIdentity, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.channel.v1.Customer, @@ -3389,7 +3389,7 @@ export class CloudChannelServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createEntitlement, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.channel.v1.Entitlement, @@ -3569,7 +3569,7 @@ export class CloudChannelServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.changeParameters, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.channel.v1.Entitlement, @@ -3744,7 +3744,7 @@ export class CloudChannelServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.changeRenewalSettings, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.channel.v1.Entitlement, @@ -3923,7 +3923,7 @@ export class CloudChannelServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.changeOffer, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.channel.v1.Entitlement, @@ -4097,7 +4097,7 @@ export class CloudChannelServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.startPaidService, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.channel.v1.Entitlement, @@ -4268,7 +4268,7 @@ export class CloudChannelServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.suspendEntitlement, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.channel.v1.Entitlement, @@ -4444,7 +4444,7 @@ export class CloudChannelServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.cancelEntitlement, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -4621,7 +4621,7 @@ export class CloudChannelServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.activateEntitlement, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.channel.v1.Entitlement, @@ -4807,7 +4807,7 @@ export class CloudChannelServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.transferEntitlements, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.channel.v1.TransferEntitlementsResponse, @@ -4992,7 +4992,7 @@ export class CloudChannelServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.transferEntitlementsToGoogle, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -5159,7 +5159,7 @@ export class CloudChannelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listCustomers.createStream( - this.innerApiCalls.listCustomers as gax.GaxCall, + this.innerApiCalls.listCustomers as GaxCall, request, callSettings ); @@ -5217,7 +5217,7 @@ export class CloudChannelServiceClient { this.initialize(); return this.descriptors.page.listCustomers.asyncIterate( this.innerApiCalls['listCustomers'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5380,7 +5380,7 @@ export class CloudChannelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listEntitlements.createStream( - this.innerApiCalls.listEntitlements as gax.GaxCall, + this.innerApiCalls.listEntitlements as GaxCall, request, callSettings ); @@ -5435,7 +5435,7 @@ export class CloudChannelServiceClient { this.initialize(); return this.descriptors.page.listEntitlements.asyncIterate( this.innerApiCalls['listEntitlements'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5643,7 +5643,7 @@ export class CloudChannelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTransferableSkus.createStream( - this.innerApiCalls.listTransferableSkus as gax.GaxCall, + this.innerApiCalls.listTransferableSkus as GaxCall, request, callSettings ); @@ -5716,7 +5716,7 @@ export class CloudChannelServiceClient { this.initialize(); return this.descriptors.page.listTransferableSkus.asyncIterate( this.innerApiCalls['listTransferableSkus'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5910,7 +5910,7 @@ export class CloudChannelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTransferableOffers.createStream( - this.innerApiCalls.listTransferableOffers as gax.GaxCall, + this.innerApiCalls.listTransferableOffers as GaxCall, request, callSettings ); @@ -5974,7 +5974,7 @@ export class CloudChannelServiceClient { this.initialize(); return this.descriptors.page.listTransferableOffers.asyncIterate( this.innerApiCalls['listTransferableOffers'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -6147,7 +6147,7 @@ export class CloudChannelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listChannelPartnerLinks.createStream( - this.innerApiCalls.listChannelPartnerLinks as gax.GaxCall, + this.innerApiCalls.listChannelPartnerLinks as GaxCall, request, callSettings ); @@ -6204,7 +6204,7 @@ export class CloudChannelServiceClient { this.initialize(); return this.descriptors.page.listChannelPartnerLinks.asyncIterate( this.innerApiCalls['listChannelPartnerLinks'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -6401,7 +6401,7 @@ export class CloudChannelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listCustomerRepricingConfigs.createStream( - this.innerApiCalls.listCustomerRepricingConfigs as gax.GaxCall, + this.innerApiCalls.listCustomerRepricingConfigs as GaxCall, request, callSettings ); @@ -6465,7 +6465,7 @@ export class CloudChannelServiceClient { this.initialize(); return this.descriptors.page.listCustomerRepricingConfigs.asyncIterate( this.innerApiCalls['listCustomerRepricingConfigs'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -6668,7 +6668,7 @@ export class CloudChannelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listChannelPartnerRepricingConfigs.createStream( - this.innerApiCalls.listChannelPartnerRepricingConfigs as gax.GaxCall, + this.innerApiCalls.listChannelPartnerRepricingConfigs as GaxCall, request, callSettings ); @@ -6736,7 +6736,7 @@ export class CloudChannelServiceClient { this.initialize(); return this.descriptors.page.listChannelPartnerRepricingConfigs.asyncIterate( this.innerApiCalls['listChannelPartnerRepricingConfigs'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -6881,7 +6881,7 @@ export class CloudChannelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listProducts.createStream( - this.innerApiCalls.listProducts as gax.GaxCall, + this.innerApiCalls.listProducts as GaxCall, request, callSettings ); @@ -6932,7 +6932,7 @@ export class CloudChannelServiceClient { this.initialize(); return this.descriptors.page.listProducts.asyncIterate( this.innerApiCalls['listProducts'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -7093,7 +7093,7 @@ export class CloudChannelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listSkus.createStream( - this.innerApiCalls.listSkus as gax.GaxCall, + this.innerApiCalls.listSkus as GaxCall, request, callSettings ); @@ -7153,7 +7153,7 @@ export class CloudChannelServiceClient { this.initialize(); return this.descriptors.page.listSkus.asyncIterate( this.innerApiCalls['listSkus'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -7316,7 +7316,7 @@ export class CloudChannelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listOffers.createStream( - this.innerApiCalls.listOffers as gax.GaxCall, + this.innerApiCalls.listOffers as GaxCall, request, callSettings ); @@ -7377,7 +7377,7 @@ export class CloudChannelServiceClient { this.initialize(); return this.descriptors.page.listOffers.asyncIterate( this.innerApiCalls['listOffers'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -7548,7 +7548,7 @@ export class CloudChannelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listPurchasableSkus.createStream( - this.innerApiCalls.listPurchasableSkus as gax.GaxCall, + this.innerApiCalls.listPurchasableSkus as GaxCall, request, callSettings ); @@ -7607,7 +7607,7 @@ export class CloudChannelServiceClient { this.initialize(); return this.descriptors.page.listPurchasableSkus.asyncIterate( this.innerApiCalls['listPurchasableSkus'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -7778,7 +7778,7 @@ export class CloudChannelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listPurchasableOffers.createStream( - this.innerApiCalls.listPurchasableOffers as gax.GaxCall, + this.innerApiCalls.listPurchasableOffers as GaxCall, request, callSettings ); @@ -7837,7 +7837,7 @@ export class CloudChannelServiceClient { this.initialize(); return this.descriptors.page.listPurchasableOffers.asyncIterate( this.innerApiCalls['listPurchasableOffers'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -8008,7 +8008,7 @@ export class CloudChannelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listSubscribers.createStream( - this.innerApiCalls.listSubscribers as gax.GaxCall, + this.innerApiCalls.listSubscribers as GaxCall, request, callSettings ); @@ -8063,7 +8063,7 @@ export class CloudChannelServiceClient { this.initialize(); return this.descriptors.page.listSubscribers.asyncIterate( this.innerApiCalls['listSubscribers'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-channel/test/gapic_cloud_channel_service_v1.ts b/packages/google-cloud-channel/test/gapic_cloud_channel_service_v1.ts index c30561df73d..ece777ad051 100644 --- a/packages/google-cloud-channel/test/gapic_cloud_channel_service_v1.ts +++ b/packages/google-cloud-channel/test/gapic_cloud_channel_service_v1.ts @@ -145,101 +145,116 @@ function stubAsyncIterationCall( } describe('v1.CloudChannelServiceClient', () => { - it('has servicePath', () => { - const servicePath = - cloudchannelserviceModule.v1.CloudChannelServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - cloudchannelserviceModule.v1.CloudChannelServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = cloudchannelserviceModule.v1.CloudChannelServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + cloudchannelserviceModule.v1.CloudChannelServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new cloudchannelserviceModule.v1.CloudChannelServiceClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + cloudchannelserviceModule.v1.CloudChannelServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new cloudchannelserviceModule.v1.CloudChannelServiceClient({ - fallback: true, + it('has port', () => { + const port = cloudchannelserviceModule.v1.CloudChannelServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new cloudchannelserviceModule.v1.CloudChannelServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = + new cloudchannelserviceModule.v1.CloudChannelServiceClient(); + assert(client); }); - assert.strictEqual(client.cloudChannelServiceStub, undefined); - await client.initialize(); - assert(client.cloudChannelServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new cloudchannelserviceModule.v1.CloudChannelServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new cloudchannelserviceModule.v1.CloudChannelServiceClient( + { + fallback: true, + } + ); + assert(client); }); - client.initialize(); - assert(client.cloudChannelServiceStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new cloudchannelserviceModule.v1.CloudChannelServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + assert.strictEqual(client.cloudChannelServiceStub, undefined); + await client.initialize(); + assert(client.cloudChannelServiceStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new cloudchannelserviceModule.v1.CloudChannelServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new cloudchannelserviceModule.v1.CloudChannelServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + assert(client.cloudChannelServiceStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.cloudChannelServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new cloudchannelserviceModule.v1.CloudChannelServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + assert.strictEqual(client.cloudChannelServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new cloudchannelserviceModule.v1.CloudChannelServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new cloudchannelserviceModule.v1.CloudChannelServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new cloudchannelserviceModule.v1.CloudChannelServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new cloudchannelserviceModule.v1.CloudChannelServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', } + ); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getCustomer', () => {