diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/channel_partner_links.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/channel_partner_links.proto index fb301586ea8..d0607af278c 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/channel_partner_links.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/channel_partner_links.proto @@ -26,7 +26,9 @@ option java_multiple_files = true; option java_outer_classname = "ChannelPartnerLinksProto"; option java_package = "com.google.cloud.channel.v1"; -// The level of granularity the [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] will display. +// The level of granularity the +// [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] will +// display. enum ChannelPartnerLinkView { // The default / unset value. // The API will default to the BASIC view. @@ -72,24 +74,29 @@ message ChannelPartnerLink { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Cloud Identity ID of the linked reseller. - string reseller_cloud_identity_id = 2 [(google.api.field_behavior) = REQUIRED]; + string reseller_cloud_identity_id = 2 + [(google.api.field_behavior) = REQUIRED]; // Required. State of the channel partner link. - ChannelPartnerLinkState link_state = 3 [(google.api.field_behavior) = REQUIRED]; + ChannelPartnerLinkState link_state = 3 + [(google.api.field_behavior) = REQUIRED]; // Output only. URI of the web page where partner accepts the link invitation. string invite_link_uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Timestamp of when the channel partner link is created. - google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Timestamp of when the channel partner link is updated. - google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Public identifier that a customer must use to generate a transfer token - // to move to this distributor-reseller combination. + // Output only. Public identifier that a customer must use to generate a + // transfer token to move to this distributor-reseller combination. string public_id = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Cloud Identity info of the channel partner (IR). - CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; -} + CloudIdentityInfo channel_partner_cloud_identity_info = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} \ No newline at end of file diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/common.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/common.proto index 175d044e63b..2380722ac8d 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/common.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/common.proto @@ -149,4 +149,4 @@ message AdminUser { // Family name of the admin user. string family_name = 3; -} +} \ No newline at end of file diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/customers.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/customers.proto index e34432f2e67..18bf1ad99a1 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/customers.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/customers.proto @@ -45,7 +45,8 @@ message Customer { // embargoes, we require a region and zip code. You must provide valid // addresses for every customer. To set the customer's language, use the // Customer-level language code. - google.type.PostalAddress org_postal_address = 3 [(google.api.field_behavior) = REQUIRED]; + google.type.PostalAddress org_postal_address = 3 + [(google.api.field_behavior) = REQUIRED]; // Primary contact info. ContactInfo primary_contact_info = 4; @@ -62,10 +63,12 @@ message Customer { string domain = 6 [(google.api.field_behavior) = REQUIRED]; // Output only. Time when the customer was created. - google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when the customer was updated. - google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The customer's Cloud Identity ID if the customer has a Cloud // Identity resource. @@ -78,7 +81,8 @@ message Customer { // Output only. Cloud Identity information for the customer. // Populated only if a Cloud Identity account exists for this customer. - CloudIdentityInfo cloud_identity_info = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + CloudIdentityInfo cloud_identity_info = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Cloud Identity ID of the customer's channel partner. // Populated only if a channel partner exists for this customer. @@ -107,4 +111,4 @@ message ContactInfo { // The customer account's contact phone number. string phone = 7; -} +} \ No newline at end of file diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/entitlements.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/entitlements.proto index 35da239384e..8a6633b140c 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/entitlements.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/entitlements.proto @@ -47,7 +47,9 @@ message Entitlement { SUSPENDED = 5; } - // Suspension reason for an entitlement if [provisioning_state][google.cloud.channel.v1.Entitlement.provisioning_state] = SUSPENDED. + // Suspension reason for an entitlement if + // [provisioning_state][google.cloud.channel.v1.Entitlement.provisioning_state] + // = SUSPENDED. enum SuspensionReason { // Not used. SUSPENSION_REASON_UNSPECIFIED = 0; @@ -74,10 +76,12 @@ message Entitlement { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time at which the entitlement is created. - google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time at which the entitlement is updated. - google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The offer resource name for which the entitlement is to be // created. Takes the form: accounts/{account_id}/offers/{offer_id}. @@ -93,19 +97,23 @@ message Entitlement { CommitmentSettings commitment_settings = 12; // Output only. Current provisioning state of the entitlement. - ProvisioningState provisioning_state = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + ProvisioningState provisioning_state = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Service provisioning details for the entitlement. - ProvisionedService provisioned_service = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Enumerable of all current suspension reasons for an entitlement. - repeated SuspensionReason suspension_reasons = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. This purchase order (PO) information is for resellers to use for their - // company tracking usage. If a purchaseOrderId value is given, it appears in - // the API responses and shows up in the invoice. The property accepts up to - // 80 plain text characters. This is only supported for Google Workspace - // entitlements. + ProvisionedService provisioned_service = 16 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Enumerable of all current suspension reasons for an + // entitlement. + repeated SuspensionReason suspension_reasons = 18 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. This purchase order (PO) information is for resellers to use for + // their company tracking usage. If a purchaseOrderId value is given, it + // appears in the API responses and shows up in the invoice. The property + // accepts up to 80 plain text characters. This is only supported for Google + // Workspace entitlements. string purchase_order_id = 19 [(google.api.field_behavior) = OPTIONAL]; // Output only. Settings for trial offers. @@ -136,9 +144,9 @@ message Parameter { // Value of the parameter. Value value = 2; - // Output only. Specifies whether this parameter is allowed to be changed. For example, for - // a Google Workspace Business Starter entitlement in commitment plan, - // num_units is editable when entitlement is active. + // Output only. Specifies whether this parameter is allowed to be changed. For + // example, for a Google Workspace Business Starter entitlement in commitment + // plan, num_units is editable when entitlement is active. bool editable = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -146,32 +154,35 @@ message Parameter { message AssociationInfo { // The name of the base entitlement, for which this entitlement is an add-on. string base_entitlement = 1 [(google.api.resource_reference) = { - type: "cloudchannel.googleapis.com/Entitlement" - }]; + type: "cloudchannel.googleapis.com/Entitlement" + }]; } // Service provisioned for an entitlement. message ProvisionedService { - // Output only. Provisioning ID of the entitlement. For Google Workspace, this is the - // underlying Subscription ID. For Google Cloud Platform, this is the + // Output only. Provisioning ID of the entitlement. For Google Workspace, this + // is the underlying Subscription ID. For Google Cloud Platform, this is the // Billing Account ID of the billing subaccount." string provisioning_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The product pertaining to the provisioning resource as specified in the - // Offer. + // Output only. The product pertaining to the provisioning resource as + // specified in the Offer. string product_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The SKU pertaining to the provisioning resource as specified in the Offer. + // Output only. The SKU pertaining to the provisioning resource as specified + // in the Offer. string sku_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Commitment settings for commitment-based offers. message CommitmentSettings { // Output only. Commitment start timestamp. - google.protobuf.Timestamp start_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp start_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Commitment end timestamp. - google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. Renewal settings applicable for a commitment-based Offer. RenewalSettings renewal_settings = 4 [(google.api.field_behavior) = OPTIONAL]; @@ -218,7 +229,8 @@ message TransferableSku { // The SKU pertaining to the provisioning resource as specified in the Offer. Sku sku = 11; - // Optional. The customer to transfer has an entitlement with the populated legacy SKU. + // Optional. The customer to transfer has an entitlement with the populated + // legacy SKU. Sku legacy_sku = 12 [(google.api.field_behavior) = OPTIONAL]; } @@ -247,4 +259,4 @@ message TransferEligibility { // Specified the reason for ineligibility. Reason ineligibility_reason = 3; -} +} \ No newline at end of file diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/offers.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/offers.proto index ebe698e1f54..3a504045350 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/offers.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/offers.proto @@ -125,8 +125,8 @@ enum PeriodType { } // Represents an offer made to resellers for purchase. -// An offer is associated with a [Sku][google.cloud.channel.v1.Sku], has a plan for payment, a price, and -// defines the constraints for buying. +// An offer is associated with a [Sku][google.cloud.channel.v1.Sku], has a plan +// for payment, a price, and defines the constraints for buying. message Offer { option (google.api.resource) = { type: "cloudchannel.googleapis.com/Offer" @@ -156,7 +156,8 @@ message Offer { google.protobuf.Timestamp start_time = 7; // Output only. End of the Offer validity time. - google.protobuf.Timestamp end_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Parameters required to use current Offer to purchase. repeated ParameterDefinition parameter_definitions = 9; @@ -326,4 +327,4 @@ message Period { // Period Type. PeriodType period_type = 2; -} +} \ No newline at end of file diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/operations.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/operations.proto index ad432919bf7..e9e190772cb 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/operations.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/operations.proto @@ -21,7 +21,8 @@ option java_multiple_files = true; option java_outer_classname = "OperationsProto"; option java_package = "com.google.cloud.channel.v1"; -// Provides contextual information about a [google.longrunning.Operation][google.longrunning.Operation]. +// Provides contextual information about a +// [google.longrunning.Operation][google.longrunning.Operation]. message OperationMetadata { // RPCs that return a Long Running Operation. enum OperationType { @@ -64,4 +65,4 @@ message OperationMetadata { // The RPC that initiated this Long Running Operation. OperationType operation_type = 1; -} +} \ No newline at end of file diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/products.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/products.proto index 8dc39767a96..411e1698b96 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/products.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/products.proto @@ -91,4 +91,4 @@ message Media { // Type of the media. MediaType type = 3; -} +} \ No newline at end of file diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/reports_service.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/reports_service.proto index 464061766cf..1cb87124cb6 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/reports_service.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/reports_service.proto @@ -38,7 +38,8 @@ option java_package = "com.google.cloud.channel.v1"; // Google Workspace.) service CloudChannelReportsService { option (google.api.default_host) = "cloudchannel.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/apps.reports.usage.readonly"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/apps.reports.usage.readonly"; // Begins generation of data for a given report. The report // identifier is a UID (for example, `613bf59q`). @@ -62,7 +63,8 @@ service CloudChannelReportsService { // instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. // // To get the results of report generation, call - // [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults] with the + // [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults] + // with the // [RunReportJobResponse.report_job][google.cloud.channel.v1.RunReportJobResponse.report_job]. rpc RunReportJob(RunReportJobRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -75,8 +77,10 @@ service CloudChannelReportsService { }; } - // Retrieves data generated by [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob]. - rpc FetchReportResults(FetchReportResultsRequest) returns (FetchReportResultsResponse) { + // Retrieves data generated by + // [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob]. + rpc FetchReportResults(FetchReportResultsRequest) + returns (FetchReportResultsResponse) { option (google.api.http) = { post: "/v1/{report_job=accounts/*/reportJobs/*}:fetchReportResults" body: "*" @@ -94,10 +98,11 @@ service CloudChannelReportsService { } } -// Request message for [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob]. +// Request message for +// [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob]. message RunReportJobRequest { - // Required. The report's resource name. Specifies the account and report used to - // generate report data. The report_id identifier is a UID (for example, + // Required. The report's resource name. Specifies the account and report used + // to generate report data. The report_id identifier is a UID (for example, // `613bf59q`). // Name uses the format: // accounts/{account_id}/reports/{report_id} @@ -111,8 +116,8 @@ message RunReportJobRequest { // Optional. The range of usage or invoice dates to include in the result. DateRange date_range = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. A structured string that defines conditions on dimension columns to - // restrict the report output. + // Optional. A structured string that defines conditions on dimension columns + // to restrict the report output. // // Filters support logical operators (AND, OR, NOT) and conditional operators // (=, !=, <, >, <=, and >=) using `column_id` as keys. @@ -130,9 +135,11 @@ message RunReportJobRequest { string language_code = 4 [(google.api.field_behavior) = OPTIONAL]; } -// Response message for [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob]. +// Response message for +// [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob]. message RunReportJobResponse { - // Pass `report_job.name` to [FetchReportResultsRequest.report_job][google.cloud.channel.v1.FetchReportResultsRequest.report_job] + // Pass `report_job.name` to + // [FetchReportResultsRequest.report_job][google.cloud.channel.v1.FetchReportResultsRequest.report_job] // to retrieve the report's results. ReportJob report_job = 1; @@ -142,9 +149,11 @@ message RunReportJobResponse { ReportResultsMetadata report_metadata = 2; } -// Request message for [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults]. +// Request message for +// [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults]. message FetchReportResultsRequest { - // Required. The report job created by [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob]. + // Required. The report job created by + // [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob]. // Report_job uses the format: // accounts/{account_id}/reportJobs/{report_job_id} string report_job = 1 [ @@ -154,9 +163,9 @@ message FetchReportResultsRequest { } ]; - // Optional. Requested page size of the report. The server may return fewer results than - // requested. If you don't specify a page size, the server uses a sensible - // default (may change over time). + // Optional. Requested page size of the report. The server may return fewer + // results than requested. If you don't specify a page size, the server uses a + // sensible default (may change over time). // // The maximum value is 30,000; the server will change larger values to // 30,000. @@ -164,12 +173,15 @@ message FetchReportResultsRequest { // Optional. A token that specifies a page of results beyond the first page. // Obtained through - // [FetchReportResultsResponse.next_page_token][google.cloud.channel.v1.FetchReportResultsResponse.next_page_token] of the previous - // [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults] call. + // [FetchReportResultsResponse.next_page_token][google.cloud.channel.v1.FetchReportResultsResponse.next_page_token] + // of the previous + // [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults] + // call. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } -// Response message for [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults]. +// Response message for +// [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults]. // Contains a tabular representation of the report results. message FetchReportResultsResponse { // The metadata for the report results (display name, columns, row count, and @@ -180,27 +192,30 @@ message FetchReportResultsResponse { // of the columns from `report_metadata`. repeated Row rows = 2; - // Pass this token to [FetchReportResultsRequest.page_token][google.cloud.channel.v1.FetchReportResultsRequest.page_token] to retrieve - // the next page of results. + // Pass this token to + // [FetchReportResultsRequest.page_token][google.cloud.channel.v1.FetchReportResultsRequest.page_token] + // to retrieve the next page of results. string next_page_token = 3; } -// Request message for [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports]. +// Request message for +// [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports]. message ListReportsRequest { - // Required. The resource name of the partner account to list available reports for. - // Parent uses the format: - // accounts/{account_id} + // Required. The resource name of the partner account to list available + // reports for. Parent uses the format: accounts/{account_id} string parent = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. Requested page size of the report. The server might return fewer results - // than requested. If unspecified, returns 20 reports. - // The maximum value is 100. + // Optional. Requested page size of the report. The server might return fewer + // results than requested. If unspecified, returns 20 reports. The maximum + // value is 100. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token that specifies a page of results beyond the first page. // Obtained through - // [ListReportsResponse.next_page_token][google.cloud.channel.v1.ListReportsResponse.next_page_token] of the previous - // [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports] call. + // [ListReportsResponse.next_page_token][google.cloud.channel.v1.ListReportsResponse.next_page_token] + // of the previous + // [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports] + // call. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. The BCP-47 language code, such as "en-US". If specified, the @@ -210,18 +225,21 @@ message ListReportsRequest { string language_code = 4 [(google.api.field_behavior) = OPTIONAL]; } -// Response message for [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports]. +// Response message for +// [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports]. message ListReportsResponse { // The reports available to the partner. repeated Report reports = 1; - // Pass this token to [FetchReportResultsRequest.page_token][google.cloud.channel.v1.FetchReportResultsRequest.page_token] to retrieve - // the next page of results. + // Pass this token to + // [FetchReportResultsRequest.page_token][google.cloud.channel.v1.FetchReportResultsRequest.page_token] + // to retrieve the next page of results. string next_page_token = 2; } // The result of a [RunReportJob][] operation. Contains the name to use in -// [FetchReportResultsRequest.report_job][google.cloud.channel.v1.FetchReportResultsRequest.report_job] and the status of the operation. +// [FetchReportResultsRequest.report_job][google.cloud.channel.v1.FetchReportResultsRequest.report_job] +// and the status of the operation. message ReportJob { option (google.api.resource) = { type: "cloudchannel.googleapis.com/ReportJob" @@ -238,7 +256,8 @@ message ReportJob { } // The features describing the data. Returned by -// [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob] and +// [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob] +// and // [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults]. message ReportResultsMetadata { // Details of the completed report. @@ -404,9 +423,9 @@ message Report { pattern: "accounts/{account}/reports/{report}" }; - // Required. The report's resource name. Specifies the account and report used to - // generate report data. The report_id identifier is a UID - // (for example, `613bf59q`). + // Required. The report's resource name. Specifies the account and report used + // to generate report data. The report_id identifier is a UID (for example, + // `613bf59q`). // // Name uses the format: // accounts/{account_id}/reports/{report_id} @@ -422,4 +441,4 @@ message Report { // A description of other aspects of the report, such as the products // it supports. string description = 4; -} +} \ No newline at end of file diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/repricing.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/repricing.proto index 7cc2f26072c..1a15067b378 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/repricing.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/repricing.proto @@ -54,14 +54,16 @@ message CustomerRepricingConfig { // accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. The configuration for bill modifications made by a reseller before - // sending it to customers. + // Required. The configuration for bill modifications made by a reseller + // before sending it to customers. RepricingConfig repricing_config = 2 [(google.api.field_behavior) = REQUIRED]; - // Output only. Timestamp of an update to the repricing rule. If `update_time` is after - // [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] then it indicates this was set - // mid-month. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Timestamp of an update to the repricing rule. If `update_time` + // is after + // [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + // then it indicates this was set mid-month. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Configuration for how a distributor will rebill a channel partner @@ -77,14 +79,16 @@ message ChannelPartnerRepricingConfig { // accounts/{account_id}/channelPartnerLinks/{channel_partner_id}/channelPartnerRepricingConfigs/{id}. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. The configuration for bill modifications made by a reseller before - // sending it to ChannelPartner. + // Required. The configuration for bill modifications made by a reseller + // before sending it to ChannelPartner. RepricingConfig repricing_config = 2 [(google.api.field_behavior) = REQUIRED]; - // Output only. Timestamp of an update to the repricing rule. If `update_time` is after - // [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] then it indicates this was set - // mid-month. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Timestamp of an update to the repricing rule. If `update_time` + // is after + // [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + // then it indicates this was set mid-month. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Configuration for repricing a Google bill over a period of time. @@ -95,16 +99,14 @@ message RepricingConfig { // Format: // accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} string entitlement = 1 [(google.api.resource_reference) = { - type: "cloudchannel.googleapis.com/Entitlement" - }]; + type: "cloudchannel.googleapis.com/Entitlement" + }]; } // Applies the repricing configuration at the channel partner level. // The channel partner value is derived from the resource name. Takes an // empty json object. - message ChannelPartnerGranularity { - - } + message ChannelPartnerGranularity {} // Required. Defines the granularity for repricing. oneof granularity { @@ -117,16 +119,23 @@ message RepricingConfig { ChannelPartnerGranularity channel_partner_granularity = 5; } - // Required. The YearMonth when these adjustments activate. The Day field needs to be - // "0" since we only accept YearMonth repricing boundaries. - google.type.Date effective_invoice_month = 1 [(google.api.field_behavior) = REQUIRED]; + // Required. The YearMonth when these adjustments activate. The Day field + // needs to be "0" since we only accept YearMonth repricing boundaries. + google.type.Date effective_invoice_month = 1 + [(google.api.field_behavior) = REQUIRED]; // Required. Information about the adjustment. RepricingAdjustment adjustment = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The [RebillingBasis][google.cloud.channel.v1.RebillingBasis] to use for this bill. Specifies the relative cost - // based on repricing costs you will apply. + // Required. The [RebillingBasis][google.cloud.channel.v1.RebillingBasis] to + // use for this bill. Specifies the relative cost based on repricing costs you + // will apply. RebillingBasis rebilling_basis = 3 [(google.api.field_behavior) = REQUIRED]; + + // The conditional overrides to apply for this configuration. If you list + // multiple overrides, only the first valid override is used. If you don't + // list any overrides, the API uses the normal adjustment and rebilling basis. + repeated ConditionalOverride conditional_overrides = 6; } // A type that represents the various adjustments you can apply to a bill. @@ -147,3 +156,39 @@ message PercentageAdjustment { // Pass-Through => "0.00" google.type.Decimal percentage = 2; } + +// Specifies the override to conditionally apply. +message ConditionalOverride { + // Required. Information about the applied override's adjustment. + RepricingAdjustment adjustment = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The [RebillingBasis][google.cloud.channel.v1.RebillingBasis] to + // use for the applied override. Shows the relative cost based on your + // repricing costs. + RebillingBasis rebilling_basis = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Specifies the condition which, if met, will apply the override. + RepricingCondition repricing_condition = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Represents the various repricing conditions you can use for a conditional +// override. +message RepricingCondition { + // Represents the types of existing conditional statements. + oneof condition { + // SKU Group condition for override. + SkuGroupCondition sku_group_condition = 1; + } +} + +// A condition that applies the override if a line item SKU is found in the SKU +// group. +message SkuGroupCondition { + // Specifies a SKU group (https://cloud.google.com/skus/sku-groups). + // Resource name of SKU group. Format: + // accounts/{account}/skuGroups/{sku_group}. + // Example: + // "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041". + string sku_group = 1; +} \ No newline at end of file diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/service.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/service.proto index bbb092e181f..93730e9ea33 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/service.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/service.proto @@ -46,18 +46,20 @@ option java_package = "com.google.cloud.channel.v1"; // 3. Resellers and distributors can manage customer entitlements. // // CloudChannelService exposes the following resources: -// - [Customer][google.cloud.channel.v1.Customer]s: An entity—usually an enterprise—managed by a reseller or -// distributor. +// - [Customer][google.cloud.channel.v1.Customer]s: An entity-usually an +// enterprise-managed by a reseller or distributor. // -// - [Entitlement][google.cloud.channel.v1.Entitlement]s: An entity that provides a customer with the means to use -// a service. Entitlements are created or updated as a result of a successful -// fulfillment. +// - [Entitlement][google.cloud.channel.v1.Entitlement]s: An entity that +// provides a customer with the means to use a service. Entitlements are created +// or updated as a result of a successful fulfillment. // -// - [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink]s: An entity that identifies links between -// distributors and their indirect resellers in a channel. +// - [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink]s: An +// entity that identifies links between distributors and their indirect +// resellers in a channel. service CloudChannelService { option (google.api.default_host) = "cloudchannel.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/apps.order"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/apps.order"; // List [Customer][google.cloud.channel.v1.Customer]s. // @@ -68,7 +70,8 @@ service CloudChannelService { // * INVALID_ARGUMENT: Required request parameters are missing or invalid. // // Return value: - // List of [Customer][google.cloud.channel.v1.Customer]s, or an empty list if there are no customers. + // List of [Customer][google.cloud.channel.v1.Customer]s, or an empty list if + // there are no customers. rpc ListCustomers(ListCustomersRequest) returns (ListCustomersResponse) { option (google.api.http) = { get: "/v1/{parent=accounts/*}/customers" @@ -78,7 +81,8 @@ service CloudChannelService { }; } - // Returns the requested [Customer][google.cloud.channel.v1.Customer] resource. + // Returns the requested [Customer][google.cloud.channel.v1.Customer] + // resource. // // Possible error codes: // @@ -111,20 +115,24 @@ service CloudChannelService { // * INVALID_VALUE: Invalid domain value in the request. // // Return value: - // A list of [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resources for the domain (may be - // empty) + // A list of + // [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] + // resources for the domain (may be empty) // // Note: in the v1alpha1 version of the API, a NOT_FOUND error returns if - // no [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resources match the domain. - rpc CheckCloudIdentityAccountsExist(CheckCloudIdentityAccountsExistRequest) returns (CheckCloudIdentityAccountsExistResponse) { + // no + // [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] + // resources match the domain. + rpc CheckCloudIdentityAccountsExist(CheckCloudIdentityAccountsExistRequest) + returns (CheckCloudIdentityAccountsExistResponse) { option (google.api.http) = { post: "/v1/{parent=accounts/*}:checkCloudIdentityAccountsExist" body: "*" }; } - // Creates a new [Customer][google.cloud.channel.v1.Customer] resource under the reseller or distributor - // account. + // Creates a new [Customer][google.cloud.channel.v1.Customer] resource under + // the reseller or distributor account. // // Possible error codes: // @@ -147,15 +155,16 @@ service CloudChannelService { }; } - // Updates an existing [Customer][google.cloud.channel.v1.Customer] resource for the reseller or - // distributor. + // Updates an existing [Customer][google.cloud.channel.v1.Customer] resource + // for the reseller or distributor. // // Possible error codes: // // * PERMISSION_DENIED: The reseller account making the request is different // from the reseller account in the API request. // * INVALID_ARGUMENT: Required request parameters are missing or invalid. - // * NOT_FOUND: No [Customer][google.cloud.channel.v1.Customer] resource found for the name in the request. + // * NOT_FOUND: No [Customer][google.cloud.channel.v1.Customer] resource found + // for the name in the request. // // Return value: // The updated [Customer][google.cloud.channel.v1.Customer] resource. @@ -178,7 +187,8 @@ service CloudChannelService { // this customer. // * INVALID_ARGUMENT: Required request parameters are missing or invalid. // * FAILED_PRECONDITION: The customer has existing entitlements. - // * NOT_FOUND: No [Customer][google.cloud.channel.v1.Customer] resource found for the name in the request. + // * NOT_FOUND: No [Customer][google.cloud.channel.v1.Customer] resource found + // for the name in the request. rpc DeleteCustomer(DeleteCustomerRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=accounts/*/customers/*}" @@ -189,10 +199,10 @@ service CloudChannelService { option (google.api.method_signature) = "name"; } - // Imports a [Customer][google.cloud.channel.v1.Customer] from the Cloud Identity associated with the provided - // Cloud Identity ID or domain before a TransferEntitlements call. If a - // linked Customer already exists and overwrite_if_exists is true, it will - // update that Customer's data. + // Imports a [Customer][google.cloud.channel.v1.Customer] from the Cloud + // Identity associated with the provided Cloud Identity ID or domain before a + // TransferEntitlements call. If a linked Customer already exists and + // overwrite_if_exists is true, it will update that Customer's data. // // Possible error codes: // @@ -238,7 +248,8 @@ service CloudChannelService { // To get the results of the operation, call the GetOperation method of // CloudChannelOperationsService. The Operation metadata contains an // instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. - rpc ProvisionCloudIdentity(ProvisionCloudIdentityRequest) returns (google.longrunning.Operation) { + rpc ProvisionCloudIdentity(ProvisionCloudIdentityRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{customer=accounts/*/customers/*}:provisionCloudIdentity" body: "*" @@ -249,7 +260,8 @@ service CloudChannelService { }; } - // Lists [Entitlement][google.cloud.channel.v1.Entitlement]s belonging to a customer. + // Lists [Entitlement][google.cloud.channel.v1.Entitlement]s belonging to a + // customer. // // Possible error codes: // @@ -257,15 +269,17 @@ service CloudChannelService { // * INVALID_ARGUMENT: Required request parameters are missing or invalid. // // Return value: - // A list of the customer's [Entitlement][google.cloud.channel.v1.Entitlement]s. - rpc ListEntitlements(ListEntitlementsRequest) returns (ListEntitlementsResponse) { + // A list of the customer's + // [Entitlement][google.cloud.channel.v1.Entitlement]s. + rpc ListEntitlements(ListEntitlementsRequest) + returns (ListEntitlementsResponse) { option (google.api.http) = { get: "/v1/{parent=accounts/*/customers/*}/entitlements" }; } - // List [TransferableSku][google.cloud.channel.v1.TransferableSku]s of a customer based on the Cloud Identity ID or - // Customer Name in the request. + // List [TransferableSku][google.cloud.channel.v1.TransferableSku]s of a + // customer based on the Cloud Identity ID or Customer Name in the request. // // Use this method to list the entitlements information of an // unowned customer. You should provide the customer's @@ -281,16 +295,18 @@ service CloudChannelService { // * INVALID_ARGUMENT: Required request parameters are missing or invalid. // // Return value: - // A list of the customer's [TransferableSku][google.cloud.channel.v1.TransferableSku]. - rpc ListTransferableSkus(ListTransferableSkusRequest) returns (ListTransferableSkusResponse) { + // A list of the customer's + // [TransferableSku][google.cloud.channel.v1.TransferableSku]. + rpc ListTransferableSkus(ListTransferableSkusRequest) + returns (ListTransferableSkusResponse) { option (google.api.http) = { post: "/v1/{parent=accounts/*}:listTransferableSkus" body: "*" }; } - // List [TransferableOffer][google.cloud.channel.v1.TransferableOffer]s of a customer based on Cloud Identity ID or - // Customer Name in the request. + // List [TransferableOffer][google.cloud.channel.v1.TransferableOffer]s of a + // customer based on Cloud Identity ID or Customer Name in the request. // // Use this method when a reseller gets the entitlement information of an // unowned customer. The reseller should provide the customer's @@ -307,15 +323,18 @@ service CloudChannelService { // * INVALID_ARGUMENT: Required request parameters are missing or invalid. // // Return value: - // List of [TransferableOffer][google.cloud.channel.v1.TransferableOffer] for the given customer and SKU. - rpc ListTransferableOffers(ListTransferableOffersRequest) returns (ListTransferableOffersResponse) { + // List of [TransferableOffer][google.cloud.channel.v1.TransferableOffer] for + // the given customer and SKU. + rpc ListTransferableOffers(ListTransferableOffersRequest) + returns (ListTransferableOffersResponse) { option (google.api.http) = { post: "/v1/{parent=accounts/*}:listTransferableOffers" body: "*" }; } - // Returns the requested [Entitlement][google.cloud.channel.v1.Entitlement] resource. + // Returns the requested [Entitlement][google.cloud.channel.v1.Entitlement] + // resource. // // Possible error codes: // @@ -367,7 +386,8 @@ service CloudChannelService { // To get the results of the operation, call the GetOperation method of // CloudChannelOperationsService. The Operation metadata will contain an // instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. - rpc CreateEntitlement(CreateEntitlementRequest) returns (google.longrunning.Operation) { + rpc CreateEntitlement(CreateEntitlementRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=accounts/*/customers/*}/entitlements" body: "*" @@ -401,7 +421,8 @@ service CloudChannelService { // To get the results of the operation, call the GetOperation method of // CloudChannelOperationsService. The Operation metadata will contain an // instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. - rpc ChangeParameters(ChangeParametersRequest) returns (google.longrunning.Operation) { + rpc ChangeParameters(ChangeParametersRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=accounts/*/customers/*/entitlements/*}:changeParameters" body: "*" @@ -435,7 +456,8 @@ service CloudChannelService { // To get the results of the operation, call the GetOperation method of // CloudChannelOperationsService. The Operation metadata will contain an // instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. - rpc ChangeRenewalSettings(ChangeRenewalSettingsRequest) returns (google.longrunning.Operation) { + rpc ChangeRenewalSettings(ChangeRenewalSettingsRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=accounts/*/customers/*/entitlements/*}:changeRenewalSettings" body: "*" @@ -502,7 +524,8 @@ service CloudChannelService { // To get the results of the operation, call the GetOperation method of // CloudChannelOperationsService. The Operation metadata will contain an // instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. - rpc StartPaidService(StartPaidServiceRequest) returns (google.longrunning.Operation) { + rpc StartPaidService(StartPaidServiceRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=accounts/*/customers/*/entitlements/*}:startPaidService" body: "*" @@ -534,7 +557,8 @@ service CloudChannelService { // To get the results of the operation, call the GetOperation method of // CloudChannelOperationsService. The Operation metadata will contain an // instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. - rpc SuspendEntitlement(SuspendEntitlementRequest) returns (google.longrunning.Operation) { + rpc SuspendEntitlement(SuspendEntitlementRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=accounts/*/customers/*/entitlements/*}:suspend" body: "*" @@ -571,7 +595,8 @@ service CloudChannelService { // CloudChannelOperationsService. The response will contain // google.protobuf.Empty on success. The Operation metadata will contain an // instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. - rpc CancelEntitlement(CancelEntitlementRequest) returns (google.longrunning.Operation) { + rpc CancelEntitlement(CancelEntitlementRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=accounts/*/customers/*/entitlements/*}:cancel" body: "*" @@ -609,7 +634,8 @@ service CloudChannelService { // To get the results of the operation, call the GetOperation method of // CloudChannelOperationsService. The Operation metadata will contain an // instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. - rpc ActivateEntitlement(ActivateEntitlementRequest) returns (google.longrunning.Operation) { + rpc ActivateEntitlement(ActivateEntitlementRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{name=accounts/*/customers/*/entitlements/*}:activate" body: "*" @@ -649,7 +675,8 @@ service CloudChannelService { // To get the results of the operation, call the GetOperation method of // CloudChannelOperationsService. The Operation metadata will contain an // instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. - rpc TransferEntitlements(TransferEntitlementsRequest) returns (google.longrunning.Operation) { + rpc TransferEntitlements(TransferEntitlementsRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=accounts/*/customers/*}:transferEntitlements" body: "*" @@ -689,7 +716,8 @@ service CloudChannelService { // CloudChannelOperationsService. The response will contain // google.protobuf.Empty on success. The Operation metadata will contain an // instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. - rpc TransferEntitlementsToGoogle(TransferEntitlementsToGoogleRequest) returns (google.longrunning.Operation) { + rpc TransferEntitlementsToGoogle(TransferEntitlementsToGoogleRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=accounts/*/customers/*}:transferEntitlementsToGoogle" body: "*" @@ -700,8 +728,8 @@ service CloudChannelService { }; } - // List [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink]s belonging to a distributor. - // You must be a distributor to call this method. + // List [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink]s + // belonging to a distributor. You must be a distributor to call this method. // // Possible error codes: // @@ -710,14 +738,17 @@ service CloudChannelService { // * INVALID_ARGUMENT: Required request parameters are missing or invalid. // // Return value: - // The list of the distributor account's [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resources. - rpc ListChannelPartnerLinks(ListChannelPartnerLinksRequest) returns (ListChannelPartnerLinksResponse) { + // The list of the distributor account's + // [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resources. + rpc ListChannelPartnerLinks(ListChannelPartnerLinksRequest) + returns (ListChannelPartnerLinksResponse) { option (google.api.http) = { get: "/v1/{parent=accounts/*}/channelPartnerLinks" }; } - // Returns the requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource. + // Returns the requested + // [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource. // You must be a distributor to call this method. // // Possible error codes: @@ -729,8 +760,10 @@ service CloudChannelService { // invalid channel partner link name. // // Return value: - // The [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource. - rpc GetChannelPartnerLink(GetChannelPartnerLinkRequest) returns (ChannelPartnerLink) { + // The [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] + // resource. + rpc GetChannelPartnerLink(GetChannelPartnerLinkRequest) + returns (ChannelPartnerLink) { option (google.api.http) = { get: "/v1/{name=accounts/*/channelPartnerLinks/*}" }; @@ -757,8 +790,10 @@ service CloudChannelService { // Contact Cloud Channel support. // // Return value: - // The new [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource. - rpc CreateChannelPartnerLink(CreateChannelPartnerLinkRequest) returns (ChannelPartnerLink) { + // The new [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] + // resource. + rpc CreateChannelPartnerLink(CreateChannelPartnerLinkRequest) + returns (ChannelPartnerLink) { option (google.api.http) = { post: "/v1/{parent=accounts/*}/channelPartnerLinks" body: "channel_partner_link" @@ -785,8 +820,10 @@ service CloudChannelService { // Contact Cloud Channel support. // // Return value: - // The updated [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource. - rpc UpdateChannelPartnerLink(UpdateChannelPartnerLinkRequest) returns (ChannelPartnerLink) { + // The updated + // [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource. + rpc UpdateChannelPartnerLink(UpdateChannelPartnerLinkRequest) + returns (ChannelPartnerLink) { option (google.api.http) = { patch: "/v1/{name=accounts/*/channelPartnerLinks/*}" body: "*" @@ -800,14 +837,18 @@ service CloudChannelService { // // * PERMISSION_DENIED: If the account making the request and the account // being queried are different. - // * NOT_FOUND: The [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] was not found. + // * NOT_FOUND: The + // [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + // was not found. // * INTERNAL: Any non-user error related to technical issues in the // backend. In this case, contact Cloud Channel support. // // Return Value: - // If successful, the [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] resource, otherwise returns - // an error. - rpc GetCustomerRepricingConfig(GetCustomerRepricingConfigRequest) returns (CustomerRepricingConfig) { + // If successful, the + // [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + // resource, otherwise returns an error. + rpc GetCustomerRepricingConfig(GetCustomerRepricingConfigRequest) + returns (CustomerRepricingConfig) { option (google.api.http) = { get: "/v1/{name=accounts/*/customers/*/customerRepricingConfigs/*}" }; @@ -821,21 +862,25 @@ service CloudChannelService { // // * PERMISSION_DENIED: If the account making the request and the account // being queried are different. - // * NOT_FOUND: The [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] specified does not exist or is - // not associated with the given account. + // * NOT_FOUND: The + // [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + // specified does not exist or is not associated with the given account. // * INTERNAL: Any non-user error related to technical issues in the // backend. In this case, contact Cloud Channel support. // // Return Value: - // If successful, the [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] resources. The - // data for each resource is displayed in the ascending order of: + // If successful, the + // [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + // resources. The data for each resource is displayed in the ascending order + // of: // * customer ID // * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement] // * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] // * [CustomerRepricingConfig.update_time][google.cloud.channel.v1.CustomerRepricingConfig.update_time] // // If unsuccessful, returns an error. - rpc ListCustomerRepricingConfigs(ListCustomerRepricingConfigsRequest) returns (ListCustomerRepricingConfigsResponse) { + rpc ListCustomerRepricingConfigs(ListCustomerRepricingConfigsRequest) + returns (ListCustomerRepricingConfigsResponse) { option (google.api.http) = { get: "/v1/{parent=accounts/*/customers/*}/customerRepricingConfigs" }; @@ -844,9 +889,9 @@ service CloudChannelService { // Creates a CustomerRepricingConfig. Call this method to set modifications // for a specific customer's bill. You can only create configs if the - // [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] is a - // future month. If needed, you can create a config for the current month, - // with some restrictions. + // [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + // is a future month. If needed, you can create a config for the current + // month, with some restrictions. // // When creating a config for a future month, make sure there are no existing // configs for that @@ -860,9 +905,11 @@ service CloudChannelService { // Changes to the config may be immediate, but may take up to 24 hours. // * There is a limit of ten configs for any // [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement] - // or [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]. - // * The contained [CustomerRepricingConfig.repricing_config][google.cloud.channel.v1.CustomerRepricingConfig.repricing_config] vaule must be - // different from the value used in the current config for a + // or + // [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]. + // * The contained + // [CustomerRepricingConfig.repricing_config][google.cloud.channel.v1.CustomerRepricingConfig.repricing_config] + // vaule must be different from the value used in the current config for a // [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement]. // // Possible Error Codes: @@ -872,15 +919,18 @@ service CloudChannelService { // * INVALID_ARGUMENT: Missing or invalid required parameters in the // request. Also displays if the updated config is for the current month or // past months. - // * NOT_FOUND: The [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] specified does not exist or is - // not associated with the given account. + // * NOT_FOUND: The + // [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + // specified does not exist or is not associated with the given account. // * INTERNAL: Any non-user error related to technical issues in the // backend. In this case, contact Cloud Channel support. // // Return Value: - // If successful, the updated [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] resource, otherwise - // returns an error. - rpc CreateCustomerRepricingConfig(CreateCustomerRepricingConfigRequest) returns (CustomerRepricingConfig) { + // If successful, the updated + // [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + // resource, otherwise returns an error. + rpc CreateCustomerRepricingConfig(CreateCustomerRepricingConfigRequest) + returns (CustomerRepricingConfig) { option (google.api.http) = { post: "/v1/{parent=accounts/*/customers/*}/customerRepricingConfigs" body: "customer_repricing_config" @@ -893,10 +943,11 @@ service CloudChannelService { // CustomerRepricingConfig. // // You can only update configs if the - // [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] is a - // future month. To make changes to configs for the current month, use - // [CreateCustomerRepricingConfig][google.cloud.channel.v1.CloudChannelService.CreateCustomerRepricingConfig], taking note of its restrictions. You - // cannot update the [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]. + // [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + // is a future month. To make changes to configs for the current month, use + // [CreateCustomerRepricingConfig][google.cloud.channel.v1.CloudChannelService.CreateCustomerRepricingConfig], + // taking note of its restrictions. You cannot update the + // [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]. // // When updating a config in the future: // @@ -909,15 +960,18 @@ service CloudChannelService { // * INVALID_ARGUMENT: Missing or invalid required parameters in the // request. Also displays if the updated config is for the current month or // past months. - // * NOT_FOUND: The [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] specified does not exist or is - // not associated with the given account. + // * NOT_FOUND: The + // [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + // specified does not exist or is not associated with the given account. // * INTERNAL: Any non-user error related to technical issues in the // backend. In this case, contact Cloud Channel support. // // Return Value: - // If successful, the updated [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] resource, otherwise - // returns an error. - rpc UpdateCustomerRepricingConfig(UpdateCustomerRepricingConfigRequest) returns (CustomerRepricingConfig) { + // If successful, the updated + // [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + // resource, otherwise returns an error. + rpc UpdateCustomerRepricingConfig(UpdateCustomerRepricingConfigRequest) + returns (CustomerRepricingConfig) { option (google.api.http) = { patch: "/v1/{customer_repricing_config.name=accounts/*/customers/*/customerRepricingConfigs/*}" body: "customer_repricing_config" @@ -925,20 +979,25 @@ service CloudChannelService { option (google.api.method_signature) = "customer_repricing_config"; } - // Deletes the given [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] permanently. You can only - // delete configs if their [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] is set - // to a date after the current month. + // Deletes the given + // [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + // permanently. You can only delete configs if their + // [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + // is set to a date after the current month. // // Possible error codes: // // * PERMISSION_DENIED: The account making the request does not own // this customer. // * INVALID_ARGUMENT: Required request parameters are missing or invalid. - // * FAILED_PRECONDITION: The [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] is active or in the - // past. - // * NOT_FOUND: No [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] found for the name in the - // request. - rpc DeleteCustomerRepricingConfig(DeleteCustomerRepricingConfigRequest) returns (google.protobuf.Empty) { + // * FAILED_PRECONDITION: The + // [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + // is active or in the past. + // * NOT_FOUND: No + // [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] + // found for the name in the request. + rpc DeleteCustomerRepricingConfig(DeleteCustomerRepricingConfigRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=accounts/*/customers/*/customerRepricingConfigs/*}" }; @@ -952,14 +1011,18 @@ service CloudChannelService { // // * PERMISSION_DENIED: If the account making the request and the account // being queried are different. - // * NOT_FOUND: The [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] was not found. + // * NOT_FOUND: The + // [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + // was not found. // * INTERNAL: Any non-user error related to technical issues in the // backend. In this case, contact Cloud Channel support. // // Return Value: - // If successful, the [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] resource, otherwise - // returns an error. - rpc GetChannelPartnerRepricingConfig(GetChannelPartnerRepricingConfigRequest) returns (ChannelPartnerRepricingConfig) { + // If successful, the + // [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + // resource, otherwise returns an error. + rpc GetChannelPartnerRepricingConfig(GetChannelPartnerRepricingConfigRequest) + returns (ChannelPartnerRepricingConfig) { option (google.api.http) = { get: "/v1/{name=accounts/*/channelPartnerLinks/*/channelPartnerRepricingConfigs/*}" }; @@ -973,20 +1036,25 @@ service CloudChannelService { // // * PERMISSION_DENIED: If the account making the request and the account // being queried are different. - // * NOT_FOUND: The [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] specified does not exist - // or is not associated with the given account. + // * NOT_FOUND: The + // [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + // specified does not exist or is not associated with the given account. // * INTERNAL: Any non-user error related to technical issues in the // backend. In this case, contact Cloud Channel support. // // Return Value: - // If successful, the [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] resources. - // The data for each resource is displayed in the ascending order of: + // If successful, the + // [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + // resources. The data for each resource is displayed in the ascending order + // of: // * channel partner ID // * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] // * [ChannelPartnerRepricingConfig.update_time][google.cloud.channel.v1.ChannelPartnerRepricingConfig.update_time] // // If unsuccessful, returns an error. - rpc ListChannelPartnerRepricingConfigs(ListChannelPartnerRepricingConfigsRequest) returns (ListChannelPartnerRepricingConfigsResponse) { + rpc ListChannelPartnerRepricingConfigs( + ListChannelPartnerRepricingConfigsRequest) + returns (ListChannelPartnerRepricingConfigsResponse) { option (google.api.http) = { get: "/v1/{parent=accounts/*/channelPartnerLinks/*}/channelPartnerRepricingConfigs" }; @@ -995,9 +1063,10 @@ service CloudChannelService { // Creates a ChannelPartnerRepricingConfig. Call this method to set // modifications for a specific ChannelPartner's bill. You can only create - // configs if the [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] is a future - // month. If needed, you can create a config for the current month, with some - // restrictions. + // configs if the + // [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + // is a future month. If needed, you can create a config for the current + // month, with some restrictions. // // When creating a config for a future month, make sure there are no existing // configs for that @@ -1011,8 +1080,9 @@ service CloudChannelService { // Changes to the config may be immediate, but may take up to 24 hours. // * There is a limit of ten configs for any ChannelPartner or // [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]. - // * The contained [ChannelPartnerRepricingConfig.repricing_config][google.cloud.channel.v1.ChannelPartnerRepricingConfig.repricing_config] vaule - // must be different from the value used in the current config for a + // * The contained + // [ChannelPartnerRepricingConfig.repricing_config][google.cloud.channel.v1.ChannelPartnerRepricingConfig.repricing_config] + // vaule must be different from the value used in the current config for a // ChannelPartner. // // Possible Error Codes: @@ -1022,20 +1092,25 @@ service CloudChannelService { // * INVALID_ARGUMENT: Missing or invalid required parameters in the // request. Also displays if the updated config is for the current month or // past months. - // * NOT_FOUND: The [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] specified does not exist - // or is not associated with the given account. + // * NOT_FOUND: The + // [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + // specified does not exist or is not associated with the given account. // * INTERNAL: Any non-user error related to technical issues in the // backend. In this case, contact Cloud Channel support. // // Return Value: - // If successful, the updated [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] resource, - // otherwise returns an error. - rpc CreateChannelPartnerRepricingConfig(CreateChannelPartnerRepricingConfigRequest) returns (ChannelPartnerRepricingConfig) { + // If successful, the updated + // [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + // resource, otherwise returns an error. + rpc CreateChannelPartnerRepricingConfig( + CreateChannelPartnerRepricingConfigRequest) + returns (ChannelPartnerRepricingConfig) { option (google.api.http) = { post: "/v1/{parent=accounts/*/channelPartnerLinks/*}/channelPartnerRepricingConfigs" body: "channel_partner_repricing_config" }; - option (google.api.method_signature) = "parent,channel_partner_repricing_config"; + option (google.api.method_signature) = + "parent,channel_partner_repricing_config"; } // Updates a ChannelPartnerRepricingConfig. Call this method to set @@ -1043,10 +1118,11 @@ service CloudChannelService { // the existing CustomerRepricingConfig. // // You can only update configs if the - // [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] is a - // future month. To make changes to configs for the current month, use - // [CreateChannelPartnerRepricingConfig][google.cloud.channel.v1.CloudChannelService.CreateChannelPartnerRepricingConfig], taking note of its restrictions. - // You cannot update the [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]. + // [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + // is a future month. To make changes to configs for the current month, use + // [CreateChannelPartnerRepricingConfig][google.cloud.channel.v1.CloudChannelService.CreateChannelPartnerRepricingConfig], + // taking note of its restrictions. You cannot update the + // [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]. // // When updating a config in the future: // @@ -1059,15 +1135,19 @@ service CloudChannelService { // * INVALID_ARGUMENT: Missing or invalid required parameters in the // request. Also displays if the updated config is for the current month or // past months. - // * NOT_FOUND: The [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] specified does not exist - // or is not associated with the given account. + // * NOT_FOUND: The + // [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + // specified does not exist or is not associated with the given account. // * INTERNAL: Any non-user error related to technical issues in the // backend. In this case, contact Cloud Channel support. // // Return Value: - // If successful, the updated [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] resource, - // otherwise returns an error. - rpc UpdateChannelPartnerRepricingConfig(UpdateChannelPartnerRepricingConfigRequest) returns (ChannelPartnerRepricingConfig) { + // If successful, the updated + // [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + // resource, otherwise returns an error. + rpc UpdateChannelPartnerRepricingConfig( + UpdateChannelPartnerRepricingConfigRequest) + returns (ChannelPartnerRepricingConfig) { option (google.api.http) = { patch: "/v1/{channel_partner_repricing_config.name=accounts/*/channelPartnerLinks/*/channelPartnerRepricingConfigs/*}" body: "channel_partner_repricing_config" @@ -1075,20 +1155,26 @@ service CloudChannelService { option (google.api.method_signature) = "channel_partner_repricing_config"; } - // Deletes the given [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] permanently. You can - // only delete configs if their [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] is - // set to a date after the current month. + // Deletes the given + // [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + // permanently. You can only delete configs if their + // [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] + // is set to a date after the current month. // // Possible error codes: // // * PERMISSION_DENIED: The account making the request does not own // this customer. // * INVALID_ARGUMENT: Required request parameters are missing or invalid. - // * FAILED_PRECONDITION: The [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] is active or - // in the past. - // * NOT_FOUND: No [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] found for the name in the - // request. - rpc DeleteChannelPartnerRepricingConfig(DeleteChannelPartnerRepricingConfigRequest) returns (google.protobuf.Empty) { + // * FAILED_PRECONDITION: The + // [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + // is active or in the past. + // * NOT_FOUND: No + // [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] + // found for the name in the request. + rpc DeleteChannelPartnerRepricingConfig( + DeleteChannelPartnerRepricingConfigRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=accounts/*/channelPartnerLinks/*/channelPartnerRepricingConfigs/*}" }; @@ -1153,7 +1239,8 @@ service CloudChannelService { // // * PERMISSION_DENIED: The customer doesn't belong to the reseller. // * INVALID_ARGUMENT: Required request parameters are missing or invalid. - rpc ListPurchasableSkus(ListPurchasableSkusRequest) returns (ListPurchasableSkusResponse) { + rpc ListPurchasableSkus(ListPurchasableSkusRequest) + returns (ListPurchasableSkusResponse) { option (google.api.http) = { get: "/v1/{customer=accounts/*/customers/*}:listPurchasableSkus" }; @@ -1168,7 +1255,8 @@ service CloudChannelService { // // * PERMISSION_DENIED: The customer doesn't belong to the reseller // * INVALID_ARGUMENT: Required request parameters are missing or invalid. - rpc ListPurchasableOffers(ListPurchasableOffersRequest) returns (ListPurchasableOffersResponse) { + rpc ListPurchasableOffers(ListPurchasableOffersRequest) + returns (ListPurchasableOffersResponse) { option (google.api.http) = { get: "/v1/{customer=accounts/*/customers/*}:listPurchasableOffers" }; @@ -1176,7 +1264,8 @@ service CloudChannelService { // Registers a service account with subscriber privileges on the Cloud Pub/Sub // topic for this Channel Services account. After you create a - // subscriber, you get the events through [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent] + // subscriber, you get the events through + // [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent] // // Possible error codes: // @@ -1191,7 +1280,8 @@ service CloudChannelService { // // Return value: // The topic name with the registered service email address. - rpc RegisterSubscriber(RegisterSubscriberRequest) returns (RegisterSubscriberResponse) { + rpc RegisterSubscriber(RegisterSubscriberRequest) + returns (RegisterSubscriberResponse) { option (google.api.http) = { post: "/v1/{account=accounts/*}:register" body: "*" @@ -1219,7 +1309,8 @@ service CloudChannelService { // The topic name that unregistered the service email address. // Returns a success response if the service email address wasn't registered // with the topic. - rpc UnregisterSubscriber(UnregisterSubscriberRequest) returns (UnregisterSubscriberResponse) { + rpc UnregisterSubscriber(UnregisterSubscriberRequest) + returns (UnregisterSubscriberResponse) { option (google.api.http) = { post: "/v1/{account=accounts/*}:unregister" body: "*" @@ -1243,14 +1334,16 @@ service CloudChannelService { // // Return value: // A list of service email addresses. - rpc ListSubscribers(ListSubscribersRequest) returns (ListSubscribersResponse) { + rpc ListSubscribers(ListSubscribersRequest) + returns (ListSubscribersResponse) { option (google.api.http) = { get: "/v1/{account=accounts/*}:listSubscribers" }; } } -// Request message for [CloudChannelService.CheckCloudIdentityAccountsExist][google.cloud.channel.v1.CloudChannelService.CheckCloudIdentityAccountsExist]. +// Request message for +// [CloudChannelService.CheckCloudIdentityAccountsExist][google.cloud.channel.v1.CloudChannelService.CheckCloudIdentityAccountsExist]. message CheckCloudIdentityAccountsExistRequest { // Required. The reseller account's resource name. // Parent uses the format: accounts/{account_id} @@ -1287,40 +1380,48 @@ message CheckCloudIdentityAccountsExistResponse { repeated CloudIdentityCustomerAccount cloud_identity_accounts = 1; } -// Request message for [CloudChannelService.ListCustomers][google.cloud.channel.v1.CloudChannelService.ListCustomers] +// Request message for +// [CloudChannelService.ListCustomers][google.cloud.channel.v1.CloudChannelService.ListCustomers] message ListCustomersRequest { // Required. The resource name of the reseller account to list customers from. // Parent uses the format: accounts/{account_id}. string parent = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. The maximum number of customers to return. The service may return fewer - // than this value. If unspecified, returns at most 10 customers. The + // Optional. The maximum number of customers to return. The service may return + // fewer than this value. If unspecified, returns at most 10 customers. The // maximum value is 50. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token identifying a page of results other than the first page. // Obtained through - // [ListCustomersResponse.next_page_token][google.cloud.channel.v1.ListCustomersResponse.next_page_token] of the previous - // [CloudChannelService.ListCustomers][google.cloud.channel.v1.CloudChannelService.ListCustomers] call. + // [ListCustomersResponse.next_page_token][google.cloud.channel.v1.ListCustomersResponse.next_page_token] + // of the previous + // [CloudChannelService.ListCustomers][google.cloud.channel.v1.CloudChannelService.ListCustomers] + // call. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Filters applied to the [CloudChannelService.ListCustomers] results. See + // Optional. Filters applied to the [CloudChannelService.ListCustomers] + // results. See // https://cloud.google.com/channel/docs/concepts/google-cloud/filter-customers // for more information. string filter = 4 [(google.api.field_behavior) = OPTIONAL]; } -// Response message for [CloudChannelService.ListCustomers][google.cloud.channel.v1.CloudChannelService.ListCustomers]. +// Response message for +// [CloudChannelService.ListCustomers][google.cloud.channel.v1.CloudChannelService.ListCustomers]. message ListCustomersResponse { // The customers belonging to a reseller or distributor. repeated Customer customers = 1; // A token to retrieve the next page of results. - // Pass to [ListCustomersRequest.page_token][google.cloud.channel.v1.ListCustomersRequest.page_token] to obtain that page. + // Pass to + // [ListCustomersRequest.page_token][google.cloud.channel.v1.ListCustomersRequest.page_token] + // to obtain that page. string next_page_token = 2; } -// Request message for [CloudChannelService.GetCustomer][google.cloud.channel.v1.CloudChannelService.GetCustomer]. +// Request message for +// [CloudChannelService.GetCustomer][google.cloud.channel.v1.CloudChannelService.GetCustomer]. message GetCustomerRequest { // Required. The resource name of the customer to retrieve. // Name uses the format: accounts/{account_id}/customers/{customer_id} @@ -1332,17 +1433,19 @@ message GetCustomerRequest { ]; } -// Request message for [CloudChannelService.CreateCustomer][google.cloud.channel.v1.CloudChannelService.CreateCustomer] +// Request message for +// [CloudChannelService.CreateCustomer][google.cloud.channel.v1.CloudChannelService.CreateCustomer] message CreateCustomerRequest { - // Required. The resource name of reseller account in which to create the customer. - // Parent uses the format: accounts/{account_id} + // Required. The resource name of reseller account in which to create the + // customer. Parent uses the format: accounts/{account_id} string parent = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The customer to create. Customer customer = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request message for [CloudChannelService.UpdateCustomer][google.cloud.channel.v1.CloudChannelService.UpdateCustomer]. +// Request message for +// [CloudChannelService.UpdateCustomer][google.cloud.channel.v1.CloudChannelService.UpdateCustomer]. message UpdateCustomerRequest { // Required. New contents of the customer. Customer customer = 2 [(google.api.field_behavior) = REQUIRED]; @@ -1352,7 +1455,8 @@ message UpdateCustomerRequest { google.protobuf.FieldMask update_mask = 3; } -// Request message for [CloudChannelService.DeleteCustomer][google.cloud.channel.v1.CloudChannelService.DeleteCustomer]. +// Request message for +// [CloudChannelService.DeleteCustomer][google.cloud.channel.v1.CloudChannelService.DeleteCustomer]. message DeleteCustomerRequest { // Required. The resource name of the customer to delete. string name = 1 [ @@ -1363,7 +1467,8 @@ message DeleteCustomerRequest { ]; } -// Request message for [CloudChannelService.ImportCustomer][google.cloud.channel.v1.CloudChannelService.ImportCustomer] +// Request message for +// [CloudChannelService.ImportCustomer][google.cloud.channel.v1.CloudChannelService.ImportCustomer] message ImportCustomerRequest { // Specifies the identity of the transfer customer. // A customer's cloud_identity_id or domain is required to look up the @@ -1393,9 +1498,10 @@ message ImportCustomerRequest { // conflicting region code or domain. bool overwrite_if_exists = 5 [(google.api.field_behavior) = REQUIRED]; - // Optional. Cloud Identity ID of a channel partner who will be the direct reseller for - // the customer's order. This field is required for 2-tier transfer scenarios - // and can be provided via the request Parent binding as well. + // Optional. Cloud Identity ID of a channel partner who will be the direct + // reseller for the customer's order. This field is required for 2-tier + // transfer scenarios and can be provided via the request Parent binding as + // well. string channel_partner_id = 6 [(google.api.field_behavior) = OPTIONAL]; // Optional. Specifies the customer that will receive imported Cloud Identity @@ -1409,7 +1515,8 @@ message ImportCustomerRequest { ]; } -// Request message for [CloudChannelService.ProvisionCloudIdentity][google.cloud.channel.v1.CloudChannelService.ProvisionCloudIdentity] +// Request message for +// [CloudChannelService.ProvisionCloudIdentity][google.cloud.channel.v1.CloudChannelService.ProvisionCloudIdentity] message ProvisionCloudIdentityRequest { // Required. Resource name of the customer. // Format: accounts/{account_id}/customers/{customer_id} @@ -1430,7 +1537,8 @@ message ProvisionCloudIdentityRequest { bool validate_only = 4; } -// Request message for [CloudChannelService.ListEntitlements][google.cloud.channel.v1.CloudChannelService.ListEntitlements] +// Request message for +// [CloudChannelService.ListEntitlements][google.cloud.channel.v1.CloudChannelService.ListEntitlements] message ListEntitlementsRequest { // Required. The resource name of the reseller's customer account to list // entitlements for. @@ -1442,29 +1550,35 @@ message ListEntitlementsRequest { } ]; - // Optional. Requested page size. Server might return fewer results than requested. - // If unspecified, return at most 50 entitlements. - // The maximum value is 100; the server will coerce values above 100. + // Optional. Requested page size. Server might return fewer results than + // requested. If unspecified, return at most 50 entitlements. The maximum + // value is 100; the server will coerce values above 100. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token for a page of results other than the first page. // Obtained using - // [ListEntitlementsResponse.next_page_token][google.cloud.channel.v1.ListEntitlementsResponse.next_page_token] of the previous - // [CloudChannelService.ListEntitlements][google.cloud.channel.v1.CloudChannelService.ListEntitlements] call. + // [ListEntitlementsResponse.next_page_token][google.cloud.channel.v1.ListEntitlementsResponse.next_page_token] + // of the previous + // [CloudChannelService.ListEntitlements][google.cloud.channel.v1.CloudChannelService.ListEntitlements] + // call. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } -// Response message for [CloudChannelService.ListEntitlements][google.cloud.channel.v1.CloudChannelService.ListEntitlements]. +// Response message for +// [CloudChannelService.ListEntitlements][google.cloud.channel.v1.CloudChannelService.ListEntitlements]. message ListEntitlementsResponse { // The reseller customer's entitlements. repeated Entitlement entitlements = 1; // A token to list the next page of results. - // Pass to [ListEntitlementsRequest.page_token][google.cloud.channel.v1.ListEntitlementsRequest.page_token] to obtain that page. + // Pass to + // [ListEntitlementsRequest.page_token][google.cloud.channel.v1.ListEntitlementsRequest.page_token] + // to obtain that page. string next_page_token = 2; } -// Request message for [CloudChannelService.ListTransferableSkus][google.cloud.channel.v1.CloudChannelService.ListTransferableSkus] +// Request message for +// [CloudChannelService.ListTransferableSkus][google.cloud.channel.v1.CloudChannelService.ListTransferableSkus] message ListTransferableSkusRequest { // Specifies the identity of transferred customer. // Either a cloud_identity_id of the customer or the customer name is @@ -1492,9 +1606,10 @@ message ListTransferableSkusRequest { // A token for a page of results other than the first page. // Obtained using - // [ListTransferableSkusResponse.next_page_token][google.cloud.channel.v1.ListTransferableSkusResponse.next_page_token] of the previous - // [CloudChannelService.ListTransferableSkus][google.cloud.channel.v1.CloudChannelService.ListTransferableSkus] call. - // Optional. + // [ListTransferableSkusResponse.next_page_token][google.cloud.channel.v1.ListTransferableSkusResponse.next_page_token] + // of the previous + // [CloudChannelService.ListTransferableSkus][google.cloud.channel.v1.CloudChannelService.ListTransferableSkus] + // call. Optional. string page_token = 3; // Optional. The super admin of the resold customer generates this token to @@ -1510,18 +1625,21 @@ message ListTransferableSkusRequest { string language_code = 6; } -// Response message for [CloudChannelService.ListTransferableSkus][google.cloud.channel.v1.CloudChannelService.ListTransferableSkus]. +// Response message for +// [CloudChannelService.ListTransferableSkus][google.cloud.channel.v1.CloudChannelService.ListTransferableSkus]. message ListTransferableSkusResponse { // Information about existing SKUs for a customer that needs a transfer. repeated TransferableSku transferable_skus = 1; // A token to retrieve the next page of results. - // Pass to [ListTransferableSkusRequest.page_token][google.cloud.channel.v1.ListTransferableSkusRequest.page_token] to obtain - // that page. + // Pass to + // [ListTransferableSkusRequest.page_token][google.cloud.channel.v1.ListTransferableSkusRequest.page_token] + // to obtain that page. string next_page_token = 2; } -// Request message for [CloudChannelService.ListTransferableOffers][google.cloud.channel.v1.CloudChannelService.ListTransferableOffers] +// Request message for +// [CloudChannelService.ListTransferableOffers][google.cloud.channel.v1.CloudChannelService.ListTransferableOffers] message ListTransferableOffersRequest { // Specifies the identity of transferred customer. // Either a cloud_identity_id of the customer or the customer name is @@ -1545,8 +1663,10 @@ message ListTransferableOffersRequest { // A token for a page of results other than the first page. // Obtained using - // [ListTransferableOffersResponse.next_page_token][google.cloud.channel.v1.ListTransferableOffersResponse.next_page_token] of the previous - // [CloudChannelService.ListTransferableOffers][google.cloud.channel.v1.CloudChannelService.ListTransferableOffers] call. + // [ListTransferableOffersResponse.next_page_token][google.cloud.channel.v1.ListTransferableOffersResponse.next_page_token] + // of the previous + // [CloudChannelService.ListTransferableOffers][google.cloud.channel.v1.CloudChannelService.ListTransferableOffers] + // call. string page_token = 3; // Required. The SKU to look up Offers for. @@ -1558,15 +1678,17 @@ message ListTransferableOffersRequest { string language_code = 7 [(google.api.field_behavior) = OPTIONAL]; } -// Response message for [CloudChannelService.ListTransferableOffers][google.cloud.channel.v1.CloudChannelService.ListTransferableOffers]. +// Response message for +// [CloudChannelService.ListTransferableOffers][google.cloud.channel.v1.CloudChannelService.ListTransferableOffers]. message ListTransferableOffersResponse { // Information about Offers for a customer that can be used for // transfer. repeated TransferableOffer transferable_offers = 1; // A token to retrieve the next page of results. - // Pass to [ListTransferableOffersRequest.page_token][google.cloud.channel.v1.ListTransferableOffersRequest.page_token] to obtain - // that page. + // Pass to + // [ListTransferableOffersRequest.page_token][google.cloud.channel.v1.ListTransferableOffersRequest.page_token] + // to obtain that page. string next_page_token = 2; } @@ -1577,7 +1699,8 @@ message TransferableOffer { Offer offer = 1; } -// Request message for [CloudChannelService.GetEntitlement][google.cloud.channel.v1.CloudChannelService.GetEntitlement]. +// Request message for +// [CloudChannelService.GetEntitlement][google.cloud.channel.v1.CloudChannelService.GetEntitlement]. message GetEntitlementRequest { // Required. The resource name of the entitlement to retrieve. // Name uses the format: @@ -1590,39 +1713,45 @@ message GetEntitlementRequest { ]; } -// Request message for [CloudChannelService.ListChannelPartnerLinks][google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks] +// Request message for +// [CloudChannelService.ListChannelPartnerLinks][google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks] message ListChannelPartnerLinksRequest { - // Required. The resource name of the reseller account for listing channel partner - // links. - // Parent uses the format: accounts/{account_id} + // Required. The resource name of the reseller account for listing channel + // partner links. Parent uses the format: accounts/{account_id} string parent = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. Requested page size. Server might return fewer results than requested. - // If unspecified, server will pick a default size (25). - // The maximum value is 200; the server will coerce values above 200. + // Optional. Requested page size. Server might return fewer results than + // requested. If unspecified, server will pick a default size (25). The + // maximum value is 200; the server will coerce values above 200. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token for a page of results other than the first page. // Obtained using - // [ListChannelPartnerLinksResponse.next_page_token][google.cloud.channel.v1.ListChannelPartnerLinksResponse.next_page_token] of the previous - // [CloudChannelService.ListChannelPartnerLinks][google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks] call. + // [ListChannelPartnerLinksResponse.next_page_token][google.cloud.channel.v1.ListChannelPartnerLinksResponse.next_page_token] + // of the previous + // [CloudChannelService.ListChannelPartnerLinks][google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks] + // call. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. The level of granularity the ChannelPartnerLink will display. ChannelPartnerLinkView view = 4 [(google.api.field_behavior) = OPTIONAL]; } -// Response message for [CloudChannelService.ListChannelPartnerLinks][google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks]. +// Response message for +// [CloudChannelService.ListChannelPartnerLinks][google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks]. message ListChannelPartnerLinksResponse { // The Channel partner links for a reseller. repeated ChannelPartnerLink channel_partner_links = 1; // A token to retrieve the next page of results. - // Pass to [ListChannelPartnerLinksRequest.page_token][google.cloud.channel.v1.ListChannelPartnerLinksRequest.page_token] to obtain that page. + // Pass to + // [ListChannelPartnerLinksRequest.page_token][google.cloud.channel.v1.ListChannelPartnerLinksRequest.page_token] + // to obtain that page. string next_page_token = 2; } -// Request message for [CloudChannelService.GetChannelPartnerLink][google.cloud.channel.v1.CloudChannelService.GetChannelPartnerLink]. +// Request message for +// [CloudChannelService.GetChannelPartnerLink][google.cloud.channel.v1.CloudChannelService.GetChannelPartnerLink]. message GetChannelPartnerLinkRequest { // Required. The resource name of the channel partner link to retrieve. // Name uses the format: accounts/{account_id}/channelPartnerLinks/{id} @@ -1633,7 +1762,8 @@ message GetChannelPartnerLinkRequest { ChannelPartnerLinkView view = 2 [(google.api.field_behavior) = OPTIONAL]; } -// Request message for [CloudChannelService.CreateChannelPartnerLink][google.cloud.channel.v1.CloudChannelService.CreateChannelPartnerLink] +// Request message for +// [CloudChannelService.CreateChannelPartnerLink][google.cloud.channel.v1.CloudChannelService.CreateChannelPartnerLink] message CreateChannelPartnerLinkRequest { // Required. Create a channel partner link for the provided reseller account's // resource name. @@ -1643,27 +1773,32 @@ message CreateChannelPartnerLinkRequest { // Required. The channel partner link to create. // Either channel_partner_link.reseller_cloud_identity_id or domain can be // used to create a link. - ChannelPartnerLink channel_partner_link = 2 [(google.api.field_behavior) = REQUIRED]; + ChannelPartnerLink channel_partner_link = 2 + [(google.api.field_behavior) = REQUIRED]; } -// Request message for [CloudChannelService.UpdateChannelPartnerLink][google.cloud.channel.v1.CloudChannelService.UpdateChannelPartnerLink] +// Request message for +// [CloudChannelService.UpdateChannelPartnerLink][google.cloud.channel.v1.CloudChannelService.UpdateChannelPartnerLink] message UpdateChannelPartnerLinkRequest { // Required. The resource name of the channel partner link to cancel. // Name uses the format: accounts/{account_id}/channelPartnerLinks/{id} // where {id} is the Cloud Identity ID of the partner. string name = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The channel partner link to update. Only channel_partner_link.link_state - // is allowed for updates. - ChannelPartnerLink channel_partner_link = 2 [(google.api.field_behavior) = REQUIRED]; + // Required. The channel partner link to update. Only + // channel_partner_link.link_state is allowed for updates. + ChannelPartnerLink channel_partner_link = 2 + [(google.api.field_behavior) = REQUIRED]; // Required. The update mask that applies to the resource. // The only allowable value for an update mask is // channel_partner_link.link_state. - google.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 3 + [(google.api.field_behavior) = REQUIRED]; } -// Request message for [CloudChannelService.GetCustomerRepricingConfig][google.cloud.channel.v1.CloudChannelService.GetCustomerRepricingConfig]. +// Request message for +// [CloudChannelService.GetCustomerRepricingConfig][google.cloud.channel.v1.CloudChannelService.GetCustomerRepricingConfig]. message GetCustomerRepricingConfigRequest { // Required. The resource name of the CustomerRepricingConfig. // Format: @@ -1676,7 +1811,8 @@ message GetCustomerRepricingConfigRequest { ]; } -// Request message for [CloudChannelService.ListCustomerRepricingConfigs][google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs]. +// Request message for +// [CloudChannelService.ListCustomerRepricingConfigs][google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs]. message ListCustomerRepricingConfigsRequest { // Required. The resource name of the customer. // Parent uses the format: accounts/{account_id}/customers/{customer_id}. @@ -1689,15 +1825,17 @@ message ListCustomerRepricingConfigsRequest { } ]; - // Optional. The maximum number of repricing configs to return. The service may return - // fewer than this value. If unspecified, returns a maximum of 50 rules. The - // maximum value is 100; values above 100 will be coerced to 100. + // Optional. The maximum number of repricing configs to return. The service + // may return fewer than this value. If unspecified, returns a maximum of 50 + // rules. The maximum value is 100; values above 100 will be coerced to 100. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token identifying a page of results beyond the first page. // Obtained through - // [ListCustomerRepricingConfigsResponse.next_page_token][google.cloud.channel.v1.ListCustomerRepricingConfigsResponse.next_page_token] of the previous - // [CloudChannelService.ListCustomerRepricingConfigs][google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs] call. + // [ListCustomerRepricingConfigsResponse.next_page_token][google.cloud.channel.v1.ListCustomerRepricingConfigsResponse.next_page_token] + // of the previous + // [CloudChannelService.ListCustomerRepricingConfigs][google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs] + // call. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. A filter for [CloudChannelService.ListCustomerRepricingConfigs] @@ -1710,21 +1848,25 @@ message ListCustomerRepricingConfigsRequest { string filter = 4 [(google.api.field_behavior) = OPTIONAL]; } -// Response message for [CloudChannelService.ListCustomerRepricingConfigs][google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs]. +// Response message for +// [CloudChannelService.ListCustomerRepricingConfigs][google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs]. message ListCustomerRepricingConfigsResponse { // The repricing configs for this channel partner. repeated CustomerRepricingConfig customer_repricing_configs = 1; // A token to retrieve the next page of results. - // Pass to [ListCustomerRepricingConfigsRequest.page_token][google.cloud.channel.v1.ListCustomerRepricingConfigsRequest.page_token] to obtain that - // page. + // Pass to + // [ListCustomerRepricingConfigsRequest.page_token][google.cloud.channel.v1.ListCustomerRepricingConfigsRequest.page_token] + // to obtain that page. string next_page_token = 2; } -// Request message for [CloudChannelService.CreateCustomerRepricingConfig][google.cloud.channel.v1.CloudChannelService.CreateCustomerRepricingConfig]. +// Request message for +// [CloudChannelService.CreateCustomerRepricingConfig][google.cloud.channel.v1.CloudChannelService.CreateCustomerRepricingConfig]. message CreateCustomerRepricingConfigRequest { - // Required. The resource name of the customer that will receive this repricing config. - // Parent uses the format: accounts/{account_id}/customers/{customer_id} + // Required. The resource name of the customer that will receive this + // repricing config. Parent uses the format: + // accounts/{account_id}/customers/{customer_id} string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1733,19 +1875,23 @@ message CreateCustomerRepricingConfigRequest { ]; // Required. The CustomerRepricingConfig object to update. - CustomerRepricingConfig customer_repricing_config = 2 [(google.api.field_behavior) = REQUIRED]; + CustomerRepricingConfig customer_repricing_config = 2 + [(google.api.field_behavior) = REQUIRED]; } -// Request message for [CloudChannelService.UpdateCustomerRepricingConfig][google.cloud.channel.v1.CloudChannelService.UpdateCustomerRepricingConfig]. +// Request message for +// [CloudChannelService.UpdateCustomerRepricingConfig][google.cloud.channel.v1.CloudChannelService.UpdateCustomerRepricingConfig]. message UpdateCustomerRepricingConfigRequest { // Required. The CustomerRepricingConfig object to update. - CustomerRepricingConfig customer_repricing_config = 1 [(google.api.field_behavior) = REQUIRED]; + CustomerRepricingConfig customer_repricing_config = 1 + [(google.api.field_behavior) = REQUIRED]; } -// Request message for [CloudChannelService.DeleteCustomerRepricingConfig][google.cloud.channel.v1.CloudChannelService.DeleteCustomerRepricingConfig]. +// Request message for +// [CloudChannelService.DeleteCustomerRepricingConfig][google.cloud.channel.v1.CloudChannelService.DeleteCustomerRepricingConfig]. message DeleteCustomerRepricingConfigRequest { - // Required. The resource name of the customer repricing config rule to delete. - // Format: + // Required. The resource name of the customer repricing config rule to + // delete. Format: // accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -1755,7 +1901,8 @@ message DeleteCustomerRepricingConfigRequest { ]; } -// Request message for [CloudChannelService.GetChannelPartnerRepricingConfig][google.cloud.channel.v1.CloudChannelService.GetChannelPartnerRepricingConfig] +// Request message for +// [CloudChannelService.GetChannelPartnerRepricingConfig][google.cloud.channel.v1.CloudChannelService.GetChannelPartnerRepricingConfig] message GetChannelPartnerRepricingConfigRequest { // Required. The resource name of the ChannelPartnerRepricingConfig // Format: @@ -1771,8 +1918,9 @@ message GetChannelPartnerRepricingConfigRequest { // Request message for // [CloudChannelService.ListChannelPartnerRepricingConfigs][google.cloud.channel.v1.CloudChannelService.ListChannelPartnerRepricingConfigs]. message ListChannelPartnerRepricingConfigsRequest { - // Required. The resource name of the account's [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink]. - // Parent uses the format: + // Required. The resource name of the account's + // [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink]. Parent + // uses the format: // accounts/{account_id}/channelPartnerLinks/{channel_partner_id}. // Supports accounts/{account_id}/channelPartnerLinks/- to retrieve configs // for all channel partners. @@ -1783,21 +1931,23 @@ message ListChannelPartnerRepricingConfigsRequest { } ]; - // Optional. The maximum number of repricing configs to return. The service may return - // fewer than this value. If unspecified, returns a maximum of 50 rules. The - // maximum value is 100; values above 100 will be coerced to 100. + // Optional. The maximum number of repricing configs to return. The service + // may return fewer than this value. If unspecified, returns a maximum of 50 + // rules. The maximum value is 100; values above 100 will be coerced to 100. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token identifying a page of results beyond the first page. // Obtained through - // [ListChannelPartnerRepricingConfigsResponse.next_page_token][google.cloud.channel.v1.ListChannelPartnerRepricingConfigsResponse.next_page_token] of the - // previous [CloudChannelService.ListChannelPartnerRepricingConfigs][google.cloud.channel.v1.CloudChannelService.ListChannelPartnerRepricingConfigs] call. + // [ListChannelPartnerRepricingConfigsResponse.next_page_token][google.cloud.channel.v1.ListChannelPartnerRepricingConfigsResponse.next_page_token] + // of the previous + // [CloudChannelService.ListChannelPartnerRepricingConfigs][google.cloud.channel.v1.CloudChannelService.ListChannelPartnerRepricingConfigs] + // call. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. A filter for [CloudChannelService.ListChannelPartnerRepricingConfigs] - // results (channel_partner_link only). You can use this filter when you - // support a BatchGet-like query. - // To use the filter, you must set + // Optional. A filter for + // [CloudChannelService.ListChannelPartnerRepricingConfigs] results + // (channel_partner_link only). You can use this filter when you support a + // BatchGet-like query. To use the filter, you must set // `parent=accounts/{account_id}/channelPartnerLinks/-`. // // Example: `channel_partner_link = @@ -1813,16 +1963,17 @@ message ListChannelPartnerRepricingConfigsResponse { repeated ChannelPartnerRepricingConfig channel_partner_repricing_configs = 1; // A token to retrieve the next page of results. - // Pass to [ListChannelPartnerRepricingConfigsRequest.page_token][google.cloud.channel.v1.ListChannelPartnerRepricingConfigsRequest.page_token] to obtain - // that page. + // Pass to + // [ListChannelPartnerRepricingConfigsRequest.page_token][google.cloud.channel.v1.ListChannelPartnerRepricingConfigsRequest.page_token] + // to obtain that page. string next_page_token = 2; } // Request message for // [CloudChannelService.CreateChannelPartnerRepricingConfig][google.cloud.channel.v1.CloudChannelService.CreateChannelPartnerRepricingConfig]. message CreateChannelPartnerRepricingConfigRequest { - // Required. The resource name of the ChannelPartner that will receive the repricing - // config. Parent uses the format: + // Required. The resource name of the ChannelPartner that will receive the + // repricing config. Parent uses the format: // accounts/{account_id}/channelPartnerLinks/{channel_partner_id} string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -1832,19 +1983,22 @@ message CreateChannelPartnerRepricingConfigRequest { ]; // Required. The ChannelPartnerRepricingConfig object to update. - ChannelPartnerRepricingConfig channel_partner_repricing_config = 2 [(google.api.field_behavior) = REQUIRED]; + ChannelPartnerRepricingConfig channel_partner_repricing_config = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request message for // [CloudChannelService.UpdateChannelPartnerRepricingConfig][google.cloud.channel.v1.CloudChannelService.UpdateChannelPartnerRepricingConfig]. message UpdateChannelPartnerRepricingConfigRequest { // Required. The ChannelPartnerRepricingConfig object to update. - ChannelPartnerRepricingConfig channel_partner_repricing_config = 1 [(google.api.field_behavior) = REQUIRED]; + ChannelPartnerRepricingConfig channel_partner_repricing_config = 1 + [(google.api.field_behavior) = REQUIRED]; } // Request message for DeleteChannelPartnerRepricingConfig. message DeleteChannelPartnerRepricingConfigRequest { - // Required. The resource name of the channel partner repricing config rule to delete. + // Required. The resource name of the channel partner repricing config rule to + // delete. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1853,11 +2007,12 @@ message DeleteChannelPartnerRepricingConfigRequest { ]; } -// Request message for [CloudChannelService.CreateEntitlement][google.cloud.channel.v1.CloudChannelService.CreateEntitlement] +// Request message for +// [CloudChannelService.CreateEntitlement][google.cloud.channel.v1.CloudChannelService.CreateEntitlement] message CreateEntitlementRequest { - // Required. The resource name of the reseller's customer account in which to create the - // entitlement. - // Parent uses the format: accounts/{account_id}/customers/{customer_id} + // Required. The resource name of the reseller's customer account in which to + // create the entitlement. Parent uses the format: + // accounts/{account_id}/customers/{customer_id} string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1868,8 +2023,9 @@ message CreateEntitlementRequest { // Required. The entitlement to create. Entitlement entitlement = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. You can specify an optional unique request ID, and if you need to retry - // your request, the server will know to ignore the request if it's complete. + // Optional. You can specify an optional unique request ID, and if you need to + // retry your request, the server will know to ignore the request if it's + // complete. // // For example, you make an initial request and the request times out. If you // make the request again with the same request ID, the server can check if @@ -1882,15 +2038,17 @@ message CreateEntitlementRequest { string request_id = 5 [(google.api.field_behavior) = OPTIONAL]; } -// Request message for [CloudChannelService.TransferEntitlements][google.cloud.channel.v1.CloudChannelService.TransferEntitlements]. +// Request message for +// [CloudChannelService.TransferEntitlements][google.cloud.channel.v1.CloudChannelService.TransferEntitlements]. message TransferEntitlementsRequest { - // Required. The resource name of the reseller's customer account that will receive - // transferred entitlements. - // Parent uses the format: accounts/{account_id}/customers/{customer_id} + // Required. The resource name of the reseller's customer account that will + // receive transferred entitlements. Parent uses the format: + // accounts/{account_id}/customers/{customer_id} string parent = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The new entitlements to create or transfer. - repeated Entitlement entitlements = 2 [(google.api.field_behavior) = REQUIRED]; + repeated Entitlement entitlements = 2 + [(google.api.field_behavior) = REQUIRED]; // The super admin of the resold customer generates this token to // authorize a reseller to access their Cloud Identity and purchase @@ -1898,8 +2056,9 @@ message TransferEntitlementsRequest { // See https://support.google.com/a/answer/7643790 for more details. string auth_token = 4; - // Optional. You can specify an optional unique request ID, and if you need to retry - // your request, the server will know to ignore the request if it's complete. + // Optional. You can specify an optional unique request ID, and if you need to + // retry your request, the server will know to ignore the request if it's + // complete. // // For example, you make an initial request and the request times out. If you // make the request again with the same request ID, the server can check if @@ -1912,25 +2071,29 @@ message TransferEntitlementsRequest { string request_id = 6 [(google.api.field_behavior) = OPTIONAL]; } -// Response message for [CloudChannelService.TransferEntitlements][google.cloud.channel.v1.CloudChannelService.TransferEntitlements]. +// Response message for +// [CloudChannelService.TransferEntitlements][google.cloud.channel.v1.CloudChannelService.TransferEntitlements]. // This is put in the response field of google.longrunning.Operation. message TransferEntitlementsResponse { // The transferred entitlements. repeated Entitlement entitlements = 1; } -// Request message for [CloudChannelService.TransferEntitlementsToGoogle][google.cloud.channel.v1.CloudChannelService.TransferEntitlementsToGoogle]. +// Request message for +// [CloudChannelService.TransferEntitlementsToGoogle][google.cloud.channel.v1.CloudChannelService.TransferEntitlementsToGoogle]. message TransferEntitlementsToGoogleRequest { - // Required. The resource name of the reseller's customer account where the entitlements - // transfer from. - // Parent uses the format: accounts/{account_id}/customers/{customer_id} + // Required. The resource name of the reseller's customer account where the + // entitlements transfer from. Parent uses the format: + // accounts/{account_id}/customers/{customer_id} string parent = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The entitlements to transfer to Google. - repeated Entitlement entitlements = 2 [(google.api.field_behavior) = REQUIRED]; + repeated Entitlement entitlements = 2 + [(google.api.field_behavior) = REQUIRED]; - // Optional. You can specify an optional unique request ID, and if you need to retry - // your request, the server will know to ignore the request if it's complete. + // Optional. You can specify an optional unique request ID, and if you need to + // retry your request, the server will know to ignore the request if it's + // complete. // // For example, you make an initial request and the request times out. If you // make the request again with the same request ID, the server can check if @@ -1950,14 +2113,17 @@ message ChangeParametersRequest { // accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} string name = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Entitlement parameters to update. You can only change editable parameters. + // Required. Entitlement parameters to update. You can only change editable + // parameters. // // To view the available Parameters for a request, refer to the - // [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions] from the desired offer. + // [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions] + // from the desired offer. repeated Parameter parameters = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. You can specify an optional unique request ID, and if you need to retry - // your request, the server will know to ignore the request if it's complete. + // Optional. You can specify an optional unique request ID, and if you need to + // retry your request, the server will know to ignore the request if it's + // complete. // // For example, you make an initial request and the request times out. If you // make the request again with the same request ID, the server can check if @@ -1973,7 +2139,8 @@ message ChangeParametersRequest { string purchase_order_id = 5 [(google.api.field_behavior) = OPTIONAL]; } -// Request message for [CloudChannelService.ChangeRenewalSettings][google.cloud.channel.v1.CloudChannelService.ChangeRenewalSettings]. +// Request message for +// [CloudChannelService.ChangeRenewalSettings][google.cloud.channel.v1.CloudChannelService.ChangeRenewalSettings]. message ChangeRenewalSettingsRequest { // Required. The name of the entitlement to update. // Name uses the format: @@ -1983,8 +2150,9 @@ message ChangeRenewalSettingsRequest { // Required. New renewal settings. RenewalSettings renewal_settings = 4 [(google.api.field_behavior) = REQUIRED]; - // Optional. You can specify an optional unique request ID, and if you need to retry - // your request, the server will know to ignore the request if it's complete. + // Optional. You can specify an optional unique request ID, and if you need to + // retry your request, the server will know to ignore the request if it's + // complete. // // For example, you make an initial request and the request times out. If you // make the request again with the same request ID, the server can check if @@ -1997,7 +2165,8 @@ message ChangeRenewalSettingsRequest { string request_id = 5 [(google.api.field_behavior) = OPTIONAL]; } -// Request message for [CloudChannelService.ChangeOffer][google.cloud.channel.v1.CloudChannelService.ChangeOffer]. +// Request message for +// [CloudChannelService.ChangeOffer][google.cloud.channel.v1.CloudChannelService.ChangeOffer]. message ChangeOfferRequest { // Required. The resource name of the entitlement to update. // Name uses the format: @@ -2013,15 +2182,18 @@ message ChangeOfferRequest { } ]; - // Optional. Parameters needed to purchase the Offer. To view the available Parameters - // refer to the [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions] from the desired offer. + // Optional. Parameters needed to purchase the Offer. To view the available + // Parameters refer to the + // [Offer.parameter_definitions][google.cloud.channel.v1.Offer.parameter_definitions] + // from the desired offer. repeated Parameter parameters = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. Purchase order id provided by the reseller. string purchase_order_id = 5 [(google.api.field_behavior) = OPTIONAL]; - // Optional. You can specify an optional unique request ID, and if you need to retry - // your request, the server will know to ignore the request if it's complete. + // Optional. You can specify an optional unique request ID, and if you need to + // retry your request, the server will know to ignore the request if it's + // complete. // // For example, you make an initial request and the request times out. If you // make the request again with the same request ID, the server can check if @@ -2034,15 +2206,17 @@ message ChangeOfferRequest { string request_id = 6 [(google.api.field_behavior) = OPTIONAL]; } -// Request message for [CloudChannelService.StartPaidService][google.cloud.channel.v1.CloudChannelService.StartPaidService]. +// Request message for +// [CloudChannelService.StartPaidService][google.cloud.channel.v1.CloudChannelService.StartPaidService]. message StartPaidServiceRequest { // Required. The name of the entitlement to start a paid service for. // Name uses the format: // accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} string name = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. You can specify an optional unique request ID, and if you need to retry - // your request, the server will know to ignore the request if it's complete. + // Optional. You can specify an optional unique request ID, and if you need to + // retry your request, the server will know to ignore the request if it's + // complete. // // For example, you make an initial request and the request times out. If you // make the request again with the same request ID, the server can check if @@ -2055,15 +2229,17 @@ message StartPaidServiceRequest { string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; } -// Request message for [CloudChannelService.CancelEntitlement][google.cloud.channel.v1.CloudChannelService.CancelEntitlement]. +// Request message for +// [CloudChannelService.CancelEntitlement][google.cloud.channel.v1.CloudChannelService.CancelEntitlement]. message CancelEntitlementRequest { // Required. The resource name of the entitlement to cancel. // Name uses the format: // accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} string name = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. You can specify an optional unique request ID, and if you need to retry - // your request, the server will know to ignore the request if it's complete. + // Optional. You can specify an optional unique request ID, and if you need to + // retry your request, the server will know to ignore the request if it's + // complete. // // For example, you make an initial request and the request times out. If you // make the request again with the same request ID, the server can check if @@ -2076,15 +2252,17 @@ message CancelEntitlementRequest { string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; } -// Request message for [CloudChannelService.SuspendEntitlement][google.cloud.channel.v1.CloudChannelService.SuspendEntitlement]. +// Request message for +// [CloudChannelService.SuspendEntitlement][google.cloud.channel.v1.CloudChannelService.SuspendEntitlement]. message SuspendEntitlementRequest { // Required. The resource name of the entitlement to suspend. // Name uses the format: // accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} string name = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. You can specify an optional unique request ID, and if you need to retry - // your request, the server will know to ignore the request if it's complete. + // Optional. You can specify an optional unique request ID, and if you need to + // retry your request, the server will know to ignore the request if it's + // complete. // // For example, you make an initial request and the request times out. If you // make the request again with the same request ID, the server can check if @@ -2097,15 +2275,17 @@ message SuspendEntitlementRequest { string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; } -// Request message for [CloudChannelService.ActivateEntitlement][google.cloud.channel.v1.CloudChannelService.ActivateEntitlement]. +// Request message for +// [CloudChannelService.ActivateEntitlement][google.cloud.channel.v1.CloudChannelService.ActivateEntitlement]. message ActivateEntitlementRequest { // Required. The resource name of the entitlement to activate. // Name uses the format: // accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} string name = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. You can specify an optional unique request ID, and if you need to retry - // your request, the server will know to ignore the request if it's complete. + // Optional. You can specify an optional unique request ID, and if you need to + // retry your request, the server will know to ignore the request if it's + // complete. // // For example, you make an initial request and the request times out. If you // make the request again with the same request ID, the server can check if @@ -2137,9 +2317,9 @@ message ListProductsRequest { // Format: accounts/{account_id}. string account = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. Requested page size. Server might return fewer results than requested. - // If unspecified, returns at most 100 Products. - // The maximum value is 1000; the server will coerce values above 1000. + // Optional. Requested page size. Server might return fewer results than + // requested. If unspecified, returns at most 100 Products. The maximum value + // is 1000; the server will coerce values above 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token for a page of results other than the first page. @@ -2176,9 +2356,9 @@ message ListSkusRequest { // Format: accounts/{account_id}. string account = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. Requested page size. Server might return fewer results than requested. - // If unspecified, returns at most 100 SKUs. - // The maximum value is 1000; the server will coerce values above 1000. + // Optional. Requested page size. Server might return fewer results than + // requested. If unspecified, returns at most 100 SKUs. The maximum value is + // 1000; the server will coerce values above 1000. int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token for a page of results other than the first page. @@ -2202,13 +2382,13 @@ message ListSkusResponse { // Request message for ListOffers. message ListOffersRequest { - // Required. The resource name of the reseller account from which to list Offers. - // Parent uses the format: accounts/{account_id}. + // Required. The resource name of the reseller account from which to list + // Offers. Parent uses the format: accounts/{account_id}. string parent = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. Requested page size. Server might return fewer results than requested. - // If unspecified, returns at most 500 Offers. - // The maximum value is 1000; the server will coerce values above 1000. + // Optional. Requested page size. Server might return fewer results than + // requested. If unspecified, returns at most 500 Offers. The maximum value is + // 1000; the server will coerce values above 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token for a page of results other than the first page. @@ -2248,7 +2428,8 @@ message ListPurchasableSkusRequest { } // List SKUs for upgrading or downgrading an entitlement. Make the purchase - // using [CloudChannelService.ChangeOffer][google.cloud.channel.v1.CloudChannelService.ChangeOffer]. + // using + // [CloudChannelService.ChangeOffer][google.cloud.channel.v1.CloudChannelService.ChangeOffer]. message ChangeOfferPurchase { // Change Type enum. enum ChangeType { @@ -2289,9 +2470,9 @@ message ListPurchasableSkusRequest { } ]; - // Optional. Requested page size. Server might return fewer results than requested. - // If unspecified, returns at most 100 SKUs. - // The maximum value is 1000; the server will coerce values above 1000. + // Optional. Requested page size. Server might return fewer results than + // requested. If unspecified, returns at most 100 SKUs. The maximum value is + // 1000; the server will coerce values above 1000. int32 page_size = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token for a page of results other than the first page. @@ -2359,9 +2540,9 @@ message ListPurchasableOffersRequest { } ]; - // Optional. Requested page size. Server might return fewer results than requested. - // If unspecified, returns at most 100 Offers. - // The maximum value is 1000; the server will coerce values above 1000. + // Optional. Requested page size. Server might return fewer results than + // requested. If unspecified, returns at most 100 Offers. The maximum value is + // 1000; the server will coerce values above 1000. int32 page_size = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token for a page of results other than the first page. @@ -2394,7 +2575,8 @@ message RegisterSubscriberRequest { // Required. Resource name of the account. string account = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Service account that provides subscriber access to the registered topic. + // Required. Service account that provides subscriber access to the registered + // topic. string service_account = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -2409,7 +2591,8 @@ message UnregisterSubscriberRequest { // Required. Resource name of the account. string account = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Service account to unregister from subscriber access to the topic. + // Required. Service account to unregister from subscriber access to the + // topic. string service_account = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -2424,10 +2607,10 @@ message ListSubscribersRequest { // Required. Resource name of the account. string account = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. The maximum number of service accounts to return. The service may return - // fewer than this value. - // If unspecified, returns at most 100 service accounts. - // The maximum value is 1000; the server will coerce values above 1000. + // Optional. The maximum number of service accounts to return. The service may + // return fewer than this value. If unspecified, returns at most 100 service + // accounts. The maximum value is 1000; the server will coerce values above + // 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous `ListSubscribers` call. @@ -2449,4 +2632,4 @@ message ListSubscribersResponse { // A token that can be sent as `page_token` to retrieve the next page. // If this field is omitted, there are no subsequent pages. string next_page_token = 3; -} +} \ No newline at end of file diff --git a/packages/google-cloud-channel/protos/google/cloud/channel/v1/subscriber_event.proto b/packages/google-cloud-channel/protos/google/cloud/channel/v1/subscriber_event.proto index 3c67216ed65..0135c066f44 100644 --- a/packages/google-cloud-channel/protos/google/cloud/channel/v1/subscriber_event.proto +++ b/packages/google-cloud-channel/protos/google/cloud/channel/v1/subscriber_event.proto @@ -40,8 +40,8 @@ message CustomerEvent { // Resource name of the customer. // Format: accounts/{account_id}/customers/{customer_id} string customer = 1 [(google.api.resource_reference) = { - type: "cloudchannel.googleapis.com/Customer" - }]; + type: "cloudchannel.googleapis.com/Customer" + }]; // Type of event which happened on the customer. Type event_type = 2; @@ -97,8 +97,8 @@ message EntitlementEvent { // Resource name of an entitlement of the form: // accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} string entitlement = 1 [(google.api.resource_reference) = { - type: "cloudchannel.googleapis.com/Entitlement" - }]; + type: "cloudchannel.googleapis.com/Entitlement" + }]; // Type of event which happened on the entitlement. Type event_type = 2; @@ -116,4 +116,4 @@ message SubscriberEvent { // Entitlement event sent as part of Pub/Sub event to partners. EntitlementEvent entitlement_event = 2; } -} +} \ No newline at end of file diff --git a/packages/google-cloud-channel/protos/protos.d.ts b/packages/google-cloud-channel/protos/protos.d.ts index 7d3c465c6f1..f3029af8a6c 100644 --- a/packages/google-cloud-channel/protos/protos.d.ts +++ b/packages/google-cloud-channel/protos/protos.d.ts @@ -5710,6 +5710,9 @@ export namespace google { /** RepricingConfig rebillingBasis */ rebillingBasis?: (google.cloud.channel.v1.RebillingBasis|keyof typeof google.cloud.channel.v1.RebillingBasis|null); + + /** RepricingConfig conditionalOverrides */ + conditionalOverrides?: (google.cloud.channel.v1.IConditionalOverride[]|null); } /** Represents a RepricingConfig. */ @@ -5736,6 +5739,9 @@ export namespace google { /** RepricingConfig rebillingBasis. */ public rebillingBasis: (google.cloud.channel.v1.RebillingBasis|keyof typeof google.cloud.channel.v1.RebillingBasis); + /** RepricingConfig conditionalOverrides. */ + public conditionalOverrides: google.cloud.channel.v1.IConditionalOverride[]; + /** RepricingConfig granularity. */ public granularity?: ("entitlementGranularity"|"channelPartnerGranularity"); @@ -6205,6 +6211,312 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ConditionalOverride. */ + interface IConditionalOverride { + + /** ConditionalOverride adjustment */ + adjustment?: (google.cloud.channel.v1.IRepricingAdjustment|null); + + /** ConditionalOverride rebillingBasis */ + rebillingBasis?: (google.cloud.channel.v1.RebillingBasis|keyof typeof google.cloud.channel.v1.RebillingBasis|null); + + /** ConditionalOverride repricingCondition */ + repricingCondition?: (google.cloud.channel.v1.IRepricingCondition|null); + } + + /** Represents a ConditionalOverride. */ + class ConditionalOverride implements IConditionalOverride { + + /** + * Constructs a new ConditionalOverride. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.channel.v1.IConditionalOverride); + + /** ConditionalOverride adjustment. */ + public adjustment?: (google.cloud.channel.v1.IRepricingAdjustment|null); + + /** ConditionalOverride rebillingBasis. */ + public rebillingBasis: (google.cloud.channel.v1.RebillingBasis|keyof typeof google.cloud.channel.v1.RebillingBasis); + + /** ConditionalOverride repricingCondition. */ + public repricingCondition?: (google.cloud.channel.v1.IRepricingCondition|null); + + /** + * Creates a new ConditionalOverride instance using the specified properties. + * @param [properties] Properties to set + * @returns ConditionalOverride instance + */ + public static create(properties?: google.cloud.channel.v1.IConditionalOverride): google.cloud.channel.v1.ConditionalOverride; + + /** + * Encodes the specified ConditionalOverride message. Does not implicitly {@link google.cloud.channel.v1.ConditionalOverride.verify|verify} messages. + * @param message ConditionalOverride message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.channel.v1.IConditionalOverride, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConditionalOverride message, length delimited. Does not implicitly {@link google.cloud.channel.v1.ConditionalOverride.verify|verify} messages. + * @param message ConditionalOverride message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.channel.v1.IConditionalOverride, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConditionalOverride message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConditionalOverride + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.channel.v1.ConditionalOverride; + + /** + * Decodes a ConditionalOverride message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConditionalOverride + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.channel.v1.ConditionalOverride; + + /** + * Verifies a ConditionalOverride message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ConditionalOverride message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConditionalOverride + */ + public static fromObject(object: { [k: string]: any }): google.cloud.channel.v1.ConditionalOverride; + + /** + * Creates a plain object from a ConditionalOverride message. Also converts values to other types if specified. + * @param message ConditionalOverride + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.channel.v1.ConditionalOverride, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConditionalOverride to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConditionalOverride + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RepricingCondition. */ + interface IRepricingCondition { + + /** RepricingCondition skuGroupCondition */ + skuGroupCondition?: (google.cloud.channel.v1.ISkuGroupCondition|null); + } + + /** Represents a RepricingCondition. */ + class RepricingCondition implements IRepricingCondition { + + /** + * Constructs a new RepricingCondition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.channel.v1.IRepricingCondition); + + /** RepricingCondition skuGroupCondition. */ + public skuGroupCondition?: (google.cloud.channel.v1.ISkuGroupCondition|null); + + /** RepricingCondition condition. */ + public condition?: "skuGroupCondition"; + + /** + * Creates a new RepricingCondition instance using the specified properties. + * @param [properties] Properties to set + * @returns RepricingCondition instance + */ + public static create(properties?: google.cloud.channel.v1.IRepricingCondition): google.cloud.channel.v1.RepricingCondition; + + /** + * Encodes the specified RepricingCondition message. Does not implicitly {@link google.cloud.channel.v1.RepricingCondition.verify|verify} messages. + * @param message RepricingCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.channel.v1.IRepricingCondition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RepricingCondition message, length delimited. Does not implicitly {@link google.cloud.channel.v1.RepricingCondition.verify|verify} messages. + * @param message RepricingCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.channel.v1.IRepricingCondition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RepricingCondition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RepricingCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.channel.v1.RepricingCondition; + + /** + * Decodes a RepricingCondition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RepricingCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.channel.v1.RepricingCondition; + + /** + * Verifies a RepricingCondition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RepricingCondition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RepricingCondition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.channel.v1.RepricingCondition; + + /** + * Creates a plain object from a RepricingCondition message. Also converts values to other types if specified. + * @param message RepricingCondition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.channel.v1.RepricingCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RepricingCondition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RepricingCondition + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SkuGroupCondition. */ + interface ISkuGroupCondition { + + /** SkuGroupCondition skuGroup */ + skuGroup?: (string|null); + } + + /** Represents a SkuGroupCondition. */ + class SkuGroupCondition implements ISkuGroupCondition { + + /** + * Constructs a new SkuGroupCondition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.channel.v1.ISkuGroupCondition); + + /** SkuGroupCondition skuGroup. */ + public skuGroup: string; + + /** + * Creates a new SkuGroupCondition instance using the specified properties. + * @param [properties] Properties to set + * @returns SkuGroupCondition instance + */ + public static create(properties?: google.cloud.channel.v1.ISkuGroupCondition): google.cloud.channel.v1.SkuGroupCondition; + + /** + * Encodes the specified SkuGroupCondition message. Does not implicitly {@link google.cloud.channel.v1.SkuGroupCondition.verify|verify} messages. + * @param message SkuGroupCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.channel.v1.ISkuGroupCondition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SkuGroupCondition message, length delimited. Does not implicitly {@link google.cloud.channel.v1.SkuGroupCondition.verify|verify} messages. + * @param message SkuGroupCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.channel.v1.ISkuGroupCondition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SkuGroupCondition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SkuGroupCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.channel.v1.SkuGroupCondition; + + /** + * Decodes a SkuGroupCondition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SkuGroupCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.channel.v1.SkuGroupCondition; + + /** + * Verifies a SkuGroupCondition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SkuGroupCondition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SkuGroupCondition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.channel.v1.SkuGroupCondition; + + /** + * Creates a plain object from a SkuGroupCondition message. Also converts values to other types if specified. + * @param message SkuGroupCondition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.channel.v1.SkuGroupCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SkuGroupCondition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SkuGroupCondition + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Represents a CloudChannelService */ class CloudChannelService extends $protobuf.rpc.Service { diff --git a/packages/google-cloud-channel/protos/protos.js b/packages/google-cloud-channel/protos/protos.js index 11e2391eb56..2cbe30cbddd 100644 --- a/packages/google-cloud-channel/protos/protos.js +++ b/packages/google-cloud-channel/protos/protos.js @@ -14771,6 +14771,7 @@ * @property {google.type.IDate|null} [effectiveInvoiceMonth] RepricingConfig effectiveInvoiceMonth * @property {google.cloud.channel.v1.IRepricingAdjustment|null} [adjustment] RepricingConfig adjustment * @property {google.cloud.channel.v1.RebillingBasis|null} [rebillingBasis] RepricingConfig rebillingBasis + * @property {Array.|null} [conditionalOverrides] RepricingConfig conditionalOverrides */ /** @@ -14782,6 +14783,7 @@ * @param {google.cloud.channel.v1.IRepricingConfig=} [properties] Properties to set */ function RepricingConfig(properties) { + this.conditionalOverrides = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14828,6 +14830,14 @@ */ RepricingConfig.prototype.rebillingBasis = 0; + /** + * RepricingConfig conditionalOverrides. + * @member {Array.} conditionalOverrides + * @memberof google.cloud.channel.v1.RepricingConfig + * @instance + */ + RepricingConfig.prototype.conditionalOverrides = $util.emptyArray; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -14876,6 +14886,9 @@ $root.google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.encode(message.entitlementGranularity, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.channelPartnerGranularity != null && Object.hasOwnProperty.call(message, "channelPartnerGranularity")) $root.google.cloud.channel.v1.RepricingConfig.ChannelPartnerGranularity.encode(message.channelPartnerGranularity, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.conditionalOverrides != null && message.conditionalOverrides.length) + for (var i = 0; i < message.conditionalOverrides.length; ++i) + $root.google.cloud.channel.v1.ConditionalOverride.encode(message.conditionalOverrides[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -14930,6 +14943,12 @@ message.rebillingBasis = reader.int32(); break; } + case 6: { + if (!(message.conditionalOverrides && message.conditionalOverrides.length)) + message.conditionalOverrides = []; + message.conditionalOverrides.push($root.google.cloud.channel.v1.ConditionalOverride.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -15003,6 +15022,15 @@ case 2: break; } + if (message.conditionalOverrides != null && message.hasOwnProperty("conditionalOverrides")) { + if (!Array.isArray(message.conditionalOverrides)) + return "conditionalOverrides: array expected"; + for (var i = 0; i < message.conditionalOverrides.length; ++i) { + var error = $root.google.cloud.channel.v1.ConditionalOverride.verify(message.conditionalOverrides[i]); + if (error) + return "conditionalOverrides." + error; + } + } return null; }; @@ -15058,6 +15086,16 @@ message.rebillingBasis = 2; break; } + if (object.conditionalOverrides) { + if (!Array.isArray(object.conditionalOverrides)) + throw TypeError(".google.cloud.channel.v1.RepricingConfig.conditionalOverrides: array expected"); + message.conditionalOverrides = []; + for (var i = 0; i < object.conditionalOverrides.length; ++i) { + if (typeof object.conditionalOverrides[i] !== "object") + throw TypeError(".google.cloud.channel.v1.RepricingConfig.conditionalOverrides: object expected"); + message.conditionalOverrides[i] = $root.google.cloud.channel.v1.ConditionalOverride.fromObject(object.conditionalOverrides[i]); + } + } return message; }; @@ -15074,6 +15112,8 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.conditionalOverrides = []; if (options.defaults) { object.effectiveInvoiceMonth = null; object.adjustment = null; @@ -15095,6 +15135,11 @@ if (options.oneofs) object.granularity = "channelPartnerGranularity"; } + if (message.conditionalOverrides && message.conditionalOverrides.length) { + object.conditionalOverrides = []; + for (var j = 0; j < message.conditionalOverrides.length; ++j) + object.conditionalOverrides[j] = $root.google.cloud.channel.v1.ConditionalOverride.toObject(message.conditionalOverrides[j], options); + } return object; }; @@ -15940,6 +15985,720 @@ return PercentageAdjustment; })(); + v1.ConditionalOverride = (function() { + + /** + * Properties of a ConditionalOverride. + * @memberof google.cloud.channel.v1 + * @interface IConditionalOverride + * @property {google.cloud.channel.v1.IRepricingAdjustment|null} [adjustment] ConditionalOverride adjustment + * @property {google.cloud.channel.v1.RebillingBasis|null} [rebillingBasis] ConditionalOverride rebillingBasis + * @property {google.cloud.channel.v1.IRepricingCondition|null} [repricingCondition] ConditionalOverride repricingCondition + */ + + /** + * Constructs a new ConditionalOverride. + * @memberof google.cloud.channel.v1 + * @classdesc Represents a ConditionalOverride. + * @implements IConditionalOverride + * @constructor + * @param {google.cloud.channel.v1.IConditionalOverride=} [properties] Properties to set + */ + function ConditionalOverride(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ConditionalOverride adjustment. + * @member {google.cloud.channel.v1.IRepricingAdjustment|null|undefined} adjustment + * @memberof google.cloud.channel.v1.ConditionalOverride + * @instance + */ + ConditionalOverride.prototype.adjustment = null; + + /** + * ConditionalOverride rebillingBasis. + * @member {google.cloud.channel.v1.RebillingBasis} rebillingBasis + * @memberof google.cloud.channel.v1.ConditionalOverride + * @instance + */ + ConditionalOverride.prototype.rebillingBasis = 0; + + /** + * ConditionalOverride repricingCondition. + * @member {google.cloud.channel.v1.IRepricingCondition|null|undefined} repricingCondition + * @memberof google.cloud.channel.v1.ConditionalOverride + * @instance + */ + ConditionalOverride.prototype.repricingCondition = null; + + /** + * Creates a new ConditionalOverride instance using the specified properties. + * @function create + * @memberof google.cloud.channel.v1.ConditionalOverride + * @static + * @param {google.cloud.channel.v1.IConditionalOverride=} [properties] Properties to set + * @returns {google.cloud.channel.v1.ConditionalOverride} ConditionalOverride instance + */ + ConditionalOverride.create = function create(properties) { + return new ConditionalOverride(properties); + }; + + /** + * Encodes the specified ConditionalOverride message. Does not implicitly {@link google.cloud.channel.v1.ConditionalOverride.verify|verify} messages. + * @function encode + * @memberof google.cloud.channel.v1.ConditionalOverride + * @static + * @param {google.cloud.channel.v1.IConditionalOverride} message ConditionalOverride message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConditionalOverride.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.adjustment != null && Object.hasOwnProperty.call(message, "adjustment")) + $root.google.cloud.channel.v1.RepricingAdjustment.encode(message.adjustment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.rebillingBasis != null && Object.hasOwnProperty.call(message, "rebillingBasis")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.rebillingBasis); + if (message.repricingCondition != null && Object.hasOwnProperty.call(message, "repricingCondition")) + $root.google.cloud.channel.v1.RepricingCondition.encode(message.repricingCondition, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ConditionalOverride message, length delimited. Does not implicitly {@link google.cloud.channel.v1.ConditionalOverride.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.channel.v1.ConditionalOverride + * @static + * @param {google.cloud.channel.v1.IConditionalOverride} message ConditionalOverride message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConditionalOverride.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConditionalOverride message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.channel.v1.ConditionalOverride + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.channel.v1.ConditionalOverride} ConditionalOverride + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConditionalOverride.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.channel.v1.ConditionalOverride(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.adjustment = $root.google.cloud.channel.v1.RepricingAdjustment.decode(reader, reader.uint32()); + break; + } + case 2: { + message.rebillingBasis = reader.int32(); + break; + } + case 3: { + message.repricingCondition = $root.google.cloud.channel.v1.RepricingCondition.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ConditionalOverride message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.channel.v1.ConditionalOverride + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.channel.v1.ConditionalOverride} ConditionalOverride + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConditionalOverride.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConditionalOverride message. + * @function verify + * @memberof google.cloud.channel.v1.ConditionalOverride + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConditionalOverride.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.adjustment != null && message.hasOwnProperty("adjustment")) { + var error = $root.google.cloud.channel.v1.RepricingAdjustment.verify(message.adjustment); + if (error) + return "adjustment." + error; + } + if (message.rebillingBasis != null && message.hasOwnProperty("rebillingBasis")) + switch (message.rebillingBasis) { + default: + return "rebillingBasis: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.repricingCondition != null && message.hasOwnProperty("repricingCondition")) { + var error = $root.google.cloud.channel.v1.RepricingCondition.verify(message.repricingCondition); + if (error) + return "repricingCondition." + error; + } + return null; + }; + + /** + * Creates a ConditionalOverride message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.channel.v1.ConditionalOverride + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.channel.v1.ConditionalOverride} ConditionalOverride + */ + ConditionalOverride.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.channel.v1.ConditionalOverride) + return object; + var message = new $root.google.cloud.channel.v1.ConditionalOverride(); + if (object.adjustment != null) { + if (typeof object.adjustment !== "object") + throw TypeError(".google.cloud.channel.v1.ConditionalOverride.adjustment: object expected"); + message.adjustment = $root.google.cloud.channel.v1.RepricingAdjustment.fromObject(object.adjustment); + } + switch (object.rebillingBasis) { + default: + if (typeof object.rebillingBasis === "number") { + message.rebillingBasis = object.rebillingBasis; + break; + } + break; + case "REBILLING_BASIS_UNSPECIFIED": + case 0: + message.rebillingBasis = 0; + break; + case "COST_AT_LIST": + case 1: + message.rebillingBasis = 1; + break; + case "DIRECT_CUSTOMER_COST": + case 2: + message.rebillingBasis = 2; + break; + } + if (object.repricingCondition != null) { + if (typeof object.repricingCondition !== "object") + throw TypeError(".google.cloud.channel.v1.ConditionalOverride.repricingCondition: object expected"); + message.repricingCondition = $root.google.cloud.channel.v1.RepricingCondition.fromObject(object.repricingCondition); + } + return message; + }; + + /** + * Creates a plain object from a ConditionalOverride message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.channel.v1.ConditionalOverride + * @static + * @param {google.cloud.channel.v1.ConditionalOverride} message ConditionalOverride + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConditionalOverride.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.adjustment = null; + object.rebillingBasis = options.enums === String ? "REBILLING_BASIS_UNSPECIFIED" : 0; + object.repricingCondition = null; + } + if (message.adjustment != null && message.hasOwnProperty("adjustment")) + object.adjustment = $root.google.cloud.channel.v1.RepricingAdjustment.toObject(message.adjustment, options); + if (message.rebillingBasis != null && message.hasOwnProperty("rebillingBasis")) + object.rebillingBasis = options.enums === String ? $root.google.cloud.channel.v1.RebillingBasis[message.rebillingBasis] === undefined ? message.rebillingBasis : $root.google.cloud.channel.v1.RebillingBasis[message.rebillingBasis] : message.rebillingBasis; + if (message.repricingCondition != null && message.hasOwnProperty("repricingCondition")) + object.repricingCondition = $root.google.cloud.channel.v1.RepricingCondition.toObject(message.repricingCondition, options); + return object; + }; + + /** + * Converts this ConditionalOverride to JSON. + * @function toJSON + * @memberof google.cloud.channel.v1.ConditionalOverride + * @instance + * @returns {Object.} JSON object + */ + ConditionalOverride.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ConditionalOverride + * @function getTypeUrl + * @memberof google.cloud.channel.v1.ConditionalOverride + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConditionalOverride.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.channel.v1.ConditionalOverride"; + }; + + return ConditionalOverride; + })(); + + v1.RepricingCondition = (function() { + + /** + * Properties of a RepricingCondition. + * @memberof google.cloud.channel.v1 + * @interface IRepricingCondition + * @property {google.cloud.channel.v1.ISkuGroupCondition|null} [skuGroupCondition] RepricingCondition skuGroupCondition + */ + + /** + * Constructs a new RepricingCondition. + * @memberof google.cloud.channel.v1 + * @classdesc Represents a RepricingCondition. + * @implements IRepricingCondition + * @constructor + * @param {google.cloud.channel.v1.IRepricingCondition=} [properties] Properties to set + */ + function RepricingCondition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RepricingCondition skuGroupCondition. + * @member {google.cloud.channel.v1.ISkuGroupCondition|null|undefined} skuGroupCondition + * @memberof google.cloud.channel.v1.RepricingCondition + * @instance + */ + RepricingCondition.prototype.skuGroupCondition = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * RepricingCondition condition. + * @member {"skuGroupCondition"|undefined} condition + * @memberof google.cloud.channel.v1.RepricingCondition + * @instance + */ + Object.defineProperty(RepricingCondition.prototype, "condition", { + get: $util.oneOfGetter($oneOfFields = ["skuGroupCondition"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new RepricingCondition instance using the specified properties. + * @function create + * @memberof google.cloud.channel.v1.RepricingCondition + * @static + * @param {google.cloud.channel.v1.IRepricingCondition=} [properties] Properties to set + * @returns {google.cloud.channel.v1.RepricingCondition} RepricingCondition instance + */ + RepricingCondition.create = function create(properties) { + return new RepricingCondition(properties); + }; + + /** + * Encodes the specified RepricingCondition message. Does not implicitly {@link google.cloud.channel.v1.RepricingCondition.verify|verify} messages. + * @function encode + * @memberof google.cloud.channel.v1.RepricingCondition + * @static + * @param {google.cloud.channel.v1.IRepricingCondition} message RepricingCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RepricingCondition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.skuGroupCondition != null && Object.hasOwnProperty.call(message, "skuGroupCondition")) + $root.google.cloud.channel.v1.SkuGroupCondition.encode(message.skuGroupCondition, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RepricingCondition message, length delimited. Does not implicitly {@link google.cloud.channel.v1.RepricingCondition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.channel.v1.RepricingCondition + * @static + * @param {google.cloud.channel.v1.IRepricingCondition} message RepricingCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RepricingCondition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RepricingCondition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.channel.v1.RepricingCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.channel.v1.RepricingCondition} RepricingCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RepricingCondition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.channel.v1.RepricingCondition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.skuGroupCondition = $root.google.cloud.channel.v1.SkuGroupCondition.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RepricingCondition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.channel.v1.RepricingCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.channel.v1.RepricingCondition} RepricingCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RepricingCondition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RepricingCondition message. + * @function verify + * @memberof google.cloud.channel.v1.RepricingCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RepricingCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.skuGroupCondition != null && message.hasOwnProperty("skuGroupCondition")) { + properties.condition = 1; + { + var error = $root.google.cloud.channel.v1.SkuGroupCondition.verify(message.skuGroupCondition); + if (error) + return "skuGroupCondition." + error; + } + } + return null; + }; + + /** + * Creates a RepricingCondition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.channel.v1.RepricingCondition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.channel.v1.RepricingCondition} RepricingCondition + */ + RepricingCondition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.channel.v1.RepricingCondition) + return object; + var message = new $root.google.cloud.channel.v1.RepricingCondition(); + if (object.skuGroupCondition != null) { + if (typeof object.skuGroupCondition !== "object") + throw TypeError(".google.cloud.channel.v1.RepricingCondition.skuGroupCondition: object expected"); + message.skuGroupCondition = $root.google.cloud.channel.v1.SkuGroupCondition.fromObject(object.skuGroupCondition); + } + return message; + }; + + /** + * Creates a plain object from a RepricingCondition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.channel.v1.RepricingCondition + * @static + * @param {google.cloud.channel.v1.RepricingCondition} message RepricingCondition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RepricingCondition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.skuGroupCondition != null && message.hasOwnProperty("skuGroupCondition")) { + object.skuGroupCondition = $root.google.cloud.channel.v1.SkuGroupCondition.toObject(message.skuGroupCondition, options); + if (options.oneofs) + object.condition = "skuGroupCondition"; + } + return object; + }; + + /** + * Converts this RepricingCondition to JSON. + * @function toJSON + * @memberof google.cloud.channel.v1.RepricingCondition + * @instance + * @returns {Object.} JSON object + */ + RepricingCondition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RepricingCondition + * @function getTypeUrl + * @memberof google.cloud.channel.v1.RepricingCondition + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RepricingCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.channel.v1.RepricingCondition"; + }; + + return RepricingCondition; + })(); + + v1.SkuGroupCondition = (function() { + + /** + * Properties of a SkuGroupCondition. + * @memberof google.cloud.channel.v1 + * @interface ISkuGroupCondition + * @property {string|null} [skuGroup] SkuGroupCondition skuGroup + */ + + /** + * Constructs a new SkuGroupCondition. + * @memberof google.cloud.channel.v1 + * @classdesc Represents a SkuGroupCondition. + * @implements ISkuGroupCondition + * @constructor + * @param {google.cloud.channel.v1.ISkuGroupCondition=} [properties] Properties to set + */ + function SkuGroupCondition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SkuGroupCondition skuGroup. + * @member {string} skuGroup + * @memberof google.cloud.channel.v1.SkuGroupCondition + * @instance + */ + SkuGroupCondition.prototype.skuGroup = ""; + + /** + * Creates a new SkuGroupCondition instance using the specified properties. + * @function create + * @memberof google.cloud.channel.v1.SkuGroupCondition + * @static + * @param {google.cloud.channel.v1.ISkuGroupCondition=} [properties] Properties to set + * @returns {google.cloud.channel.v1.SkuGroupCondition} SkuGroupCondition instance + */ + SkuGroupCondition.create = function create(properties) { + return new SkuGroupCondition(properties); + }; + + /** + * Encodes the specified SkuGroupCondition message. Does not implicitly {@link google.cloud.channel.v1.SkuGroupCondition.verify|verify} messages. + * @function encode + * @memberof google.cloud.channel.v1.SkuGroupCondition + * @static + * @param {google.cloud.channel.v1.ISkuGroupCondition} message SkuGroupCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SkuGroupCondition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.skuGroup != null && Object.hasOwnProperty.call(message, "skuGroup")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.skuGroup); + return writer; + }; + + /** + * Encodes the specified SkuGroupCondition message, length delimited. Does not implicitly {@link google.cloud.channel.v1.SkuGroupCondition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.channel.v1.SkuGroupCondition + * @static + * @param {google.cloud.channel.v1.ISkuGroupCondition} message SkuGroupCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SkuGroupCondition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SkuGroupCondition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.channel.v1.SkuGroupCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.channel.v1.SkuGroupCondition} SkuGroupCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SkuGroupCondition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.channel.v1.SkuGroupCondition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.skuGroup = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SkuGroupCondition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.channel.v1.SkuGroupCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.channel.v1.SkuGroupCondition} SkuGroupCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SkuGroupCondition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SkuGroupCondition message. + * @function verify + * @memberof google.cloud.channel.v1.SkuGroupCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SkuGroupCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.skuGroup != null && message.hasOwnProperty("skuGroup")) + if (!$util.isString(message.skuGroup)) + return "skuGroup: string expected"; + return null; + }; + + /** + * Creates a SkuGroupCondition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.channel.v1.SkuGroupCondition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.channel.v1.SkuGroupCondition} SkuGroupCondition + */ + SkuGroupCondition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.channel.v1.SkuGroupCondition) + return object; + var message = new $root.google.cloud.channel.v1.SkuGroupCondition(); + if (object.skuGroup != null) + message.skuGroup = String(object.skuGroup); + return message; + }; + + /** + * Creates a plain object from a SkuGroupCondition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.channel.v1.SkuGroupCondition + * @static + * @param {google.cloud.channel.v1.SkuGroupCondition} message SkuGroupCondition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SkuGroupCondition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.skuGroup = ""; + if (message.skuGroup != null && message.hasOwnProperty("skuGroup")) + object.skuGroup = message.skuGroup; + return object; + }; + + /** + * Converts this SkuGroupCondition to JSON. + * @function toJSON + * @memberof google.cloud.channel.v1.SkuGroupCondition + * @instance + * @returns {Object.} JSON object + */ + SkuGroupCondition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SkuGroupCondition + * @function getTypeUrl + * @memberof google.cloud.channel.v1.SkuGroupCondition + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SkuGroupCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.channel.v1.SkuGroupCondition"; + }; + + return SkuGroupCondition; + })(); + v1.CloudChannelService = (function() { /** diff --git a/packages/google-cloud-channel/protos/protos.json b/packages/google-cloud-channel/protos/protos.json index 010e18ce203..21ab38129eb 100644 --- a/packages/google-cloud-channel/protos/protos.json +++ b/packages/google-cloud-channel/protos/protos.json @@ -1491,6 +1491,11 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "conditionalOverrides": { + "rule": "repeated", + "type": "ConditionalOverride", + "id": 6 } }, "nested": { @@ -1533,6 +1538,54 @@ } } }, + "ConditionalOverride": { + "fields": { + "adjustment": { + "type": "RepricingAdjustment", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "rebillingBasis": { + "type": "RebillingBasis", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "repricingCondition": { + "type": "RepricingCondition", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "RepricingCondition": { + "oneofs": { + "condition": { + "oneof": [ + "skuGroupCondition" + ] + } + }, + "fields": { + "skuGroupCondition": { + "type": "SkuGroupCondition", + "id": 1 + } + } + }, + "SkuGroupCondition": { + "fields": { + "skuGroup": { + "type": "string", + "id": 1 + } + } + }, "CloudChannelService": { "options": { "(google.api.default_host)": "cloudchannel.googleapis.com", diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_reports_service.fetch_report_results.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_reports_service.fetch_report_results.js index 2c609bc5595..38703fe5671 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_reports_service.fetch_report_results.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_reports_service.fetch_report_results.js @@ -29,15 +29,16 @@ function main(reportJob) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The report job created by CloudChannelReportsService.RunReportJob google.cloud.channel.v1.CloudChannelReportsService.RunReportJob. + * Required. The report job created by + * CloudChannelReportsService.RunReportJob google.cloud.channel.v1.CloudChannelReportsService.RunReportJob. * Report_job uses the format: * accounts/{account_id}/reportJobs/{report_job_id} */ // const reportJob = 'abc123' /** - * Optional. Requested page size of the report. The server may return fewer results than - * requested. If you don't specify a page size, the server uses a sensible - * default (may change over time). + * Optional. Requested page size of the report. The server may return fewer + * results than requested. If you don't specify a page size, the server uses a + * sensible default (may change over time). * The maximum value is 30,000; the server will change larger values to * 30,000. */ @@ -45,8 +46,10 @@ function main(reportJob) { /** * Optional. A token that specifies a page of results beyond the first page. * Obtained through - * FetchReportResultsResponse.next_page_token google.cloud.channel.v1.FetchReportResultsResponse.next_page_token of the previous - * CloudChannelReportsService.FetchReportResults google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults call. + * FetchReportResultsResponse.next_page_token google.cloud.channel.v1.FetchReportResultsResponse.next_page_token + * of the previous + * CloudChannelReportsService.FetchReportResults google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults + * call. */ // const pageToken = 'abc123' diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_reports_service.list_reports.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_reports_service.list_reports.js index bf37c0e3bb5..56b561b5f62 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_reports_service.list_reports.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_reports_service.list_reports.js @@ -29,22 +29,23 @@ function main(parent) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The resource name of the partner account to list available reports for. - * Parent uses the format: - * accounts/{account_id} + * Required. The resource name of the partner account to list available + * reports for. Parent uses the format: accounts/{account_id} */ // const parent = 'abc123' /** - * Optional. Requested page size of the report. The server might return fewer results - * than requested. If unspecified, returns 20 reports. - * The maximum value is 100. + * Optional. Requested page size of the report. The server might return fewer + * results than requested. If unspecified, returns 20 reports. The maximum + * value is 100. */ // const pageSize = 1234 /** * Optional. A token that specifies a page of results beyond the first page. * Obtained through - * ListReportsResponse.next_page_token google.cloud.channel.v1.ListReportsResponse.next_page_token of the previous - * CloudChannelReportsService.ListReports google.cloud.channel.v1.CloudChannelReportsService.ListReports call. + * ListReportsResponse.next_page_token google.cloud.channel.v1.ListReportsResponse.next_page_token + * of the previous + * CloudChannelReportsService.ListReports google.cloud.channel.v1.CloudChannelReportsService.ListReports + * call. */ // const pageToken = 'abc123' /** diff --git a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_reports_service.run_report_job.js b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_reports_service.run_report_job.js index 8fa60ddbc73..6f1866707ea 100644 --- a/packages/google-cloud-channel/samples/generated/v1/cloud_channel_reports_service.run_report_job.js +++ b/packages/google-cloud-channel/samples/generated/v1/cloud_channel_reports_service.run_report_job.js @@ -29,8 +29,8 @@ function main(name) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The report's resource name. Specifies the account and report used to - * generate report data. The report_id identifier is a UID (for example, + * Required. The report's resource name. Specifies the account and report used + * to generate report data. The report_id identifier is a UID (for example, * `613bf59q`). * Name uses the format: * accounts/{account_id}/reports/{report_id} @@ -41,8 +41,8 @@ function main(name) { */ // const dateRange = {} /** - * Optional. A structured string that defines conditions on dimension columns to - * restrict the report output. + * Optional. A structured string that defines conditions on dimension columns + * to restrict the report output. * Filters support logical operators (AND, OR, NOT) and conditional operators * (=, !=, <, >, <=, and >=) using `column_id` as keys. * For example: 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 4f3c8747897..18b3c57f4af 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 @@ -35,8 +35,9 @@ function main(name) { */ // const name = 'abc123' /** - * Optional. You can specify an optional unique request ID, and if you need to retry - * your request, the server will know to ignore the request if it's complete. + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. * For example, you make an initial request and the request times out. If you * make the request again with the same request ID, the server can check if * it received the original operation with the same request ID. If it did, it 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 c664417d41e..4f89a80116b 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 @@ -35,8 +35,9 @@ function main(name) { */ // const name = 'abc123' /** - * Optional. You can specify an optional unique request ID, and if you need to retry - * your request, the server will know to ignore the request if it's complete. + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. * For example, you make an initial request and the request times out. If you * make the request again with the same request ID, the server can check if * it received the original operation with the same request ID. If it did, it 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 67749366e1f..2442ce2baad 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 @@ -40,8 +40,10 @@ function main(name, offer) { */ // const offer = 'abc123' /** - * Optional. Parameters needed to purchase the Offer. To view the available Parameters - * refer to the Offer.parameter_definitions google.cloud.channel.v1.Offer.parameter_definitions from the desired offer. + * Optional. Parameters needed to purchase the Offer. To view the available + * Parameters refer to the + * Offer.parameter_definitions google.cloud.channel.v1.Offer.parameter_definitions + * from the desired offer. */ // const parameters = 1234 /** @@ -49,8 +51,9 @@ function main(name, offer) { */ // const purchaseOrderId = 'abc123' /** - * Optional. You can specify an optional unique request ID, and if you need to retry - * your request, the server will know to ignore the request if it's complete. + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. * For example, you make an initial request and the request times out. If you * make the request again with the same request ID, the server can check if * it received the original operation with the same request ID. If it did, it 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 69c955fbbe2..b4ac8bb935f 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 @@ -35,14 +35,17 @@ function main(name, parameters) { */ // const name = 'abc123' /** - * Required. Entitlement parameters to update. You can only change editable parameters. + * Required. Entitlement parameters to update. You can only change editable + * parameters. * To view the available Parameters for a request, refer to the - * Offer.parameter_definitions google.cloud.channel.v1.Offer.parameter_definitions from the desired offer. + * Offer.parameter_definitions google.cloud.channel.v1.Offer.parameter_definitions + * from the desired offer. */ // const parameters = 1234 /** - * Optional. You can specify an optional unique request ID, and if you need to retry - * your request, the server will know to ignore the request if it's complete. + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. * For example, you make an initial request and the request times out. If you * make the request again with the same request ID, the server can check if * it received the original operation with the same request ID. If it did, it 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 71b2d0efda5..a4f56944cbc 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 @@ -39,8 +39,9 @@ function main(name, renewalSettings) { */ // const renewalSettings = {} /** - * Optional. You can specify an optional unique request ID, and if you need to retry - * your request, the server will know to ignore the request if it's complete. + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. * For example, you make an initial request and the request times out. If you * make the request again with the same request ID, the server can check if * it received the original operation with the same request ID. If it did, it 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 ec4b22da1dd..ebddea882f0 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 @@ -29,8 +29,8 @@ function main(parent, channelPartnerRepricingConfig) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The resource name of the ChannelPartner that will receive the repricing - * config. Parent uses the format: + * Required. The resource name of the ChannelPartner that will receive the + * repricing config. Parent uses the format: * accounts/{account_id}/channelPartnerLinks/{channel_partner_id} */ // const parent = 'abc123' 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 c7ffac50924..869f222ba01 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 @@ -29,8 +29,8 @@ function main(parent, customer) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The resource name of reseller account in which to create the customer. - * Parent uses the format: accounts/{account_id} + * Required. The resource name of reseller account in which to create the + * customer. Parent uses the format: accounts/{account_id} */ // const parent = 'abc123' /** 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 d7e9f1980b7..826bdced548 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 @@ -29,8 +29,9 @@ function main(parent, customerRepricingConfig) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The resource name of the customer that will receive this repricing config. - * Parent uses the format: accounts/{account_id}/customers/{customer_id} + * Required. The resource name of the customer that will receive this + * repricing config. Parent uses the format: + * accounts/{account_id}/customers/{customer_id} */ // const parent = 'abc123' /** 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 f679ab7c6c4..b8659127c46 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 @@ -29,9 +29,9 @@ function main(parent, entitlement) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The resource name of the reseller's customer account in which to create the - * entitlement. - * Parent uses the format: accounts/{account_id}/customers/{customer_id} + * Required. The resource name of the reseller's customer account in which to + * create the entitlement. Parent uses the format: + * accounts/{account_id}/customers/{customer_id} */ // const parent = 'abc123' /** @@ -39,8 +39,9 @@ function main(parent, entitlement) { */ // const entitlement = {} /** - * Optional. You can specify an optional unique request ID, and if you need to retry - * your request, the server will know to ignore the request if it's complete. + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. * For example, you make an initial request and the request times out. If you * make the request again with the same request ID, the server can check if * it received the original operation with the same request ID. If it did, it 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 603a19b09f3..6cc8d7d7392 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 @@ -29,7 +29,8 @@ function main(name) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The resource name of the channel partner repricing config rule to delete. + * Required. The resource name of the channel partner repricing config rule to + * delete. */ // const name = 'abc123' 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 3337a795604..3722b11cbe5 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 @@ -29,8 +29,8 @@ function main(name) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The resource name of the customer repricing config rule to delete. - * Format: + * Required. The resource name of the customer repricing config rule to + * delete. Format: * accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}. */ // const name = 'abc123' 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 2238a6a769e..790f8400f92 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 @@ -56,9 +56,10 @@ function main(domain, cloudIdentityId, parent, overwriteIfExists) { */ // const overwriteIfExists = true /** - * Optional. Cloud Identity ID of a channel partner who will be the direct reseller for - * the customer's order. This field is required for 2-tier transfer scenarios - * and can be provided via the request Parent binding as well. + * Optional. Cloud Identity ID of a channel partner who will be the direct + * reseller for the customer's order. This field is required for 2-tier + * transfer scenarios and can be provided via the request Parent binding as + * well. */ // const channelPartnerId = 'abc123' /** 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 5e489026828..f15c6488eff 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 @@ -29,22 +29,23 @@ function main(parent) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The resource name of the reseller account for listing channel partner - * links. - * Parent uses the format: accounts/{account_id} + * Required. The resource name of the reseller account for listing channel + * partner links. Parent uses the format: accounts/{account_id} */ // const parent = 'abc123' /** - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, server will pick a default size (25). - * The maximum value is 200; the server will coerce values above 200. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, server will pick a default size (25). The + * maximum value is 200; the server will coerce values above 200. */ // const pageSize = 1234 /** * Optional. A token for a page of results other than the first page. * Obtained using - * ListChannelPartnerLinksResponse.next_page_token google.cloud.channel.v1.ListChannelPartnerLinksResponse.next_page_token of the previous - * CloudChannelService.ListChannelPartnerLinks google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks call. + * ListChannelPartnerLinksResponse.next_page_token google.cloud.channel.v1.ListChannelPartnerLinksResponse.next_page_token + * of the previous + * CloudChannelService.ListChannelPartnerLinks google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks + * call. */ // const pageToken = 'abc123' /** 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 7b94fd53b91..67ae5544814 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 @@ -29,31 +29,34 @@ function main(parent) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The resource name of the account's ChannelPartnerLink google.cloud.channel.v1.ChannelPartnerLink. - * Parent uses the format: + * Required. The resource name of the account's + * ChannelPartnerLink google.cloud.channel.v1.ChannelPartnerLink. Parent + * uses the format: * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}. * Supports accounts/{account_id}/channelPartnerLinks/- to retrieve configs * for all channel partners. */ // const parent = 'abc123' /** - * Optional. The maximum number of repricing configs to return. The service may return - * fewer than this value. If unspecified, returns a maximum of 50 rules. The - * maximum value is 100; values above 100 will be coerced to 100. + * Optional. The maximum number of repricing configs to return. The service + * may return fewer than this value. If unspecified, returns a maximum of 50 + * rules. The maximum value is 100; values above 100 will be coerced to 100. */ // const pageSize = 1234 /** * Optional. A token identifying a page of results beyond the first page. * Obtained through - * ListChannelPartnerRepricingConfigsResponse.next_page_token google.cloud.channel.v1.ListChannelPartnerRepricingConfigsResponse.next_page_token of the - * previous CloudChannelService.ListChannelPartnerRepricingConfigs google.cloud.channel.v1.CloudChannelService.ListChannelPartnerRepricingConfigs call. + * ListChannelPartnerRepricingConfigsResponse.next_page_token google.cloud.channel.v1.ListChannelPartnerRepricingConfigsResponse.next_page_token + * of the previous + * CloudChannelService.ListChannelPartnerRepricingConfigs google.cloud.channel.v1.CloudChannelService.ListChannelPartnerRepricingConfigs + * call. */ // const pageToken = 'abc123' /** - * Optional. A filter for CloudChannelService.ListChannelPartnerRepricingConfigs - * results (channel_partner_link only). You can use this filter when you - * support a BatchGet-like query. - * To use the filter, you must set + * Optional. A filter for + * CloudChannelService.ListChannelPartnerRepricingConfigs results + * (channel_partner_link only). You can use this filter when you support a + * BatchGet-like query. To use the filter, you must set * `parent=accounts/{account_id}/channelPartnerLinks/-`. * Example: `channel_partner_link = * accounts/account_id/channelPartnerLinks/c1` OR `channel_partner_link = 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 10b7419a8a3..147c7372d0c 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 @@ -36,16 +36,18 @@ function main(parent) { */ // const parent = 'abc123' /** - * Optional. The maximum number of repricing configs to return. The service may return - * fewer than this value. If unspecified, returns a maximum of 50 rules. The - * maximum value is 100; values above 100 will be coerced to 100. + * Optional. The maximum number of repricing configs to return. The service + * may return fewer than this value. If unspecified, returns a maximum of 50 + * rules. The maximum value is 100; values above 100 will be coerced to 100. */ // const pageSize = 1234 /** * Optional. A token identifying a page of results beyond the first page. * Obtained through - * ListCustomerRepricingConfigsResponse.next_page_token google.cloud.channel.v1.ListCustomerRepricingConfigsResponse.next_page_token of the previous - * CloudChannelService.ListCustomerRepricingConfigs google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs call. + * ListCustomerRepricingConfigsResponse.next_page_token google.cloud.channel.v1.ListCustomerRepricingConfigsResponse.next_page_token + * of the previous + * CloudChannelService.ListCustomerRepricingConfigs google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs + * call. */ // const pageToken = 'abc123' /** 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 462fa64938f..c31b53e38ae 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 @@ -34,20 +34,23 @@ function main(parent) { */ // const parent = 'abc123' /** - * Optional. The maximum number of customers to return. The service may return fewer - * than this value. If unspecified, returns at most 10 customers. The + * Optional. The maximum number of customers to return. The service may return + * fewer than this value. If unspecified, returns at most 10 customers. The * maximum value is 50. */ // const pageSize = 1234 /** * Optional. A token identifying a page of results other than the first page. * Obtained through - * ListCustomersResponse.next_page_token google.cloud.channel.v1.ListCustomersResponse.next_page_token of the previous - * CloudChannelService.ListCustomers google.cloud.channel.v1.CloudChannelService.ListCustomers call. + * ListCustomersResponse.next_page_token google.cloud.channel.v1.ListCustomersResponse.next_page_token + * of the previous + * CloudChannelService.ListCustomers google.cloud.channel.v1.CloudChannelService.ListCustomers + * call. */ // const pageToken = 'abc123' /** - * Optional. Filters applied to the CloudChannelService.ListCustomers results. See + * Optional. Filters applied to the CloudChannelService.ListCustomers + * results. See * https://cloud.google.com/channel/docs/concepts/google-cloud/filter-customers * for more information. */ 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 ce44dbcab28..3f8141a1ab0 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 @@ -35,16 +35,18 @@ function main(parent) { */ // const parent = 'abc123' /** - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, return at most 50 entitlements. - * The maximum value is 100; the server will coerce values above 100. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, return at most 50 entitlements. The maximum + * value is 100; the server will coerce values above 100. */ // const pageSize = 1234 /** * Optional. A token for a page of results other than the first page. * Obtained using - * ListEntitlementsResponse.next_page_token google.cloud.channel.v1.ListEntitlementsResponse.next_page_token of the previous - * CloudChannelService.ListEntitlements google.cloud.channel.v1.CloudChannelService.ListEntitlements call. + * ListEntitlementsResponse.next_page_token google.cloud.channel.v1.ListEntitlementsResponse.next_page_token + * of the previous + * CloudChannelService.ListEntitlements google.cloud.channel.v1.CloudChannelService.ListEntitlements + * call. */ // const pageToken = 'abc123' 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 1f558b118af..2d5aa523628 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 @@ -29,14 +29,14 @@ function main(parent) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The resource name of the reseller account from which to list Offers. - * Parent uses the format: accounts/{account_id}. + * Required. The resource name of the reseller account from which to list + * Offers. Parent uses the format: accounts/{account_id}. */ // const parent = 'abc123' /** - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, returns at most 500 Offers. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 500 Offers. The maximum value is + * 1000; the server will coerce values above 1000. */ // const pageSize = 1234 /** 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 9f91c77921e..d48a6ed20ec 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 @@ -34,9 +34,9 @@ function main(account) { */ // const account = 'abc123' /** - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, returns at most 100 Products. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 Products. The maximum value + * is 1000; the server will coerce values above 1000. */ // const pageSize = 1234 /** 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 8c64e9f9784..ce69e278509 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 @@ -42,9 +42,9 @@ function main(customer) { */ // const customer = 'abc123' /** - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, returns at most 100 Offers. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 Offers. The maximum value is + * 1000; the server will coerce values above 1000. */ // const pageSize = 1234 /** 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 ea2114b37a5..bb6bb21c485 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 @@ -42,9 +42,9 @@ function main(customer) { */ // const customer = 'abc123' /** - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, returns at most 100 SKUs. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 SKUs. The maximum value is + * 1000; the server will coerce values above 1000. */ // const pageSize = 1234 /** 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 6c85e15d65a..f7c1a1984f1 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 @@ -40,9 +40,9 @@ function main(parent, account) { */ // const account = 'abc123' /** - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, returns at most 100 SKUs. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 SKUs. The maximum value is + * 1000; the server will coerce values above 1000. */ // const pageSize = 1234 /** 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 baaa56399db..42416cf9bde 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 @@ -33,10 +33,10 @@ function main(account) { */ // const account = 'abc123' /** - * Optional. The maximum number of service accounts to return. The service may return - * fewer than this value. - * If unspecified, returns at most 100 service accounts. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. The maximum number of service accounts to return. The service may + * return fewer than this value. If unspecified, returns at most 100 service + * accounts. The maximum value is 1000; the server will coerce values above + * 1000. */ // const pageSize = 1234 /** 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 cbddd152d8e..c4f6fb76c93 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 @@ -50,8 +50,10 @@ function main(parent, sku) { /** * A token for a page of results other than the first page. * Obtained using - * ListTransferableOffersResponse.next_page_token google.cloud.channel.v1.ListTransferableOffersResponse.next_page_token of the previous - * CloudChannelService.ListTransferableOffers google.cloud.channel.v1.CloudChannelService.ListTransferableOffers call. + * ListTransferableOffersResponse.next_page_token google.cloud.channel.v1.ListTransferableOffersResponse.next_page_token + * of the previous + * CloudChannelService.ListTransferableOffers google.cloud.channel.v1.CloudChannelService.ListTransferableOffers + * call. */ // const pageToken = 'abc123' /** 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 feb99ba9ec6..5aa3ba3c98a 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 @@ -54,9 +54,10 @@ function main(parent) { /** * A token for a page of results other than the first page. * Obtained using - * ListTransferableSkusResponse.next_page_token google.cloud.channel.v1.ListTransferableSkusResponse.next_page_token of the previous - * CloudChannelService.ListTransferableSkus google.cloud.channel.v1.CloudChannelService.ListTransferableSkus call. - * Optional. + * ListTransferableSkusResponse.next_page_token google.cloud.channel.v1.ListTransferableSkusResponse.next_page_token + * of the previous + * CloudChannelService.ListTransferableSkus google.cloud.channel.v1.CloudChannelService.ListTransferableSkus + * call. Optional. */ // const pageToken = 'abc123' /** 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 a25e0a9dbf1..027099cf1b5 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 @@ -33,7 +33,8 @@ function main(account, serviceAccount) { */ // const account = 'abc123' /** - * Required. Service account that provides subscriber access to the registered topic. + * Required. Service account that provides subscriber access to the registered + * topic. */ // const serviceAccount = 'abc123' 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 6140f736ef7..d6989b2956f 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 @@ -35,8 +35,9 @@ function main(name) { */ // const name = 'abc123' /** - * Optional. You can specify an optional unique request ID, and if you need to retry - * your request, the server will know to ignore the request if it's complete. + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. * For example, you make an initial request and the request times out. If you * make the request again with the same request ID, the server can check if * it received the original operation with the same request ID. If it did, it 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 736e5f95c44..f908473d2ee 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 @@ -35,8 +35,9 @@ function main(name) { */ // const name = 'abc123' /** - * Optional. You can specify an optional unique request ID, and if you need to retry - * your request, the server will know to ignore the request if it's complete. + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. * For example, you make an initial request and the request times out. If you * make the request again with the same request ID, the server can check if * it received the original operation with the same request ID. If it did, it 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 3320c0f434b..f898044ffca 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 @@ -29,9 +29,9 @@ function main(parent, entitlements) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The resource name of the reseller's customer account that will receive - * transferred entitlements. - * Parent uses the format: accounts/{account_id}/customers/{customer_id} + * Required. The resource name of the reseller's customer account that will + * receive transferred entitlements. Parent uses the format: + * accounts/{account_id}/customers/{customer_id} */ // const parent = 'abc123' /** @@ -46,8 +46,9 @@ function main(parent, entitlements) { */ // const authToken = 'abc123' /** - * Optional. You can specify an optional unique request ID, and if you need to retry - * your request, the server will know to ignore the request if it's complete. + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. * For example, you make an initial request and the request times out. If you * make the request again with the same request ID, the server can check if * it received the original operation with the same request ID. If it did, it 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 ca167240567..f28efb36e02 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 @@ -29,9 +29,9 @@ function main(parent, entitlements) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The resource name of the reseller's customer account where the entitlements - * transfer from. - * Parent uses the format: accounts/{account_id}/customers/{customer_id} + * Required. The resource name of the reseller's customer account where the + * entitlements transfer from. Parent uses the format: + * accounts/{account_id}/customers/{customer_id} */ // const parent = 'abc123' /** @@ -39,8 +39,9 @@ function main(parent, entitlements) { */ // const entitlements = 1234 /** - * Optional. You can specify an optional unique request ID, and if you need to retry - * your request, the server will know to ignore the request if it's complete. + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. * For example, you make an initial request and the request times out. If you * make the request again with the same request ID, the server can check if * it received the original operation with the same request ID. If it did, it 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 45cfe161713..2055f05d52c 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 @@ -33,7 +33,8 @@ function main(account, serviceAccount) { */ // const account = 'abc123' /** - * Required. Service account to unregister from subscriber access to the topic. + * Required. Service account to unregister from subscriber access to the + * topic. */ // const serviceAccount = 'abc123' 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 b21cbef5557..e28cd686492 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 @@ -35,8 +35,8 @@ function main(name, channelPartnerLink, updateMask) { */ // const name = 'abc123' /** - * Required. The channel partner link to update. Only channel_partner_link.link_state - * is allowed for updates. + * Required. The channel partner link to update. Only + * channel_partner_link.link_state is allowed for updates. */ // const channelPartnerLink = {} /** 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 ab1c91ca689..d79cfb52ef0 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 @@ -74,7 +74,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -122,7 +122,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 78, "type": "FULL" } ], @@ -174,7 +174,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 78, "type": "FULL" } ], @@ -438,7 +438,7 @@ "segments": [ { "start": 25, - "end": 91, + "end": 92, "type": "FULL" } ], @@ -554,7 +554,7 @@ "segments": [ { "start": 25, - "end": 70, + "end": 72, "type": "FULL" } ], @@ -602,7 +602,7 @@ "segments": [ { "start": 25, - "end": 96, + "end": 97, "type": "FULL" } ], @@ -666,7 +666,7 @@ "segments": [ { "start": 25, - "end": 88, + "end": 90, "type": "FULL" } ], @@ -770,7 +770,7 @@ "segments": [ { "start": 25, - "end": 73, + "end": 74, "type": "FULL" } ], @@ -818,7 +818,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 82, "type": "FULL" } ], @@ -870,7 +870,7 @@ "segments": [ { "start": 25, - "end": 73, + "end": 74, "type": "FULL" } ], @@ -918,7 +918,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 86, "type": "FULL" } ], @@ -974,7 +974,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 69, "type": "FULL" } ], @@ -1018,7 +1018,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 69, "type": "FULL" } ], @@ -1062,7 +1062,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 69, "type": "FULL" } ], @@ -1106,7 +1106,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 69, "type": "FULL" } ], @@ -1150,7 +1150,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 81, "type": "FULL" } ], @@ -1202,7 +1202,7 @@ "segments": [ { "start": 25, - "end": 73, + "end": 74, "type": "FULL" } ], @@ -1250,7 +1250,7 @@ "segments": [ { "start": 25, - "end": 74, + "end": 75, "type": "FULL" } ], @@ -1478,7 +1478,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 82, "type": "FULL" } ], @@ -1530,7 +1530,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 60, "type": "FULL" } ], @@ -1694,7 +1694,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 86, "type": "FULL" } ], @@ -1830,7 +1830,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 54, "type": "FULL" } ], @@ -2194,7 +2194,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 59, "type": "FULL" } ], @@ -2238,7 +2238,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 59, "type": "FULL" } ], diff --git a/packages/google-cloud-channel/src/v1/cloud_channel_reports_service_client.ts b/packages/google-cloud-channel/src/v1/cloud_channel_reports_service_client.ts index d0eb86dbe62..57dd8de5833 100644 --- a/packages/google-cloud-channel/src/v1/cloud_channel_reports_service_client.ts +++ b/packages/google-cloud-channel/src/v1/cloud_channel_reports_service_client.ts @@ -127,6 +127,9 @@ export class CloudChannelReportsServiceClient { (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; @@ -443,22 +446,23 @@ export class CloudChannelReportsServiceClient { * instance of {@link google.cloud.channel.v1.OperationMetadata|OperationMetadata}. * * To get the results of report generation, call - * {@link google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults|CloudChannelReportsService.FetchReportResults} with the + * {@link google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults|CloudChannelReportsService.FetchReportResults} + * with the * {@link google.cloud.channel.v1.RunReportJobResponse.report_job|RunReportJobResponse.report_job}. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The report's resource name. Specifies the account and report used to - * generate report data. The report_id identifier is a UID (for example, + * Required. The report's resource name. Specifies the account and report used + * to generate report data. The report_id identifier is a UID (for example, * `613bf59q`). * Name uses the format: * accounts/{account_id}/reports/{report_id} * @param {google.cloud.channel.v1.DateRange} [request.dateRange] * Optional. The range of usage or invoice dates to include in the result. * @param {string} [request.filter] - * Optional. A structured string that defines conditions on dimension columns to - * restrict the report output. + * Optional. A structured string that defines conditions on dimension columns + * to restrict the report output. * * Filters support logical operators (AND, OR, NOT) and conditional operators * (=, !=, <, >, <=, and >=) using `column_id` as keys. @@ -604,26 +608,30 @@ export class CloudChannelReportsServiceClient { >; } /** - * Retrieves data generated by {@link google.cloud.channel.v1.CloudChannelReportsService.RunReportJob|CloudChannelReportsService.RunReportJob}. + * Retrieves data generated by + * {@link google.cloud.channel.v1.CloudChannelReportsService.RunReportJob|CloudChannelReportsService.RunReportJob}. * * @param {Object} request * The request object that will be sent. * @param {string} request.reportJob - * Required. The report job created by {@link google.cloud.channel.v1.CloudChannelReportsService.RunReportJob|CloudChannelReportsService.RunReportJob}. + * Required. The report job created by + * {@link google.cloud.channel.v1.CloudChannelReportsService.RunReportJob|CloudChannelReportsService.RunReportJob}. * Report_job uses the format: * accounts/{account_id}/reportJobs/{report_job_id} * @param {number} [request.pageSize] - * Optional. Requested page size of the report. The server may return fewer results than - * requested. If you don't specify a page size, the server uses a sensible - * default (may change over time). + * Optional. Requested page size of the report. The server may return fewer + * results than requested. If you don't specify a page size, the server uses a + * sensible default (may change over time). * * The maximum value is 30,000; the server will change larger values to * 30,000. * @param {string} [request.pageToken] * Optional. A token that specifies a page of results beyond the first page. * Obtained through - * {@link google.cloud.channel.v1.FetchReportResultsResponse.next_page_token|FetchReportResultsResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults|CloudChannelReportsService.FetchReportResults} call. + * {@link google.cloud.channel.v1.FetchReportResultsResponse.next_page_token|FetchReportResultsResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults|CloudChannelReportsService.FetchReportResults} + * call. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -717,21 +725,24 @@ export class CloudChannelReportsServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.reportJob - * Required. The report job created by {@link google.cloud.channel.v1.CloudChannelReportsService.RunReportJob|CloudChannelReportsService.RunReportJob}. + * Required. The report job created by + * {@link google.cloud.channel.v1.CloudChannelReportsService.RunReportJob|CloudChannelReportsService.RunReportJob}. * Report_job uses the format: * accounts/{account_id}/reportJobs/{report_job_id} * @param {number} [request.pageSize] - * Optional. Requested page size of the report. The server may return fewer results than - * requested. If you don't specify a page size, the server uses a sensible - * default (may change over time). + * Optional. Requested page size of the report. The server may return fewer + * results than requested. If you don't specify a page size, the server uses a + * sensible default (may change over time). * * The maximum value is 30,000; the server will change larger values to * 30,000. * @param {string} [request.pageToken] * Optional. A token that specifies a page of results beyond the first page. * Obtained through - * {@link google.cloud.channel.v1.FetchReportResultsResponse.next_page_token|FetchReportResultsResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults|CloudChannelReportsService.FetchReportResults} call. + * {@link google.cloud.channel.v1.FetchReportResultsResponse.next_page_token|FetchReportResultsResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults|CloudChannelReportsService.FetchReportResults} + * call. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -773,21 +784,24 @@ export class CloudChannelReportsServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.reportJob - * Required. The report job created by {@link google.cloud.channel.v1.CloudChannelReportsService.RunReportJob|CloudChannelReportsService.RunReportJob}. + * Required. The report job created by + * {@link google.cloud.channel.v1.CloudChannelReportsService.RunReportJob|CloudChannelReportsService.RunReportJob}. * Report_job uses the format: * accounts/{account_id}/reportJobs/{report_job_id} * @param {number} [request.pageSize] - * Optional. Requested page size of the report. The server may return fewer results than - * requested. If you don't specify a page size, the server uses a sensible - * default (may change over time). + * Optional. Requested page size of the report. The server may return fewer + * results than requested. If you don't specify a page size, the server uses a + * sensible default (may change over time). * * The maximum value is 30,000; the server will change larger values to * 30,000. * @param {string} [request.pageToken] * Optional. A token that specifies a page of results beyond the first page. * Obtained through - * {@link google.cloud.channel.v1.FetchReportResultsResponse.next_page_token|FetchReportResultsResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults|CloudChannelReportsService.FetchReportResults} call. + * {@link google.cloud.channel.v1.FetchReportResultsResponse.next_page_token|FetchReportResultsResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults|CloudChannelReportsService.FetchReportResults} + * call. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -829,18 +843,19 @@ export class CloudChannelReportsServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the partner account to list available reports for. - * Parent uses the format: - * accounts/{account_id} + * Required. The resource name of the partner account to list available + * reports for. Parent uses the format: accounts/{account_id} * @param {number} [request.pageSize] - * Optional. Requested page size of the report. The server might return fewer results - * than requested. If unspecified, returns 20 reports. - * The maximum value is 100. + * Optional. Requested page size of the report. The server might return fewer + * results than requested. If unspecified, returns 20 reports. The maximum + * value is 100. * @param {string} [request.pageToken] * Optional. A token that specifies a page of results beyond the first page. * Obtained through - * {@link google.cloud.channel.v1.ListReportsResponse.next_page_token|ListReportsResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelReportsService.ListReports|CloudChannelReportsService.ListReports} call. + * {@link google.cloud.channel.v1.ListReportsResponse.next_page_token|ListReportsResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelReportsService.ListReports|CloudChannelReportsService.ListReports} + * call. * @param {string} [request.languageCode] * Optional. The BCP-47 language code, such as "en-US". If specified, the * response is localized to the corresponding language code if the @@ -933,18 +948,19 @@ export class CloudChannelReportsServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the partner account to list available reports for. - * Parent uses the format: - * accounts/{account_id} + * Required. The resource name of the partner account to list available + * reports for. Parent uses the format: accounts/{account_id} * @param {number} [request.pageSize] - * Optional. Requested page size of the report. The server might return fewer results - * than requested. If unspecified, returns 20 reports. - * The maximum value is 100. + * Optional. Requested page size of the report. The server might return fewer + * results than requested. If unspecified, returns 20 reports. The maximum + * value is 100. * @param {string} [request.pageToken] * Optional. A token that specifies a page of results beyond the first page. * Obtained through - * {@link google.cloud.channel.v1.ListReportsResponse.next_page_token|ListReportsResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelReportsService.ListReports|CloudChannelReportsService.ListReports} call. + * {@link google.cloud.channel.v1.ListReportsResponse.next_page_token|ListReportsResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelReportsService.ListReports|CloudChannelReportsService.ListReports} + * call. * @param {string} [request.languageCode] * Optional. The BCP-47 language code, such as "en-US". If specified, the * response is localized to the corresponding language code if the @@ -991,18 +1007,19 @@ export class CloudChannelReportsServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the partner account to list available reports for. - * Parent uses the format: - * accounts/{account_id} + * Required. The resource name of the partner account to list available + * reports for. Parent uses the format: accounts/{account_id} * @param {number} [request.pageSize] - * Optional. Requested page size of the report. The server might return fewer results - * than requested. If unspecified, returns 20 reports. - * The maximum value is 100. + * Optional. Requested page size of the report. The server might return fewer + * results than requested. If unspecified, returns 20 reports. The maximum + * value is 100. * @param {string} [request.pageToken] * Optional. A token that specifies a page of results beyond the first page. * Obtained through - * {@link google.cloud.channel.v1.ListReportsResponse.next_page_token|ListReportsResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelReportsService.ListReports|CloudChannelReportsService.ListReports} call. + * {@link google.cloud.channel.v1.ListReportsResponse.next_page_token|ListReportsResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelReportsService.ListReports|CloudChannelReportsService.ListReports} + * call. * @param {string} [request.languageCode] * Optional. The BCP-47 language code, such as "en-US". If specified, the * response is localized to the corresponding language code if the 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 d75630c36be..381ecff4030 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 @@ -50,15 +50,16 @@ const version = require('../../../package.json').version; * 3. Resellers and distributors can manage customer entitlements. * * CloudChannelService exposes the following resources: - * - {@link google.cloud.channel.v1.Customer|Customer}s: An entity—usually an enterprise—managed by a reseller or - * distributor. + * - {@link google.cloud.channel.v1.Customer|Customer}s: An entity-usually an + * enterprise-managed by a reseller or distributor. * - * - {@link google.cloud.channel.v1.Entitlement|Entitlement}s: An entity that provides a customer with the means to use - * a service. Entitlements are created or updated as a result of a successful - * fulfillment. + * - {@link google.cloud.channel.v1.Entitlement|Entitlement}s: An entity that + * provides a customer with the means to use a service. Entitlements are created + * or updated as a result of a successful fulfillment. * - * - {@link google.cloud.channel.v1.ChannelPartnerLink|ChannelPartnerLink}s: An entity that identifies links between - * distributors and their indirect resellers in a channel. + * - {@link google.cloud.channel.v1.ChannelPartnerLink|ChannelPartnerLink}s: An + * entity that identifies links between distributors and their indirect + * resellers in a channel. * @class * @memberof v1 */ @@ -141,6 +142,9 @@ export class CloudChannelServiceClient { (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { opts['scopes'] = staticMembers.scopes; @@ -650,7 +654,8 @@ export class CloudChannelServiceClient { // -- Service calls -- // ------------------- /** - * Returns the requested {@link google.cloud.channel.v1.Customer|Customer} resource. + * Returns the requested {@link google.cloud.channel.v1.Customer|Customer} + * resource. * * Possible error codes: * @@ -756,11 +761,14 @@ export class CloudChannelServiceClient { * * INVALID_VALUE: Invalid domain value in the request. * * Return value: - * A list of {@link google.cloud.channel.v1.CloudIdentityCustomerAccount|CloudIdentityCustomerAccount} resources for the domain (may be - * empty) + * A list of + * {@link google.cloud.channel.v1.CloudIdentityCustomerAccount|CloudIdentityCustomerAccount} + * resources for the domain (may be empty) * * Note: in the v1alpha1 version of the API, a NOT_FOUND error returns if - * no {@link google.cloud.channel.v1.CloudIdentityCustomerAccount|CloudIdentityCustomerAccount} resources match the domain. + * no + * {@link google.cloud.channel.v1.CloudIdentityCustomerAccount|CloudIdentityCustomerAccount} + * resources match the domain. * * @param {Object} request * The request object that will be sent. @@ -864,8 +872,8 @@ export class CloudChannelServiceClient { ); } /** - * Creates a new {@link google.cloud.channel.v1.Customer|Customer} resource under the reseller or distributor - * account. + * Creates a new {@link google.cloud.channel.v1.Customer|Customer} resource under + * the reseller or distributor account. * * Possible error codes: * @@ -881,8 +889,8 @@ export class CloudChannelServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of reseller account in which to create the customer. - * Parent uses the format: accounts/{account_id} + * Required. The resource name of reseller account in which to create the + * customer. Parent uses the format: accounts/{account_id} * @param {google.cloud.channel.v1.Customer} request.customer * Required. The customer to create. * @param {object} [options] @@ -964,15 +972,16 @@ export class CloudChannelServiceClient { return this.innerApiCalls.createCustomer(request, options, callback); } /** - * Updates an existing {@link google.cloud.channel.v1.Customer|Customer} resource for the reseller or - * distributor. + * Updates an existing {@link google.cloud.channel.v1.Customer|Customer} resource + * for the reseller or distributor. * * Possible error codes: * * * PERMISSION_DENIED: The reseller account making the request is different * from the reseller account in the API request. * * INVALID_ARGUMENT: Required request parameters are missing or invalid. - * * NOT_FOUND: No {@link google.cloud.channel.v1.Customer|Customer} resource found for the name in the request. + * * NOT_FOUND: No {@link google.cloud.channel.v1.Customer|Customer} resource found + * for the name in the request. * * Return value: * The updated {@link google.cloud.channel.v1.Customer|Customer} resource. @@ -1071,7 +1080,8 @@ export class CloudChannelServiceClient { * this customer. * * INVALID_ARGUMENT: Required request parameters are missing or invalid. * * FAILED_PRECONDITION: The customer has existing entitlements. - * * NOT_FOUND: No {@link google.cloud.channel.v1.Customer|Customer} resource found for the name in the request. + * * NOT_FOUND: No {@link google.cloud.channel.v1.Customer|Customer} resource found + * for the name in the request. * * @param {Object} request * The request object that will be sent. @@ -1156,10 +1166,10 @@ export class CloudChannelServiceClient { return this.innerApiCalls.deleteCustomer(request, options, callback); } /** - * Imports a {@link google.cloud.channel.v1.Customer|Customer} from the Cloud Identity associated with the provided - * Cloud Identity ID or domain before a TransferEntitlements call. If a - * linked Customer already exists and overwrite_if_exists is true, it will - * update that Customer's data. + * Imports a {@link google.cloud.channel.v1.Customer|Customer} from the Cloud + * Identity associated with the provided Cloud Identity ID or domain before a + * TransferEntitlements call. If a linked Customer already exists and + * overwrite_if_exists is true, it will update that Customer's data. * * Possible error codes: * @@ -1194,9 +1204,10 @@ export class CloudChannelServiceClient { * This must be set to true if there is an existing customer with a * conflicting region code or domain. * @param {string} [request.channelPartnerId] - * Optional. Cloud Identity ID of a channel partner who will be the direct reseller for - * the customer's order. This field is required for 2-tier transfer scenarios - * and can be provided via the request Parent binding as well. + * Optional. Cloud Identity ID of a channel partner who will be the direct + * reseller for the customer's order. This field is required for 2-tier + * transfer scenarios and can be provided via the request Parent binding as + * well. * @param {string} [request.customer] * Optional. Specifies the customer that will receive imported Cloud Identity * information. @@ -1280,7 +1291,8 @@ export class CloudChannelServiceClient { return this.innerApiCalls.importCustomer(request, options, callback); } /** - * Returns the requested {@link google.cloud.channel.v1.Entitlement|Entitlement} resource. + * Returns the requested {@link google.cloud.channel.v1.Entitlement|Entitlement} + * resource. * * Possible error codes: * @@ -1376,7 +1388,8 @@ export class CloudChannelServiceClient { return this.innerApiCalls.getEntitlement(request, options, callback); } /** - * Returns the requested {@link google.cloud.channel.v1.ChannelPartnerLink|ChannelPartnerLink} resource. + * Returns the requested + * {@link google.cloud.channel.v1.ChannelPartnerLink|ChannelPartnerLink} resource. * You must be a distributor to call this method. * * Possible error codes: @@ -1388,7 +1401,8 @@ export class CloudChannelServiceClient { * invalid channel partner link name. * * Return value: - * The {@link google.cloud.channel.v1.ChannelPartnerLink|ChannelPartnerLink} resource. + * The {@link google.cloud.channel.v1.ChannelPartnerLink|ChannelPartnerLink} + * resource. * * @param {Object} request * The request object that will be sent. @@ -1504,7 +1518,8 @@ export class CloudChannelServiceClient { * Contact Cloud Channel support. * * Return value: - * The new {@link google.cloud.channel.v1.ChannelPartnerLink|ChannelPartnerLink} resource. + * The new {@link google.cloud.channel.v1.ChannelPartnerLink|ChannelPartnerLink} + * resource. * * @param {Object} request * The request object that will be sent. @@ -1631,7 +1646,8 @@ export class CloudChannelServiceClient { * Contact Cloud Channel support. * * Return value: - * The updated {@link google.cloud.channel.v1.ChannelPartnerLink|ChannelPartnerLink} resource. + * The updated + * {@link google.cloud.channel.v1.ChannelPartnerLink|ChannelPartnerLink} resource. * * @param {Object} request * The request object that will be sent. @@ -1640,8 +1656,8 @@ export class CloudChannelServiceClient { * Name uses the format: accounts/{account_id}/channelPartnerLinks/{id} * where {id} is the Cloud Identity ID of the partner. * @param {google.cloud.channel.v1.ChannelPartnerLink} request.channelPartnerLink - * Required. The channel partner link to update. Only channel_partner_link.link_state - * is allowed for updates. + * Required. The channel partner link to update. Only + * channel_partner_link.link_state is allowed for updates. * @param {google.protobuf.FieldMask} request.updateMask * Required. The update mask that applies to the resource. * The only allowable value for an update mask is @@ -1748,13 +1764,16 @@ export class CloudChannelServiceClient { * * * PERMISSION_DENIED: If the account making the request and the account * being queried are different. - * * NOT_FOUND: The {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} was not found. + * * NOT_FOUND: The + * {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} + * was not found. * * INTERNAL: Any non-user error related to technical issues in the * backend. In this case, contact Cloud Channel support. * * Return Value: - * If successful, the {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} resource, otherwise returns - * an error. + * If successful, the + * {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} + * resource, otherwise returns an error. * * @param {Object} request * The request object that will be sent. @@ -1859,9 +1878,9 @@ export class CloudChannelServiceClient { /** * Creates a CustomerRepricingConfig. Call this method to set modifications * for a specific customer's bill. You can only create configs if the - * {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month} is a - * future month. If needed, you can create a config for the current month, - * with some restrictions. + * {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month} + * is a future month. If needed, you can create a config for the current + * month, with some restrictions. * * When creating a config for a future month, make sure there are no existing * configs for that @@ -1875,9 +1894,11 @@ export class CloudChannelServiceClient { * Changes to the config may be immediate, but may take up to 24 hours. * * There is a limit of ten configs for any * {@link google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement|RepricingConfig.EntitlementGranularity.entitlement} - * or {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month}. - * * The contained {@link google.cloud.channel.v1.CustomerRepricingConfig.repricing_config|CustomerRepricingConfig.repricing_config} vaule must be - * different from the value used in the current config for a + * or + * {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month}. + * * The contained + * {@link google.cloud.channel.v1.CustomerRepricingConfig.repricing_config|CustomerRepricingConfig.repricing_config} + * vaule must be different from the value used in the current config for a * {@link google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement|RepricingConfig.EntitlementGranularity.entitlement}. * * Possible Error Codes: @@ -1887,20 +1908,23 @@ export class CloudChannelServiceClient { * * INVALID_ARGUMENT: Missing or invalid required parameters in the * request. Also displays if the updated config is for the current month or * past months. - * * NOT_FOUND: The {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} specified does not exist or is - * not associated with the given account. + * * NOT_FOUND: The + * {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} + * specified does not exist or is not associated with the given account. * * INTERNAL: Any non-user error related to technical issues in the * backend. In this case, contact Cloud Channel support. * * Return Value: - * If successful, the updated {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} resource, otherwise - * returns an error. + * If successful, the updated + * {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} + * resource, otherwise returns an error. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the customer that will receive this repricing config. - * Parent uses the format: accounts/{account_id}/customers/{customer_id} + * Required. The resource name of the customer that will receive this + * repricing config. Parent uses the format: + * accounts/{account_id}/customers/{customer_id} * @param {google.cloud.channel.v1.CustomerRepricingConfig} request.customerRepricingConfig * Required. The CustomerRepricingConfig object to update. * @param {object} [options] @@ -2003,10 +2027,11 @@ export class CloudChannelServiceClient { * CustomerRepricingConfig. * * You can only update configs if the - * {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month} is a - * future month. To make changes to configs for the current month, use - * {@link google.cloud.channel.v1.CloudChannelService.CreateCustomerRepricingConfig|CreateCustomerRepricingConfig}, taking note of its restrictions. You - * cannot update the {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month}. + * {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month} + * is a future month. To make changes to configs for the current month, use + * {@link google.cloud.channel.v1.CloudChannelService.CreateCustomerRepricingConfig|CreateCustomerRepricingConfig}, + * taking note of its restrictions. You cannot update the + * {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month}. * * When updating a config in the future: * @@ -2019,14 +2044,16 @@ export class CloudChannelServiceClient { * * INVALID_ARGUMENT: Missing or invalid required parameters in the * request. Also displays if the updated config is for the current month or * past months. - * * NOT_FOUND: The {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} specified does not exist or is - * not associated with the given account. + * * NOT_FOUND: The + * {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} + * specified does not exist or is not associated with the given account. * * INTERNAL: Any non-user error related to technical issues in the * backend. In this case, contact Cloud Channel support. * * Return Value: - * If successful, the updated {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} resource, otherwise - * returns an error. + * If successful, the updated + * {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} + * resource, otherwise returns an error. * * @param {Object} request * The request object that will be sent. @@ -2128,25 +2155,29 @@ export class CloudChannelServiceClient { ); } /** - * Deletes the given {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} permanently. You can only - * delete configs if their {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month} is set - * to a date after the current month. + * Deletes the given + * {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} + * permanently. You can only delete configs if their + * {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month} + * is set to a date after the current month. * * Possible error codes: * * * PERMISSION_DENIED: The account making the request does not own * this customer. * * INVALID_ARGUMENT: Required request parameters are missing or invalid. - * * FAILED_PRECONDITION: The {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} is active or in the - * past. - * * NOT_FOUND: No {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} found for the name in the - * request. + * * FAILED_PRECONDITION: The + * {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} + * is active or in the past. + * * NOT_FOUND: No + * {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} + * found for the name in the request. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the customer repricing config rule to delete. - * Format: + * Required. The resource name of the customer repricing config rule to + * delete. Format: * accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -2250,13 +2281,16 @@ export class CloudChannelServiceClient { * * * PERMISSION_DENIED: If the account making the request and the account * being queried are different. - * * NOT_FOUND: The {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} was not found. + * * NOT_FOUND: The + * {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} + * was not found. * * INTERNAL: Any non-user error related to technical issues in the * backend. In this case, contact Cloud Channel support. * * Return Value: - * If successful, the {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} resource, otherwise - * returns an error. + * If successful, the + * {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} + * resource, otherwise returns an error. * * @param {Object} request * The request object that will be sent. @@ -2361,9 +2395,10 @@ export class CloudChannelServiceClient { /** * Creates a ChannelPartnerRepricingConfig. Call this method to set * modifications for a specific ChannelPartner's bill. You can only create - * configs if the {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month} is a future - * month. If needed, you can create a config for the current month, with some - * restrictions. + * configs if the + * {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month} + * is a future month. If needed, you can create a config for the current + * month, with some restrictions. * * When creating a config for a future month, make sure there are no existing * configs for that @@ -2377,8 +2412,9 @@ export class CloudChannelServiceClient { * Changes to the config may be immediate, but may take up to 24 hours. * * There is a limit of ten configs for any ChannelPartner or * {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month}. - * * The contained {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig.repricing_config|ChannelPartnerRepricingConfig.repricing_config} vaule - * must be different from the value used in the current config for a + * * The contained + * {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig.repricing_config|ChannelPartnerRepricingConfig.repricing_config} + * vaule must be different from the value used in the current config for a * ChannelPartner. * * Possible Error Codes: @@ -2388,20 +2424,22 @@ export class CloudChannelServiceClient { * * INVALID_ARGUMENT: Missing or invalid required parameters in the * request. Also displays if the updated config is for the current month or * past months. - * * NOT_FOUND: The {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} specified does not exist - * or is not associated with the given account. + * * NOT_FOUND: The + * {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} + * specified does not exist or is not associated with the given account. * * INTERNAL: Any non-user error related to technical issues in the * backend. In this case, contact Cloud Channel support. * * Return Value: - * If successful, the updated {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} resource, - * otherwise returns an error. + * If successful, the updated + * {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} + * resource, otherwise returns an error. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the ChannelPartner that will receive the repricing - * config. Parent uses the format: + * Required. The resource name of the ChannelPartner that will receive the + * repricing config. Parent uses the format: * accounts/{account_id}/channelPartnerLinks/{channel_partner_id} * @param {google.cloud.channel.v1.ChannelPartnerRepricingConfig} request.channelPartnerRepricingConfig * Required. The ChannelPartnerRepricingConfig object to update. @@ -2505,10 +2543,11 @@ export class CloudChannelServiceClient { * the existing CustomerRepricingConfig. * * You can only update configs if the - * {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month} is a - * future month. To make changes to configs for the current month, use - * {@link google.cloud.channel.v1.CloudChannelService.CreateChannelPartnerRepricingConfig|CreateChannelPartnerRepricingConfig}, taking note of its restrictions. - * You cannot update the {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month}. + * {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month} + * is a future month. To make changes to configs for the current month, use + * {@link google.cloud.channel.v1.CloudChannelService.CreateChannelPartnerRepricingConfig|CreateChannelPartnerRepricingConfig}, + * taking note of its restrictions. You cannot update the + * {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month}. * * When updating a config in the future: * @@ -2521,14 +2560,16 @@ export class CloudChannelServiceClient { * * INVALID_ARGUMENT: Missing or invalid required parameters in the * request. Also displays if the updated config is for the current month or * past months. - * * NOT_FOUND: The {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} specified does not exist - * or is not associated with the given account. + * * NOT_FOUND: The + * {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} + * specified does not exist or is not associated with the given account. * * INTERNAL: Any non-user error related to technical issues in the * backend. In this case, contact Cloud Channel support. * * Return Value: - * If successful, the updated {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} resource, - * otherwise returns an error. + * If successful, the updated + * {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} + * resource, otherwise returns an error. * * @param {Object} request * The request object that will be sent. @@ -2630,24 +2671,29 @@ export class CloudChannelServiceClient { ); } /** - * Deletes the given {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} permanently. You can - * only delete configs if their {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month} is - * set to a date after the current month. + * Deletes the given + * {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} + * permanently. You can only delete configs if their + * {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month} + * is set to a date after the current month. * * Possible error codes: * * * PERMISSION_DENIED: The account making the request does not own * this customer. * * INVALID_ARGUMENT: Required request parameters are missing or invalid. - * * FAILED_PRECONDITION: The {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} is active or - * in the past. - * * NOT_FOUND: No {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} found for the name in the - * request. + * * FAILED_PRECONDITION: The + * {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} + * is active or in the past. + * * NOT_FOUND: No + * {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} + * found for the name in the request. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the channel partner repricing config rule to delete. + * Required. The resource name of the channel partner repricing config rule to + * delete. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2839,7 +2885,8 @@ export class CloudChannelServiceClient { /** * Registers a service account with subscriber privileges on the Cloud Pub/Sub * topic for this Channel Services account. After you create a - * subscriber, you get the events through {@link google.cloud.channel.v1.SubscriberEvent|SubscriberEvent} + * subscriber, you get the events through + * {@link google.cloud.channel.v1.SubscriberEvent|SubscriberEvent} * * Possible error codes: * @@ -2860,7 +2907,8 @@ export class CloudChannelServiceClient { * @param {string} request.account * Required. Resource name of the account. * @param {string} request.serviceAccount - * Required. Service account that provides subscriber access to the registered topic. + * Required. Service account that provides subscriber access to the registered + * topic. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2973,7 +3021,8 @@ export class CloudChannelServiceClient { * @param {string} request.account * Required. Resource name of the account. * @param {string} request.serviceAccount - * Required. Service account to unregister from subscriber access to the topic. + * Required. Service account to unregister from subscriber access to the + * topic. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3269,14 +3318,15 @@ export class CloudChannelServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the reseller's customer account in which to create the - * entitlement. - * Parent uses the format: accounts/{account_id}/customers/{customer_id} + * Required. The resource name of the reseller's customer account in which to + * create the entitlement. Parent uses the format: + * accounts/{account_id}/customers/{customer_id} * @param {google.cloud.channel.v1.Entitlement} request.entitlement * Required. The entitlement to create. * @param {string} [request.requestId] - * Optional. You can specify an optional unique request ID, and if you need to retry - * your request, the server will know to ignore the request if it's complete. + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. * * For example, you make an initial request and the request times out. If you * make the request again with the same request ID, the server can check if @@ -3449,13 +3499,16 @@ export class CloudChannelServiceClient { * Name uses the format: * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} * @param {number[]} request.parameters - * Required. Entitlement parameters to update. You can only change editable parameters. + * Required. Entitlement parameters to update. You can only change editable + * parameters. * * To view the available Parameters for a request, refer to the - * {@link google.cloud.channel.v1.Offer.parameter_definitions|Offer.parameter_definitions} from the desired offer. + * {@link google.cloud.channel.v1.Offer.parameter_definitions|Offer.parameter_definitions} + * from the desired offer. * @param {string} [request.requestId] - * Optional. You can specify an optional unique request ID, and if you need to retry - * your request, the server will know to ignore the request if it's complete. + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. * * For example, you make an initial request and the request times out. If you * make the request again with the same request ID, the server can check if @@ -3632,8 +3685,9 @@ export class CloudChannelServiceClient { * @param {google.cloud.channel.v1.RenewalSettings} request.renewalSettings * Required. New renewal settings. * @param {string} [request.requestId] - * Optional. You can specify an optional unique request ID, and if you need to retry - * your request, the server will know to ignore the request if it's complete. + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. * * For example, you make an initial request and the request times out. If you * make the request again with the same request ID, the server can check if @@ -3807,13 +3861,16 @@ export class CloudChannelServiceClient { * Required. New Offer. * Format: accounts/{account_id}/offers/{offer_id}. * @param {number[]} [request.parameters] - * Optional. Parameters needed to purchase the Offer. To view the available Parameters - * refer to the {@link google.cloud.channel.v1.Offer.parameter_definitions|Offer.parameter_definitions} from the desired offer. + * Optional. Parameters needed to purchase the Offer. To view the available + * Parameters refer to the + * {@link google.cloud.channel.v1.Offer.parameter_definitions|Offer.parameter_definitions} + * from the desired offer. * @param {string} [request.purchaseOrderId] * Optional. Purchase order id provided by the reseller. * @param {string} [request.requestId] - * Optional. You can specify an optional unique request ID, and if you need to retry - * your request, the server will know to ignore the request if it's complete. + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. * * For example, you make an initial request and the request times out. If you * make the request again with the same request ID, the server can check if @@ -3987,8 +4044,9 @@ export class CloudChannelServiceClient { * Name uses the format: * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} * @param {string} [request.requestId] - * Optional. You can specify an optional unique request ID, and if you need to retry - * your request, the server will know to ignore the request if it's complete. + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. * * For example, you make an initial request and the request times out. If you * make the request again with the same request ID, the server can check if @@ -4159,8 +4217,9 @@ export class CloudChannelServiceClient { * Name uses the format: * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} * @param {string} [request.requestId] - * Optional. You can specify an optional unique request ID, and if you need to retry - * your request, the server will know to ignore the request if it's complete. + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. * * For example, you make an initial request and the request times out. If you * make the request again with the same request ID, the server can check if @@ -4336,8 +4395,9 @@ export class CloudChannelServiceClient { * Name uses the format: * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} * @param {string} [request.requestId] - * Optional. You can specify an optional unique request ID, and if you need to retry - * your request, the server will know to ignore the request if it's complete. + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. * * For example, you make an initial request and the request times out. If you * make the request again with the same request ID, the server can check if @@ -4514,8 +4574,9 @@ export class CloudChannelServiceClient { * Name uses the format: * accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} * @param {string} [request.requestId] - * Optional. You can specify an optional unique request ID, and if you need to retry - * your request, the server will know to ignore the request if it's complete. + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. * * For example, you make an initial request and the request times out. If you * make the request again with the same request ID, the server can check if @@ -4690,9 +4751,9 @@ export class CloudChannelServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the reseller's customer account that will receive - * transferred entitlements. - * Parent uses the format: accounts/{account_id}/customers/{customer_id} + * Required. The resource name of the reseller's customer account that will + * receive transferred entitlements. Parent uses the format: + * accounts/{account_id}/customers/{customer_id} * @param {number[]} request.entitlements * Required. The new entitlements to create or transfer. * @param {string} request.authToken @@ -4701,8 +4762,9 @@ export class CloudChannelServiceClient { * entitlements on their behalf. You can omit this token after authorization. * See https://support.google.com/a/answer/7643790 for more details. * @param {string} [request.requestId] - * Optional. You can specify an optional unique request ID, and if you need to retry - * your request, the server will know to ignore the request if it's complete. + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. * * For example, you make an initial request and the request times out. If you * make the request again with the same request ID, the server can check if @@ -4877,14 +4939,15 @@ export class CloudChannelServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the reseller's customer account where the entitlements - * transfer from. - * Parent uses the format: accounts/{account_id}/customers/{customer_id} + * Required. The resource name of the reseller's customer account where the + * entitlements transfer from. Parent uses the format: + * accounts/{account_id}/customers/{customer_id} * @param {number[]} request.entitlements * Required. The entitlements to transfer to Google. * @param {string} [request.requestId] - * Optional. You can specify an optional unique request ID, and if you need to retry - * your request, the server will know to ignore the request if it's complete. + * Optional. You can specify an optional unique request ID, and if you need to + * retry your request, the server will know to ignore the request if it's + * complete. * * For example, you make an initial request and the request times out. If you * make the request again with the same request ID, the server can check if @@ -5039,7 +5102,8 @@ export class CloudChannelServiceClient { * * INVALID_ARGUMENT: Required request parameters are missing or invalid. * * Return value: - * List of {@link google.cloud.channel.v1.Customer|Customer}s, or an empty list if there are no customers. + * List of {@link google.cloud.channel.v1.Customer|Customer}s, or an empty list if + * there are no customers. * * @param {Object} request * The request object that will be sent. @@ -5047,16 +5111,19 @@ export class CloudChannelServiceClient { * Required. The resource name of the reseller account to list customers from. * Parent uses the format: accounts/{account_id}. * @param {number} [request.pageSize] - * Optional. The maximum number of customers to return. The service may return fewer - * than this value. If unspecified, returns at most 10 customers. The + * Optional. The maximum number of customers to return. The service may return + * fewer than this value. If unspecified, returns at most 10 customers. The * maximum value is 50. * @param {string} [request.pageToken] * Optional. A token identifying a page of results other than the first page. * Obtained through - * {@link google.cloud.channel.v1.ListCustomersResponse.next_page_token|ListCustomersResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelService.ListCustomers|CloudChannelService.ListCustomers} call. + * {@link google.cloud.channel.v1.ListCustomersResponse.next_page_token|ListCustomersResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListCustomers|CloudChannelService.ListCustomers} + * call. * @param {string} [request.filter] - * Optional. Filters applied to the [CloudChannelService.ListCustomers] results. See + * Optional. Filters applied to the [CloudChannelService.ListCustomers] + * results. See * https://cloud.google.com/channel/docs/concepts/google-cloud/filter-customers * for more information. * @param {object} [options] @@ -5149,16 +5216,19 @@ export class CloudChannelServiceClient { * Required. The resource name of the reseller account to list customers from. * Parent uses the format: accounts/{account_id}. * @param {number} [request.pageSize] - * Optional. The maximum number of customers to return. The service may return fewer - * than this value. If unspecified, returns at most 10 customers. The + * Optional. The maximum number of customers to return. The service may return + * fewer than this value. If unspecified, returns at most 10 customers. The * maximum value is 50. * @param {string} [request.pageToken] * Optional. A token identifying a page of results other than the first page. * Obtained through - * {@link google.cloud.channel.v1.ListCustomersResponse.next_page_token|ListCustomersResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelService.ListCustomers|CloudChannelService.ListCustomers} call. + * {@link google.cloud.channel.v1.ListCustomersResponse.next_page_token|ListCustomersResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListCustomers|CloudChannelService.ListCustomers} + * call. * @param {string} [request.filter] - * Optional. Filters applied to the [CloudChannelService.ListCustomers] results. See + * Optional. Filters applied to the [CloudChannelService.ListCustomers] + * results. See * https://cloud.google.com/channel/docs/concepts/google-cloud/filter-customers * for more information. * @param {object} [options] @@ -5205,16 +5275,19 @@ export class CloudChannelServiceClient { * Required. The resource name of the reseller account to list customers from. * Parent uses the format: accounts/{account_id}. * @param {number} [request.pageSize] - * Optional. The maximum number of customers to return. The service may return fewer - * than this value. If unspecified, returns at most 10 customers. The + * Optional. The maximum number of customers to return. The service may return + * fewer than this value. If unspecified, returns at most 10 customers. The * maximum value is 50. * @param {string} [request.pageToken] * Optional. A token identifying a page of results other than the first page. * Obtained through - * {@link google.cloud.channel.v1.ListCustomersResponse.next_page_token|ListCustomersResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelService.ListCustomers|CloudChannelService.ListCustomers} call. + * {@link google.cloud.channel.v1.ListCustomersResponse.next_page_token|ListCustomersResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListCustomers|CloudChannelService.ListCustomers} + * call. * @param {string} [request.filter] - * Optional. Filters applied to the [CloudChannelService.ListCustomers] results. See + * Optional. Filters applied to the [CloudChannelService.ListCustomers] + * results. See * https://cloud.google.com/channel/docs/concepts/google-cloud/filter-customers * for more information. * @param {object} [options] @@ -5252,7 +5325,8 @@ export class CloudChannelServiceClient { ) as AsyncIterable; } /** - * Lists {@link google.cloud.channel.v1.Entitlement|Entitlement}s belonging to a customer. + * Lists {@link google.cloud.channel.v1.Entitlement|Entitlement}s belonging to a + * customer. * * Possible error codes: * @@ -5260,7 +5334,8 @@ export class CloudChannelServiceClient { * * INVALID_ARGUMENT: Required request parameters are missing or invalid. * * Return value: - * A list of the customer's {@link google.cloud.channel.v1.Entitlement|Entitlement}s. + * A list of the customer's + * {@link google.cloud.channel.v1.Entitlement|Entitlement}s. * * @param {Object} request * The request object that will be sent. @@ -5269,14 +5344,16 @@ export class CloudChannelServiceClient { * entitlements for. * Parent uses the format: accounts/{account_id}/customers/{customer_id} * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, return at most 50 entitlements. - * The maximum value is 100; the server will coerce values above 100. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, return at most 50 entitlements. The maximum + * value is 100; the server will coerce values above 100. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * Obtained using - * {@link google.cloud.channel.v1.ListEntitlementsResponse.next_page_token|ListEntitlementsResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelService.ListEntitlements|CloudChannelService.ListEntitlements} call. + * {@link google.cloud.channel.v1.ListEntitlementsResponse.next_page_token|ListEntitlementsResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListEntitlements|CloudChannelService.ListEntitlements} + * call. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -5374,14 +5451,16 @@ export class CloudChannelServiceClient { * entitlements for. * Parent uses the format: accounts/{account_id}/customers/{customer_id} * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, return at most 50 entitlements. - * The maximum value is 100; the server will coerce values above 100. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, return at most 50 entitlements. The maximum + * value is 100; the server will coerce values above 100. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * Obtained using - * {@link google.cloud.channel.v1.ListEntitlementsResponse.next_page_token|ListEntitlementsResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelService.ListEntitlements|CloudChannelService.ListEntitlements} call. + * {@link google.cloud.channel.v1.ListEntitlementsResponse.next_page_token|ListEntitlementsResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListEntitlements|CloudChannelService.ListEntitlements} + * call. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} @@ -5427,14 +5506,16 @@ export class CloudChannelServiceClient { * entitlements for. * Parent uses the format: accounts/{account_id}/customers/{customer_id} * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, return at most 50 entitlements. - * The maximum value is 100; the server will coerce values above 100. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, return at most 50 entitlements. The maximum + * value is 100; the server will coerce values above 100. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * Obtained using - * {@link google.cloud.channel.v1.ListEntitlementsResponse.next_page_token|ListEntitlementsResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelService.ListEntitlements|CloudChannelService.ListEntitlements} call. + * {@link google.cloud.channel.v1.ListEntitlementsResponse.next_page_token|ListEntitlementsResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListEntitlements|CloudChannelService.ListEntitlements} + * call. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -5470,8 +5551,8 @@ export class CloudChannelServiceClient { ) as AsyncIterable; } /** - * List {@link google.cloud.channel.v1.TransferableSku|TransferableSku}s of a customer based on the Cloud Identity ID or - * Customer Name in the request. + * List {@link google.cloud.channel.v1.TransferableSku|TransferableSku}s of a + * customer based on the Cloud Identity ID or Customer Name in the request. * * Use this method to list the entitlements information of an * unowned customer. You should provide the customer's @@ -5487,7 +5568,8 @@ export class CloudChannelServiceClient { * * INVALID_ARGUMENT: Required request parameters are missing or invalid. * * Return value: - * A list of the customer's {@link google.cloud.channel.v1.TransferableSku|TransferableSku}. + * A list of the customer's + * {@link google.cloud.channel.v1.TransferableSku|TransferableSku}. * * @param {Object} request * The request object that will be sent. @@ -5509,9 +5591,10 @@ export class CloudChannelServiceClient { * @param {string} request.pageToken * A token for a page of results other than the first page. * Obtained using - * {@link google.cloud.channel.v1.ListTransferableSkusResponse.next_page_token|ListTransferableSkusResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelService.ListTransferableSkus|CloudChannelService.ListTransferableSkus} call. - * Optional. + * {@link google.cloud.channel.v1.ListTransferableSkusResponse.next_page_token|ListTransferableSkusResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListTransferableSkus|CloudChannelService.ListTransferableSkus} + * call. Optional. * @param {string} [request.authToken] * Optional. The super admin of the resold customer generates this token to * authorize a reseller to access their Cloud Identity and purchase @@ -5632,9 +5715,10 @@ export class CloudChannelServiceClient { * @param {string} request.pageToken * A token for a page of results other than the first page. * Obtained using - * {@link google.cloud.channel.v1.ListTransferableSkusResponse.next_page_token|ListTransferableSkusResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelService.ListTransferableSkus|CloudChannelService.ListTransferableSkus} call. - * Optional. + * {@link google.cloud.channel.v1.ListTransferableSkusResponse.next_page_token|ListTransferableSkusResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListTransferableSkus|CloudChannelService.ListTransferableSkus} + * call. Optional. * @param {string} [request.authToken] * Optional. The super admin of the resold customer generates this token to * authorize a reseller to access their Cloud Identity and purchase @@ -5703,9 +5787,10 @@ export class CloudChannelServiceClient { * @param {string} request.pageToken * A token for a page of results other than the first page. * Obtained using - * {@link google.cloud.channel.v1.ListTransferableSkusResponse.next_page_token|ListTransferableSkusResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelService.ListTransferableSkus|CloudChannelService.ListTransferableSkus} call. - * Optional. + * {@link google.cloud.channel.v1.ListTransferableSkusResponse.next_page_token|ListTransferableSkusResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListTransferableSkus|CloudChannelService.ListTransferableSkus} + * call. Optional. * @param {string} [request.authToken] * Optional. The super admin of the resold customer generates this token to * authorize a reseller to access their Cloud Identity and purchase @@ -5751,8 +5836,8 @@ export class CloudChannelServiceClient { ) as AsyncIterable; } /** - * List {@link google.cloud.channel.v1.TransferableOffer|TransferableOffer}s of a customer based on Cloud Identity ID or - * Customer Name in the request. + * List {@link google.cloud.channel.v1.TransferableOffer|TransferableOffer}s of a + * customer based on Cloud Identity ID or Customer Name in the request. * * Use this method when a reseller gets the entitlement information of an * unowned customer. The reseller should provide the customer's @@ -5769,7 +5854,8 @@ export class CloudChannelServiceClient { * * INVALID_ARGUMENT: Required request parameters are missing or invalid. * * Return value: - * List of {@link google.cloud.channel.v1.TransferableOffer|TransferableOffer} for the given customer and SKU. + * List of {@link google.cloud.channel.v1.TransferableOffer|TransferableOffer} for + * the given customer and SKU. * * @param {Object} request * The request object that will be sent. @@ -5787,8 +5873,10 @@ export class CloudChannelServiceClient { * @param {string} request.pageToken * A token for a page of results other than the first page. * Obtained using - * {@link google.cloud.channel.v1.ListTransferableOffersResponse.next_page_token|ListTransferableOffersResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelService.ListTransferableOffers|CloudChannelService.ListTransferableOffers} call. + * {@link google.cloud.channel.v1.ListTransferableOffersResponse.next_page_token|ListTransferableOffersResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListTransferableOffers|CloudChannelService.ListTransferableOffers} + * call. * @param {string} request.sku * Required. The SKU to look up Offers for. * @param {string} [request.languageCode] @@ -5905,8 +5993,10 @@ export class CloudChannelServiceClient { * @param {string} request.pageToken * A token for a page of results other than the first page. * Obtained using - * {@link google.cloud.channel.v1.ListTransferableOffersResponse.next_page_token|ListTransferableOffersResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelService.ListTransferableOffers|CloudChannelService.ListTransferableOffers} call. + * {@link google.cloud.channel.v1.ListTransferableOffersResponse.next_page_token|ListTransferableOffersResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListTransferableOffers|CloudChannelService.ListTransferableOffers} + * call. * @param {string} request.sku * Required. The SKU to look up Offers for. * @param {string} [request.languageCode] @@ -5967,8 +6057,10 @@ export class CloudChannelServiceClient { * @param {string} request.pageToken * A token for a page of results other than the first page. * Obtained using - * {@link google.cloud.channel.v1.ListTransferableOffersResponse.next_page_token|ListTransferableOffersResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelService.ListTransferableOffers|CloudChannelService.ListTransferableOffers} call. + * {@link google.cloud.channel.v1.ListTransferableOffersResponse.next_page_token|ListTransferableOffersResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListTransferableOffers|CloudChannelService.ListTransferableOffers} + * call. * @param {string} request.sku * Required. The SKU to look up Offers for. * @param {string} [request.languageCode] @@ -6010,8 +6102,8 @@ export class CloudChannelServiceClient { ) as AsyncIterable; } /** - * List {@link google.cloud.channel.v1.ChannelPartnerLink|ChannelPartnerLink}s belonging to a distributor. - * You must be a distributor to call this method. + * List {@link google.cloud.channel.v1.ChannelPartnerLink|ChannelPartnerLink}s + * belonging to a distributor. You must be a distributor to call this method. * * Possible error codes: * @@ -6020,23 +6112,25 @@ export class CloudChannelServiceClient { * * INVALID_ARGUMENT: Required request parameters are missing or invalid. * * Return value: - * The list of the distributor account's {@link google.cloud.channel.v1.ChannelPartnerLink|ChannelPartnerLink} resources. + * The list of the distributor account's + * {@link google.cloud.channel.v1.ChannelPartnerLink|ChannelPartnerLink} resources. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the reseller account for listing channel partner - * links. - * Parent uses the format: accounts/{account_id} + * Required. The resource name of the reseller account for listing channel + * partner links. Parent uses the format: accounts/{account_id} * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, server will pick a default size (25). - * The maximum value is 200; the server will coerce values above 200. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, server will pick a default size (25). The + * maximum value is 200; the server will coerce values above 200. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * Obtained using - * {@link google.cloud.channel.v1.ListChannelPartnerLinksResponse.next_page_token|ListChannelPartnerLinksResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks|CloudChannelService.ListChannelPartnerLinks} call. + * {@link google.cloud.channel.v1.ListChannelPartnerLinksResponse.next_page_token|ListChannelPartnerLinksResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks|CloudChannelService.ListChannelPartnerLinks} + * call. * @param {google.cloud.channel.v1.ChannelPartnerLinkView} [request.view] * Optional. The level of granularity the ChannelPartnerLink will display. * @param {object} [options] @@ -6136,18 +6230,19 @@ export class CloudChannelServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the reseller account for listing channel partner - * links. - * Parent uses the format: accounts/{account_id} + * Required. The resource name of the reseller account for listing channel + * partner links. Parent uses the format: accounts/{account_id} * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, server will pick a default size (25). - * The maximum value is 200; the server will coerce values above 200. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, server will pick a default size (25). The + * maximum value is 200; the server will coerce values above 200. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * Obtained using - * {@link google.cloud.channel.v1.ListChannelPartnerLinksResponse.next_page_token|ListChannelPartnerLinksResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks|CloudChannelService.ListChannelPartnerLinks} call. + * {@link google.cloud.channel.v1.ListChannelPartnerLinksResponse.next_page_token|ListChannelPartnerLinksResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks|CloudChannelService.ListChannelPartnerLinks} + * call. * @param {google.cloud.channel.v1.ChannelPartnerLinkView} [request.view] * Optional. The level of granularity the ChannelPartnerLink will display. * @param {object} [options] @@ -6191,18 +6286,19 @@ export class CloudChannelServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the reseller account for listing channel partner - * links. - * Parent uses the format: accounts/{account_id} + * Required. The resource name of the reseller account for listing channel + * partner links. Parent uses the format: accounts/{account_id} * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, server will pick a default size (25). - * The maximum value is 200; the server will coerce values above 200. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, server will pick a default size (25). The + * maximum value is 200; the server will coerce values above 200. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * Obtained using - * {@link google.cloud.channel.v1.ListChannelPartnerLinksResponse.next_page_token|ListChannelPartnerLinksResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks|CloudChannelService.ListChannelPartnerLinks} call. + * {@link google.cloud.channel.v1.ListChannelPartnerLinksResponse.next_page_token|ListChannelPartnerLinksResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks|CloudChannelService.ListChannelPartnerLinks} + * call. * @param {google.cloud.channel.v1.ChannelPartnerLinkView} [request.view] * Optional. The level of granularity the ChannelPartnerLink will display. * @param {object} [options] @@ -6247,14 +6343,17 @@ export class CloudChannelServiceClient { * * * PERMISSION_DENIED: If the account making the request and the account * being queried are different. - * * NOT_FOUND: The {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} specified does not exist or is - * not associated with the given account. + * * NOT_FOUND: The + * {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} + * specified does not exist or is not associated with the given account. * * INTERNAL: Any non-user error related to technical issues in the * backend. In this case, contact Cloud Channel support. * * Return Value: - * If successful, the {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} resources. The - * data for each resource is displayed in the ascending order of: + * If successful, the + * {@link google.cloud.channel.v1.CustomerRepricingConfig|CustomerRepricingConfig} + * resources. The data for each resource is displayed in the ascending order + * of: * * customer ID * * {@link google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement|RepricingConfig.EntitlementGranularity.entitlement} * * {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month} @@ -6270,14 +6369,16 @@ export class CloudChannelServiceClient { * Supports accounts/{account_id}/customers/- to retrieve configs for all * customers. * @param {number} [request.pageSize] - * Optional. The maximum number of repricing configs to return. The service may return - * fewer than this value. If unspecified, returns a maximum of 50 rules. The - * maximum value is 100; values above 100 will be coerced to 100. + * Optional. The maximum number of repricing configs to return. The service + * may return fewer than this value. If unspecified, returns a maximum of 50 + * rules. The maximum value is 100; values above 100 will be coerced to 100. * @param {string} [request.pageToken] * Optional. A token identifying a page of results beyond the first page. * Obtained through - * {@link google.cloud.channel.v1.ListCustomerRepricingConfigsResponse.next_page_token|ListCustomerRepricingConfigsResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs|CloudChannelService.ListCustomerRepricingConfigs} call. + * {@link google.cloud.channel.v1.ListCustomerRepricingConfigsResponse.next_page_token|ListCustomerRepricingConfigsResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs|CloudChannelService.ListCustomerRepricingConfigs} + * call. * @param {string} [request.filter] * Optional. A filter for [CloudChannelService.ListCustomerRepricingConfigs] * results (customer only). You can use this filter when you support @@ -6388,14 +6489,16 @@ export class CloudChannelServiceClient { * Supports accounts/{account_id}/customers/- to retrieve configs for all * customers. * @param {number} [request.pageSize] - * Optional. The maximum number of repricing configs to return. The service may return - * fewer than this value. If unspecified, returns a maximum of 50 rules. The - * maximum value is 100; values above 100 will be coerced to 100. + * Optional. The maximum number of repricing configs to return. The service + * may return fewer than this value. If unspecified, returns a maximum of 50 + * rules. The maximum value is 100; values above 100 will be coerced to 100. * @param {string} [request.pageToken] * Optional. A token identifying a page of results beyond the first page. * Obtained through - * {@link google.cloud.channel.v1.ListCustomerRepricingConfigsResponse.next_page_token|ListCustomerRepricingConfigsResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs|CloudChannelService.ListCustomerRepricingConfigs} call. + * {@link google.cloud.channel.v1.ListCustomerRepricingConfigsResponse.next_page_token|ListCustomerRepricingConfigsResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs|CloudChannelService.ListCustomerRepricingConfigs} + * call. * @param {string} [request.filter] * Optional. A filter for [CloudChannelService.ListCustomerRepricingConfigs] * results (customer only). You can use this filter when you support @@ -6450,14 +6553,16 @@ export class CloudChannelServiceClient { * Supports accounts/{account_id}/customers/- to retrieve configs for all * customers. * @param {number} [request.pageSize] - * Optional. The maximum number of repricing configs to return. The service may return - * fewer than this value. If unspecified, returns a maximum of 50 rules. The - * maximum value is 100; values above 100 will be coerced to 100. + * Optional. The maximum number of repricing configs to return. The service + * may return fewer than this value. If unspecified, returns a maximum of 50 + * rules. The maximum value is 100; values above 100 will be coerced to 100. * @param {string} [request.pageToken] * Optional. A token identifying a page of results beyond the first page. * Obtained through - * {@link google.cloud.channel.v1.ListCustomerRepricingConfigsResponse.next_page_token|ListCustomerRepricingConfigsResponse.next_page_token} of the previous - * {@link google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs|CloudChannelService.ListCustomerRepricingConfigs} call. + * {@link google.cloud.channel.v1.ListCustomerRepricingConfigsResponse.next_page_token|ListCustomerRepricingConfigsResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs|CloudChannelService.ListCustomerRepricingConfigs} + * call. * @param {string} [request.filter] * Optional. A filter for [CloudChannelService.ListCustomerRepricingConfigs] * results (customer only). You can use this filter when you support @@ -6508,14 +6613,17 @@ export class CloudChannelServiceClient { * * * PERMISSION_DENIED: If the account making the request and the account * being queried are different. - * * NOT_FOUND: The {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} specified does not exist - * or is not associated with the given account. + * * NOT_FOUND: The + * {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} + * specified does not exist or is not associated with the given account. * * INTERNAL: Any non-user error related to technical issues in the * backend. In this case, contact Cloud Channel support. * * Return Value: - * If successful, the {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} resources. - * The data for each resource is displayed in the ascending order of: + * If successful, the + * {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig|ChannelPartnerRepricingConfig} + * resources. The data for each resource is displayed in the ascending order + * of: * * channel partner ID * * {@link google.cloud.channel.v1.RepricingConfig.effective_invoice_month|RepricingConfig.effective_invoice_month} * * {@link google.cloud.channel.v1.ChannelPartnerRepricingConfig.update_time|ChannelPartnerRepricingConfig.update_time} @@ -6525,25 +6633,28 @@ export class CloudChannelServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the account's {@link google.cloud.channel.v1.ChannelPartnerLink|ChannelPartnerLink}. - * Parent uses the format: + * Required. The resource name of the account's + * {@link google.cloud.channel.v1.ChannelPartnerLink|ChannelPartnerLink}. Parent + * uses the format: * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}. * Supports accounts/{account_id}/channelPartnerLinks/- to retrieve configs * for all channel partners. * @param {number} [request.pageSize] - * Optional. The maximum number of repricing configs to return. The service may return - * fewer than this value. If unspecified, returns a maximum of 50 rules. The - * maximum value is 100; values above 100 will be coerced to 100. + * Optional. The maximum number of repricing configs to return. The service + * may return fewer than this value. If unspecified, returns a maximum of 50 + * rules. The maximum value is 100; values above 100 will be coerced to 100. * @param {string} [request.pageToken] * Optional. A token identifying a page of results beyond the first page. * Obtained through - * {@link google.cloud.channel.v1.ListChannelPartnerRepricingConfigsResponse.next_page_token|ListChannelPartnerRepricingConfigsResponse.next_page_token} of the - * previous {@link google.cloud.channel.v1.CloudChannelService.ListChannelPartnerRepricingConfigs|CloudChannelService.ListChannelPartnerRepricingConfigs} call. + * {@link google.cloud.channel.v1.ListChannelPartnerRepricingConfigsResponse.next_page_token|ListChannelPartnerRepricingConfigsResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListChannelPartnerRepricingConfigs|CloudChannelService.ListChannelPartnerRepricingConfigs} + * call. * @param {string} [request.filter] - * Optional. A filter for [CloudChannelService.ListChannelPartnerRepricingConfigs] - * results (channel_partner_link only). You can use this filter when you - * support a BatchGet-like query. - * To use the filter, you must set + * Optional. A filter for + * [CloudChannelService.ListChannelPartnerRepricingConfigs] results + * (channel_partner_link only). You can use this filter when you support a + * BatchGet-like query. To use the filter, you must set * `parent=accounts/{account_id}/channelPartnerLinks/-`. * * Example: `channel_partner_link = @@ -6646,25 +6757,28 @@ export class CloudChannelServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the account's {@link google.cloud.channel.v1.ChannelPartnerLink|ChannelPartnerLink}. - * Parent uses the format: + * Required. The resource name of the account's + * {@link google.cloud.channel.v1.ChannelPartnerLink|ChannelPartnerLink}. Parent + * uses the format: * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}. * Supports accounts/{account_id}/channelPartnerLinks/- to retrieve configs * for all channel partners. * @param {number} [request.pageSize] - * Optional. The maximum number of repricing configs to return. The service may return - * fewer than this value. If unspecified, returns a maximum of 50 rules. The - * maximum value is 100; values above 100 will be coerced to 100. + * Optional. The maximum number of repricing configs to return. The service + * may return fewer than this value. If unspecified, returns a maximum of 50 + * rules. The maximum value is 100; values above 100 will be coerced to 100. * @param {string} [request.pageToken] * Optional. A token identifying a page of results beyond the first page. * Obtained through - * {@link google.cloud.channel.v1.ListChannelPartnerRepricingConfigsResponse.next_page_token|ListChannelPartnerRepricingConfigsResponse.next_page_token} of the - * previous {@link google.cloud.channel.v1.CloudChannelService.ListChannelPartnerRepricingConfigs|CloudChannelService.ListChannelPartnerRepricingConfigs} call. + * {@link google.cloud.channel.v1.ListChannelPartnerRepricingConfigsResponse.next_page_token|ListChannelPartnerRepricingConfigsResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListChannelPartnerRepricingConfigs|CloudChannelService.ListChannelPartnerRepricingConfigs} + * call. * @param {string} [request.filter] - * Optional. A filter for [CloudChannelService.ListChannelPartnerRepricingConfigs] - * results (channel_partner_link only). You can use this filter when you - * support a BatchGet-like query. - * To use the filter, you must set + * Optional. A filter for + * [CloudChannelService.ListChannelPartnerRepricingConfigs] results + * (channel_partner_link only). You can use this filter when you support a + * BatchGet-like query. To use the filter, you must set * `parent=accounts/{account_id}/channelPartnerLinks/-`. * * Example: `channel_partner_link = @@ -6712,25 +6826,28 @@ export class CloudChannelServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the account's {@link google.cloud.channel.v1.ChannelPartnerLink|ChannelPartnerLink}. - * Parent uses the format: + * Required. The resource name of the account's + * {@link google.cloud.channel.v1.ChannelPartnerLink|ChannelPartnerLink}. Parent + * uses the format: * accounts/{account_id}/channelPartnerLinks/{channel_partner_id}. * Supports accounts/{account_id}/channelPartnerLinks/- to retrieve configs * for all channel partners. * @param {number} [request.pageSize] - * Optional. The maximum number of repricing configs to return. The service may return - * fewer than this value. If unspecified, returns a maximum of 50 rules. The - * maximum value is 100; values above 100 will be coerced to 100. + * Optional. The maximum number of repricing configs to return. The service + * may return fewer than this value. If unspecified, returns a maximum of 50 + * rules. The maximum value is 100; values above 100 will be coerced to 100. * @param {string} [request.pageToken] * Optional. A token identifying a page of results beyond the first page. * Obtained through - * {@link google.cloud.channel.v1.ListChannelPartnerRepricingConfigsResponse.next_page_token|ListChannelPartnerRepricingConfigsResponse.next_page_token} of the - * previous {@link google.cloud.channel.v1.CloudChannelService.ListChannelPartnerRepricingConfigs|CloudChannelService.ListChannelPartnerRepricingConfigs} call. + * {@link google.cloud.channel.v1.ListChannelPartnerRepricingConfigsResponse.next_page_token|ListChannelPartnerRepricingConfigsResponse.next_page_token} + * of the previous + * {@link google.cloud.channel.v1.CloudChannelService.ListChannelPartnerRepricingConfigs|CloudChannelService.ListChannelPartnerRepricingConfigs} + * call. * @param {string} [request.filter] - * Optional. A filter for [CloudChannelService.ListChannelPartnerRepricingConfigs] - * results (channel_partner_link only). You can use this filter when you - * support a BatchGet-like query. - * To use the filter, you must set + * Optional. A filter for + * [CloudChannelService.ListChannelPartnerRepricingConfigs] results + * (channel_partner_link only). You can use this filter when you support a + * BatchGet-like query. To use the filter, you must set * `parent=accounts/{account_id}/channelPartnerLinks/-`. * * Example: `channel_partner_link = @@ -6784,9 +6901,9 @@ export class CloudChannelServiceClient { * Required. The resource name of the reseller account. * Format: accounts/{account_id}. * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, returns at most 100 Products. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 Products. The maximum value + * is 1000; the server will coerce values above 1000. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * @param {string} [request.languageCode] @@ -6879,9 +6996,9 @@ export class CloudChannelServiceClient { * Required. The resource name of the reseller account. * Format: accounts/{account_id}. * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, returns at most 100 Products. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 Products. The maximum value + * is 1000; the server will coerce values above 1000. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * @param {string} [request.languageCode] @@ -6928,9 +7045,9 @@ export class CloudChannelServiceClient { * Required. The resource name of the reseller account. * Format: accounts/{account_id}. * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, returns at most 100 Products. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 Products. The maximum value + * is 1000; the server will coerce values above 1000. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * @param {string} [request.languageCode] @@ -6984,9 +7101,9 @@ export class CloudChannelServiceClient { * Required. Resource name of the reseller. * Format: accounts/{account_id}. * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, returns at most 100 SKUs. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 SKUs. The maximum value is + * 1000; the server will coerce values above 1000. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * Optional. @@ -7086,9 +7203,9 @@ export class CloudChannelServiceClient { * Required. Resource name of the reseller. * Format: accounts/{account_id}. * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, returns at most 100 SKUs. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 SKUs. The maximum value is + * 1000; the server will coerce values above 1000. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * Optional. @@ -7144,9 +7261,9 @@ export class CloudChannelServiceClient { * Required. Resource name of the reseller. * Format: accounts/{account_id}. * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, returns at most 100 SKUs. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 SKUs. The maximum value is + * 1000; the server will coerce values above 1000. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * Optional. @@ -7198,12 +7315,12 @@ export class CloudChannelServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the reseller account from which to list Offers. - * Parent uses the format: accounts/{account_id}. + * Required. The resource name of the reseller account from which to list + * Offers. Parent uses the format: accounts/{account_id}. * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, returns at most 500 Offers. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 500 Offers. The maximum value is + * 1000; the server will coerce values above 1000. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * @param {string} [request.filter] @@ -7301,12 +7418,12 @@ export class CloudChannelServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the reseller account from which to list Offers. - * Parent uses the format: accounts/{account_id}. + * Required. The resource name of the reseller account from which to list + * Offers. Parent uses the format: accounts/{account_id}. * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, returns at most 500 Offers. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 500 Offers. The maximum value is + * 1000; the server will coerce values above 1000. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * @param {string} [request.filter] @@ -7360,12 +7477,12 @@ export class CloudChannelServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the reseller account from which to list Offers. - * Parent uses the format: accounts/{account_id}. + * Required. The resource name of the reseller account from which to list + * Offers. Parent uses the format: accounts/{account_id}. * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, returns at most 500 Offers. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 500 Offers. The maximum value is + * 1000; the server will coerce values above 1000. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * @param {string} [request.filter] @@ -7433,9 +7550,9 @@ export class CloudChannelServiceClient { * Required. The resource name of the customer to list SKUs for. * Format: accounts/{account_id}/customers/{customer_id}. * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, returns at most 100 SKUs. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 SKUs. The maximum value is + * 1000; the server will coerce values above 1000. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * @param {string} [request.languageCode] @@ -7542,9 +7659,9 @@ export class CloudChannelServiceClient { * Required. The resource name of the customer to list SKUs for. * Format: accounts/{account_id}/customers/{customer_id}. * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, returns at most 100 SKUs. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 SKUs. The maximum value is + * 1000; the server will coerce values above 1000. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * @param {string} [request.languageCode] @@ -7599,9 +7716,9 @@ export class CloudChannelServiceClient { * Required. The resource name of the customer to list SKUs for. * Format: accounts/{account_id}/customers/{customer_id}. * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, returns at most 100 SKUs. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 SKUs. The maximum value is + * 1000; the server will coerce values above 1000. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * @param {string} [request.languageCode] @@ -7663,9 +7780,9 @@ export class CloudChannelServiceClient { * Required. The resource name of the customer to list Offers for. * Format: accounts/{account_id}/customers/{customer_id}. * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, returns at most 100 Offers. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 Offers. The maximum value is + * 1000; the server will coerce values above 1000. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * @param {string} [request.languageCode] @@ -7772,9 +7889,9 @@ export class CloudChannelServiceClient { * Required. The resource name of the customer to list Offers for. * Format: accounts/{account_id}/customers/{customer_id}. * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, returns at most 100 Offers. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 Offers. The maximum value is + * 1000; the server will coerce values above 1000. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * @param {string} [request.languageCode] @@ -7829,9 +7946,9 @@ export class CloudChannelServiceClient { * Required. The resource name of the customer to list Offers for. * Format: accounts/{account_id}/customers/{customer_id}. * @param {number} [request.pageSize] - * Optional. Requested page size. Server might return fewer results than requested. - * If unspecified, returns at most 100 Offers. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. Requested page size. Server might return fewer results than + * requested. If unspecified, returns at most 100 Offers. The maximum value is + * 1000; the server will coerce values above 1000. * @param {string} [request.pageToken] * Optional. A token for a page of results other than the first page. * @param {string} [request.languageCode] @@ -7896,10 +8013,10 @@ export class CloudChannelServiceClient { * @param {string} request.account * Required. Resource name of the account. * @param {number} [request.pageSize] - * Optional. The maximum number of service accounts to return. The service may return - * fewer than this value. - * If unspecified, returns at most 100 service accounts. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. The maximum number of service accounts to return. The service may + * return fewer than this value. If unspecified, returns at most 100 service + * accounts. The maximum value is 1000; the server will coerce values above + * 1000. * @param {string} [request.pageToken] * Optional. A page token, received from a previous `ListSubscribers` call. * Provide this to retrieve the subsequent page. @@ -8001,10 +8118,10 @@ export class CloudChannelServiceClient { * @param {string} request.account * Required. Resource name of the account. * @param {number} [request.pageSize] - * Optional. The maximum number of service accounts to return. The service may return - * fewer than this value. - * If unspecified, returns at most 100 service accounts. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. The maximum number of service accounts to return. The service may + * return fewer than this value. If unspecified, returns at most 100 service + * accounts. The maximum value is 1000; the server will coerce values above + * 1000. * @param {string} [request.pageToken] * Optional. A page token, received from a previous `ListSubscribers` call. * Provide this to retrieve the subsequent page. @@ -8054,10 +8171,10 @@ export class CloudChannelServiceClient { * @param {string} request.account * Required. Resource name of the account. * @param {number} [request.pageSize] - * Optional. The maximum number of service accounts to return. The service may return - * fewer than this value. - * If unspecified, returns at most 100 service accounts. - * The maximum value is 1000; the server will coerce values above 1000. + * Optional. The maximum number of service accounts to return. The service may + * return fewer than this value. If unspecified, returns at most 100 service + * accounts. The maximum value is 1000; the server will coerce values above + * 1000. * @param {string} [request.pageToken] * Optional. A page token, received from a previous `ListSubscribers` call. * Provide this to retrieve the subsequent page.