google-apis-cloudchannel_v1 0.9.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/cloudchannel_v1/classes.rb +63 -4
- data/lib/google/apis/cloudchannel_v1/gem_version.rb +3 -3
- data/lib/google/apis/cloudchannel_v1/representations.rb +18 -0
- data/lib/google/apis/cloudchannel_v1/service.rb +89 -1
- data/lib/google/apis/cloudchannel_v1.rb +3 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c75589c6ba40d3da1a254cfc60cb48b4a6b956d999d630c24315f3ac8a429fb8
|
4
|
+
data.tar.gz: fa6f8761d0b8cfd65b9702591e7c55804a973dfc79a7033e42a95a284d797f25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f01419d9f67bf71ec96dfb55c3cfbb891e63d30551ee29af3602199f24324a648e2ba1a378852d98d333d38c00c36b4758a94d3e8d293898893995b40a70e41f
|
7
|
+
data.tar.gz: 060f79eb59badd75e448fb196c60a53cc096a2df047eebe84d9ed5e036138166aa7a59a05239508f1da3df98219f202f86535d81207290db4c56e4d61236ee06
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-cloudchannel_v1
|
2
2
|
|
3
|
+
### v0.13.0 (2021-10-20)
|
4
|
+
|
5
|
+
* Unspecified changes
|
6
|
+
|
7
|
+
### v0.12.0 (2021-09-01)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210809
|
10
|
+
|
11
|
+
### v0.11.0 (2021-07-30)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210728
|
14
|
+
|
15
|
+
### v0.10.0 (2021-07-02)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210629
|
18
|
+
* Regenerated using generator version 0.4.0
|
19
|
+
|
3
20
|
### v0.9.0 (2021-06-24)
|
4
21
|
|
5
22
|
* Regenerated using generator version 0.3.0
|
data/OVERVIEW.md
CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Cloudchannel service in particular.)
|
67
67
|
|
@@ -511,17 +511,17 @@ module Google
|
|
511
511
|
|
512
512
|
# The customer account's contact email. Required for entitlements that create
|
513
513
|
# admin.google.com accounts, and serves as the customer's username for those
|
514
|
-
# accounts.
|
514
|
+
# accounts. Use this email to invite Team customers.
|
515
515
|
# Corresponds to the JSON property `email`
|
516
516
|
# @return [String]
|
517
517
|
attr_accessor :email
|
518
518
|
|
519
|
-
# The customer account contact's first name.
|
519
|
+
# The customer account contact's first name. Optional for Team customers.
|
520
520
|
# Corresponds to the JSON property `firstName`
|
521
521
|
# @return [String]
|
522
522
|
attr_accessor :first_name
|
523
523
|
|
524
|
-
# The customer account contact's last name.
|
524
|
+
# The customer account contact's last name. Optional for Team customers.
|
525
525
|
# Corresponds to the JSON property `lastName`
|
526
526
|
# @return [String]
|
527
527
|
attr_accessor :last_name
|
@@ -590,7 +590,8 @@ module Google
|
|
590
590
|
# Secondary contact email. You need to provide an alternate email to create
|
591
591
|
# different domains if a primary contact email already exists. Users will
|
592
592
|
# receive a notification with credentials when you create an admin.google.com
|
593
|
-
# account. Secondary emails are also recovery email addresses.
|
593
|
+
# account. Secondary emails are also recovery email addresses. Alternate emails
|
594
|
+
# are optional when you create Team customers.
|
594
595
|
# Corresponds to the JSON property `alternateEmail`
|
595
596
|
# @return [String]
|
596
597
|
attr_accessor :alternate_email
|
@@ -891,6 +892,64 @@ module Google
|
|
891
892
|
end
|
892
893
|
end
|
893
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
|
+
|
894
953
|
# Response message for CloudChannelService.ListChannelPartnerLinks.
|
895
954
|
class GoogleCloudChannelV1ListChannelPartnerLinksResponse
|
896
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.13.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
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
|
@@ -22,7 +22,9 @@ module Google
|
|
22
22
|
module CloudchannelV1
|
23
23
|
# Cloud Channel API
|
24
24
|
#
|
25
|
-
#
|
25
|
+
# The Cloud Channel API enables Google Cloud partners to have a single unified
|
26
|
+
# resale platform and APIs across all of Google Cloud including GCP, Workspace,
|
27
|
+
# Maps and Chrome.
|
26
28
|
#
|
27
29
|
# @example
|
28
30
|
# require 'google/apis/cloudchannel_v1'
|
@@ -600,6 +602,49 @@ module Google
|
|
600
602
|
execute_or_queue_command(command, &block)
|
601
603
|
end
|
602
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
|
+
|
603
648
|
# List Customers. Possible error codes: * PERMISSION_DENIED: The reseller
|
604
649
|
# account making the request is different from the reseller account in the API
|
605
650
|
# request. * INVALID_ARGUMENT: Required request parameters are missing or
|
@@ -796,6 +841,49 @@ module Google
|
|
796
841
|
execute_or_queue_command(command, &block)
|
797
842
|
end
|
798
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
|
+
|
799
887
|
# List Customers. Possible error codes: * PERMISSION_DENIED: The reseller
|
800
888
|
# account making the request is different from the reseller account in the API
|
801
889
|
# request. * INVALID_ARGUMENT: Required request parameters are missing or
|
@@ -21,7 +21,9 @@ module Google
|
|
21
21
|
module Apis
|
22
22
|
# Cloud Channel API
|
23
23
|
#
|
24
|
-
#
|
24
|
+
# The Cloud Channel API enables Google Cloud partners to have a single unified
|
25
|
+
# resale platform and APIs across all of Google Cloud including GCP, Workspace,
|
26
|
+
# Maps and Chrome.
|
25
27
|
#
|
26
28
|
# @see https://cloud.google.com/channel
|
27
29
|
module CloudchannelV1
|
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.13.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-10-27 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.4'
|
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.4'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudchannel_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
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.13.0
|
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: []
|
65
65
|
require_paths:
|