@google-cloud/channel
Advanced tools
Comparing version 3.0.1 to 3.1.0
@@ -559,2 +559,26 @@ /// <reference types="node" /> | ||
/** | ||
* Return a fully-qualified billingAccount resource name string. | ||
* | ||
* @param {string} account | ||
* @param {string} billing_account | ||
* @returns {string} Resource name string. | ||
*/ | ||
billingAccountPath(account: string, billingAccount: string): string; | ||
/** | ||
* Parse the account from BillingAccount resource. | ||
* | ||
* @param {string} billingAccountName | ||
* A fully-qualified path representing BillingAccount resource. | ||
* @returns {string} A string representing the account. | ||
*/ | ||
matchAccountFromBillingAccountName(billingAccountName: string): string | number; | ||
/** | ||
* Parse the billing_account from BillingAccount resource. | ||
* | ||
* @param {string} billingAccountName | ||
* A fully-qualified path representing BillingAccount resource. | ||
* @returns {string} A string representing the billing_account. | ||
*/ | ||
matchBillingAccountFromBillingAccountName(billingAccountName: string): string | number; | ||
/** | ||
* Return a fully-qualified channelPartnerLink resource name string. | ||
@@ -561,0 +585,0 @@ * |
@@ -143,2 +143,3 @@ "use strict"; | ||
this.pathTemplates = { | ||
billingAccountPathTemplate: new this._gaxModule.PathTemplate('accounts/{account}/billingAccounts/{billing_account}'), | ||
channelPartnerLinkPathTemplate: new this._gaxModule.PathTemplate('accounts/{account}/channelPartnerLinks/{channel_partner_link}'), | ||
@@ -719,2 +720,35 @@ channelPartnerRepricingConfigPathTemplate: new this._gaxModule.PathTemplate('accounts/{account}/channelPartnerLinks/{channel_partner}/channelPartnerRepricingConfigs/{channel_partner_repricing_config}'), | ||
/** | ||
* Return a fully-qualified billingAccount resource name string. | ||
* | ||
* @param {string} account | ||
* @param {string} billing_account | ||
* @returns {string} Resource name string. | ||
*/ | ||
billingAccountPath(account, billingAccount) { | ||
return this.pathTemplates.billingAccountPathTemplate.render({ | ||
account: account, | ||
billing_account: billingAccount, | ||
}); | ||
} | ||
/** | ||
* Parse the account from BillingAccount resource. | ||
* | ||
* @param {string} billingAccountName | ||
* A fully-qualified path representing BillingAccount resource. | ||
* @returns {string} A string representing the account. | ||
*/ | ||
matchAccountFromBillingAccountName(billingAccountName) { | ||
return this.pathTemplates.billingAccountPathTemplate.match(billingAccountName).account; | ||
} | ||
/** | ||
* Parse the billing_account from BillingAccount resource. | ||
* | ||
* @param {string} billingAccountName | ||
* A fully-qualified path representing BillingAccount resource. | ||
* @returns {string} A string representing the billing_account. | ||
*/ | ||
matchBillingAccountFromBillingAccountName(billingAccountName) { | ||
return this.pathTemplates.billingAccountPathTemplate.match(billingAccountName).billing_account; | ||
} | ||
/** | ||
* Return a fully-qualified channelPartnerLink resource name string. | ||
@@ -721,0 +755,0 @@ * |
@@ -255,2 +255,7 @@ { | ||
}, | ||
"QueryEligibleBillingAccounts": { | ||
"timeout_millis": 60000, | ||
"retry_codes_name": "unavailable", | ||
"retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f" | ||
}, | ||
"RegisterSubscriber": { | ||
@@ -257,0 +262,0 @@ "timeout_millis": 60000, |
# Changelog | ||
## [3.1.0](https://github.com/googleapis/google-cloud-node/compare/channel-v3.0.1...channel-v3.1.0) (2023-09-11) | ||
### Features | ||
* [channel] mark ChannelPartnerGranularity as deprecated and offer alternatives ([#4623](https://github.com/googleapis/google-cloud-node/issues/4623)) ([0805d0f](https://github.com/googleapis/google-cloud-node/commit/0805d0f4417a853f5c0f365f357f078f8c481c17)) | ||
## [3.0.1](https://github.com/googleapis/google-cloud-node/compare/channel-v3.0.0...channel-v3.0.1) (2023-09-06) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@google-cloud/channel", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "Channel client for Node.js", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -218,2 +218,3 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost." | ||
| Cloud_channel_service.provision_cloud_identity | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.provision_cloud_identity.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.provision_cloud_identity.js,packages/google-cloud-channel/samples/README.md) | | ||
| Cloud_channel_service.query_eligible_billing_accounts | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.query_eligible_billing_accounts.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.query_eligible_billing_accounts.js,packages/google-cloud-channel/samples/README.md) | | ||
| Cloud_channel_service.register_subscriber | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.register_subscriber.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.register_subscriber.js,packages/google-cloud-channel/samples/README.md) | | ||
@@ -220,0 +221,0 @@ | Cloud_channel_service.start_paid_service | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.start_paid_service.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-channel/samples/generated/v1/cloud_channel_service.start_paid_service.js,packages/google-cloud-channel/samples/README.md) | |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6089402
30
95237
300