google-apis-cloudchannel_v1 0.17.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -493,6 +493,247 @@ module Google
|
|
493
493
|
execute_or_queue_command(command, &block)
|
494
494
|
end
|
495
495
|
|
496
|
+
# Creates a ChannelPartnerRepricingConfig. Call this method to set modifications
|
497
|
+
# for a specific ChannelPartner's bill. You can only create configs if the
|
498
|
+
# RepricingConfig.effective_invoice_month is a future month. If needed, you can
|
499
|
+
# create a config for the current month, with some restrictions. When creating a
|
500
|
+
# config for a future month, make sure there are no existing configs for that
|
501
|
+
# RepricingConfig.effective_invoice_month. The following restrictions are for
|
502
|
+
# creating configs in the current month. * This functionality is reserved for
|
503
|
+
# recovering from an erroneous config, and should not be used for regular
|
504
|
+
# business cases. * The new config will not modify exports used with other
|
505
|
+
# configs. Changes to the config may be immediate, but may take up to 24 hours. *
|
506
|
+
# There is a limit of ten configs for any ChannelPartner or RepricingConfig.
|
507
|
+
# effective_invoice_month. * The contained ChannelPartnerRepricingConfig.
|
508
|
+
# repricing_config vaule must be different from the value used in the current
|
509
|
+
# config for a ChannelPartner. Possible Error Codes: * PERMISSION_DENIED: If the
|
510
|
+
# account making the request and the account being queried are different. *
|
511
|
+
# INVALID_ARGUMENT: Missing or invalid required parameters in the request. Also
|
512
|
+
# displays if the updated config is for the current month or past months. *
|
513
|
+
# NOT_FOUND: The ChannelPartnerRepricingConfig specified does not exist or is
|
514
|
+
# not associated with the given account. * INTERNAL: Any non-user error related
|
515
|
+
# to technical issues in the backend. In this case, contact Cloud Channel
|
516
|
+
# support. Return Value: If successful, the updated
|
517
|
+
# ChannelPartnerRepricingConfig resource, otherwise returns an error.
|
518
|
+
# @param [String] parent
|
519
|
+
# Required. The resource name of the ChannelPartner that will receive the
|
520
|
+
# repricing config. Parent uses the format: accounts/`account_id`/
|
521
|
+
# channelPartnerLinks/`channel_partner_id`
|
522
|
+
# @param [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig] google_cloud_channel_v1_channel_partner_repricing_config_object
|
523
|
+
# @param [String] fields
|
524
|
+
# Selector specifying which fields to include in a partial response.
|
525
|
+
# @param [String] quota_user
|
526
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
527
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
528
|
+
# @param [Google::Apis::RequestOptions] options
|
529
|
+
# Request-specific options
|
530
|
+
#
|
531
|
+
# @yield [result, err] Result & error if block supplied
|
532
|
+
# @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig] parsed result object
|
533
|
+
# @yieldparam err [StandardError] error object if request failed
|
534
|
+
#
|
535
|
+
# @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig]
|
536
|
+
#
|
537
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
538
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
539
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
540
|
+
def create_account_channel_partner_link_channel_partner_repricing_config(parent, google_cloud_channel_v1_channel_partner_repricing_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
541
|
+
command = make_simple_command(:post, 'v1/{+parent}/channelPartnerRepricingConfigs', options)
|
542
|
+
command.request_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig::Representation
|
543
|
+
command.request_object = google_cloud_channel_v1_channel_partner_repricing_config_object
|
544
|
+
command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig::Representation
|
545
|
+
command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig
|
546
|
+
command.params['parent'] = parent unless parent.nil?
|
547
|
+
command.query['fields'] = fields unless fields.nil?
|
548
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
549
|
+
execute_or_queue_command(command, &block)
|
550
|
+
end
|
551
|
+
|
552
|
+
# Deletes the given ChannelPartnerRepricingConfig permanently. You can only
|
553
|
+
# delete configs if their RepricingConfig.effective_invoice_month is set to a
|
554
|
+
# date after the current month. Possible error codes: * PERMISSION_DENIED: The
|
555
|
+
# account making the request does not own this customer. * INVALID_ARGUMENT:
|
556
|
+
# Required request parameters are missing or invalid. * FAILED_PRECONDITION: The
|
557
|
+
# ChannelPartnerRepricingConfig is active or in the past. * NOT_FOUND: No
|
558
|
+
# ChannelPartnerRepricingConfig found for the name in the request.
|
559
|
+
# @param [String] name
|
560
|
+
# Required. The resource name of the channel partner repricing config rule to
|
561
|
+
# delete.
|
562
|
+
# @param [String] fields
|
563
|
+
# Selector specifying which fields to include in a partial response.
|
564
|
+
# @param [String] quota_user
|
565
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
566
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
567
|
+
# @param [Google::Apis::RequestOptions] options
|
568
|
+
# Request-specific options
|
569
|
+
#
|
570
|
+
# @yield [result, err] Result & error if block supplied
|
571
|
+
# @yieldparam result [Google::Apis::CloudchannelV1::GoogleProtobufEmpty] parsed result object
|
572
|
+
# @yieldparam err [StandardError] error object if request failed
|
573
|
+
#
|
574
|
+
# @return [Google::Apis::CloudchannelV1::GoogleProtobufEmpty]
|
575
|
+
#
|
576
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
577
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
578
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
579
|
+
def delete_account_channel_partner_link_channel_partner_repricing_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
580
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
581
|
+
command.response_representation = Google::Apis::CloudchannelV1::GoogleProtobufEmpty::Representation
|
582
|
+
command.response_class = Google::Apis::CloudchannelV1::GoogleProtobufEmpty
|
583
|
+
command.params['name'] = name unless name.nil?
|
584
|
+
command.query['fields'] = fields unless fields.nil?
|
585
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
586
|
+
execute_or_queue_command(command, &block)
|
587
|
+
end
|
588
|
+
|
589
|
+
# Gets information about how a Distributor modifies their bill before sending it
|
590
|
+
# to a ChannelPartner. Possible Error Codes: * PERMISSION_DENIED: If the account
|
591
|
+
# making the request and the account being queried are different. * NOT_FOUND:
|
592
|
+
# The ChannelPartnerRepricingConfig was not found. * INTERNAL: Any non-user
|
593
|
+
# error related to technical issues in the backend. In this case, contact Cloud
|
594
|
+
# Channel support. Return Value: If successful, the
|
595
|
+
# ChannelPartnerRepricingConfig resource, otherwise returns an error.
|
596
|
+
# @param [String] name
|
597
|
+
# Required. The resource name of the ChannelPartnerRepricingConfig Format:
|
598
|
+
# accounts/`account_id`/channelPartnerLinks/`channel_partner_id`/
|
599
|
+
# channelPartnerRepricingConfigs/`id`.
|
600
|
+
# @param [String] fields
|
601
|
+
# Selector specifying which fields to include in a partial response.
|
602
|
+
# @param [String] quota_user
|
603
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
604
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
605
|
+
# @param [Google::Apis::RequestOptions] options
|
606
|
+
# Request-specific options
|
607
|
+
#
|
608
|
+
# @yield [result, err] Result & error if block supplied
|
609
|
+
# @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig] parsed result object
|
610
|
+
# @yieldparam err [StandardError] error object if request failed
|
611
|
+
#
|
612
|
+
# @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig]
|
613
|
+
#
|
614
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
615
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
616
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
617
|
+
def get_account_channel_partner_link_channel_partner_repricing_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
618
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
619
|
+
command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig::Representation
|
620
|
+
command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig
|
621
|
+
command.params['name'] = name unless name.nil?
|
622
|
+
command.query['fields'] = fields unless fields.nil?
|
623
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
624
|
+
execute_or_queue_command(command, &block)
|
625
|
+
end
|
626
|
+
|
627
|
+
# Lists information about how a Reseller modifies their bill before sending it
|
628
|
+
# to a ChannelPartner. Possible Error Codes: * PERMISSION_DENIED: If the account
|
629
|
+
# making the request and the account being queried are different. * NOT_FOUND:
|
630
|
+
# The ChannelPartnerRepricingConfig specified does not exist or is not
|
631
|
+
# associated with the given account. * INTERNAL: Any non-user error related to
|
632
|
+
# technical issues in the backend. In this case, contact Cloud Channel support.
|
633
|
+
# Return Value: If successful, the ChannelPartnerRepricingConfig resources. The
|
634
|
+
# data for each resource is displayed in the ascending order of: * channel
|
635
|
+
# partner ID * RepricingConfig.effective_invoice_month *
|
636
|
+
# ChannelPartnerRepricingConfig.update_time If unsuccessful, returns an error.
|
637
|
+
# @param [String] parent
|
638
|
+
# Required. The resource name of the account's ChannelPartnerLink. Parent uses
|
639
|
+
# the format: accounts/`account_id`/channelPartnerLinks/`channel_partner_id`.
|
640
|
+
# Supports accounts/`account_id`/channelPartnerLinks/- to retrieve configs for
|
641
|
+
# all channel partners.
|
642
|
+
# @param [String] filter
|
643
|
+
# Optional. A filter for [CloudChannelService.ListChannelPartnerRepricingConfigs]
|
644
|
+
# results (channel_partner_link only). You can use this filter when you support
|
645
|
+
# a BatchGet-like query. To use the filter, you must set `parent=accounts/`
|
646
|
+
# account_id`/channelPartnerLinks/-`. Example: `channel_partner_link = accounts/
|
647
|
+
# account_id/channelPartnerLinks/c1` OR `channel_partner_link = accounts/
|
648
|
+
# account_id/channelPartnerLinks/c2`.
|
649
|
+
# @param [Fixnum] page_size
|
650
|
+
# Optional. The maximum number of repricing configs to return. The service may
|
651
|
+
# return fewer than this value. If unspecified, returns a maximum of 50 rules.
|
652
|
+
# The maximum value is 100; values above 100 will be coerced to 100.
|
653
|
+
# @param [String] page_token
|
654
|
+
# Optional. A token identifying a page of results beyond the first page.
|
655
|
+
# Obtained through ListChannelPartnerRepricingConfigsResponse.next_page_token of
|
656
|
+
# the previous CloudChannelService.ListChannelPartnerRepricingConfigs call.
|
657
|
+
# @param [String] fields
|
658
|
+
# Selector specifying which fields to include in a partial response.
|
659
|
+
# @param [String] quota_user
|
660
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
661
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
662
|
+
# @param [Google::Apis::RequestOptions] options
|
663
|
+
# Request-specific options
|
664
|
+
#
|
665
|
+
# @yield [result, err] Result & error if block supplied
|
666
|
+
# @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListChannelPartnerRepricingConfigsResponse] parsed result object
|
667
|
+
# @yieldparam err [StandardError] error object if request failed
|
668
|
+
#
|
669
|
+
# @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListChannelPartnerRepricingConfigsResponse]
|
670
|
+
#
|
671
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
672
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
673
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
674
|
+
def list_account_channel_partner_link_channel_partner_repricing_configs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
675
|
+
command = make_simple_command(:get, 'v1/{+parent}/channelPartnerRepricingConfigs', options)
|
676
|
+
command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListChannelPartnerRepricingConfigsResponse::Representation
|
677
|
+
command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListChannelPartnerRepricingConfigsResponse
|
678
|
+
command.params['parent'] = parent unless parent.nil?
|
679
|
+
command.query['filter'] = filter unless filter.nil?
|
680
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
681
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
682
|
+
command.query['fields'] = fields unless fields.nil?
|
683
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
684
|
+
execute_or_queue_command(command, &block)
|
685
|
+
end
|
686
|
+
|
687
|
+
# Updates a ChannelPartnerRepricingConfig. Call this method to set modifications
|
688
|
+
# for a specific ChannelPartner's bill. This method overwrites the existing
|
689
|
+
# CustomerRepricingConfig. You can only update configs if the RepricingConfig.
|
690
|
+
# effective_invoice_month is a future month. To make changes to configs for the
|
691
|
+
# current month, use CreateChannelPartnerRepricingConfig, taking note of its
|
692
|
+
# restrictions. You cannot update the RepricingConfig.effective_invoice_month.
|
693
|
+
# When updating a config in the future: * This config must already exist.
|
694
|
+
# Possible Error Codes: * PERMISSION_DENIED: If the account making the request
|
695
|
+
# and the account being queried are different. * INVALID_ARGUMENT: Missing or
|
696
|
+
# invalid required parameters in the request. Also displays if the updated
|
697
|
+
# config is for the current month or past months. * NOT_FOUND: The
|
698
|
+
# ChannelPartnerRepricingConfig specified does not exist or is not associated
|
699
|
+
# with the given account. * INTERNAL: Any non-user error related to technical
|
700
|
+
# issues in the backend. In this case, contact Cloud Channel support. Return
|
701
|
+
# Value: If successful, the updated ChannelPartnerRepricingConfig resource,
|
702
|
+
# otherwise returns an error.
|
703
|
+
# @param [String] name
|
704
|
+
# Output only. Resource name of the ChannelPartnerRepricingConfig. Format:
|
705
|
+
# accounts/`account_id`/channelPartnerLinks/`channel_partner_id`/
|
706
|
+
# channelPartnerRepricingConfigs/`id`.
|
707
|
+
# @param [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig] google_cloud_channel_v1_channel_partner_repricing_config_object
|
708
|
+
# @param [String] fields
|
709
|
+
# Selector specifying which fields to include in a partial response.
|
710
|
+
# @param [String] quota_user
|
711
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
712
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
713
|
+
# @param [Google::Apis::RequestOptions] options
|
714
|
+
# Request-specific options
|
715
|
+
#
|
716
|
+
# @yield [result, err] Result & error if block supplied
|
717
|
+
# @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig] parsed result object
|
718
|
+
# @yieldparam err [StandardError] error object if request failed
|
719
|
+
#
|
720
|
+
# @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig]
|
721
|
+
#
|
722
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
723
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
724
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
725
|
+
def patch_account_channel_partner_link_channel_partner_repricing_config(name, google_cloud_channel_v1_channel_partner_repricing_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
726
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
727
|
+
command.request_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig::Representation
|
728
|
+
command.request_object = google_cloud_channel_v1_channel_partner_repricing_config_object
|
729
|
+
command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig::Representation
|
730
|
+
command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig
|
731
|
+
command.params['name'] = name unless name.nil?
|
732
|
+
command.query['fields'] = fields unless fields.nil?
|
733
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
734
|
+
execute_or_queue_command(command, &block)
|
735
|
+
end
|
736
|
+
|
496
737
|
# Creates a new Customer resource under the reseller or distributor account.
|
497
738
|
# Possible error codes: * PERMISSION_DENIED: The reseller account making the
|
498
739
|
# request is different from the reseller account in the API request. *
|
@@ -653,6 +894,10 @@ module Google
|
|
653
894
|
# @param [String] parent
|
654
895
|
# Required. The resource name of the reseller account to list customers from.
|
655
896
|
# Parent uses the format: accounts/`account_id`.
|
897
|
+
# @param [String] filter
|
898
|
+
# Optional. Filters applied to the [CloudChannelService.ListCustomers] results.
|
899
|
+
# See https://cloud.google.com/channel/docs/concepts/google-cloud/filter-
|
900
|
+
# customers for more information.
|
656
901
|
# @param [Fixnum] page_size
|
657
902
|
# Optional. The maximum number of customers to return. The service may return
|
658
903
|
# fewer than this value. If unspecified, returns at most 10 customers. The
|
@@ -678,11 +923,12 @@ module Google
|
|
678
923
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
679
924
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
680
925
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
681
|
-
def list_account_channel_partner_link_customers(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
926
|
+
def list_account_channel_partner_link_customers(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
682
927
|
command = make_simple_command(:get, 'v1/{+parent}/customers', options)
|
683
928
|
command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListCustomersResponse::Representation
|
684
929
|
command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListCustomersResponse
|
685
930
|
command.params['parent'] = parent unless parent.nil?
|
931
|
+
command.query['filter'] = filter unless filter.nil?
|
686
932
|
command.query['pageSize'] = page_size unless page_size.nil?
|
687
933
|
command.query['pageToken'] = page_token unless page_token.nil?
|
688
934
|
command.query['fields'] = fields unless fields.nil?
|
@@ -892,6 +1138,10 @@ module Google
|
|
892
1138
|
# @param [String] parent
|
893
1139
|
# Required. The resource name of the reseller account to list customers from.
|
894
1140
|
# Parent uses the format: accounts/`account_id`.
|
1141
|
+
# @param [String] filter
|
1142
|
+
# Optional. Filters applied to the [CloudChannelService.ListCustomers] results.
|
1143
|
+
# See https://cloud.google.com/channel/docs/concepts/google-cloud/filter-
|
1144
|
+
# customers for more information.
|
895
1145
|
# @param [Fixnum] page_size
|
896
1146
|
# Optional. The maximum number of customers to return. The service may return
|
897
1147
|
# fewer than this value. If unspecified, returns at most 10 customers. The
|
@@ -917,11 +1167,12 @@ module Google
|
|
917
1167
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
918
1168
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
919
1169
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
920
|
-
def list_account_customers(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1170
|
+
def list_account_customers(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
921
1171
|
command = make_simple_command(:get, 'v1/{+parent}/customers', options)
|
922
1172
|
command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListCustomersResponse::Representation
|
923
1173
|
command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListCustomersResponse
|
924
1174
|
command.params['parent'] = parent unless parent.nil?
|
1175
|
+
command.query['filter'] = filter unless filter.nil?
|
925
1176
|
command.query['pageSize'] = page_size unless page_size.nil?
|
926
1177
|
command.query['pageToken'] = page_token unless page_token.nil?
|
927
1178
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1236,6 +1487,244 @@ module Google
|
|
1236
1487
|
execute_or_queue_command(command, &block)
|
1237
1488
|
end
|
1238
1489
|
|
1490
|
+
# Creates a CustomerRepricingConfig. Call this method to set modifications for a
|
1491
|
+
# specific customer's bill. You can only create configs if the RepricingConfig.
|
1492
|
+
# effective_invoice_month is a future month. If needed, you can create a config
|
1493
|
+
# for the current month, with some restrictions. When creating a config for a
|
1494
|
+
# future month, make sure there are no existing configs for that RepricingConfig.
|
1495
|
+
# effective_invoice_month. The following restrictions are for creating configs
|
1496
|
+
# in the current month. * This functionality is reserved for recovering from an
|
1497
|
+
# erroneous config, and should not be used for regular business cases. * The new
|
1498
|
+
# config will not modify exports used with other configs. Changes to the config
|
1499
|
+
# may be immediate, but may take up to 24 hours. * There is a limit of ten
|
1500
|
+
# configs for any RepricingConfig.EntitlementGranularity.entitlement or
|
1501
|
+
# RepricingConfig.effective_invoice_month. * The contained
|
1502
|
+
# CustomerRepricingConfig.repricing_config vaule must be different from the
|
1503
|
+
# value used in the current config for a RepricingConfig.EntitlementGranularity.
|
1504
|
+
# entitlement. Possible Error Codes: * PERMISSION_DENIED: If the account making
|
1505
|
+
# the request and the account being queried are different. * INVALID_ARGUMENT:
|
1506
|
+
# Missing or invalid required parameters in the request. Also displays if the
|
1507
|
+
# updated config is for the current month or past months. * NOT_FOUND: The
|
1508
|
+
# CustomerRepricingConfig specified does not exist or is not associated with the
|
1509
|
+
# given account. * INTERNAL: Any non-user error related to technical issues in
|
1510
|
+
# the backend. In this case, contact Cloud Channel support. Return Value: If
|
1511
|
+
# successful, the updated CustomerRepricingConfig resource, otherwise returns an
|
1512
|
+
# error.
|
1513
|
+
# @param [String] parent
|
1514
|
+
# Required. The resource name of the customer that will receive this repricing
|
1515
|
+
# config. Parent uses the format: accounts/`account_id`/customers/`customer_id`
|
1516
|
+
# @param [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig] google_cloud_channel_v1_customer_repricing_config_object
|
1517
|
+
# @param [String] fields
|
1518
|
+
# Selector specifying which fields to include in a partial response.
|
1519
|
+
# @param [String] quota_user
|
1520
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1521
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1522
|
+
# @param [Google::Apis::RequestOptions] options
|
1523
|
+
# Request-specific options
|
1524
|
+
#
|
1525
|
+
# @yield [result, err] Result & error if block supplied
|
1526
|
+
# @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig] parsed result object
|
1527
|
+
# @yieldparam err [StandardError] error object if request failed
|
1528
|
+
#
|
1529
|
+
# @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig]
|
1530
|
+
#
|
1531
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1532
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1533
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1534
|
+
def create_account_customer_customer_repricing_config(parent, google_cloud_channel_v1_customer_repricing_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1535
|
+
command = make_simple_command(:post, 'v1/{+parent}/customerRepricingConfigs', options)
|
1536
|
+
command.request_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig::Representation
|
1537
|
+
command.request_object = google_cloud_channel_v1_customer_repricing_config_object
|
1538
|
+
command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig::Representation
|
1539
|
+
command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig
|
1540
|
+
command.params['parent'] = parent unless parent.nil?
|
1541
|
+
command.query['fields'] = fields unless fields.nil?
|
1542
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1543
|
+
execute_or_queue_command(command, &block)
|
1544
|
+
end
|
1545
|
+
|
1546
|
+
# Deletes the given CustomerRepricingConfig permanently. You can only delete
|
1547
|
+
# configs if their RepricingConfig.effective_invoice_month is set to a date
|
1548
|
+
# after the current month. Possible error codes: * PERMISSION_DENIED: The
|
1549
|
+
# account making the request does not own this customer. * INVALID_ARGUMENT:
|
1550
|
+
# Required request parameters are missing or invalid. * FAILED_PRECONDITION: The
|
1551
|
+
# CustomerRepricingConfig is active or in the past. * NOT_FOUND: No
|
1552
|
+
# CustomerRepricingConfig found for the name in the request.
|
1553
|
+
# @param [String] name
|
1554
|
+
# Required. The resource name of the customer repricing config rule to delete.
|
1555
|
+
# Format: accounts/`account_id`/customers/`customer_id`/customerRepricingConfigs/
|
1556
|
+
# `id`.
|
1557
|
+
# @param [String] fields
|
1558
|
+
# Selector specifying which fields to include in a partial response.
|
1559
|
+
# @param [String] quota_user
|
1560
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1561
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1562
|
+
# @param [Google::Apis::RequestOptions] options
|
1563
|
+
# Request-specific options
|
1564
|
+
#
|
1565
|
+
# @yield [result, err] Result & error if block supplied
|
1566
|
+
# @yieldparam result [Google::Apis::CloudchannelV1::GoogleProtobufEmpty] parsed result object
|
1567
|
+
# @yieldparam err [StandardError] error object if request failed
|
1568
|
+
#
|
1569
|
+
# @return [Google::Apis::CloudchannelV1::GoogleProtobufEmpty]
|
1570
|
+
#
|
1571
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1572
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1573
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1574
|
+
def delete_account_customer_customer_repricing_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
1575
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1576
|
+
command.response_representation = Google::Apis::CloudchannelV1::GoogleProtobufEmpty::Representation
|
1577
|
+
command.response_class = Google::Apis::CloudchannelV1::GoogleProtobufEmpty
|
1578
|
+
command.params['name'] = name unless name.nil?
|
1579
|
+
command.query['fields'] = fields unless fields.nil?
|
1580
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1581
|
+
execute_or_queue_command(command, &block)
|
1582
|
+
end
|
1583
|
+
|
1584
|
+
# Gets information about how a Reseller modifies their bill before sending it to
|
1585
|
+
# a Customer. Possible Error Codes: * PERMISSION_DENIED: If the account making
|
1586
|
+
# the request and the account being queried are different. * NOT_FOUND: The
|
1587
|
+
# CustomerRepricingConfig was not found. * INTERNAL: Any non-user error related
|
1588
|
+
# to technical issues in the backend. In this case, contact Cloud Channel
|
1589
|
+
# support. Return Value: If successful, the CustomerRepricingConfig resource,
|
1590
|
+
# otherwise returns an error.
|
1591
|
+
# @param [String] name
|
1592
|
+
# Required. The resource name of the CustomerRepricingConfig. Format: accounts/`
|
1593
|
+
# account_id`/customers/`customer_id`/customerRepricingConfigs/`id`.
|
1594
|
+
# @param [String] fields
|
1595
|
+
# Selector specifying which fields to include in a partial response.
|
1596
|
+
# @param [String] quota_user
|
1597
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1598
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1599
|
+
# @param [Google::Apis::RequestOptions] options
|
1600
|
+
# Request-specific options
|
1601
|
+
#
|
1602
|
+
# @yield [result, err] Result & error if block supplied
|
1603
|
+
# @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig] parsed result object
|
1604
|
+
# @yieldparam err [StandardError] error object if request failed
|
1605
|
+
#
|
1606
|
+
# @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig]
|
1607
|
+
#
|
1608
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1609
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1610
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1611
|
+
def get_account_customer_customer_repricing_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
1612
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1613
|
+
command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig::Representation
|
1614
|
+
command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig
|
1615
|
+
command.params['name'] = name unless name.nil?
|
1616
|
+
command.query['fields'] = fields unless fields.nil?
|
1617
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1618
|
+
execute_or_queue_command(command, &block)
|
1619
|
+
end
|
1620
|
+
|
1621
|
+
# Lists information about how a Reseller modifies their bill before sending it
|
1622
|
+
# to a Customer. Possible Error Codes: * PERMISSION_DENIED: If the account
|
1623
|
+
# making the request and the account being queried are different. * NOT_FOUND:
|
1624
|
+
# The CustomerRepricingConfig specified does not exist or is not associated with
|
1625
|
+
# the given account. * INTERNAL: Any non-user error related to technical issues
|
1626
|
+
# in the backend. In this case, contact Cloud Channel support. Return Value: If
|
1627
|
+
# successful, the CustomerRepricingConfig resources. The data for each resource
|
1628
|
+
# is displayed in the ascending order of: * customer ID * RepricingConfig.
|
1629
|
+
# EntitlementGranularity.entitlement * RepricingConfig.effective_invoice_month *
|
1630
|
+
# CustomerRepricingConfig.update_time If unsuccessful, returns an error.
|
1631
|
+
# @param [String] parent
|
1632
|
+
# Required. The resource name of the customer. Parent uses the format: accounts/`
|
1633
|
+
# account_id`/customers/`customer_id`. Supports accounts/`account_id`/customers/-
|
1634
|
+
# to retrieve configs for all customers.
|
1635
|
+
# @param [String] filter
|
1636
|
+
# Optional. A filter for [CloudChannelService.ListCustomerRepricingConfigs]
|
1637
|
+
# results (customer only). You can use this filter when you support a BatchGet-
|
1638
|
+
# like query. To use the filter, you must set `parent=accounts/`account_id`/
|
1639
|
+
# customers/-`. Example: customer = accounts/account_id/customers/c1 OR customer
|
1640
|
+
# = accounts/account_id/customers/c2.
|
1641
|
+
# @param [Fixnum] page_size
|
1642
|
+
# Optional. The maximum number of repricing configs to return. The service may
|
1643
|
+
# return fewer than this value. If unspecified, returns a maximum of 50 rules.
|
1644
|
+
# The maximum value is 100; values above 100 will be coerced to 100.
|
1645
|
+
# @param [String] page_token
|
1646
|
+
# Optional. A token identifying a page of results beyond the first page.
|
1647
|
+
# Obtained through ListCustomerRepricingConfigsResponse.next_page_token of the
|
1648
|
+
# previous CloudChannelService.ListCustomerRepricingConfigs call.
|
1649
|
+
# @param [String] fields
|
1650
|
+
# Selector specifying which fields to include in a partial response.
|
1651
|
+
# @param [String] quota_user
|
1652
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1653
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1654
|
+
# @param [Google::Apis::RequestOptions] options
|
1655
|
+
# Request-specific options
|
1656
|
+
#
|
1657
|
+
# @yield [result, err] Result & error if block supplied
|
1658
|
+
# @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListCustomerRepricingConfigsResponse] parsed result object
|
1659
|
+
# @yieldparam err [StandardError] error object if request failed
|
1660
|
+
#
|
1661
|
+
# @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListCustomerRepricingConfigsResponse]
|
1662
|
+
#
|
1663
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1664
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1665
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1666
|
+
def list_account_customer_customer_repricing_configs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1667
|
+
command = make_simple_command(:get, 'v1/{+parent}/customerRepricingConfigs', options)
|
1668
|
+
command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListCustomerRepricingConfigsResponse::Representation
|
1669
|
+
command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListCustomerRepricingConfigsResponse
|
1670
|
+
command.params['parent'] = parent unless parent.nil?
|
1671
|
+
command.query['filter'] = filter unless filter.nil?
|
1672
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1673
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1674
|
+
command.query['fields'] = fields unless fields.nil?
|
1675
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1676
|
+
execute_or_queue_command(command, &block)
|
1677
|
+
end
|
1678
|
+
|
1679
|
+
# Updates a CustomerRepricingConfig. Call this method to set modifications for a
|
1680
|
+
# specific customer's bill. This method overwrites the existing
|
1681
|
+
# CustomerRepricingConfig. You can only update configs if the RepricingConfig.
|
1682
|
+
# effective_invoice_month is a future month. To make changes to configs for the
|
1683
|
+
# current month, use CreateCustomerRepricingConfig, taking note of its
|
1684
|
+
# restrictions. You cannot update the RepricingConfig.effective_invoice_month.
|
1685
|
+
# When updating a config in the future: * This config must already exist.
|
1686
|
+
# Possible Error Codes: * PERMISSION_DENIED: If the account making the request
|
1687
|
+
# and the account being queried are different. * INVALID_ARGUMENT: Missing or
|
1688
|
+
# invalid required parameters in the request. Also displays if the updated
|
1689
|
+
# config is for the current month or past months. * NOT_FOUND: The
|
1690
|
+
# CustomerRepricingConfig specified does not exist or is not associated with the
|
1691
|
+
# given account. * INTERNAL: Any non-user error related to technical issues in
|
1692
|
+
# the backend. In this case, contact Cloud Channel support. Return Value: If
|
1693
|
+
# successful, the updated CustomerRepricingConfig resource, otherwise returns an
|
1694
|
+
# error.
|
1695
|
+
# @param [String] name
|
1696
|
+
# Output only. Resource name of the CustomerRepricingConfig. Format: accounts/`
|
1697
|
+
# account_id`/customers/`customer_id`/customerRepricingConfigs/`id`.
|
1698
|
+
# @param [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig] google_cloud_channel_v1_customer_repricing_config_object
|
1699
|
+
# @param [String] fields
|
1700
|
+
# Selector specifying which fields to include in a partial response.
|
1701
|
+
# @param [String] quota_user
|
1702
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1703
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1704
|
+
# @param [Google::Apis::RequestOptions] options
|
1705
|
+
# Request-specific options
|
1706
|
+
#
|
1707
|
+
# @yield [result, err] Result & error if block supplied
|
1708
|
+
# @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig] parsed result object
|
1709
|
+
# @yieldparam err [StandardError] error object if request failed
|
1710
|
+
#
|
1711
|
+
# @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig]
|
1712
|
+
#
|
1713
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1714
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1715
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1716
|
+
def patch_account_customer_customer_repricing_config(name, google_cloud_channel_v1_customer_repricing_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1717
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1718
|
+
command.request_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig::Representation
|
1719
|
+
command.request_object = google_cloud_channel_v1_customer_repricing_config_object
|
1720
|
+
command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig::Representation
|
1721
|
+
command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig
|
1722
|
+
command.params['name'] = name unless name.nil?
|
1723
|
+
command.query['fields'] = fields unless fields.nil?
|
1724
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1725
|
+
execute_or_queue_command(command, &block)
|
1726
|
+
end
|
1727
|
+
|
1239
1728
|
# Activates a previously suspended entitlement. Entitlements suspended for
|
1240
1729
|
# pending ToS acceptance can't be activated using this method. An entitlement
|
1241
1730
|
# activation is a long-running operation and it updates the state of the
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-cloudchannel_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.5'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.5'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudchannel_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudchannel_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudchannel_v1/v0.20.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudchannel_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.3.
|
78
|
+
rubygems_version: 3.3.14
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Channel API V1
|