google-apis-cloudchannel_v1 0.10.0 → 0.14.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 +16 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/cloudchannel_v1/classes.rb +72 -6
- data/lib/google/apis/cloudchannel_v1/gem_version.rb +2 -2
- 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 +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b85d46ffffd8832c797529df9fb7dbdddfbc44eae59b478a36b61a828cbe9d0a
|
4
|
+
data.tar.gz: cfb12f91f07e860ce3e438f2022ddd1001498633facb943ebb15dc72266c2e1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42be21a27622c768e4a592c0baf8aca4935ee709a50840d8887fe6d20e6f55f9b81dca6f10730e6a61147a4f02f822a597ce35196aef50e9b75e8f7050f9520d
|
7
|
+
data.tar.gz: d4bf8e3b0d35633b1cf67a5535a9a0f8c89c878569e921535e155a6f36eeee12669f678076df35504d396d104e3d3cec4ec533407a52fe65ea7a4be49c7bf422
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-cloudchannel_v1
|
2
2
|
|
3
|
+
### v0.14.0 (2021-11-05)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211104
|
6
|
+
|
7
|
+
### v0.13.0 (2021-10-20)
|
8
|
+
|
9
|
+
* Unspecified changes
|
10
|
+
|
11
|
+
### v0.12.0 (2021-09-01)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210809
|
14
|
+
|
15
|
+
### v0.11.0 (2021-07-30)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210728
|
18
|
+
|
3
19
|
### v0.10.0 (2021-07-02)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210629
|
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
|
|
@@ -133,7 +133,8 @@ module Google
|
|
133
133
|
# @return [String]
|
134
134
|
attr_accessor :offer
|
135
135
|
|
136
|
-
# Optional. Parameters needed to purchase the Offer.
|
136
|
+
# Optional. Parameters needed to purchase the Offer. To view the available
|
137
|
+
# Parameters refer to the Offer.parameter_definitions from the desired offer.
|
137
138
|
# Corresponds to the JSON property `parameters`
|
138
139
|
# @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Parameter>]
|
139
140
|
attr_accessor :parameters
|
@@ -173,7 +174,8 @@ module Google
|
|
173
174
|
include Google::Apis::Core::Hashable
|
174
175
|
|
175
176
|
# Required. Entitlement parameters to update. You can only change editable
|
176
|
-
# parameters.
|
177
|
+
# parameters. To view the available Parameters for a request, refer to the Offer.
|
178
|
+
# parameter_definitions from the desired offer.
|
177
179
|
# Corresponds to the JSON property `parameters`
|
178
180
|
# @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Parameter>]
|
179
181
|
attr_accessor :parameters
|
@@ -806,8 +808,11 @@ module Google
|
|
806
808
|
# @return [String]
|
807
809
|
attr_accessor :offer
|
808
810
|
|
809
|
-
# Extended entitlement parameters. When creating an entitlement, valid
|
810
|
-
#
|
811
|
+
# Extended entitlement parameters. When creating an entitlement, valid parameter
|
812
|
+
# names and values are defined in the Offer.parameter_definitions. The response
|
813
|
+
# may include the following output-only Parameters: - assigned_units: The number
|
814
|
+
# of licenses assigned to users. - max_units: The maximum assignable units for a
|
815
|
+
# flexible offer. - num_units: The total commitment for commitment-based offers.
|
811
816
|
# Corresponds to the JSON property `parameters`
|
812
817
|
# @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Parameter>]
|
813
818
|
attr_accessor :parameters
|
@@ -892,6 +897,64 @@ module Google
|
|
892
897
|
end
|
893
898
|
end
|
894
899
|
|
900
|
+
# Request message for CloudChannelService.ImportCustomer
|
901
|
+
class GoogleCloudChannelV1ImportCustomerRequest
|
902
|
+
include Google::Apis::Core::Hashable
|
903
|
+
|
904
|
+
# Optional. The super admin of the resold customer generates this token to
|
905
|
+
# authorize a reseller to access their Cloud Identity and purchase entitlements
|
906
|
+
# on their behalf. You can omit this token after authorization. See https://
|
907
|
+
# support.google.com/a/answer/7643790 for more details.
|
908
|
+
# Corresponds to the JSON property `authToken`
|
909
|
+
# @return [String]
|
910
|
+
attr_accessor :auth_token
|
911
|
+
|
912
|
+
# Optional. Cloud Identity ID of a channel partner who will be the direct
|
913
|
+
# reseller for the customer's order. This field is required for 2-tier transfer
|
914
|
+
# scenarios and can be provided via the request Parent binding as well.
|
915
|
+
# Corresponds to the JSON property `channelPartnerId`
|
916
|
+
# @return [String]
|
917
|
+
attr_accessor :channel_partner_id
|
918
|
+
|
919
|
+
# Required. Customer's Cloud Identity ID
|
920
|
+
# Corresponds to the JSON property `cloudIdentityId`
|
921
|
+
# @return [String]
|
922
|
+
attr_accessor :cloud_identity_id
|
923
|
+
|
924
|
+
# Optional. Specifies the customer that will receive imported Cloud Identity
|
925
|
+
# information. Format: accounts/`account_id`/customers/`customer_id`
|
926
|
+
# Corresponds to the JSON property `customer`
|
927
|
+
# @return [String]
|
928
|
+
attr_accessor :customer
|
929
|
+
|
930
|
+
# Required. Customer domain.
|
931
|
+
# Corresponds to the JSON property `domain`
|
932
|
+
# @return [String]
|
933
|
+
attr_accessor :domain
|
934
|
+
|
935
|
+
# Required. Choose to overwrite an existing customer if found. This must be set
|
936
|
+
# to true if there is an existing customer with a conflicting region code or
|
937
|
+
# domain.
|
938
|
+
# Corresponds to the JSON property `overwriteIfExists`
|
939
|
+
# @return [Boolean]
|
940
|
+
attr_accessor :overwrite_if_exists
|
941
|
+
alias_method :overwrite_if_exists?, :overwrite_if_exists
|
942
|
+
|
943
|
+
def initialize(**args)
|
944
|
+
update!(**args)
|
945
|
+
end
|
946
|
+
|
947
|
+
# Update properties of this object
|
948
|
+
def update!(**args)
|
949
|
+
@auth_token = args[:auth_token] if args.key?(:auth_token)
|
950
|
+
@channel_partner_id = args[:channel_partner_id] if args.key?(:channel_partner_id)
|
951
|
+
@cloud_identity_id = args[:cloud_identity_id] if args.key?(:cloud_identity_id)
|
952
|
+
@customer = args[:customer] if args.key?(:customer)
|
953
|
+
@domain = args[:domain] if args.key?(:domain)
|
954
|
+
@overwrite_if_exists = args[:overwrite_if_exists] if args.key?(:overwrite_if_exists)
|
955
|
+
end
|
956
|
+
end
|
957
|
+
|
895
958
|
# Response message for CloudChannelService.ListChannelPartnerLinks.
|
896
959
|
class GoogleCloudChannelV1ListChannelPartnerLinksResponse
|
897
960
|
include Google::Apis::Core::Hashable
|
@@ -2539,8 +2602,11 @@ module Google
|
|
2539
2602
|
# @return [String]
|
2540
2603
|
attr_accessor :offer
|
2541
2604
|
|
2542
|
-
# Extended entitlement parameters. When creating an entitlement, valid
|
2543
|
-
#
|
2605
|
+
# Extended entitlement parameters. When creating an entitlement, valid parameter
|
2606
|
+
# names and values are defined in the Offer.parameter_definitions. The response
|
2607
|
+
# may include the following output-only Parameters: - assigned_units: The number
|
2608
|
+
# of licenses assigned to users. - max_units: The maximum assignable units for a
|
2609
|
+
# flexible offer. - num_units: The total commitment for commitment-based offers.
|
2544
2610
|
# Corresponds to the JSON property `parameters`
|
2545
2611
|
# @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Parameter>]
|
2546
2612
|
attr_accessor :parameters
|
@@ -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.14.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 = "20211104"
|
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.14.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-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -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.14.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:
|