google-apis-cloudchannel_v1 0.11.0 → 0.15.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: 97a0556221bcf8249959f51b85f707591e05f3c22b9ef0a0fd82fc976a64c07e
4
- data.tar.gz: 9707f143d9cfb9c3e79fc2dcb420f68f8dca4c2299808c231c2ceb7506cd675c
3
+ metadata.gz: 2d8bf112e65f0b380451f4a4b78ac56c5817434df562f43a710b596390cad0ee
4
+ data.tar.gz: f9f0a93309420a036267a45d52674721105a1d7c6b3676c546c1c3b3f77b8a10
5
5
  SHA512:
6
- metadata.gz: 3fe88396bc08ff6db9818e6d47488f993dfec467b024bbbc78d3fee7fee7aa08887ccfc88e7650c2e8a55975295a23f6fa597718c93964a4fbfd19043e7abfac
7
- data.tar.gz: 1b2d4d78320020214bd8b544e72722879e4db813f55b9bc99b52cfecdff9c4e2eb9f3ec436b75799e58f9bcedde7ef152aa26cef5f620941d0b92b121d5f4678
6
+ metadata.gz: be81f4ec832d44fe8f04fff62a397cc51d625abcad0943c492c22663cd33d8dde74d5da9b57318a45b7d5618402a208986e272175229340d8d49c7484c5d3ed0
7
+ data.tar.gz: c42969fd0d144ab547eb984670d14f1f92a2d24b59f1f5d63dcc656e76b206c8abb0c8f69b1495b798b4fb2fc125be636941287b2fbc94fe092d7c98c33c8e28
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-cloudchannel_v1
2
2
 
3
+ ### v0.15.0 (2021-12-14)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.14.0 (2021-11-05)
8
+
9
+ * Regenerated from discovery document revision 20211104
10
+
11
+ ### v0.13.0 (2021-10-20)
12
+
13
+ * Unspecified changes
14
+
15
+ ### v0.12.0 (2021-09-01)
16
+
17
+ * Regenerated from discovery document revision 20210809
18
+
3
19
  ### v0.11.0 (2021-07-30)
4
20
 
5
21
  * Regenerated from discovery document revision 20210728
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/cloudchannel_v1"
51
51
  client = Google::Apis::CloudchannelV1::CloudchannelService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -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/master/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/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
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
- # parameters' names and values are defined in the offer's parameter definitions.
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
- # parameters' names and values are defined in the offer's parameter definitions.
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.11.0"
19
+ GEM_VERSION = "0.15.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 = "20210728"
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
@@ -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.11.0
4
+ version: 0.15.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-08-02 00:00:00.000000000 Z
11
+ date: 2022-01-10 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/master/generated/google-apis-cloudchannel_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudchannel_v1/v0.11.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudchannel_v1
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.15.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:
@@ -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.2.17
78
+ rubygems_version: 3.3.4
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Channel API V1