google-apis-cloudchannel_v1 0.8.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 76728a87d837345c6cb3cb10df76c0a119db50c9960dbaf390bb85bf72cbadb0
4
- data.tar.gz: ba273a2cbef34cd9cb4dc1fd94ba394deeee91270df67e7f1e2ebc711dbc236b
3
+ metadata.gz: '0894942a280bf4343dd9c873df452ecb7be816830432f115071aeea35a36bd97'
4
+ data.tar.gz: 95d9aea11b4e57f46c907bdc6406a8edc2c4b5350864322547b18f5ff5edb459
5
5
  SHA512:
6
- metadata.gz: 96537fdef5d30fcbfcbadb37541d88539fb531294d09bd3f2e7aca565f13c36a8ad74f18ffede0c86155698ed34363eec8112911f9f22b2493e53282930f5fce
7
- data.tar.gz: 14a5f0f2b2515af2feda7e07609b9939fd5bde7b1df67e89035954a1cc13795a56fc5253bccb032245e2be915dff781c4526a72a90bc5b3eb50233056fb73f9d
6
+ metadata.gz: bd70b63f532c1dce466c5473bd1eb5d0fc5a220681b9ae5e6091e26ab9a4a9ceb87d7680efd372057bb1b83e0c62290eabee1237555190fe495cdc99a17f6771
7
+ data.tar.gz: 5e173793d72ffe0c0511770835b41e2c7471a0dfe7f719a82a391567bf05ac22e21d805943dc3d4624cce371884b6aa2809f5ce23a92d7690634d8857472ad98
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-cloudchannel_v1
2
2
 
3
+ ### v0.12.0 (2021-09-01)
4
+
5
+ * Regenerated from discovery document revision 20210809
6
+
7
+ ### v0.11.0 (2021-07-30)
8
+
9
+ * Regenerated from discovery document revision 20210728
10
+
11
+ ### v0.10.0 (2021-07-02)
12
+
13
+ * Regenerated from discovery document revision 20210629
14
+ * Regenerated using generator version 0.4.0
15
+
16
+ ### v0.9.0 (2021-06-24)
17
+
18
+ * Regenerated using generator version 0.3.0
19
+
3
20
  ### v0.8.0 (2021-05-19)
4
21
 
5
22
  * Unspecified changes
@@ -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.8.0"
19
+ GEM_VERSION = "0.12.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210506"
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,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudchannel_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.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-05-24 00:00:00.000000000 Z
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
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Cloud Channel API V1. Simple REST
28
34
  clients are Ruby client libraries that provide access to Google services via their
29
35
  HTTP REST API endpoints. These libraries are generated and updated automatically
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudchannel_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudchannel_v1/v0.8.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudchannel_v1/v0.12.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudchannel_v1
57
63
  post_install_message:
58
64
  rdoc_options: []