google-apis-cloudchannel_v1 0.11.0 → 0.12.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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0894942a280bf4343dd9c873df452ecb7be816830432f115071aeea35a36bd97'
|
4
|
+
data.tar.gz: 95d9aea11b4e57f46c907bdc6406a8edc2c4b5350864322547b18f5ff5edb459
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd70b63f532c1dce466c5473bd1eb5d0fc5a220681b9ae5e6091e26ab9a4a9ceb87d7680efd372057bb1b83e0c62290eabee1237555190fe495cdc99a17f6771
|
7
|
+
data.tar.gz: 5e173793d72ffe0c0511770835b41e2c7471a0dfe7f719a82a391567bf05ac22e21d805943dc3d4624cce371884b6aa2809f5ce23a92d7690634d8857472ad98
|
data/CHANGELOG.md
CHANGED
@@ -892,6 +892,64 @@ module Google
|
|
892
892
|
end
|
893
893
|
end
|
894
894
|
|
895
|
+
# Request message for CloudChannelService.ImportCustomer
|
896
|
+
class GoogleCloudChannelV1ImportCustomerRequest
|
897
|
+
include Google::Apis::Core::Hashable
|
898
|
+
|
899
|
+
# Optional. The super admin of the resold customer generates this token to
|
900
|
+
# authorize a reseller to access their Cloud Identity and purchase entitlements
|
901
|
+
# on their behalf. You can omit this token after authorization. See https://
|
902
|
+
# support.google.com/a/answer/7643790 for more details.
|
903
|
+
# Corresponds to the JSON property `authToken`
|
904
|
+
# @return [String]
|
905
|
+
attr_accessor :auth_token
|
906
|
+
|
907
|
+
# Optional. Cloud Identity ID of a channel partner who will be the direct
|
908
|
+
# reseller for the customer's order. This field is required for 2-tier transfer
|
909
|
+
# scenarios and can be provided via the request Parent binding as well.
|
910
|
+
# Corresponds to the JSON property `channelPartnerId`
|
911
|
+
# @return [String]
|
912
|
+
attr_accessor :channel_partner_id
|
913
|
+
|
914
|
+
# Required. Customer's Cloud Identity ID
|
915
|
+
# Corresponds to the JSON property `cloudIdentityId`
|
916
|
+
# @return [String]
|
917
|
+
attr_accessor :cloud_identity_id
|
918
|
+
|
919
|
+
# Optional. Specifies the customer that will receive imported Cloud Identity
|
920
|
+
# information. Format: accounts/`account_id`/customers/`customer_id`
|
921
|
+
# Corresponds to the JSON property `customer`
|
922
|
+
# @return [String]
|
923
|
+
attr_accessor :customer
|
924
|
+
|
925
|
+
# Required. Customer domain.
|
926
|
+
# Corresponds to the JSON property `domain`
|
927
|
+
# @return [String]
|
928
|
+
attr_accessor :domain
|
929
|
+
|
930
|
+
# Required. Choose to overwrite an existing customer if found. This must be set
|
931
|
+
# to true if there is an existing customer with a conflicting region code or
|
932
|
+
# domain.
|
933
|
+
# Corresponds to the JSON property `overwriteIfExists`
|
934
|
+
# @return [Boolean]
|
935
|
+
attr_accessor :overwrite_if_exists
|
936
|
+
alias_method :overwrite_if_exists?, :overwrite_if_exists
|
937
|
+
|
938
|
+
def initialize(**args)
|
939
|
+
update!(**args)
|
940
|
+
end
|
941
|
+
|
942
|
+
# Update properties of this object
|
943
|
+
def update!(**args)
|
944
|
+
@auth_token = args[:auth_token] if args.key?(:auth_token)
|
945
|
+
@channel_partner_id = args[:channel_partner_id] if args.key?(:channel_partner_id)
|
946
|
+
@cloud_identity_id = args[:cloud_identity_id] if args.key?(:cloud_identity_id)
|
947
|
+
@customer = args[:customer] if args.key?(:customer)
|
948
|
+
@domain = args[:domain] if args.key?(:domain)
|
949
|
+
@overwrite_if_exists = args[:overwrite_if_exists] if args.key?(:overwrite_if_exists)
|
950
|
+
end
|
951
|
+
end
|
952
|
+
|
895
953
|
# Response message for CloudChannelService.ListChannelPartnerLinks.
|
896
954
|
class GoogleCloudChannelV1ListChannelPartnerLinksResponse
|
897
955
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CloudchannelV1
|
18
18
|
# Version of the google-apis-cloudchannel_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210809"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -154,6 +154,12 @@ module Google
|
|
154
154
|
include Google::Apis::Core::JsonObjectSupport
|
155
155
|
end
|
156
156
|
|
157
|
+
class GoogleCloudChannelV1ImportCustomerRequest
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
157
163
|
class GoogleCloudChannelV1ListChannelPartnerLinksResponse
|
158
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
165
|
|
@@ -800,6 +806,18 @@ module Google
|
|
800
806
|
end
|
801
807
|
end
|
802
808
|
|
809
|
+
class GoogleCloudChannelV1ImportCustomerRequest
|
810
|
+
# @private
|
811
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
812
|
+
property :auth_token, as: 'authToken'
|
813
|
+
property :channel_partner_id, as: 'channelPartnerId'
|
814
|
+
property :cloud_identity_id, as: 'cloudIdentityId'
|
815
|
+
property :customer, as: 'customer'
|
816
|
+
property :domain, as: 'domain'
|
817
|
+
property :overwrite_if_exists, as: 'overwriteIfExists'
|
818
|
+
end
|
819
|
+
end
|
820
|
+
|
803
821
|
class GoogleCloudChannelV1ListChannelPartnerLinksResponse
|
804
822
|
# @private
|
805
823
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -602,6 +602,49 @@ module Google
|
|
602
602
|
execute_or_queue_command(command, &block)
|
603
603
|
end
|
604
604
|
|
605
|
+
# Imports a Customer from the Cloud Identity associated with the provided Cloud
|
606
|
+
# Identity ID or domain before a TransferEntitlements call. If a linked Customer
|
607
|
+
# already exists and overwrite_if_exists is true, it will update that Customer's
|
608
|
+
# data. Possible error codes: * PERMISSION_DENIED: The reseller account making
|
609
|
+
# the request is different from the reseller account in the API request. *
|
610
|
+
# NOT_FOUND: Cloud Identity doesn't exist or was deleted. * INVALID_ARGUMENT:
|
611
|
+
# Required parameters are missing, or the auth_token is expired or invalid. *
|
612
|
+
# ALREADY_EXISTS: A customer already exists and has conflicting critical fields.
|
613
|
+
# Requires an overwrite. Return value: The Customer.
|
614
|
+
# @param [String] parent
|
615
|
+
# Required. The resource name of the reseller's account. Parent takes the format:
|
616
|
+
# accounts/`account_id` or accounts/`account_id`/channelPartnerLinks/`
|
617
|
+
# channel_partner_id`
|
618
|
+
# @param [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ImportCustomerRequest] google_cloud_channel_v1_import_customer_request_object
|
619
|
+
# @param [String] fields
|
620
|
+
# Selector specifying which fields to include in a partial response.
|
621
|
+
# @param [String] quota_user
|
622
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
623
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
624
|
+
# @param [Google::Apis::RequestOptions] options
|
625
|
+
# Request-specific options
|
626
|
+
#
|
627
|
+
# @yield [result, err] Result & error if block supplied
|
628
|
+
# @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Customer] parsed result object
|
629
|
+
# @yieldparam err [StandardError] error object if request failed
|
630
|
+
#
|
631
|
+
# @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Customer]
|
632
|
+
#
|
633
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
634
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
635
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
636
|
+
def import_account_channel_partner_link_customer(parent, google_cloud_channel_v1_import_customer_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
637
|
+
command = make_simple_command(:post, 'v1/{+parent}/customers:import', options)
|
638
|
+
command.request_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ImportCustomerRequest::Representation
|
639
|
+
command.request_object = google_cloud_channel_v1_import_customer_request_object
|
640
|
+
command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1Customer::Representation
|
641
|
+
command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1Customer
|
642
|
+
command.params['parent'] = parent unless parent.nil?
|
643
|
+
command.query['fields'] = fields unless fields.nil?
|
644
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
645
|
+
execute_or_queue_command(command, &block)
|
646
|
+
end
|
647
|
+
|
605
648
|
# List Customers. Possible error codes: * PERMISSION_DENIED: The reseller
|
606
649
|
# account making the request is different from the reseller account in the API
|
607
650
|
# request. * INVALID_ARGUMENT: Required request parameters are missing or
|
@@ -798,6 +841,49 @@ module Google
|
|
798
841
|
execute_or_queue_command(command, &block)
|
799
842
|
end
|
800
843
|
|
844
|
+
# Imports a Customer from the Cloud Identity associated with the provided Cloud
|
845
|
+
# Identity ID or domain before a TransferEntitlements call. If a linked Customer
|
846
|
+
# already exists and overwrite_if_exists is true, it will update that Customer's
|
847
|
+
# data. Possible error codes: * PERMISSION_DENIED: The reseller account making
|
848
|
+
# the request is different from the reseller account in the API request. *
|
849
|
+
# NOT_FOUND: Cloud Identity doesn't exist or was deleted. * INVALID_ARGUMENT:
|
850
|
+
# Required parameters are missing, or the auth_token is expired or invalid. *
|
851
|
+
# ALREADY_EXISTS: A customer already exists and has conflicting critical fields.
|
852
|
+
# Requires an overwrite. Return value: The Customer.
|
853
|
+
# @param [String] parent
|
854
|
+
# Required. The resource name of the reseller's account. Parent takes the format:
|
855
|
+
# accounts/`account_id` or accounts/`account_id`/channelPartnerLinks/`
|
856
|
+
# channel_partner_id`
|
857
|
+
# @param [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ImportCustomerRequest] google_cloud_channel_v1_import_customer_request_object
|
858
|
+
# @param [String] fields
|
859
|
+
# Selector specifying which fields to include in a partial response.
|
860
|
+
# @param [String] quota_user
|
861
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
862
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
863
|
+
# @param [Google::Apis::RequestOptions] options
|
864
|
+
# Request-specific options
|
865
|
+
#
|
866
|
+
# @yield [result, err] Result & error if block supplied
|
867
|
+
# @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Customer] parsed result object
|
868
|
+
# @yieldparam err [StandardError] error object if request failed
|
869
|
+
#
|
870
|
+
# @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Customer]
|
871
|
+
#
|
872
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
873
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
874
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
875
|
+
def import_account_customer(parent, google_cloud_channel_v1_import_customer_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
876
|
+
command = make_simple_command(:post, 'v1/{+parent}/customers:import', options)
|
877
|
+
command.request_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ImportCustomerRequest::Representation
|
878
|
+
command.request_object = google_cloud_channel_v1_import_customer_request_object
|
879
|
+
command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1Customer::Representation
|
880
|
+
command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1Customer
|
881
|
+
command.params['parent'] = parent unless parent.nil?
|
882
|
+
command.query['fields'] = fields unless fields.nil?
|
883
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
884
|
+
execute_or_queue_command(command, &block)
|
885
|
+
end
|
886
|
+
|
801
887
|
# List Customers. Possible error codes: * PERMISSION_DENIED: The reseller
|
802
888
|
# account making the request is different from the reseller account in the API
|
803
889
|
# request. * INVALID_ARGUMENT: Required request parameters are missing or
|
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.12.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: 2021-
|
11
|
+
date: 2021-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -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/master/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.12.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudchannel_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|