google-apis-cloudchannel_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6cf300e60c3475417e8e0e690454dfa46b3a7c1ed1c06152e7286d9b8ebd3892
4
+ data.tar.gz: c91aca31727e0d969963862b808f9f1e83b47332f0baf69f05a7f9030395fbd7
5
+ SHA512:
6
+ metadata.gz: ee71fd5151f6991b656af9893dd0ae42b9cb61b2f107b20cb7d43c04a58a1c9dcfdbf4cfac664dbf6a0be28ccc6bcfa2fa8fd85d788f1ef716e327ae24e07b17
7
+ data.tar.gz: d42f563624655e3675a4b97a95fb33d0128c87f87ab599f50e686103b3ba58c64f760d85bcd6e313912eaaf46ce3ace56aac8c82502fe5ee433581a07a658c37
data/.yardopts ADDED
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-cloudchannel_v1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/cloudchannel_v1/*.rb
9
+ lib/google/apis/cloudchannel_v1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
data/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-cloudchannel_v1
2
+
3
+ ### v0.1.0 (2021-02-17)
4
+
5
+ * Regenerated from discovery document revision 20210211
6
+ * Regenerated using generator version 0.1.2
7
+
data/LICENSE.md ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/OVERVIEW.md ADDED
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V1 of the Cloud Channel API
2
+
3
+ This is a simple client library for version V1 of the Cloud Channel API. It provides:
4
+
5
+ * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
+ * Ruby objects for data structures related to the service.
7
+ * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
8
+ * Control of retry, pagination, and timeouts.
9
+
10
+ Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
11
+
12
+ ## Getting started
13
+
14
+ ### Before you begin
15
+
16
+ There are a few setup steps you need to complete before you can use this library:
17
+
18
+ 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
19
+ 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
20
+ 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/cloudchannel.googleapis.com) in the console.
21
+
22
+ ### Installation
23
+
24
+ Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ gem 'google-apis-cloudchannel_v1', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-cloudchannel_v1
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/cloudchannel_v1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::CloudchannelV1::CloudchannelService.new
52
+
53
+ # Authenticate calls
54
+ client.authentication = # ... use the googleauth gem to create credentials
55
+ ```
56
+
57
+ See the class reference docs for information on the methods you can call from a client.
58
+
59
+ ## Documentation
60
+
61
+ More detailed descriptions of the Google simple REST clients are available in two documents.
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.
65
+
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
+
68
+ For reference information on specific calls in the Cloud Channel API, see the {Google::Apis::CloudchannelV1::CloudchannelService class reference docs}.
69
+
70
+ ## Which client should I use?
71
+
72
+ Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
73
+
74
+ This library, `google-apis-cloudchannel_v1`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://cloud.google.com/channel) may provide guidance regarding the preferred client library to use.
83
+
84
+ ## Supported Ruby versions
85
+
86
+ This library is supported on Ruby 2.5+.
87
+
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
+
90
+ ## License
91
+
92
+ This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
93
+
94
+ ## Support
95
+
96
+ Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require "google/apis/cloudchannel_v1"
@@ -0,0 +1,36 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/cloudchannel_v1/service.rb'
16
+ require 'google/apis/cloudchannel_v1/classes.rb'
17
+ require 'google/apis/cloudchannel_v1/representations.rb'
18
+ require 'google/apis/cloudchannel_v1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Cloud Channel API
23
+ #
24
+ #
25
+ #
26
+ # @see https://cloud.google.com/channel
27
+ module CloudchannelV1
28
+ # Version of the Cloud Channel API this client connects to.
29
+ # This is NOT the gem version.
30
+ VERSION = 'V1'
31
+
32
+ # Manage users on your domain
33
+ AUTH_APPS_ORDER = 'https://www.googleapis.com/auth/apps.order'
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,3223 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module CloudchannelV1
24
+
25
+ # Request message for CloudChannelService.ActivateEntitlement.
26
+ class GoogleCloudChannelV1ActivateEntitlementRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Optional. An optional request ID to identify requests. Specify a unique
30
+ # request ID so that if you must retry your request, the server will know to
31
+ # ignore the request if it has already been completed. For example, consider a
32
+ # situation where you make an initial request and the request times out. If you
33
+ # make the request again with the same request ID, the server can check if the
34
+ # original operation with the same request ID was received, and if so, will
35
+ # ignore the second request. The request ID must be a valid [UUID](https://tools.
36
+ # ietf.org/html/rfc4122) with the exception that zero UUID is not supported (`
37
+ # 00000000-0000-0000-0000-000000000000`).
38
+ # Corresponds to the JSON property `requestId`
39
+ # @return [String]
40
+ attr_accessor :request_id
41
+
42
+ def initialize(**args)
43
+ update!(**args)
44
+ end
45
+
46
+ # Update properties of this object
47
+ def update!(**args)
48
+ @request_id = args[:request_id] if args.key?(:request_id)
49
+ end
50
+ end
51
+
52
+ # Information needed to create an Admin User for Google Workspace.
53
+ class GoogleCloudChannelV1AdminUser
54
+ include Google::Apis::Core::Hashable
55
+
56
+ # Primary email of the admin user.
57
+ # Corresponds to the JSON property `email`
58
+ # @return [String]
59
+ attr_accessor :email
60
+
61
+ # Family name of the admin user.
62
+ # Corresponds to the JSON property `familyName`
63
+ # @return [String]
64
+ attr_accessor :family_name
65
+
66
+ # Given name of the admin user.
67
+ # Corresponds to the JSON property `givenName`
68
+ # @return [String]
69
+ attr_accessor :given_name
70
+
71
+ def initialize(**args)
72
+ update!(**args)
73
+ end
74
+
75
+ # Update properties of this object
76
+ def update!(**args)
77
+ @email = args[:email] if args.key?(:email)
78
+ @family_name = args[:family_name] if args.key?(:family_name)
79
+ @given_name = args[:given_name] if args.key?(:given_name)
80
+ end
81
+ end
82
+
83
+ # Association links that an entitlement has to other entitlements.
84
+ class GoogleCloudChannelV1AssociationInfo
85
+ include Google::Apis::Core::Hashable
86
+
87
+ # The name of the base entitlement, for which this entitlement is an add-on.
88
+ # Corresponds to the JSON property `baseEntitlement`
89
+ # @return [String]
90
+ attr_accessor :base_entitlement
91
+
92
+ def initialize(**args)
93
+ update!(**args)
94
+ end
95
+
96
+ # Update properties of this object
97
+ def update!(**args)
98
+ @base_entitlement = args[:base_entitlement] if args.key?(:base_entitlement)
99
+ end
100
+ end
101
+
102
+ # Request message for CloudChannelService.CancelEntitlement.
103
+ class GoogleCloudChannelV1CancelEntitlementRequest
104
+ include Google::Apis::Core::Hashable
105
+
106
+ # Optional. An optional request ID to identify requests. Specify a unique
107
+ # request ID so that if you must retry your request, the server will know to
108
+ # ignore the request if it has already been completed. For example, consider a
109
+ # situation where you make an initial request and the request times out. If you
110
+ # make the request again with the same request ID, the server can check if the
111
+ # original operation with the same request ID was received, and if so, will
112
+ # ignore the second request. The request ID must be a valid [UUID](https://tools.
113
+ # ietf.org/html/rfc4122) with the exception that zero UUID is not supported (`
114
+ # 00000000-0000-0000-0000-000000000000`).
115
+ # Corresponds to the JSON property `requestId`
116
+ # @return [String]
117
+ attr_accessor :request_id
118
+
119
+ def initialize(**args)
120
+ update!(**args)
121
+ end
122
+
123
+ # Update properties of this object
124
+ def update!(**args)
125
+ @request_id = args[:request_id] if args.key?(:request_id)
126
+ end
127
+ end
128
+
129
+ # Request message for CloudChannelService.ChangeOffer.
130
+ class GoogleCloudChannelV1ChangeOfferRequest
131
+ include Google::Apis::Core::Hashable
132
+
133
+ # Required. New Offer. Format: accounts/`account_id`/offers/`offer_id`.
134
+ # Corresponds to the JSON property `offer`
135
+ # @return [String]
136
+ attr_accessor :offer
137
+
138
+ # Optional. Parameters needed to purchase the Offer.
139
+ # Corresponds to the JSON property `parameters`
140
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Parameter>]
141
+ attr_accessor :parameters
142
+
143
+ # Optional. Purchase order id provided by the reseller.
144
+ # Corresponds to the JSON property `purchaseOrderId`
145
+ # @return [String]
146
+ attr_accessor :purchase_order_id
147
+
148
+ # Optional. An optional request ID to identify requests. Specify a unique
149
+ # request ID so that if you must retry your request, the server will know to
150
+ # ignore the request if it has already been completed. For example, consider a
151
+ # situation where you make an initial request and the request times out. If you
152
+ # make the request again with the same request ID, the server can check if the
153
+ # original operation with the same request ID was received, and if so, will
154
+ # ignore the second request. The request ID must be a valid [UUID](https://tools.
155
+ # ietf.org/html/rfc4122) with the exception that zero UUID is not supported (`
156
+ # 00000000-0000-0000-0000-000000000000`).
157
+ # Corresponds to the JSON property `requestId`
158
+ # @return [String]
159
+ attr_accessor :request_id
160
+
161
+ def initialize(**args)
162
+ update!(**args)
163
+ end
164
+
165
+ # Update properties of this object
166
+ def update!(**args)
167
+ @offer = args[:offer] if args.key?(:offer)
168
+ @parameters = args[:parameters] if args.key?(:parameters)
169
+ @purchase_order_id = args[:purchase_order_id] if args.key?(:purchase_order_id)
170
+ @request_id = args[:request_id] if args.key?(:request_id)
171
+ end
172
+ end
173
+
174
+ # Request message for CloudChannelService.ChangeParametersRequest.
175
+ class GoogleCloudChannelV1ChangeParametersRequest
176
+ include Google::Apis::Core::Hashable
177
+
178
+ # Required. Entitlement parameters to update. Only editable parameters are
179
+ # allowed to be changed.
180
+ # Corresponds to the JSON property `parameters`
181
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Parameter>]
182
+ attr_accessor :parameters
183
+
184
+ # Optional. Purchase order ID provided by the reseller.
185
+ # Corresponds to the JSON property `purchaseOrderId`
186
+ # @return [String]
187
+ attr_accessor :purchase_order_id
188
+
189
+ # Optional. An optional request ID to identify requests. Specify a unique
190
+ # request ID so that if you must retry your request, the server will know to
191
+ # ignore the request if it has already been completed. For example, consider a
192
+ # situation where you make an initial request and the request times out. If you
193
+ # make the request again with the same request ID, the server can check if the
194
+ # original operation with the same request ID was received, and if so, will
195
+ # ignore the second request. The request ID must be a valid [UUID](https://tools.
196
+ # ietf.org/html/rfc4122) with the exception that zero UUID is not supported (`
197
+ # 00000000-0000-0000-0000-000000000000`).
198
+ # Corresponds to the JSON property `requestId`
199
+ # @return [String]
200
+ attr_accessor :request_id
201
+
202
+ def initialize(**args)
203
+ update!(**args)
204
+ end
205
+
206
+ # Update properties of this object
207
+ def update!(**args)
208
+ @parameters = args[:parameters] if args.key?(:parameters)
209
+ @purchase_order_id = args[:purchase_order_id] if args.key?(:purchase_order_id)
210
+ @request_id = args[:request_id] if args.key?(:request_id)
211
+ end
212
+ end
213
+
214
+ # Request message for CloudChannelService.ChangeRenewalSettings.
215
+ class GoogleCloudChannelV1ChangeRenewalSettingsRequest
216
+ include Google::Apis::Core::Hashable
217
+
218
+ # Renewal settings for renewable Offers.
219
+ # Corresponds to the JSON property `renewalSettings`
220
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1RenewalSettings]
221
+ attr_accessor :renewal_settings
222
+
223
+ # Optional. A request ID to identify requests. Specify a unique request ID so
224
+ # that if you must retry your request, the server will know to ignore the
225
+ # request if it has already been completed. For example, consider a situation
226
+ # where you make an initial request and the request times out. If you make the
227
+ # request again with the same request ID, the server can check if the original
228
+ # operation with the same request ID was received, and if so, will ignore the
229
+ # second request. The request ID must be a valid [UUID](https://tools.ietf.org/
230
+ # html/rfc4122) with the exception that zero UUID is not supported (`00000000-
231
+ # 0000-0000-0000-000000000000`).
232
+ # Corresponds to the JSON property `requestId`
233
+ # @return [String]
234
+ attr_accessor :request_id
235
+
236
+ def initialize(**args)
237
+ update!(**args)
238
+ end
239
+
240
+ # Update properties of this object
241
+ def update!(**args)
242
+ @renewal_settings = args[:renewal_settings] if args.key?(:renewal_settings)
243
+ @request_id = args[:request_id] if args.key?(:request_id)
244
+ end
245
+ end
246
+
247
+ # Entity representing a link between distributors and their indirect resellers
248
+ # in an n-tier resale channel.
249
+ class GoogleCloudChannelV1ChannelPartnerLink
250
+ include Google::Apis::Core::Hashable
251
+
252
+ # Cloud Identity information for the Cloud Channel Customer.
253
+ # Corresponds to the JSON property `channelPartnerCloudIdentityInfo`
254
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CloudIdentityInfo]
255
+ attr_accessor :channel_partner_cloud_identity_info
256
+
257
+ # Output only. Timestamp of when the channel partner link is created.
258
+ # Corresponds to the JSON property `createTime`
259
+ # @return [String]
260
+ attr_accessor :create_time
261
+
262
+ # Output only. URI of the web page where partner accepts the link invitation.
263
+ # Corresponds to the JSON property `inviteLinkUri`
264
+ # @return [String]
265
+ attr_accessor :invite_link_uri
266
+
267
+ # Required. State of the channel partner link.
268
+ # Corresponds to the JSON property `linkState`
269
+ # @return [String]
270
+ attr_accessor :link_state
271
+
272
+ # Output only. Resource name for the channel partner link, in the format
273
+ # accounts/`account_id`/channelPartnerLinks/`id`.
274
+ # Corresponds to the JSON property `name`
275
+ # @return [String]
276
+ attr_accessor :name
277
+
278
+ # Output only. Public identifier that a customer must use to generate a transfer
279
+ # token to move to this distributor-reseller combination.
280
+ # Corresponds to the JSON property `publicId`
281
+ # @return [String]
282
+ attr_accessor :public_id
283
+
284
+ # Required. Cloud Identity ID of the linked reseller.
285
+ # Corresponds to the JSON property `resellerCloudIdentityId`
286
+ # @return [String]
287
+ attr_accessor :reseller_cloud_identity_id
288
+
289
+ # Output only. Timestamp of when the channel partner link is updated.
290
+ # Corresponds to the JSON property `updateTime`
291
+ # @return [String]
292
+ attr_accessor :update_time
293
+
294
+ def initialize(**args)
295
+ update!(**args)
296
+ end
297
+
298
+ # Update properties of this object
299
+ def update!(**args)
300
+ @channel_partner_cloud_identity_info = args[:channel_partner_cloud_identity_info] if args.key?(:channel_partner_cloud_identity_info)
301
+ @create_time = args[:create_time] if args.key?(:create_time)
302
+ @invite_link_uri = args[:invite_link_uri] if args.key?(:invite_link_uri)
303
+ @link_state = args[:link_state] if args.key?(:link_state)
304
+ @name = args[:name] if args.key?(:name)
305
+ @public_id = args[:public_id] if args.key?(:public_id)
306
+ @reseller_cloud_identity_id = args[:reseller_cloud_identity_id] if args.key?(:reseller_cloud_identity_id)
307
+ @update_time = args[:update_time] if args.key?(:update_time)
308
+ end
309
+ end
310
+
311
+ # Request message for CloudChannelService.CheckCloudIdentityAccountsExist.
312
+ class GoogleCloudChannelV1CheckCloudIdentityAccountsExistRequest
313
+ include Google::Apis::Core::Hashable
314
+
315
+ # Required. Domain for which the Cloud Identity account customer is fetched.
316
+ # Corresponds to the JSON property `domain`
317
+ # @return [String]
318
+ attr_accessor :domain
319
+
320
+ def initialize(**args)
321
+ update!(**args)
322
+ end
323
+
324
+ # Update properties of this object
325
+ def update!(**args)
326
+ @domain = args[:domain] if args.key?(:domain)
327
+ end
328
+ end
329
+
330
+ # Response message for CloudChannelService.CheckCloudIdentityAccountsExist.
331
+ class GoogleCloudChannelV1CheckCloudIdentityAccountsExistResponse
332
+ include Google::Apis::Core::Hashable
333
+
334
+ # The Cloud Identity accounts associated with the domain.
335
+ # Corresponds to the JSON property `cloudIdentityAccounts`
336
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1CloudIdentityCustomerAccount>]
337
+ attr_accessor :cloud_identity_accounts
338
+
339
+ def initialize(**args)
340
+ update!(**args)
341
+ end
342
+
343
+ # Update properties of this object
344
+ def update!(**args)
345
+ @cloud_identity_accounts = args[:cloud_identity_accounts] if args.key?(:cloud_identity_accounts)
346
+ end
347
+ end
348
+
349
+ # Entity representing a Cloud Identity account which may or may not be
350
+ # associated with a Channel Services API partner.
351
+ class GoogleCloudChannelV1CloudIdentityCustomerAccount
352
+ include Google::Apis::Core::Hashable
353
+
354
+ # Cloud Identity ID of the customer. This field is populated ONLY if existing =
355
+ # true.
356
+ # Corresponds to the JSON property `customerCloudIdentityId`
357
+ # @return [String]
358
+ attr_accessor :customer_cloud_identity_id
359
+
360
+ # Name of the customer that owns the Cloud Identity account. This field is
361
+ # populated ONLY if owned = true. The customer_name takes the format: accounts/`
362
+ # account_id`/customers/`customer_id`
363
+ # Corresponds to the JSON property `customerName`
364
+ # @return [String]
365
+ attr_accessor :customer_name
366
+
367
+ # True if a Cloud Identity account exists for a specific domain.
368
+ # Corresponds to the JSON property `existing`
369
+ # @return [Boolean]
370
+ attr_accessor :existing
371
+ alias_method :existing?, :existing
372
+
373
+ # True if the Cloud Identity account is associated with a customer belonging to
374
+ # the Channel Services partner making the API call.
375
+ # Corresponds to the JSON property `owned`
376
+ # @return [Boolean]
377
+ attr_accessor :owned
378
+ alias_method :owned?, :owned
379
+
380
+ def initialize(**args)
381
+ update!(**args)
382
+ end
383
+
384
+ # Update properties of this object
385
+ def update!(**args)
386
+ @customer_cloud_identity_id = args[:customer_cloud_identity_id] if args.key?(:customer_cloud_identity_id)
387
+ @customer_name = args[:customer_name] if args.key?(:customer_name)
388
+ @existing = args[:existing] if args.key?(:existing)
389
+ @owned = args[:owned] if args.key?(:owned)
390
+ end
391
+ end
392
+
393
+ # Cloud Identity information for the Cloud Channel Customer.
394
+ class GoogleCloudChannelV1CloudIdentityInfo
395
+ include Google::Apis::Core::Hashable
396
+
397
+ # Output only. URI of Customer's Admin console dashboard.
398
+ # Corresponds to the JSON property `adminConsoleUri`
399
+ # @return [String]
400
+ attr_accessor :admin_console_uri
401
+
402
+ # The alternate email.
403
+ # Corresponds to the JSON property `alternateEmail`
404
+ # @return [String]
405
+ attr_accessor :alternate_email
406
+
407
+ # CustomerType indicates verification type needed for using services.
408
+ # Corresponds to the JSON property `customerType`
409
+ # @return [String]
410
+ attr_accessor :customer_type
411
+
412
+ # Required Edu Attributes
413
+ # Corresponds to the JSON property `eduData`
414
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1EduData]
415
+ attr_accessor :edu_data
416
+
417
+ # Whether the domain is verified.
418
+ # Corresponds to the JSON property `isDomainVerified`
419
+ # @return [Boolean]
420
+ attr_accessor :is_domain_verified
421
+ alias_method :is_domain_verified?, :is_domain_verified
422
+
423
+ # Language code.
424
+ # Corresponds to the JSON property `languageCode`
425
+ # @return [String]
426
+ attr_accessor :language_code
427
+
428
+ # Phone number associated with the Cloud Identity.
429
+ # Corresponds to the JSON property `phoneNumber`
430
+ # @return [String]
431
+ attr_accessor :phone_number
432
+
433
+ # Output only. The primary domain name.
434
+ # Corresponds to the JSON property `primaryDomain`
435
+ # @return [String]
436
+ attr_accessor :primary_domain
437
+
438
+ def initialize(**args)
439
+ update!(**args)
440
+ end
441
+
442
+ # Update properties of this object
443
+ def update!(**args)
444
+ @admin_console_uri = args[:admin_console_uri] if args.key?(:admin_console_uri)
445
+ @alternate_email = args[:alternate_email] if args.key?(:alternate_email)
446
+ @customer_type = args[:customer_type] if args.key?(:customer_type)
447
+ @edu_data = args[:edu_data] if args.key?(:edu_data)
448
+ @is_domain_verified = args[:is_domain_verified] if args.key?(:is_domain_verified)
449
+ @language_code = args[:language_code] if args.key?(:language_code)
450
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
451
+ @primary_domain = args[:primary_domain] if args.key?(:primary_domain)
452
+ end
453
+ end
454
+
455
+ # Commitment settings for commitment-based offers.
456
+ class GoogleCloudChannelV1CommitmentSettings
457
+ include Google::Apis::Core::Hashable
458
+
459
+ # Output only. Commitment end timestamp.
460
+ # Corresponds to the JSON property `endTime`
461
+ # @return [String]
462
+ attr_accessor :end_time
463
+
464
+ # Renewal settings for renewable Offers.
465
+ # Corresponds to the JSON property `renewalSettings`
466
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1RenewalSettings]
467
+ attr_accessor :renewal_settings
468
+
469
+ # Output only. Commitment start timestamp.
470
+ # Corresponds to the JSON property `startTime`
471
+ # @return [String]
472
+ attr_accessor :start_time
473
+
474
+ def initialize(**args)
475
+ update!(**args)
476
+ end
477
+
478
+ # Update properties of this object
479
+ def update!(**args)
480
+ @end_time = args[:end_time] if args.key?(:end_time)
481
+ @renewal_settings = args[:renewal_settings] if args.key?(:renewal_settings)
482
+ @start_time = args[:start_time] if args.key?(:start_time)
483
+ end
484
+ end
485
+
486
+ # Represents the constraints for buying the Offer.
487
+ class GoogleCloudChannelV1Constraints
488
+ include Google::Apis::Core::Hashable
489
+
490
+ # Represents constraints required to purchase the Offer for a customer.
491
+ # Corresponds to the JSON property `customerConstraints`
492
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerConstraints]
493
+ attr_accessor :customer_constraints
494
+
495
+ def initialize(**args)
496
+ update!(**args)
497
+ end
498
+
499
+ # Update properties of this object
500
+ def update!(**args)
501
+ @customer_constraints = args[:customer_constraints] if args.key?(:customer_constraints)
502
+ end
503
+ end
504
+
505
+ # Contact information for a customer account.
506
+ class GoogleCloudChannelV1ContactInfo
507
+ include Google::Apis::Core::Hashable
508
+
509
+ # Output only. Display name of the contact in the customer account. Populated by
510
+ # combining customer first name and last name.
511
+ # Corresponds to the JSON property `displayName`
512
+ # @return [String]
513
+ attr_accessor :display_name
514
+
515
+ # Email of the contact in the customer account. Email is required for
516
+ # entitlements that need creation of admin.google.com accounts. The email will
517
+ # be the username used in credentials to access the admin.google.com account.
518
+ # Corresponds to the JSON property `email`
519
+ # @return [String]
520
+ attr_accessor :email
521
+
522
+ # First name of the contact in the customer account.
523
+ # Corresponds to the JSON property `firstName`
524
+ # @return [String]
525
+ attr_accessor :first_name
526
+
527
+ # Last name of the contact in the customer account.
528
+ # Corresponds to the JSON property `lastName`
529
+ # @return [String]
530
+ attr_accessor :last_name
531
+
532
+ # Phone number of the contact in the customer account.
533
+ # Corresponds to the JSON property `phone`
534
+ # @return [String]
535
+ attr_accessor :phone
536
+
537
+ # Optional. Job title of the contact in the customer account.
538
+ # Corresponds to the JSON property `title`
539
+ # @return [String]
540
+ attr_accessor :title
541
+
542
+ def initialize(**args)
543
+ update!(**args)
544
+ end
545
+
546
+ # Update properties of this object
547
+ def update!(**args)
548
+ @display_name = args[:display_name] if args.key?(:display_name)
549
+ @email = args[:email] if args.key?(:email)
550
+ @first_name = args[:first_name] if args.key?(:first_name)
551
+ @last_name = args[:last_name] if args.key?(:last_name)
552
+ @phone = args[:phone] if args.key?(:phone)
553
+ @title = args[:title] if args.key?(:title)
554
+ end
555
+ end
556
+
557
+ # Request message for CloudChannelService.CreateEntitlement
558
+ class GoogleCloudChannelV1CreateEntitlementRequest
559
+ include Google::Apis::Core::Hashable
560
+
561
+ # An entitlement is a representation of a customer's ability to use a service.
562
+ # Corresponds to the JSON property `entitlement`
563
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Entitlement]
564
+ attr_accessor :entitlement
565
+
566
+ # Optional. An optional request ID to identify requests. Specify a unique
567
+ # request ID so that if you must retry your request, the server will know to
568
+ # ignore the request if it has already been completed. For example, consider a
569
+ # situation where you make an initial request and the request times out. If you
570
+ # make the request again with the same request ID, the server can check if the
571
+ # original operation with the same request ID was received, and if so, will
572
+ # ignore the second request. The request ID must be a valid [UUID](https://tools.
573
+ # ietf.org/html/rfc4122) with the exception that zero UUID is not supported (`
574
+ # 00000000-0000-0000-0000-000000000000`).
575
+ # Corresponds to the JSON property `requestId`
576
+ # @return [String]
577
+ attr_accessor :request_id
578
+
579
+ def initialize(**args)
580
+ update!(**args)
581
+ end
582
+
583
+ # Update properties of this object
584
+ def update!(**args)
585
+ @entitlement = args[:entitlement] if args.key?(:entitlement)
586
+ @request_id = args[:request_id] if args.key?(:request_id)
587
+ end
588
+ end
589
+
590
+ # Entity representing a customer of a reseller or distributor.
591
+ class GoogleCloudChannelV1Customer
592
+ include Google::Apis::Core::Hashable
593
+
594
+ # Secondary contact email. Alternate email and primary contact email are
595
+ # required to have different domains if primary contact email is present. When
596
+ # creating admin.google.com accounts, users get notified credentials at this
597
+ # email. This email address is also used as a recovery email.
598
+ # Corresponds to the JSON property `alternateEmail`
599
+ # @return [String]
600
+ attr_accessor :alternate_email
601
+
602
+ # Cloud Identity ID of the customer's channel partner. Populated only if a
603
+ # channel partner exists for this customer.
604
+ # Corresponds to the JSON property `channelPartnerId`
605
+ # @return [String]
606
+ attr_accessor :channel_partner_id
607
+
608
+ # Output only. Customer's cloud_identity_id. Populated only if a Cloud Identity
609
+ # resource exists for this customer.
610
+ # Corresponds to the JSON property `cloudIdentityId`
611
+ # @return [String]
612
+ attr_accessor :cloud_identity_id
613
+
614
+ # Cloud Identity information for the Cloud Channel Customer.
615
+ # Corresponds to the JSON property `cloudIdentityInfo`
616
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CloudIdentityInfo]
617
+ attr_accessor :cloud_identity_info
618
+
619
+ # Output only. The time at which the customer is created.
620
+ # Corresponds to the JSON property `createTime`
621
+ # @return [String]
622
+ attr_accessor :create_time
623
+
624
+ # Required. Primary domain used by the customer. Domain of primary contact email
625
+ # is required to be same as the provided domain.
626
+ # Corresponds to the JSON property `domain`
627
+ # @return [String]
628
+ attr_accessor :domain
629
+
630
+ # Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
631
+ # information, see https://www.unicode.org/reports/tr35/#
632
+ # Unicode_locale_identifier.
633
+ # Corresponds to the JSON property `languageCode`
634
+ # @return [String]
635
+ attr_accessor :language_code
636
+
637
+ # Output only. Resource name of the customer. Format: accounts/`account_id`/
638
+ # customers/`customer_id`
639
+ # Corresponds to the JSON property `name`
640
+ # @return [String]
641
+ attr_accessor :name
642
+
643
+ # Required. Name of the organization that the customer entity represents.
644
+ # Corresponds to the JSON property `orgDisplayName`
645
+ # @return [String]
646
+ attr_accessor :org_display_name
647
+
648
+ # Represents a postal address, e.g. for postal delivery or payments addresses.
649
+ # Given a postal address, a postal service can deliver items to a premise, P.O.
650
+ # Box or similar. It is not intended to model geographical locations (roads,
651
+ # towns, mountains). In typical usage an address would be created via user input
652
+ # or from importing existing data, depending on the type of process. Advice on
653
+ # address input / editing: - Use an i18n-ready address widget such as https://
654
+ # github.com/google/libaddressinput) - Users should not be presented with UI
655
+ # elements for input or editing of fields outside countries where that field is
656
+ # used. For more guidance on how to use this schema, please see: https://support.
657
+ # google.com/business/answer/6397478
658
+ # Corresponds to the JSON property `orgPostalAddress`
659
+ # @return [Google::Apis::CloudchannelV1::GoogleTypePostalAddress]
660
+ attr_accessor :org_postal_address
661
+
662
+ # Contact information for a customer account.
663
+ # Corresponds to the JSON property `primaryContactInfo`
664
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ContactInfo]
665
+ attr_accessor :primary_contact_info
666
+
667
+ # Output only. The time at which the customer is updated.
668
+ # Corresponds to the JSON property `updateTime`
669
+ # @return [String]
670
+ attr_accessor :update_time
671
+
672
+ def initialize(**args)
673
+ update!(**args)
674
+ end
675
+
676
+ # Update properties of this object
677
+ def update!(**args)
678
+ @alternate_email = args[:alternate_email] if args.key?(:alternate_email)
679
+ @channel_partner_id = args[:channel_partner_id] if args.key?(:channel_partner_id)
680
+ @cloud_identity_id = args[:cloud_identity_id] if args.key?(:cloud_identity_id)
681
+ @cloud_identity_info = args[:cloud_identity_info] if args.key?(:cloud_identity_info)
682
+ @create_time = args[:create_time] if args.key?(:create_time)
683
+ @domain = args[:domain] if args.key?(:domain)
684
+ @language_code = args[:language_code] if args.key?(:language_code)
685
+ @name = args[:name] if args.key?(:name)
686
+ @org_display_name = args[:org_display_name] if args.key?(:org_display_name)
687
+ @org_postal_address = args[:org_postal_address] if args.key?(:org_postal_address)
688
+ @primary_contact_info = args[:primary_contact_info] if args.key?(:primary_contact_info)
689
+ @update_time = args[:update_time] if args.key?(:update_time)
690
+ end
691
+ end
692
+
693
+ # Represents constraints required to purchase the Offer for a customer.
694
+ class GoogleCloudChannelV1CustomerConstraints
695
+ include Google::Apis::Core::Hashable
696
+
697
+ # Allowed Customer Type.
698
+ # Corresponds to the JSON property `allowedCustomerTypes`
699
+ # @return [Array<String>]
700
+ attr_accessor :allowed_customer_types
701
+
702
+ # Allowed geographical regions of the customer.
703
+ # Corresponds to the JSON property `allowedRegions`
704
+ # @return [Array<String>]
705
+ attr_accessor :allowed_regions
706
+
707
+ # Allowed Promotional Order Type. Present for Promotional offers.
708
+ # Corresponds to the JSON property `promotionalOrderTypes`
709
+ # @return [Array<String>]
710
+ attr_accessor :promotional_order_types
711
+
712
+ def initialize(**args)
713
+ update!(**args)
714
+ end
715
+
716
+ # Update properties of this object
717
+ def update!(**args)
718
+ @allowed_customer_types = args[:allowed_customer_types] if args.key?(:allowed_customer_types)
719
+ @allowed_regions = args[:allowed_regions] if args.key?(:allowed_regions)
720
+ @promotional_order_types = args[:promotional_order_types] if args.key?(:promotional_order_types)
721
+ end
722
+ end
723
+
724
+ # Represents Pub/Sub message content describing customer update.
725
+ class GoogleCloudChannelV1CustomerEvent
726
+ include Google::Apis::Core::Hashable
727
+
728
+ # Resource name of the customer. Format: accounts/`account_id`/customers/`
729
+ # customer_id`
730
+ # Corresponds to the JSON property `customer`
731
+ # @return [String]
732
+ attr_accessor :customer
733
+
734
+ # Type of event which happened on the customer.
735
+ # Corresponds to the JSON property `eventType`
736
+ # @return [String]
737
+ attr_accessor :event_type
738
+
739
+ def initialize(**args)
740
+ update!(**args)
741
+ end
742
+
743
+ # Update properties of this object
744
+ def update!(**args)
745
+ @customer = args[:customer] if args.key?(:customer)
746
+ @event_type = args[:event_type] if args.key?(:event_type)
747
+ end
748
+ end
749
+
750
+ # Required Edu Attributes
751
+ class GoogleCloudChannelV1EduData
752
+ include Google::Apis::Core::Hashable
753
+
754
+ # Size of the institute.
755
+ # Corresponds to the JSON property `instituteSize`
756
+ # @return [String]
757
+ attr_accessor :institute_size
758
+
759
+ # Designated institute type of customer.
760
+ # Corresponds to the JSON property `instituteType`
761
+ # @return [String]
762
+ attr_accessor :institute_type
763
+
764
+ # Web address for the edu customer's institution.
765
+ # Corresponds to the JSON property `website`
766
+ # @return [String]
767
+ attr_accessor :website
768
+
769
+ def initialize(**args)
770
+ update!(**args)
771
+ end
772
+
773
+ # Update properties of this object
774
+ def update!(**args)
775
+ @institute_size = args[:institute_size] if args.key?(:institute_size)
776
+ @institute_type = args[:institute_type] if args.key?(:institute_type)
777
+ @website = args[:website] if args.key?(:website)
778
+ end
779
+ end
780
+
781
+ # An entitlement is a representation of a customer's ability to use a service.
782
+ class GoogleCloudChannelV1Entitlement
783
+ include Google::Apis::Core::Hashable
784
+
785
+ # Association links that an entitlement has to other entitlements.
786
+ # Corresponds to the JSON property `associationInfo`
787
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1AssociationInfo]
788
+ attr_accessor :association_info
789
+
790
+ # Commitment settings for commitment-based offers.
791
+ # Corresponds to the JSON property `commitmentSettings`
792
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CommitmentSettings]
793
+ attr_accessor :commitment_settings
794
+
795
+ # Output only. The time at which the entitlement is created.
796
+ # Corresponds to the JSON property `createTime`
797
+ # @return [String]
798
+ attr_accessor :create_time
799
+
800
+ # Output only. Resource name of an entitlement in the form: accounts/`account_id`
801
+ # /customers/`customer_id`/entitlements/`entitlement_id`.
802
+ # Corresponds to the JSON property `name`
803
+ # @return [String]
804
+ attr_accessor :name
805
+
806
+ # Required. The offer resource name for which the entitlement is to be created.
807
+ # Takes the form: accounts/`account_id`/offers/`offer_id`.
808
+ # Corresponds to the JSON property `offer`
809
+ # @return [String]
810
+ attr_accessor :offer
811
+
812
+ # Extended entitlement parameters. When creating an entitlement, valid
813
+ # parameters' names and values are defined in the offer's parameter definitions.
814
+ # Corresponds to the JSON property `parameters`
815
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Parameter>]
816
+ attr_accessor :parameters
817
+
818
+ # Service provisioned for an entitlement.
819
+ # Corresponds to the JSON property `provisionedService`
820
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ProvisionedService]
821
+ attr_accessor :provisioned_service
822
+
823
+ # Output only. Current provisioning state of the entitlement.
824
+ # Corresponds to the JSON property `provisioningState`
825
+ # @return [String]
826
+ attr_accessor :provisioning_state
827
+
828
+ # Optional. This purchase order (PO) information is for resellers to use for
829
+ # their company tracking usage. If a purchaseOrderId value is given, it appears
830
+ # in the API responses and shows up in the invoice. The property accepts up to
831
+ # 80 plain text characters.
832
+ # Corresponds to the JSON property `purchaseOrderId`
833
+ # @return [String]
834
+ attr_accessor :purchase_order_id
835
+
836
+ # Output only. Enumerable of all current suspension reasons for an entitlement.
837
+ # Corresponds to the JSON property `suspensionReasons`
838
+ # @return [Array<String>]
839
+ attr_accessor :suspension_reasons
840
+
841
+ # Settings for trial offers.
842
+ # Corresponds to the JSON property `trialSettings`
843
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1TrialSettings]
844
+ attr_accessor :trial_settings
845
+
846
+ # Output only. The time at which the entitlement is updated.
847
+ # Corresponds to the JSON property `updateTime`
848
+ # @return [String]
849
+ attr_accessor :update_time
850
+
851
+ def initialize(**args)
852
+ update!(**args)
853
+ end
854
+
855
+ # Update properties of this object
856
+ def update!(**args)
857
+ @association_info = args[:association_info] if args.key?(:association_info)
858
+ @commitment_settings = args[:commitment_settings] if args.key?(:commitment_settings)
859
+ @create_time = args[:create_time] if args.key?(:create_time)
860
+ @name = args[:name] if args.key?(:name)
861
+ @offer = args[:offer] if args.key?(:offer)
862
+ @parameters = args[:parameters] if args.key?(:parameters)
863
+ @provisioned_service = args[:provisioned_service] if args.key?(:provisioned_service)
864
+ @provisioning_state = args[:provisioning_state] if args.key?(:provisioning_state)
865
+ @purchase_order_id = args[:purchase_order_id] if args.key?(:purchase_order_id)
866
+ @suspension_reasons = args[:suspension_reasons] if args.key?(:suspension_reasons)
867
+ @trial_settings = args[:trial_settings] if args.key?(:trial_settings)
868
+ @update_time = args[:update_time] if args.key?(:update_time)
869
+ end
870
+ end
871
+
872
+ # Represents Pub/Sub message content describing entitlement update.
873
+ class GoogleCloudChannelV1EntitlementEvent
874
+ include Google::Apis::Core::Hashable
875
+
876
+ # Resource name of an entitlement of the form: accounts/`account_id`/customers/`
877
+ # customer_id`/entitlements/`entitlement_id`
878
+ # Corresponds to the JSON property `entitlement`
879
+ # @return [String]
880
+ attr_accessor :entitlement
881
+
882
+ # Type of event which happened on the entitlement.
883
+ # Corresponds to the JSON property `eventType`
884
+ # @return [String]
885
+ attr_accessor :event_type
886
+
887
+ def initialize(**args)
888
+ update!(**args)
889
+ end
890
+
891
+ # Update properties of this object
892
+ def update!(**args)
893
+ @entitlement = args[:entitlement] if args.key?(:entitlement)
894
+ @event_type = args[:event_type] if args.key?(:event_type)
895
+ end
896
+ end
897
+
898
+ # Response message for CloudChannelService.ListChannelPartnerLinks.
899
+ class GoogleCloudChannelV1ListChannelPartnerLinksResponse
900
+ include Google::Apis::Core::Hashable
901
+
902
+ # The Channel partner links for a reseller.
903
+ # Corresponds to the JSON property `channelPartnerLinks`
904
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerLink>]
905
+ attr_accessor :channel_partner_links
906
+
907
+ # A token to retrieve the next page of results. Pass to
908
+ # ListChannelPartnerLinksRequest.page_token to obtain that page.
909
+ # Corresponds to the JSON property `nextPageToken`
910
+ # @return [String]
911
+ attr_accessor :next_page_token
912
+
913
+ def initialize(**args)
914
+ update!(**args)
915
+ end
916
+
917
+ # Update properties of this object
918
+ def update!(**args)
919
+ @channel_partner_links = args[:channel_partner_links] if args.key?(:channel_partner_links)
920
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
921
+ end
922
+ end
923
+
924
+ # Response message for CloudChannelService.ListCustomers.
925
+ class GoogleCloudChannelV1ListCustomersResponse
926
+ include Google::Apis::Core::Hashable
927
+
928
+ # The customers belonging to the reseller or distributor.
929
+ # Corresponds to the JSON property `customers`
930
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Customer>]
931
+ attr_accessor :customers
932
+
933
+ # A token to retrieve the next page of results. Pass to ListCustomersRequest.
934
+ # page_token to obtain that page.
935
+ # Corresponds to the JSON property `nextPageToken`
936
+ # @return [String]
937
+ attr_accessor :next_page_token
938
+
939
+ def initialize(**args)
940
+ update!(**args)
941
+ end
942
+
943
+ # Update properties of this object
944
+ def update!(**args)
945
+ @customers = args[:customers] if args.key?(:customers)
946
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
947
+ end
948
+ end
949
+
950
+ # Response message for CloudChannelService.ListEntitlements.
951
+ class GoogleCloudChannelV1ListEntitlementsResponse
952
+ include Google::Apis::Core::Hashable
953
+
954
+ # The entitlements belonging to the reseller's customer.
955
+ # Corresponds to the JSON property `entitlements`
956
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Entitlement>]
957
+ attr_accessor :entitlements
958
+
959
+ # A token to List next page of results. Pass to ListEntitlementsRequest.
960
+ # page_token to obtain that page.
961
+ # Corresponds to the JSON property `nextPageToken`
962
+ # @return [String]
963
+ attr_accessor :next_page_token
964
+
965
+ def initialize(**args)
966
+ update!(**args)
967
+ end
968
+
969
+ # Update properties of this object
970
+ def update!(**args)
971
+ @entitlements = args[:entitlements] if args.key?(:entitlements)
972
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
973
+ end
974
+ end
975
+
976
+ # Response message for ListOffers.
977
+ class GoogleCloudChannelV1ListOffersResponse
978
+ include Google::Apis::Core::Hashable
979
+
980
+ # A token to retrieve the next page of results.
981
+ # Corresponds to the JSON property `nextPageToken`
982
+ # @return [String]
983
+ attr_accessor :next_page_token
984
+
985
+ # The list of Offers requested.
986
+ # Corresponds to the JSON property `offers`
987
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Offer>]
988
+ attr_accessor :offers
989
+
990
+ def initialize(**args)
991
+ update!(**args)
992
+ end
993
+
994
+ # Update properties of this object
995
+ def update!(**args)
996
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
997
+ @offers = args[:offers] if args.key?(:offers)
998
+ end
999
+ end
1000
+
1001
+ # Response message for ListProducts.
1002
+ class GoogleCloudChannelV1ListProductsResponse
1003
+ include Google::Apis::Core::Hashable
1004
+
1005
+ # A token to retrieve the next page of results.
1006
+ # Corresponds to the JSON property `nextPageToken`
1007
+ # @return [String]
1008
+ attr_accessor :next_page_token
1009
+
1010
+ # List of Products requested.
1011
+ # Corresponds to the JSON property `products`
1012
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Product>]
1013
+ attr_accessor :products
1014
+
1015
+ def initialize(**args)
1016
+ update!(**args)
1017
+ end
1018
+
1019
+ # Update properties of this object
1020
+ def update!(**args)
1021
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1022
+ @products = args[:products] if args.key?(:products)
1023
+ end
1024
+ end
1025
+
1026
+ # Response message for ListPurchasableOffers.
1027
+ class GoogleCloudChannelV1ListPurchasableOffersResponse
1028
+ include Google::Apis::Core::Hashable
1029
+
1030
+ # A token to retrieve the next page of results.
1031
+ # Corresponds to the JSON property `nextPageToken`
1032
+ # @return [String]
1033
+ attr_accessor :next_page_token
1034
+
1035
+ # The list of Offers requested.
1036
+ # Corresponds to the JSON property `purchasableOffers`
1037
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1PurchasableOffer>]
1038
+ attr_accessor :purchasable_offers
1039
+
1040
+ def initialize(**args)
1041
+ update!(**args)
1042
+ end
1043
+
1044
+ # Update properties of this object
1045
+ def update!(**args)
1046
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1047
+ @purchasable_offers = args[:purchasable_offers] if args.key?(:purchasable_offers)
1048
+ end
1049
+ end
1050
+
1051
+ # Response message for ListPurchasableSkus.
1052
+ class GoogleCloudChannelV1ListPurchasableSkusResponse
1053
+ include Google::Apis::Core::Hashable
1054
+
1055
+ # A token to retrieve the next page of results.
1056
+ # Corresponds to the JSON property `nextPageToken`
1057
+ # @return [String]
1058
+ attr_accessor :next_page_token
1059
+
1060
+ # The list of SKUs requested.
1061
+ # Corresponds to the JSON property `purchasableSkus`
1062
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1PurchasableSku>]
1063
+ attr_accessor :purchasable_skus
1064
+
1065
+ def initialize(**args)
1066
+ update!(**args)
1067
+ end
1068
+
1069
+ # Update properties of this object
1070
+ def update!(**args)
1071
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1072
+ @purchasable_skus = args[:purchasable_skus] if args.key?(:purchasable_skus)
1073
+ end
1074
+ end
1075
+
1076
+ # Response message for ListSkus.
1077
+ class GoogleCloudChannelV1ListSkusResponse
1078
+ include Google::Apis::Core::Hashable
1079
+
1080
+ # A token to retrieve the next page of results.
1081
+ # Corresponds to the JSON property `nextPageToken`
1082
+ # @return [String]
1083
+ attr_accessor :next_page_token
1084
+
1085
+ # The list of SKUs requested.
1086
+ # Corresponds to the JSON property `skus`
1087
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Sku>]
1088
+ attr_accessor :skus
1089
+
1090
+ def initialize(**args)
1091
+ update!(**args)
1092
+ end
1093
+
1094
+ # Update properties of this object
1095
+ def update!(**args)
1096
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1097
+ @skus = args[:skus] if args.key?(:skus)
1098
+ end
1099
+ end
1100
+
1101
+ # Response Message for ListSubscribers.
1102
+ class GoogleCloudChannelV1ListSubscribersResponse
1103
+ include Google::Apis::Core::Hashable
1104
+
1105
+ # A token that can be sent as `page_token` to retrieve the next page. If this
1106
+ # field is omitted, there are no subsequent pages.
1107
+ # Corresponds to the JSON property `nextPageToken`
1108
+ # @return [String]
1109
+ attr_accessor :next_page_token
1110
+
1111
+ # List of service accounts which have subscriber access to the topic.
1112
+ # Corresponds to the JSON property `serviceAccounts`
1113
+ # @return [Array<String>]
1114
+ attr_accessor :service_accounts
1115
+
1116
+ # Name of the topic registered with the reseller.
1117
+ # Corresponds to the JSON property `topic`
1118
+ # @return [String]
1119
+ attr_accessor :topic
1120
+
1121
+ def initialize(**args)
1122
+ update!(**args)
1123
+ end
1124
+
1125
+ # Update properties of this object
1126
+ def update!(**args)
1127
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1128
+ @service_accounts = args[:service_accounts] if args.key?(:service_accounts)
1129
+ @topic = args[:topic] if args.key?(:topic)
1130
+ end
1131
+ end
1132
+
1133
+ # Request message for CloudChannelService.ListTransferableOffers
1134
+ class GoogleCloudChannelV1ListTransferableOffersRequest
1135
+ include Google::Apis::Core::Hashable
1136
+
1137
+ # Customer's Cloud Identity ID
1138
+ # Corresponds to the JSON property `cloudIdentityId`
1139
+ # @return [String]
1140
+ attr_accessor :cloud_identity_id
1141
+
1142
+ # A reseller should create a customer and use the resource name of the created
1143
+ # customer here.
1144
+ # Corresponds to the JSON property `customerName`
1145
+ # @return [String]
1146
+ attr_accessor :customer_name
1147
+
1148
+ # The BCP-47 language code, such as "en-US". If specified, the response will be
1149
+ # localized to the corresponding language code. Default is "en-US".
1150
+ # Corresponds to the JSON property `languageCode`
1151
+ # @return [String]
1152
+ attr_accessor :language_code
1153
+
1154
+ # Requested page size. Server might return fewer results than requested. If
1155
+ # unspecified, at most 100 Offers will be returned. The maximum value is 1000;
1156
+ # values above 1000 will be coerced to 1000.
1157
+ # Corresponds to the JSON property `pageSize`
1158
+ # @return [Fixnum]
1159
+ attr_accessor :page_size
1160
+
1161
+ # A token identifying a page of results, if other than the first one. Typically
1162
+ # obtained via ListTransferableOffersResponse.next_page_token of the previous
1163
+ # CloudChannelService.ListTransferableOffers call.
1164
+ # Corresponds to the JSON property `pageToken`
1165
+ # @return [String]
1166
+ attr_accessor :page_token
1167
+
1168
+ # Required. SKU for which the Offers are being looked up.
1169
+ # Corresponds to the JSON property `sku`
1170
+ # @return [String]
1171
+ attr_accessor :sku
1172
+
1173
+ def initialize(**args)
1174
+ update!(**args)
1175
+ end
1176
+
1177
+ # Update properties of this object
1178
+ def update!(**args)
1179
+ @cloud_identity_id = args[:cloud_identity_id] if args.key?(:cloud_identity_id)
1180
+ @customer_name = args[:customer_name] if args.key?(:customer_name)
1181
+ @language_code = args[:language_code] if args.key?(:language_code)
1182
+ @page_size = args[:page_size] if args.key?(:page_size)
1183
+ @page_token = args[:page_token] if args.key?(:page_token)
1184
+ @sku = args[:sku] if args.key?(:sku)
1185
+ end
1186
+ end
1187
+
1188
+ # Response message for CloudChannelService.ListTransferableOffers.
1189
+ class GoogleCloudChannelV1ListTransferableOffersResponse
1190
+ include Google::Apis::Core::Hashable
1191
+
1192
+ # A token to retrieve the next page of results. Pass to
1193
+ # ListTransferableOffersRequest.page_token to obtain that page.
1194
+ # Corresponds to the JSON property `nextPageToken`
1195
+ # @return [String]
1196
+ attr_accessor :next_page_token
1197
+
1198
+ # Information about Offers for a customer that can be used for transfer.
1199
+ # Corresponds to the JSON property `transferableOffers`
1200
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1TransferableOffer>]
1201
+ attr_accessor :transferable_offers
1202
+
1203
+ def initialize(**args)
1204
+ update!(**args)
1205
+ end
1206
+
1207
+ # Update properties of this object
1208
+ def update!(**args)
1209
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1210
+ @transferable_offers = args[:transferable_offers] if args.key?(:transferable_offers)
1211
+ end
1212
+ end
1213
+
1214
+ # Request message for CloudChannelService.ListTransferableSkus
1215
+ class GoogleCloudChannelV1ListTransferableSkusRequest
1216
+ include Google::Apis::Core::Hashable
1217
+
1218
+ # This token is generated by the Super Admin of the resold customer to authorize
1219
+ # a reseller to access their Cloud Identity and purchase entitlements on their
1220
+ # behalf. This token can be omitted once the authorization is generated. See
1221
+ # https://support.google.com/a/answer/7643790 for more details.
1222
+ # Corresponds to the JSON property `authToken`
1223
+ # @return [String]
1224
+ attr_accessor :auth_token
1225
+
1226
+ # Customer's Cloud Identity ID
1227
+ # Corresponds to the JSON property `cloudIdentityId`
1228
+ # @return [String]
1229
+ attr_accessor :cloud_identity_id
1230
+
1231
+ # A reseller is required to create a customer and use the resource name of the
1232
+ # created customer here. The customer_name takes the format: accounts/`
1233
+ # account_id`/customers/`customer_id`
1234
+ # Corresponds to the JSON property `customerName`
1235
+ # @return [String]
1236
+ attr_accessor :customer_name
1237
+
1238
+ # The BCP-47 language code, such as "en-US". If specified, the response will be
1239
+ # localized to the corresponding language code. Default is "en-US". Optional.
1240
+ # Corresponds to the JSON property `languageCode`
1241
+ # @return [String]
1242
+ attr_accessor :language_code
1243
+
1244
+ # Requested page size. Server might return fewer results than requested. If
1245
+ # unspecified, at most 100 SKUs will be returned. The maximum value is 1000;
1246
+ # values above 1000 will be coerced to 1000. Optional.
1247
+ # Corresponds to the JSON property `pageSize`
1248
+ # @return [Fixnum]
1249
+ attr_accessor :page_size
1250
+
1251
+ # A token identifying a page of results, if other than the first one. Typically
1252
+ # obtained via ListTransferableSkusResponse.next_page_token of the previous
1253
+ # CloudChannelService.ListTransferableSkus call. Optional.
1254
+ # Corresponds to the JSON property `pageToken`
1255
+ # @return [String]
1256
+ attr_accessor :page_token
1257
+
1258
+ def initialize(**args)
1259
+ update!(**args)
1260
+ end
1261
+
1262
+ # Update properties of this object
1263
+ def update!(**args)
1264
+ @auth_token = args[:auth_token] if args.key?(:auth_token)
1265
+ @cloud_identity_id = args[:cloud_identity_id] if args.key?(:cloud_identity_id)
1266
+ @customer_name = args[:customer_name] if args.key?(:customer_name)
1267
+ @language_code = args[:language_code] if args.key?(:language_code)
1268
+ @page_size = args[:page_size] if args.key?(:page_size)
1269
+ @page_token = args[:page_token] if args.key?(:page_token)
1270
+ end
1271
+ end
1272
+
1273
+ # Response message for CloudChannelService.ListTransferableSkus.
1274
+ class GoogleCloudChannelV1ListTransferableSkusResponse
1275
+ include Google::Apis::Core::Hashable
1276
+
1277
+ # A token to retrieve the next page of results. Pass to
1278
+ # ListTransferableSkusRequest.page_token to obtain that page.
1279
+ # Corresponds to the JSON property `nextPageToken`
1280
+ # @return [String]
1281
+ attr_accessor :next_page_token
1282
+
1283
+ # Information about existing SKUs for a customer that would need to be
1284
+ # transferred.
1285
+ # Corresponds to the JSON property `transferableSkus`
1286
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1TransferableSku>]
1287
+ attr_accessor :transferable_skus
1288
+
1289
+ def initialize(**args)
1290
+ update!(**args)
1291
+ end
1292
+
1293
+ # Update properties of this object
1294
+ def update!(**args)
1295
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1296
+ @transferable_skus = args[:transferable_skus] if args.key?(:transferable_skus)
1297
+ end
1298
+ end
1299
+
1300
+ # Represents the marketing information for a Product, SKU or Offer.
1301
+ class GoogleCloudChannelV1MarketingInfo
1302
+ include Google::Apis::Core::Hashable
1303
+
1304
+ # Represents media information.
1305
+ # Corresponds to the JSON property `defaultLogo`
1306
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Media]
1307
+ attr_accessor :default_logo
1308
+
1309
+ # Human readable description. Description can contain HTML.
1310
+ # Corresponds to the JSON property `description`
1311
+ # @return [String]
1312
+ attr_accessor :description
1313
+
1314
+ # Human readable name.
1315
+ # Corresponds to the JSON property `displayName`
1316
+ # @return [String]
1317
+ attr_accessor :display_name
1318
+
1319
+ def initialize(**args)
1320
+ update!(**args)
1321
+ end
1322
+
1323
+ # Update properties of this object
1324
+ def update!(**args)
1325
+ @default_logo = args[:default_logo] if args.key?(:default_logo)
1326
+ @description = args[:description] if args.key?(:description)
1327
+ @display_name = args[:display_name] if args.key?(:display_name)
1328
+ end
1329
+ end
1330
+
1331
+ # Represents media information.
1332
+ class GoogleCloudChannelV1Media
1333
+ include Google::Apis::Core::Hashable
1334
+
1335
+ # URL of the media.
1336
+ # Corresponds to the JSON property `content`
1337
+ # @return [String]
1338
+ attr_accessor :content
1339
+
1340
+ # Title of the media.
1341
+ # Corresponds to the JSON property `title`
1342
+ # @return [String]
1343
+ attr_accessor :title
1344
+
1345
+ # Type of the media.
1346
+ # Corresponds to the JSON property `type`
1347
+ # @return [String]
1348
+ attr_accessor :type
1349
+
1350
+ def initialize(**args)
1351
+ update!(**args)
1352
+ end
1353
+
1354
+ # Update properties of this object
1355
+ def update!(**args)
1356
+ @content = args[:content] if args.key?(:content)
1357
+ @title = args[:title] if args.key?(:title)
1358
+ @type = args[:type] if args.key?(:type)
1359
+ end
1360
+ end
1361
+
1362
+ # Represents an offer made to resellers for purchase. An offer is associated
1363
+ # with a Sku, has a plan for payment, a price, and defines the constraints for
1364
+ # buying.
1365
+ class GoogleCloudChannelV1Offer
1366
+ include Google::Apis::Core::Hashable
1367
+
1368
+ # Represents the constraints for buying the Offer.
1369
+ # Corresponds to the JSON property `constraints`
1370
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Constraints]
1371
+ attr_accessor :constraints
1372
+
1373
+ # Output only. End of the Offer validity time.
1374
+ # Corresponds to the JSON property `endTime`
1375
+ # @return [String]
1376
+ attr_accessor :end_time
1377
+
1378
+ # Represents the marketing information for a Product, SKU or Offer.
1379
+ # Corresponds to the JSON property `marketingInfo`
1380
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1MarketingInfo]
1381
+ attr_accessor :marketing_info
1382
+
1383
+ # Resource Name of the Offer. Format: accounts/`account_id`/offers/`offer_id`
1384
+ # Corresponds to the JSON property `name`
1385
+ # @return [String]
1386
+ attr_accessor :name
1387
+
1388
+ # Parameters required to use current Offer to purchase.
1389
+ # Corresponds to the JSON property `parameterDefinitions`
1390
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1ParameterDefinition>]
1391
+ attr_accessor :parameter_definitions
1392
+
1393
+ # The payment plan for the Offer. Describes how to make a payment.
1394
+ # Corresponds to the JSON property `plan`
1395
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Plan]
1396
+ attr_accessor :plan
1397
+
1398
+ # Price for each monetizable resource type.
1399
+ # Corresponds to the JSON property `priceByResources`
1400
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1PriceByResource>]
1401
+ attr_accessor :price_by_resources
1402
+
1403
+ # Represents a product's purchasable Stock Keeping Unit (SKU). SKUs represent
1404
+ # the different variations of the product. For example, Google Workspace
1405
+ # Business Standard and Google Workspace Business Plus are Google Workspace
1406
+ # product SKUs.
1407
+ # Corresponds to the JSON property `sku`
1408
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Sku]
1409
+ attr_accessor :sku
1410
+
1411
+ # Start of the Offer validity time.
1412
+ # Corresponds to the JSON property `startTime`
1413
+ # @return [String]
1414
+ attr_accessor :start_time
1415
+
1416
+ def initialize(**args)
1417
+ update!(**args)
1418
+ end
1419
+
1420
+ # Update properties of this object
1421
+ def update!(**args)
1422
+ @constraints = args[:constraints] if args.key?(:constraints)
1423
+ @end_time = args[:end_time] if args.key?(:end_time)
1424
+ @marketing_info = args[:marketing_info] if args.key?(:marketing_info)
1425
+ @name = args[:name] if args.key?(:name)
1426
+ @parameter_definitions = args[:parameter_definitions] if args.key?(:parameter_definitions)
1427
+ @plan = args[:plan] if args.key?(:plan)
1428
+ @price_by_resources = args[:price_by_resources] if args.key?(:price_by_resources)
1429
+ @sku = args[:sku] if args.key?(:sku)
1430
+ @start_time = args[:start_time] if args.key?(:start_time)
1431
+ end
1432
+ end
1433
+
1434
+ # Provides contextual information about a google.longrunning.Operation.
1435
+ class GoogleCloudChannelV1OperationMetadata
1436
+ include Google::Apis::Core::Hashable
1437
+
1438
+ # The RPC that initiated this Long Running Operation.
1439
+ # Corresponds to the JSON property `operationType`
1440
+ # @return [String]
1441
+ attr_accessor :operation_type
1442
+
1443
+ def initialize(**args)
1444
+ update!(**args)
1445
+ end
1446
+
1447
+ # Update properties of this object
1448
+ def update!(**args)
1449
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
1450
+ end
1451
+ end
1452
+
1453
+ # Definition for extended entitlement parameters.
1454
+ class GoogleCloudChannelV1Parameter
1455
+ include Google::Apis::Core::Hashable
1456
+
1457
+ # Output only. Specifies whether this parameter is allowed to be changed. For
1458
+ # example, for a Google Workspace Business Starter entitlement in commitment
1459
+ # plan, num_units is editable when entitlement is active.
1460
+ # Corresponds to the JSON property `editable`
1461
+ # @return [Boolean]
1462
+ attr_accessor :editable
1463
+ alias_method :editable?, :editable
1464
+
1465
+ # Name of the parameter.
1466
+ # Corresponds to the JSON property `name`
1467
+ # @return [String]
1468
+ attr_accessor :name
1469
+
1470
+ # Data type and value of a parameter.
1471
+ # Corresponds to the JSON property `value`
1472
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Value]
1473
+ attr_accessor :value
1474
+
1475
+ def initialize(**args)
1476
+ update!(**args)
1477
+ end
1478
+
1479
+ # Update properties of this object
1480
+ def update!(**args)
1481
+ @editable = args[:editable] if args.key?(:editable)
1482
+ @name = args[:name] if args.key?(:name)
1483
+ @value = args[:value] if args.key?(:value)
1484
+ end
1485
+ end
1486
+
1487
+ # Parameter's definition. Specifies what parameter is required to use the
1488
+ # current Offer to purchase.
1489
+ class GoogleCloudChannelV1ParameterDefinition
1490
+ include Google::Apis::Core::Hashable
1491
+
1492
+ # If not empty, parameter values must be drawn from this list. For example, [us-
1493
+ # west1, us-west2, ...] Applicable to STRING parameter type.
1494
+ # Corresponds to the JSON property `allowedValues`
1495
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Value>]
1496
+ attr_accessor :allowed_values
1497
+
1498
+ # Data type and value of a parameter.
1499
+ # Corresponds to the JSON property `maxValue`
1500
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Value]
1501
+ attr_accessor :max_value
1502
+
1503
+ # Data type and value of a parameter.
1504
+ # Corresponds to the JSON property `minValue`
1505
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Value]
1506
+ attr_accessor :min_value
1507
+
1508
+ # Name of the parameter.
1509
+ # Corresponds to the JSON property `name`
1510
+ # @return [String]
1511
+ attr_accessor :name
1512
+
1513
+ # If set to true, parameter is optional to purchase this Offer.
1514
+ # Corresponds to the JSON property `optional`
1515
+ # @return [Boolean]
1516
+ attr_accessor :optional
1517
+ alias_method :optional?, :optional
1518
+
1519
+ # Data type of the parameter. Minimal value, Maximum value and allowed values
1520
+ # will use specified data type here.
1521
+ # Corresponds to the JSON property `parameterType`
1522
+ # @return [String]
1523
+ attr_accessor :parameter_type
1524
+
1525
+ def initialize(**args)
1526
+ update!(**args)
1527
+ end
1528
+
1529
+ # Update properties of this object
1530
+ def update!(**args)
1531
+ @allowed_values = args[:allowed_values] if args.key?(:allowed_values)
1532
+ @max_value = args[:max_value] if args.key?(:max_value)
1533
+ @min_value = args[:min_value] if args.key?(:min_value)
1534
+ @name = args[:name] if args.key?(:name)
1535
+ @optional = args[:optional] if args.key?(:optional)
1536
+ @parameter_type = args[:parameter_type] if args.key?(:parameter_type)
1537
+ end
1538
+ end
1539
+
1540
+ # Represents period in days/months/years.
1541
+ class GoogleCloudChannelV1Period
1542
+ include Google::Apis::Core::Hashable
1543
+
1544
+ # Total duration of Period Type defined.
1545
+ # Corresponds to the JSON property `duration`
1546
+ # @return [Fixnum]
1547
+ attr_accessor :duration
1548
+
1549
+ # Period Type.
1550
+ # Corresponds to the JSON property `periodType`
1551
+ # @return [String]
1552
+ attr_accessor :period_type
1553
+
1554
+ def initialize(**args)
1555
+ update!(**args)
1556
+ end
1557
+
1558
+ # Update properties of this object
1559
+ def update!(**args)
1560
+ @duration = args[:duration] if args.key?(:duration)
1561
+ @period_type = args[:period_type] if args.key?(:period_type)
1562
+ end
1563
+ end
1564
+
1565
+ # The payment plan for the Offer. Describes how to make a payment.
1566
+ class GoogleCloudChannelV1Plan
1567
+ include Google::Apis::Core::Hashable
1568
+
1569
+ # Represents period in days/months/years.
1570
+ # Corresponds to the JSON property `paymentCycle`
1571
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Period]
1572
+ attr_accessor :payment_cycle
1573
+
1574
+ # Describes how a reseller will be billed.
1575
+ # Corresponds to the JSON property `paymentPlan`
1576
+ # @return [String]
1577
+ attr_accessor :payment_plan
1578
+
1579
+ # Specifies when the payment needs to happen.
1580
+ # Corresponds to the JSON property `paymentType`
1581
+ # @return [String]
1582
+ attr_accessor :payment_type
1583
+
1584
+ # Represents period in days/months/years.
1585
+ # Corresponds to the JSON property `trialPeriod`
1586
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Period]
1587
+ attr_accessor :trial_period
1588
+
1589
+ def initialize(**args)
1590
+ update!(**args)
1591
+ end
1592
+
1593
+ # Update properties of this object
1594
+ def update!(**args)
1595
+ @payment_cycle = args[:payment_cycle] if args.key?(:payment_cycle)
1596
+ @payment_plan = args[:payment_plan] if args.key?(:payment_plan)
1597
+ @payment_type = args[:payment_type] if args.key?(:payment_type)
1598
+ @trial_period = args[:trial_period] if args.key?(:trial_period)
1599
+ end
1600
+ end
1601
+
1602
+ # Represents the price of the Offer.
1603
+ class GoogleCloudChannelV1Price
1604
+ include Google::Apis::Core::Hashable
1605
+
1606
+ # Represents an amount of money with its currency type.
1607
+ # Corresponds to the JSON property `basePrice`
1608
+ # @return [Google::Apis::CloudchannelV1::GoogleTypeMoney]
1609
+ attr_accessor :base_price
1610
+
1611
+ # Discount percentage, represented as decimal. For example, a 20% discount will
1612
+ # be represent as 0.2.
1613
+ # Corresponds to the JSON property `discount`
1614
+ # @return [Float]
1615
+ attr_accessor :discount
1616
+
1617
+ # Represents an amount of money with its currency type.
1618
+ # Corresponds to the JSON property `effectivePrice`
1619
+ # @return [Google::Apis::CloudchannelV1::GoogleTypeMoney]
1620
+ attr_accessor :effective_price
1621
+
1622
+ # Link to external price list, such as link to Google Voice rate card.
1623
+ # Corresponds to the JSON property `externalPriceUri`
1624
+ # @return [String]
1625
+ attr_accessor :external_price_uri
1626
+
1627
+ def initialize(**args)
1628
+ update!(**args)
1629
+ end
1630
+
1631
+ # Update properties of this object
1632
+ def update!(**args)
1633
+ @base_price = args[:base_price] if args.key?(:base_price)
1634
+ @discount = args[:discount] if args.key?(:discount)
1635
+ @effective_price = args[:effective_price] if args.key?(:effective_price)
1636
+ @external_price_uri = args[:external_price_uri] if args.key?(:external_price_uri)
1637
+ end
1638
+ end
1639
+
1640
+ # Represents price by resource type.
1641
+ class GoogleCloudChannelV1PriceByResource
1642
+ include Google::Apis::Core::Hashable
1643
+
1644
+ # Represents the price of the Offer.
1645
+ # Corresponds to the JSON property `price`
1646
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Price]
1647
+ attr_accessor :price
1648
+
1649
+ # Specifies the price by time range.
1650
+ # Corresponds to the JSON property `pricePhases`
1651
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1PricePhase>]
1652
+ attr_accessor :price_phases
1653
+
1654
+ # Resource Type. Example: SEAT
1655
+ # Corresponds to the JSON property `resourceType`
1656
+ # @return [String]
1657
+ attr_accessor :resource_type
1658
+
1659
+ def initialize(**args)
1660
+ update!(**args)
1661
+ end
1662
+
1663
+ # Update properties of this object
1664
+ def update!(**args)
1665
+ @price = args[:price] if args.key?(:price)
1666
+ @price_phases = args[:price_phases] if args.key?(:price_phases)
1667
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
1668
+ end
1669
+ end
1670
+
1671
+ # Specifies the price by the duration of months. For example, a 20% discount for
1672
+ # the first six months, then a 10% discount starting on the seventh month.
1673
+ class GoogleCloudChannelV1PricePhase
1674
+ include Google::Apis::Core::Hashable
1675
+
1676
+ # Defines first period for the phase.
1677
+ # Corresponds to the JSON property `firstPeriod`
1678
+ # @return [Fixnum]
1679
+ attr_accessor :first_period
1680
+
1681
+ # Defines first period for the phase.
1682
+ # Corresponds to the JSON property `lastPeriod`
1683
+ # @return [Fixnum]
1684
+ attr_accessor :last_period
1685
+
1686
+ # Defines the phase period type.
1687
+ # Corresponds to the JSON property `periodType`
1688
+ # @return [String]
1689
+ attr_accessor :period_type
1690
+
1691
+ # Represents the price of the Offer.
1692
+ # Corresponds to the JSON property `price`
1693
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Price]
1694
+ attr_accessor :price
1695
+
1696
+ # Price by the resource tiers.
1697
+ # Corresponds to the JSON property `priceTiers`
1698
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1PriceTier>]
1699
+ attr_accessor :price_tiers
1700
+
1701
+ def initialize(**args)
1702
+ update!(**args)
1703
+ end
1704
+
1705
+ # Update properties of this object
1706
+ def update!(**args)
1707
+ @first_period = args[:first_period] if args.key?(:first_period)
1708
+ @last_period = args[:last_period] if args.key?(:last_period)
1709
+ @period_type = args[:period_type] if args.key?(:period_type)
1710
+ @price = args[:price] if args.key?(:price)
1711
+ @price_tiers = args[:price_tiers] if args.key?(:price_tiers)
1712
+ end
1713
+ end
1714
+
1715
+ # Defines price at resource tier level. For example, an offer with following
1716
+ # definition : * Tier 1: Provide 25% discount for all seats between 1 and 25. *
1717
+ # Tier 2: Provide 10% discount for all seats between 26 and 100. * Tier 3:
1718
+ # Provide flat 15% discount for all seats above 100. Each of these tiers is
1719
+ # represented as a PriceTier.
1720
+ class GoogleCloudChannelV1PriceTier
1721
+ include Google::Apis::Core::Hashable
1722
+
1723
+ # First resource for which the tier price applies.
1724
+ # Corresponds to the JSON property `firstResource`
1725
+ # @return [Fixnum]
1726
+ attr_accessor :first_resource
1727
+
1728
+ # Last resource for which the tier price applies.
1729
+ # Corresponds to the JSON property `lastResource`
1730
+ # @return [Fixnum]
1731
+ attr_accessor :last_resource
1732
+
1733
+ # Represents the price of the Offer.
1734
+ # Corresponds to the JSON property `price`
1735
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Price]
1736
+ attr_accessor :price
1737
+
1738
+ def initialize(**args)
1739
+ update!(**args)
1740
+ end
1741
+
1742
+ # Update properties of this object
1743
+ def update!(**args)
1744
+ @first_resource = args[:first_resource] if args.key?(:first_resource)
1745
+ @last_resource = args[:last_resource] if args.key?(:last_resource)
1746
+ @price = args[:price] if args.key?(:price)
1747
+ end
1748
+ end
1749
+
1750
+ # A Product is the entity a customer uses when placing an order. For example,
1751
+ # Google Workspace, Google Voice, etc.
1752
+ class GoogleCloudChannelV1Product
1753
+ include Google::Apis::Core::Hashable
1754
+
1755
+ # Represents the marketing information for a Product, SKU or Offer.
1756
+ # Corresponds to the JSON property `marketingInfo`
1757
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1MarketingInfo]
1758
+ attr_accessor :marketing_info
1759
+
1760
+ # Resource Name of the Product. Format: products/`product_id`
1761
+ # Corresponds to the JSON property `name`
1762
+ # @return [String]
1763
+ attr_accessor :name
1764
+
1765
+ def initialize(**args)
1766
+ update!(**args)
1767
+ end
1768
+
1769
+ # Update properties of this object
1770
+ def update!(**args)
1771
+ @marketing_info = args[:marketing_info] if args.key?(:marketing_info)
1772
+ @name = args[:name] if args.key?(:name)
1773
+ end
1774
+ end
1775
+
1776
+ # Request message for CloudChannelService.ProvisionCloudIdentity
1777
+ class GoogleCloudChannelV1ProvisionCloudIdentityRequest
1778
+ include Google::Apis::Core::Hashable
1779
+
1780
+ # Cloud Identity information for the Cloud Channel Customer.
1781
+ # Corresponds to the JSON property `cloudIdentityInfo`
1782
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CloudIdentityInfo]
1783
+ attr_accessor :cloud_identity_info
1784
+
1785
+ # Information needed to create an Admin User for Google Workspace.
1786
+ # Corresponds to the JSON property `user`
1787
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1AdminUser]
1788
+ attr_accessor :user
1789
+
1790
+ # If set, validate the request and preview the review, but do not actually post
1791
+ # it.
1792
+ # Corresponds to the JSON property `validateOnly`
1793
+ # @return [Boolean]
1794
+ attr_accessor :validate_only
1795
+ alias_method :validate_only?, :validate_only
1796
+
1797
+ def initialize(**args)
1798
+ update!(**args)
1799
+ end
1800
+
1801
+ # Update properties of this object
1802
+ def update!(**args)
1803
+ @cloud_identity_info = args[:cloud_identity_info] if args.key?(:cloud_identity_info)
1804
+ @user = args[:user] if args.key?(:user)
1805
+ @validate_only = args[:validate_only] if args.key?(:validate_only)
1806
+ end
1807
+ end
1808
+
1809
+ # Service provisioned for an entitlement.
1810
+ class GoogleCloudChannelV1ProvisionedService
1811
+ include Google::Apis::Core::Hashable
1812
+
1813
+ # Output only. The product pertaining to the provisioning resource as specified
1814
+ # in the Offer.
1815
+ # Corresponds to the JSON property `productId`
1816
+ # @return [String]
1817
+ attr_accessor :product_id
1818
+
1819
+ # Output only. Provisioning ID of the entitlement. For Google Workspace, this
1820
+ # would be the underlying Subscription ID.
1821
+ # Corresponds to the JSON property `provisioningId`
1822
+ # @return [String]
1823
+ attr_accessor :provisioning_id
1824
+
1825
+ # Output only. The SKU pertaining to the provisioning resource as specified in
1826
+ # the Offer.
1827
+ # Corresponds to the JSON property `skuId`
1828
+ # @return [String]
1829
+ attr_accessor :sku_id
1830
+
1831
+ def initialize(**args)
1832
+ update!(**args)
1833
+ end
1834
+
1835
+ # Update properties of this object
1836
+ def update!(**args)
1837
+ @product_id = args[:product_id] if args.key?(:product_id)
1838
+ @provisioning_id = args[:provisioning_id] if args.key?(:provisioning_id)
1839
+ @sku_id = args[:sku_id] if args.key?(:sku_id)
1840
+ end
1841
+ end
1842
+
1843
+ # Offer that can be puchased for a customer. This is used in
1844
+ # ListPurchasableOffer API response.
1845
+ class GoogleCloudChannelV1PurchasableOffer
1846
+ include Google::Apis::Core::Hashable
1847
+
1848
+ # Represents an offer made to resellers for purchase. An offer is associated
1849
+ # with a Sku, has a plan for payment, a price, and defines the constraints for
1850
+ # buying.
1851
+ # Corresponds to the JSON property `offer`
1852
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Offer]
1853
+ attr_accessor :offer
1854
+
1855
+ def initialize(**args)
1856
+ update!(**args)
1857
+ end
1858
+
1859
+ # Update properties of this object
1860
+ def update!(**args)
1861
+ @offer = args[:offer] if args.key?(:offer)
1862
+ end
1863
+ end
1864
+
1865
+ # SKU that can be used for a puchase. This is used in ListPurchasableSku API
1866
+ # response.
1867
+ class GoogleCloudChannelV1PurchasableSku
1868
+ include Google::Apis::Core::Hashable
1869
+
1870
+ # Represents a product's purchasable Stock Keeping Unit (SKU). SKUs represent
1871
+ # the different variations of the product. For example, Google Workspace
1872
+ # Business Standard and Google Workspace Business Plus are Google Workspace
1873
+ # product SKUs.
1874
+ # Corresponds to the JSON property `sku`
1875
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Sku]
1876
+ attr_accessor :sku
1877
+
1878
+ def initialize(**args)
1879
+ update!(**args)
1880
+ end
1881
+
1882
+ # Update properties of this object
1883
+ def update!(**args)
1884
+ @sku = args[:sku] if args.key?(:sku)
1885
+ end
1886
+ end
1887
+
1888
+ # Request Message for RegisterSubscriber.
1889
+ class GoogleCloudChannelV1RegisterSubscriberRequest
1890
+ include Google::Apis::Core::Hashable
1891
+
1892
+ # Required. Service account which will provide subscriber access to the
1893
+ # registered topic.
1894
+ # Corresponds to the JSON property `serviceAccount`
1895
+ # @return [String]
1896
+ attr_accessor :service_account
1897
+
1898
+ def initialize(**args)
1899
+ update!(**args)
1900
+ end
1901
+
1902
+ # Update properties of this object
1903
+ def update!(**args)
1904
+ @service_account = args[:service_account] if args.key?(:service_account)
1905
+ end
1906
+ end
1907
+
1908
+ # Response Message for RegisterSubscriber.
1909
+ class GoogleCloudChannelV1RegisterSubscriberResponse
1910
+ include Google::Apis::Core::Hashable
1911
+
1912
+ # Name of the topic to which the subscriber will listen to.
1913
+ # Corresponds to the JSON property `topic`
1914
+ # @return [String]
1915
+ attr_accessor :topic
1916
+
1917
+ def initialize(**args)
1918
+ update!(**args)
1919
+ end
1920
+
1921
+ # Update properties of this object
1922
+ def update!(**args)
1923
+ @topic = args[:topic] if args.key?(:topic)
1924
+ end
1925
+ end
1926
+
1927
+ # Renewal settings for renewable Offers.
1928
+ class GoogleCloudChannelV1RenewalSettings
1929
+ include Google::Apis::Core::Hashable
1930
+
1931
+ # If false, the plan will be completed at the end date.
1932
+ # Corresponds to the JSON property `enableRenewal`
1933
+ # @return [Boolean]
1934
+ attr_accessor :enable_renewal
1935
+ alias_method :enable_renewal?, :enable_renewal
1936
+
1937
+ # Represents period in days/months/years.
1938
+ # Corresponds to the JSON property `paymentCycle`
1939
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Period]
1940
+ attr_accessor :payment_cycle
1941
+
1942
+ # Describes how a reseller will be billed.
1943
+ # Corresponds to the JSON property `paymentPlan`
1944
+ # @return [String]
1945
+ attr_accessor :payment_plan
1946
+
1947
+ # If true and enable_renewal = true, the unit (for example seats or licenses)
1948
+ # will be set to the number of active units at renewal time.
1949
+ # Corresponds to the JSON property `resizeUnitCount`
1950
+ # @return [Boolean]
1951
+ attr_accessor :resize_unit_count
1952
+ alias_method :resize_unit_count?, :resize_unit_count
1953
+
1954
+ def initialize(**args)
1955
+ update!(**args)
1956
+ end
1957
+
1958
+ # Update properties of this object
1959
+ def update!(**args)
1960
+ @enable_renewal = args[:enable_renewal] if args.key?(:enable_renewal)
1961
+ @payment_cycle = args[:payment_cycle] if args.key?(:payment_cycle)
1962
+ @payment_plan = args[:payment_plan] if args.key?(:payment_plan)
1963
+ @resize_unit_count = args[:resize_unit_count] if args.key?(:resize_unit_count)
1964
+ end
1965
+ end
1966
+
1967
+ # Represents a product's purchasable Stock Keeping Unit (SKU). SKUs represent
1968
+ # the different variations of the product. For example, Google Workspace
1969
+ # Business Standard and Google Workspace Business Plus are Google Workspace
1970
+ # product SKUs.
1971
+ class GoogleCloudChannelV1Sku
1972
+ include Google::Apis::Core::Hashable
1973
+
1974
+ # Represents the marketing information for a Product, SKU or Offer.
1975
+ # Corresponds to the JSON property `marketingInfo`
1976
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1MarketingInfo]
1977
+ attr_accessor :marketing_info
1978
+
1979
+ # Resource Name of the SKU. Format: products/`product_id`/skus/`sku_id`
1980
+ # Corresponds to the JSON property `name`
1981
+ # @return [String]
1982
+ attr_accessor :name
1983
+
1984
+ # A Product is the entity a customer uses when placing an order. For example,
1985
+ # Google Workspace, Google Voice, etc.
1986
+ # Corresponds to the JSON property `product`
1987
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Product]
1988
+ attr_accessor :product
1989
+
1990
+ def initialize(**args)
1991
+ update!(**args)
1992
+ end
1993
+
1994
+ # Update properties of this object
1995
+ def update!(**args)
1996
+ @marketing_info = args[:marketing_info] if args.key?(:marketing_info)
1997
+ @name = args[:name] if args.key?(:name)
1998
+ @product = args[:product] if args.key?(:product)
1999
+ end
2000
+ end
2001
+
2002
+ # Request message for CloudChannelService.StartPaidService.
2003
+ class GoogleCloudChannelV1StartPaidServiceRequest
2004
+ include Google::Apis::Core::Hashable
2005
+
2006
+ # Optional. An optional request ID to identify requests. Specify a unique
2007
+ # request ID so that if you must retry your request, the server will know to
2008
+ # ignore the request if it has already been completed. For example, consider a
2009
+ # situation where you make an initial request and the request times out. If you
2010
+ # make the request again with the same request ID, the server can check if the
2011
+ # original operation with the same request ID was received, and if so, will
2012
+ # ignore the second request. The request ID must be a valid [UUID](https://tools.
2013
+ # ietf.org/html/rfc4122) with the exception that zero UUID is not supported (`
2014
+ # 00000000-0000-0000-0000-000000000000`).
2015
+ # Corresponds to the JSON property `requestId`
2016
+ # @return [String]
2017
+ attr_accessor :request_id
2018
+
2019
+ def initialize(**args)
2020
+ update!(**args)
2021
+ end
2022
+
2023
+ # Update properties of this object
2024
+ def update!(**args)
2025
+ @request_id = args[:request_id] if args.key?(:request_id)
2026
+ end
2027
+ end
2028
+
2029
+ # Represents information which resellers will get as part of notification from
2030
+ # Cloud Pub/Sub.
2031
+ class GoogleCloudChannelV1SubscriberEvent
2032
+ include Google::Apis::Core::Hashable
2033
+
2034
+ # Represents Pub/Sub message content describing customer update.
2035
+ # Corresponds to the JSON property `customerEvent`
2036
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerEvent]
2037
+ attr_accessor :customer_event
2038
+
2039
+ # Represents Pub/Sub message content describing entitlement update.
2040
+ # Corresponds to the JSON property `entitlementEvent`
2041
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1EntitlementEvent]
2042
+ attr_accessor :entitlement_event
2043
+
2044
+ def initialize(**args)
2045
+ update!(**args)
2046
+ end
2047
+
2048
+ # Update properties of this object
2049
+ def update!(**args)
2050
+ @customer_event = args[:customer_event] if args.key?(:customer_event)
2051
+ @entitlement_event = args[:entitlement_event] if args.key?(:entitlement_event)
2052
+ end
2053
+ end
2054
+
2055
+ # Request message for CloudChannelService.SuspendEntitlement.
2056
+ class GoogleCloudChannelV1SuspendEntitlementRequest
2057
+ include Google::Apis::Core::Hashable
2058
+
2059
+ # Optional. An optional request ID to identify requests. Specify a unique
2060
+ # request ID so that if you must retry your request, the server will know to
2061
+ # ignore the request if it has already been completed. For example, consider a
2062
+ # situation where you make an initial request and the request times out. If you
2063
+ # make the request again with the same request ID, the server can check if the
2064
+ # original operation with the same request ID was received, and if so, will
2065
+ # ignore the second request. The request ID must be a valid [UUID](https://tools.
2066
+ # ietf.org/html/rfc4122) with the exception that zero UUID is not supported (`
2067
+ # 00000000-0000-0000-0000-000000000000`).
2068
+ # Corresponds to the JSON property `requestId`
2069
+ # @return [String]
2070
+ attr_accessor :request_id
2071
+
2072
+ def initialize(**args)
2073
+ update!(**args)
2074
+ end
2075
+
2076
+ # Update properties of this object
2077
+ def update!(**args)
2078
+ @request_id = args[:request_id] if args.key?(:request_id)
2079
+ end
2080
+ end
2081
+
2082
+ # Specifies transfer eligibility of a SKU.
2083
+ class GoogleCloudChannelV1TransferEligibility
2084
+ include Google::Apis::Core::Hashable
2085
+
2086
+ # Localized description if reseller is not eligible to transfer the SKU.
2087
+ # Corresponds to the JSON property `description`
2088
+ # @return [String]
2089
+ attr_accessor :description
2090
+
2091
+ # Specified the reason for ineligibility.
2092
+ # Corresponds to the JSON property `ineligibilityReason`
2093
+ # @return [String]
2094
+ attr_accessor :ineligibility_reason
2095
+
2096
+ # Whether reseller is eligible to transfer the SKU.
2097
+ # Corresponds to the JSON property `isEligible`
2098
+ # @return [Boolean]
2099
+ attr_accessor :is_eligible
2100
+ alias_method :is_eligible?, :is_eligible
2101
+
2102
+ def initialize(**args)
2103
+ update!(**args)
2104
+ end
2105
+
2106
+ # Update properties of this object
2107
+ def update!(**args)
2108
+ @description = args[:description] if args.key?(:description)
2109
+ @ineligibility_reason = args[:ineligibility_reason] if args.key?(:ineligibility_reason)
2110
+ @is_eligible = args[:is_eligible] if args.key?(:is_eligible)
2111
+ end
2112
+ end
2113
+
2114
+ # Request message for CloudChannelService.TransferEntitlements.
2115
+ class GoogleCloudChannelV1TransferEntitlementsRequest
2116
+ include Google::Apis::Core::Hashable
2117
+
2118
+ # This token is generated by the Super Admin of the resold customer to authorize
2119
+ # a reseller to access their Cloud Identity and purchase entitlements on their
2120
+ # behalf. This token can be omitted once the authorization is generated. See
2121
+ # https://support.google.com/a/answer/7643790 for more details.
2122
+ # Corresponds to the JSON property `authToken`
2123
+ # @return [String]
2124
+ attr_accessor :auth_token
2125
+
2126
+ # Required. The new entitlements to be created or transferred.
2127
+ # Corresponds to the JSON property `entitlements`
2128
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Entitlement>]
2129
+ attr_accessor :entitlements
2130
+
2131
+ # Optional. An optional request ID to identify requests. Specify a unique
2132
+ # request ID so that if you must retry your request, the server will know to
2133
+ # ignore the request if it has already been completed. For example, consider a
2134
+ # situation where you make an initial request and the request times out. If you
2135
+ # make the request again with the same request ID, the server can check if the
2136
+ # original operation with the same request ID was received, and if so, will
2137
+ # ignore the second request. The request ID must be a valid [UUID](https://tools.
2138
+ # ietf.org/html/rfc4122) with the exception that zero UUID is not supported (`
2139
+ # 00000000-0000-0000-0000-000000000000`).
2140
+ # Corresponds to the JSON property `requestId`
2141
+ # @return [String]
2142
+ attr_accessor :request_id
2143
+
2144
+ def initialize(**args)
2145
+ update!(**args)
2146
+ end
2147
+
2148
+ # Update properties of this object
2149
+ def update!(**args)
2150
+ @auth_token = args[:auth_token] if args.key?(:auth_token)
2151
+ @entitlements = args[:entitlements] if args.key?(:entitlements)
2152
+ @request_id = args[:request_id] if args.key?(:request_id)
2153
+ end
2154
+ end
2155
+
2156
+ # Response message for CloudChannelService.TransferEntitlements. This will be
2157
+ # put into the response field of google.longrunning.Operation.
2158
+ class GoogleCloudChannelV1TransferEntitlementsResponse
2159
+ include Google::Apis::Core::Hashable
2160
+
2161
+ # The entitlements that have been transferred.
2162
+ # Corresponds to the JSON property `entitlements`
2163
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Entitlement>]
2164
+ attr_accessor :entitlements
2165
+
2166
+ def initialize(**args)
2167
+ update!(**args)
2168
+ end
2169
+
2170
+ # Update properties of this object
2171
+ def update!(**args)
2172
+ @entitlements = args[:entitlements] if args.key?(:entitlements)
2173
+ end
2174
+ end
2175
+
2176
+ # Request message for CloudChannelService.TransferEntitlementsToGoogle.
2177
+ class GoogleCloudChannelV1TransferEntitlementsToGoogleRequest
2178
+ include Google::Apis::Core::Hashable
2179
+
2180
+ # Required. The entitlements to be transferred to Google.
2181
+ # Corresponds to the JSON property `entitlements`
2182
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Entitlement>]
2183
+ attr_accessor :entitlements
2184
+
2185
+ # Optional. An optional request ID to identify requests. Specify a unique
2186
+ # request ID so that if you must retry your request, the server will know to
2187
+ # ignore the request if it has already been completed. For example, consider a
2188
+ # situation where you make an initial request and the request times out. If you
2189
+ # make the request again with the same request ID, the server can check if the
2190
+ # original operation with the same request ID was received, and if so, will
2191
+ # ignore the second request. The request ID must be a valid [UUID](https://tools.
2192
+ # ietf.org/html/rfc4122) with the exception that zero UUID is not supported (`
2193
+ # 00000000-0000-0000-0000-000000000000`).
2194
+ # Corresponds to the JSON property `requestId`
2195
+ # @return [String]
2196
+ attr_accessor :request_id
2197
+
2198
+ def initialize(**args)
2199
+ update!(**args)
2200
+ end
2201
+
2202
+ # Update properties of this object
2203
+ def update!(**args)
2204
+ @entitlements = args[:entitlements] if args.key?(:entitlements)
2205
+ @request_id = args[:request_id] if args.key?(:request_id)
2206
+ end
2207
+ end
2208
+
2209
+ # TransferableOffer represents an Offer that can be used in Transfer. Read-only.
2210
+ class GoogleCloudChannelV1TransferableOffer
2211
+ include Google::Apis::Core::Hashable
2212
+
2213
+ # Represents an offer made to resellers for purchase. An offer is associated
2214
+ # with a Sku, has a plan for payment, a price, and defines the constraints for
2215
+ # buying.
2216
+ # Corresponds to the JSON property `offer`
2217
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Offer]
2218
+ attr_accessor :offer
2219
+
2220
+ def initialize(**args)
2221
+ update!(**args)
2222
+ end
2223
+
2224
+ # Update properties of this object
2225
+ def update!(**args)
2226
+ @offer = args[:offer] if args.key?(:offer)
2227
+ end
2228
+ end
2229
+
2230
+ # TransferableSku represents information a reseller needs to view existing
2231
+ # provisioned services for a customer that they do not own. Read-only.
2232
+ class GoogleCloudChannelV1TransferableSku
2233
+ include Google::Apis::Core::Hashable
2234
+
2235
+ # Represents a product's purchasable Stock Keeping Unit (SKU). SKUs represent
2236
+ # the different variations of the product. For example, Google Workspace
2237
+ # Business Standard and Google Workspace Business Plus are Google Workspace
2238
+ # product SKUs.
2239
+ # Corresponds to the JSON property `sku`
2240
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Sku]
2241
+ attr_accessor :sku
2242
+
2243
+ # Specifies transfer eligibility of a SKU.
2244
+ # Corresponds to the JSON property `transferEligibility`
2245
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1TransferEligibility]
2246
+ attr_accessor :transfer_eligibility
2247
+
2248
+ def initialize(**args)
2249
+ update!(**args)
2250
+ end
2251
+
2252
+ # Update properties of this object
2253
+ def update!(**args)
2254
+ @sku = args[:sku] if args.key?(:sku)
2255
+ @transfer_eligibility = args[:transfer_eligibility] if args.key?(:transfer_eligibility)
2256
+ end
2257
+ end
2258
+
2259
+ # Settings for trial offers.
2260
+ class GoogleCloudChannelV1TrialSettings
2261
+ include Google::Apis::Core::Hashable
2262
+
2263
+ # Date when the trial ends. The value is in milliseconds using the UNIX Epoch
2264
+ # format. See an example [Epoch converter](https://www.epochconverter.com).
2265
+ # Corresponds to the JSON property `endTime`
2266
+ # @return [String]
2267
+ attr_accessor :end_time
2268
+
2269
+ # Determines if the entitlement is in a trial or not: * `true` - The entitlement
2270
+ # is in trial. * `false` - The entitlement is not in trial.
2271
+ # Corresponds to the JSON property `trial`
2272
+ # @return [Boolean]
2273
+ attr_accessor :trial
2274
+ alias_method :trial?, :trial
2275
+
2276
+ def initialize(**args)
2277
+ update!(**args)
2278
+ end
2279
+
2280
+ # Update properties of this object
2281
+ def update!(**args)
2282
+ @end_time = args[:end_time] if args.key?(:end_time)
2283
+ @trial = args[:trial] if args.key?(:trial)
2284
+ end
2285
+ end
2286
+
2287
+ # Request Message for UnregisterSubscriber.
2288
+ class GoogleCloudChannelV1UnregisterSubscriberRequest
2289
+ include Google::Apis::Core::Hashable
2290
+
2291
+ # Required. Service account which will be unregistered from getting subscriber
2292
+ # access to the topic.
2293
+ # Corresponds to the JSON property `serviceAccount`
2294
+ # @return [String]
2295
+ attr_accessor :service_account
2296
+
2297
+ def initialize(**args)
2298
+ update!(**args)
2299
+ end
2300
+
2301
+ # Update properties of this object
2302
+ def update!(**args)
2303
+ @service_account = args[:service_account] if args.key?(:service_account)
2304
+ end
2305
+ end
2306
+
2307
+ # Response Message for UnregisterSubscriber.
2308
+ class GoogleCloudChannelV1UnregisterSubscriberResponse
2309
+ include Google::Apis::Core::Hashable
2310
+
2311
+ # Name of the topic from which the service account subscriber access has been
2312
+ # removed.
2313
+ # Corresponds to the JSON property `topic`
2314
+ # @return [String]
2315
+ attr_accessor :topic
2316
+
2317
+ def initialize(**args)
2318
+ update!(**args)
2319
+ end
2320
+
2321
+ # Update properties of this object
2322
+ def update!(**args)
2323
+ @topic = args[:topic] if args.key?(:topic)
2324
+ end
2325
+ end
2326
+
2327
+ # Request message for CloudChannelService.UpdateChannelPartnerLink
2328
+ class GoogleCloudChannelV1UpdateChannelPartnerLinkRequest
2329
+ include Google::Apis::Core::Hashable
2330
+
2331
+ # Entity representing a link between distributors and their indirect resellers
2332
+ # in an n-tier resale channel.
2333
+ # Corresponds to the JSON property `channelPartnerLink`
2334
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerLink]
2335
+ attr_accessor :channel_partner_link
2336
+
2337
+ # Required. The update mask that applies to the resource. The only allowable
2338
+ # value for update mask is channel_partner_link.link_state.
2339
+ # Corresponds to the JSON property `updateMask`
2340
+ # @return [String]
2341
+ attr_accessor :update_mask
2342
+
2343
+ def initialize(**args)
2344
+ update!(**args)
2345
+ end
2346
+
2347
+ # Update properties of this object
2348
+ def update!(**args)
2349
+ @channel_partner_link = args[:channel_partner_link] if args.key?(:channel_partner_link)
2350
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
2351
+ end
2352
+ end
2353
+
2354
+ # Data type and value of a parameter.
2355
+ class GoogleCloudChannelV1Value
2356
+ include Google::Apis::Core::Hashable
2357
+
2358
+ # Represents a double value.
2359
+ # Corresponds to the JSON property `doubleValue`
2360
+ # @return [Float]
2361
+ attr_accessor :double_value
2362
+
2363
+ # Represents an int64 value.
2364
+ # Corresponds to the JSON property `int64Value`
2365
+ # @return [Fixnum]
2366
+ attr_accessor :int64_value
2367
+
2368
+ # Represents an 'Any' proto value.
2369
+ # Corresponds to the JSON property `protoValue`
2370
+ # @return [Hash<String,Object>]
2371
+ attr_accessor :proto_value
2372
+
2373
+ # Represents a string value.
2374
+ # Corresponds to the JSON property `stringValue`
2375
+ # @return [String]
2376
+ attr_accessor :string_value
2377
+
2378
+ def initialize(**args)
2379
+ update!(**args)
2380
+ end
2381
+
2382
+ # Update properties of this object
2383
+ def update!(**args)
2384
+ @double_value = args[:double_value] if args.key?(:double_value)
2385
+ @int64_value = args[:int64_value] if args.key?(:int64_value)
2386
+ @proto_value = args[:proto_value] if args.key?(:proto_value)
2387
+ @string_value = args[:string_value] if args.key?(:string_value)
2388
+ end
2389
+ end
2390
+
2391
+ # Association links that an entitlement has to other entitlements.
2392
+ class GoogleCloudChannelV1alpha1AssociationInfo
2393
+ include Google::Apis::Core::Hashable
2394
+
2395
+ # The name of the base entitlement, for which this entitlement is an add-on.
2396
+ # Corresponds to the JSON property `baseEntitlement`
2397
+ # @return [String]
2398
+ attr_accessor :base_entitlement
2399
+
2400
+ def initialize(**args)
2401
+ update!(**args)
2402
+ end
2403
+
2404
+ # Update properties of this object
2405
+ def update!(**args)
2406
+ @base_entitlement = args[:base_entitlement] if args.key?(:base_entitlement)
2407
+ end
2408
+ end
2409
+
2410
+ # Commitment settings for commitment-based offers.
2411
+ class GoogleCloudChannelV1alpha1CommitmentSettings
2412
+ include Google::Apis::Core::Hashable
2413
+
2414
+ # Output only. Commitment end timestamp.
2415
+ # Corresponds to the JSON property `endTime`
2416
+ # @return [String]
2417
+ attr_accessor :end_time
2418
+
2419
+ # Renewal settings for renewable Offers.
2420
+ # Corresponds to the JSON property `renewalSettings`
2421
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1RenewalSettings]
2422
+ attr_accessor :renewal_settings
2423
+
2424
+ # Output only. Commitment start timestamp.
2425
+ # Corresponds to the JSON property `startTime`
2426
+ # @return [String]
2427
+ attr_accessor :start_time
2428
+
2429
+ def initialize(**args)
2430
+ update!(**args)
2431
+ end
2432
+
2433
+ # Update properties of this object
2434
+ def update!(**args)
2435
+ @end_time = args[:end_time] if args.key?(:end_time)
2436
+ @renewal_settings = args[:renewal_settings] if args.key?(:renewal_settings)
2437
+ @start_time = args[:start_time] if args.key?(:start_time)
2438
+ end
2439
+ end
2440
+
2441
+ # Represents Pub/Sub message content describing customer update.
2442
+ class GoogleCloudChannelV1alpha1CustomerEvent
2443
+ include Google::Apis::Core::Hashable
2444
+
2445
+ # Resource name of the customer. Format: accounts/`account_id`/customers/`
2446
+ # customer_id`
2447
+ # Corresponds to the JSON property `customer`
2448
+ # @return [String]
2449
+ attr_accessor :customer
2450
+
2451
+ # Type of event which happened on the customer.
2452
+ # Corresponds to the JSON property `eventType`
2453
+ # @return [String]
2454
+ attr_accessor :event_type
2455
+
2456
+ def initialize(**args)
2457
+ update!(**args)
2458
+ end
2459
+
2460
+ # Update properties of this object
2461
+ def update!(**args)
2462
+ @customer = args[:customer] if args.key?(:customer)
2463
+ @event_type = args[:event_type] if args.key?(:event_type)
2464
+ end
2465
+ end
2466
+
2467
+ # An entitlement is a representation of a customer's ability to use a service.
2468
+ class GoogleCloudChannelV1alpha1Entitlement
2469
+ include Google::Apis::Core::Hashable
2470
+
2471
+ # The current number of users that are assigned a license for the product
2472
+ # defined in provisioned_service.skuId. Read-only. Deprecated: Use `parameters`
2473
+ # instead.
2474
+ # Corresponds to the JSON property `assignedUnits`
2475
+ # @return [Fixnum]
2476
+ attr_accessor :assigned_units
2477
+
2478
+ # Association links that an entitlement has to other entitlements.
2479
+ # Corresponds to the JSON property `associationInfo`
2480
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1AssociationInfo]
2481
+ attr_accessor :association_info
2482
+
2483
+ # Cloud Identity ID of a channel partner who will be the direct reseller for the
2484
+ # customer's order. This field is generally used in 2-tier ordering, where the
2485
+ # order is placed by a top-level distributor on behalf of their channel partner
2486
+ # or reseller. Required for distributors. Deprecated: `channel_partner_id` has
2487
+ # been moved to the Customer.
2488
+ # Corresponds to the JSON property `channelPartnerId`
2489
+ # @return [String]
2490
+ attr_accessor :channel_partner_id
2491
+
2492
+ # Commitment settings for commitment-based offers.
2493
+ # Corresponds to the JSON property `commitmentSettings`
2494
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1CommitmentSettings]
2495
+ attr_accessor :commitment_settings
2496
+
2497
+ # Output only. The time at which the entitlement is created.
2498
+ # Corresponds to the JSON property `createTime`
2499
+ # @return [String]
2500
+ attr_accessor :create_time
2501
+
2502
+ # Maximum number of units for a non commitment-based Offer, such as Flexible,
2503
+ # Trial or Free entitlements. For commitment-based entitlements, this is a read-
2504
+ # only field, which only the internal support team can update. Deprecated: Use `
2505
+ # parameters` instead.
2506
+ # Corresponds to the JSON property `maxUnits`
2507
+ # @return [Fixnum]
2508
+ attr_accessor :max_units
2509
+
2510
+ # Output only. Resource name of an entitlement in the form: accounts/`account_id`
2511
+ # /customers/`customer_id`/entitlements/`entitlement_id`.
2512
+ # Corresponds to the JSON property `name`
2513
+ # @return [String]
2514
+ attr_accessor :name
2515
+
2516
+ # Number of units for a commitment-based Offer. For example, for seat-based
2517
+ # Offers, this would be the number of seats; for license-based Offers, this
2518
+ # would be the number of licenses. Required for creating commitment-based Offers.
2519
+ # Deprecated: Use `parameters` instead.
2520
+ # Corresponds to the JSON property `numUnits`
2521
+ # @return [Fixnum]
2522
+ attr_accessor :num_units
2523
+
2524
+ # Required. The offer resource name for which the entitlement is to be created.
2525
+ # Takes the form: accounts/`account_id`/offers/`offer_id`.
2526
+ # Corresponds to the JSON property `offer`
2527
+ # @return [String]
2528
+ attr_accessor :offer
2529
+
2530
+ # Extended entitlement parameters. When creating an entitlement, valid
2531
+ # parameters' names and values are defined in the offer's parameter definitions.
2532
+ # Corresponds to the JSON property `parameters`
2533
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Parameter>]
2534
+ attr_accessor :parameters
2535
+
2536
+ # Service provisioned for an entitlement.
2537
+ # Corresponds to the JSON property `provisionedService`
2538
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1ProvisionedService]
2539
+ attr_accessor :provisioned_service
2540
+
2541
+ # Output only. Current provisioning state of the entitlement.
2542
+ # Corresponds to the JSON property `provisioningState`
2543
+ # @return [String]
2544
+ attr_accessor :provisioning_state
2545
+
2546
+ # Optional. This purchase order (PO) information is for resellers to use for
2547
+ # their company tracking usage. If a purchaseOrderId value is given, it appears
2548
+ # in the API responses and shows up in the invoice. The property accepts up to
2549
+ # 80 plain text characters.
2550
+ # Corresponds to the JSON property `purchaseOrderId`
2551
+ # @return [String]
2552
+ attr_accessor :purchase_order_id
2553
+
2554
+ # Output only. Enumerable of all current suspension reasons for an entitlement.
2555
+ # Corresponds to the JSON property `suspensionReasons`
2556
+ # @return [Array<String>]
2557
+ attr_accessor :suspension_reasons
2558
+
2559
+ # Settings for trial offers.
2560
+ # Corresponds to the JSON property `trialSettings`
2561
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1TrialSettings]
2562
+ attr_accessor :trial_settings
2563
+
2564
+ # Output only. The time at which the entitlement is updated.
2565
+ # Corresponds to the JSON property `updateTime`
2566
+ # @return [String]
2567
+ attr_accessor :update_time
2568
+
2569
+ def initialize(**args)
2570
+ update!(**args)
2571
+ end
2572
+
2573
+ # Update properties of this object
2574
+ def update!(**args)
2575
+ @assigned_units = args[:assigned_units] if args.key?(:assigned_units)
2576
+ @association_info = args[:association_info] if args.key?(:association_info)
2577
+ @channel_partner_id = args[:channel_partner_id] if args.key?(:channel_partner_id)
2578
+ @commitment_settings = args[:commitment_settings] if args.key?(:commitment_settings)
2579
+ @create_time = args[:create_time] if args.key?(:create_time)
2580
+ @max_units = args[:max_units] if args.key?(:max_units)
2581
+ @name = args[:name] if args.key?(:name)
2582
+ @num_units = args[:num_units] if args.key?(:num_units)
2583
+ @offer = args[:offer] if args.key?(:offer)
2584
+ @parameters = args[:parameters] if args.key?(:parameters)
2585
+ @provisioned_service = args[:provisioned_service] if args.key?(:provisioned_service)
2586
+ @provisioning_state = args[:provisioning_state] if args.key?(:provisioning_state)
2587
+ @purchase_order_id = args[:purchase_order_id] if args.key?(:purchase_order_id)
2588
+ @suspension_reasons = args[:suspension_reasons] if args.key?(:suspension_reasons)
2589
+ @trial_settings = args[:trial_settings] if args.key?(:trial_settings)
2590
+ @update_time = args[:update_time] if args.key?(:update_time)
2591
+ end
2592
+ end
2593
+
2594
+ # Represents Pub/Sub message content describing entitlement update.
2595
+ class GoogleCloudChannelV1alpha1EntitlementEvent
2596
+ include Google::Apis::Core::Hashable
2597
+
2598
+ # Resource name of an entitlement of the form: accounts/`account_id`/customers/`
2599
+ # customer_id`/entitlements/`entitlement_id`
2600
+ # Corresponds to the JSON property `entitlement`
2601
+ # @return [String]
2602
+ attr_accessor :entitlement
2603
+
2604
+ # Type of event which happened on the entitlement.
2605
+ # Corresponds to the JSON property `eventType`
2606
+ # @return [String]
2607
+ attr_accessor :event_type
2608
+
2609
+ def initialize(**args)
2610
+ update!(**args)
2611
+ end
2612
+
2613
+ # Update properties of this object
2614
+ def update!(**args)
2615
+ @entitlement = args[:entitlement] if args.key?(:entitlement)
2616
+ @event_type = args[:event_type] if args.key?(:event_type)
2617
+ end
2618
+ end
2619
+
2620
+ # Provides contextual information about a google.longrunning.Operation.
2621
+ class GoogleCloudChannelV1alpha1OperationMetadata
2622
+ include Google::Apis::Core::Hashable
2623
+
2624
+ # The RPC that initiated this Long Running Operation.
2625
+ # Corresponds to the JSON property `operationType`
2626
+ # @return [String]
2627
+ attr_accessor :operation_type
2628
+
2629
+ def initialize(**args)
2630
+ update!(**args)
2631
+ end
2632
+
2633
+ # Update properties of this object
2634
+ def update!(**args)
2635
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
2636
+ end
2637
+ end
2638
+
2639
+ # Definition for extended entitlement parameters.
2640
+ class GoogleCloudChannelV1alpha1Parameter
2641
+ include Google::Apis::Core::Hashable
2642
+
2643
+ # Output only. Specifies whether this parameter is allowed to be changed. For
2644
+ # example, for a Google Workspace Business Starter entitlement in commitment
2645
+ # plan, num_units is editable when entitlement is active.
2646
+ # Corresponds to the JSON property `editable`
2647
+ # @return [Boolean]
2648
+ attr_accessor :editable
2649
+ alias_method :editable?, :editable
2650
+
2651
+ # Name of the parameter.
2652
+ # Corresponds to the JSON property `name`
2653
+ # @return [String]
2654
+ attr_accessor :name
2655
+
2656
+ # Data type and value of a parameter.
2657
+ # Corresponds to the JSON property `value`
2658
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Value]
2659
+ attr_accessor :value
2660
+
2661
+ def initialize(**args)
2662
+ update!(**args)
2663
+ end
2664
+
2665
+ # Update properties of this object
2666
+ def update!(**args)
2667
+ @editable = args[:editable] if args.key?(:editable)
2668
+ @name = args[:name] if args.key?(:name)
2669
+ @value = args[:value] if args.key?(:value)
2670
+ end
2671
+ end
2672
+
2673
+ # Represents period in days/months/years.
2674
+ class GoogleCloudChannelV1alpha1Period
2675
+ include Google::Apis::Core::Hashable
2676
+
2677
+ # Total duration of Period Type defined.
2678
+ # Corresponds to the JSON property `duration`
2679
+ # @return [Fixnum]
2680
+ attr_accessor :duration
2681
+
2682
+ # Period Type.
2683
+ # Corresponds to the JSON property `periodType`
2684
+ # @return [String]
2685
+ attr_accessor :period_type
2686
+
2687
+ def initialize(**args)
2688
+ update!(**args)
2689
+ end
2690
+
2691
+ # Update properties of this object
2692
+ def update!(**args)
2693
+ @duration = args[:duration] if args.key?(:duration)
2694
+ @period_type = args[:period_type] if args.key?(:period_type)
2695
+ end
2696
+ end
2697
+
2698
+ # Service provisioned for an entitlement.
2699
+ class GoogleCloudChannelV1alpha1ProvisionedService
2700
+ include Google::Apis::Core::Hashable
2701
+
2702
+ # Output only. The product pertaining to the provisioning resource as specified
2703
+ # in the Offer.
2704
+ # Corresponds to the JSON property `productId`
2705
+ # @return [String]
2706
+ attr_accessor :product_id
2707
+
2708
+ # Output only. Provisioning ID of the entitlement. For Google Workspace, this
2709
+ # would be the underlying Subscription ID.
2710
+ # Corresponds to the JSON property `provisioningId`
2711
+ # @return [String]
2712
+ attr_accessor :provisioning_id
2713
+
2714
+ # Output only. The SKU pertaining to the provisioning resource as specified in
2715
+ # the Offer.
2716
+ # Corresponds to the JSON property `skuId`
2717
+ # @return [String]
2718
+ attr_accessor :sku_id
2719
+
2720
+ def initialize(**args)
2721
+ update!(**args)
2722
+ end
2723
+
2724
+ # Update properties of this object
2725
+ def update!(**args)
2726
+ @product_id = args[:product_id] if args.key?(:product_id)
2727
+ @provisioning_id = args[:provisioning_id] if args.key?(:provisioning_id)
2728
+ @sku_id = args[:sku_id] if args.key?(:sku_id)
2729
+ end
2730
+ end
2731
+
2732
+ # Renewal settings for renewable Offers.
2733
+ class GoogleCloudChannelV1alpha1RenewalSettings
2734
+ include Google::Apis::Core::Hashable
2735
+
2736
+ # If true, disables commitment-based offer on renewal and switches to flexible
2737
+ # or pay as you go. Deprecated: Use `payment_plan` instead.
2738
+ # Corresponds to the JSON property `disableCommitment`
2739
+ # @return [Boolean]
2740
+ attr_accessor :disable_commitment
2741
+ alias_method :disable_commitment?, :disable_commitment
2742
+
2743
+ # If false, the plan will be completed at the end date.
2744
+ # Corresponds to the JSON property `enableRenewal`
2745
+ # @return [Boolean]
2746
+ attr_accessor :enable_renewal
2747
+ alias_method :enable_renewal?, :enable_renewal
2748
+
2749
+ # Represents period in days/months/years.
2750
+ # Corresponds to the JSON property `paymentCycle`
2751
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Period]
2752
+ attr_accessor :payment_cycle
2753
+
2754
+ # Set if enable_renewal=true. Deprecated: Use `payment_cycle` instead.
2755
+ # Corresponds to the JSON property `paymentOption`
2756
+ # @return [String]
2757
+ attr_accessor :payment_option
2758
+
2759
+ # Describes how a reseller will be billed.
2760
+ # Corresponds to the JSON property `paymentPlan`
2761
+ # @return [String]
2762
+ attr_accessor :payment_plan
2763
+
2764
+ # If true and enable_renewal = true, the unit (for example seats or licenses)
2765
+ # will be set to the number of active units at renewal time.
2766
+ # Corresponds to the JSON property `resizeUnitCount`
2767
+ # @return [Boolean]
2768
+ attr_accessor :resize_unit_count
2769
+ alias_method :resize_unit_count?, :resize_unit_count
2770
+
2771
+ def initialize(**args)
2772
+ update!(**args)
2773
+ end
2774
+
2775
+ # Update properties of this object
2776
+ def update!(**args)
2777
+ @disable_commitment = args[:disable_commitment] if args.key?(:disable_commitment)
2778
+ @enable_renewal = args[:enable_renewal] if args.key?(:enable_renewal)
2779
+ @payment_cycle = args[:payment_cycle] if args.key?(:payment_cycle)
2780
+ @payment_option = args[:payment_option] if args.key?(:payment_option)
2781
+ @payment_plan = args[:payment_plan] if args.key?(:payment_plan)
2782
+ @resize_unit_count = args[:resize_unit_count] if args.key?(:resize_unit_count)
2783
+ end
2784
+ end
2785
+
2786
+ # Represents information which resellers will get as part of notification from
2787
+ # Cloud Pub/Sub.
2788
+ class GoogleCloudChannelV1alpha1SubscriberEvent
2789
+ include Google::Apis::Core::Hashable
2790
+
2791
+ # Represents Pub/Sub message content describing customer update.
2792
+ # Corresponds to the JSON property `customerEvent`
2793
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1CustomerEvent]
2794
+ attr_accessor :customer_event
2795
+
2796
+ # Represents Pub/Sub message content describing entitlement update.
2797
+ # Corresponds to the JSON property `entitlementEvent`
2798
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1EntitlementEvent]
2799
+ attr_accessor :entitlement_event
2800
+
2801
+ def initialize(**args)
2802
+ update!(**args)
2803
+ end
2804
+
2805
+ # Update properties of this object
2806
+ def update!(**args)
2807
+ @customer_event = args[:customer_event] if args.key?(:customer_event)
2808
+ @entitlement_event = args[:entitlement_event] if args.key?(:entitlement_event)
2809
+ end
2810
+ end
2811
+
2812
+ # Response message for CloudChannelService.TransferEntitlements. This will be
2813
+ # put into the response field of google.longrunning.Operation.
2814
+ class GoogleCloudChannelV1alpha1TransferEntitlementsResponse
2815
+ include Google::Apis::Core::Hashable
2816
+
2817
+ # The entitlements that have been transferred.
2818
+ # Corresponds to the JSON property `entitlements`
2819
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Entitlement>]
2820
+ attr_accessor :entitlements
2821
+
2822
+ def initialize(**args)
2823
+ update!(**args)
2824
+ end
2825
+
2826
+ # Update properties of this object
2827
+ def update!(**args)
2828
+ @entitlements = args[:entitlements] if args.key?(:entitlements)
2829
+ end
2830
+ end
2831
+
2832
+ # Settings for trial offers.
2833
+ class GoogleCloudChannelV1alpha1TrialSettings
2834
+ include Google::Apis::Core::Hashable
2835
+
2836
+ # Date when the trial ends. The value is in milliseconds using the UNIX Epoch
2837
+ # format. See an example [Epoch converter](https://www.epochconverter.com).
2838
+ # Corresponds to the JSON property `endTime`
2839
+ # @return [String]
2840
+ attr_accessor :end_time
2841
+
2842
+ # Determines if the entitlement is in a trial or not: * `true` - The entitlement
2843
+ # is in trial. * `false` - The entitlement is not in trial.
2844
+ # Corresponds to the JSON property `trial`
2845
+ # @return [Boolean]
2846
+ attr_accessor :trial
2847
+ alias_method :trial?, :trial
2848
+
2849
+ def initialize(**args)
2850
+ update!(**args)
2851
+ end
2852
+
2853
+ # Update properties of this object
2854
+ def update!(**args)
2855
+ @end_time = args[:end_time] if args.key?(:end_time)
2856
+ @trial = args[:trial] if args.key?(:trial)
2857
+ end
2858
+ end
2859
+
2860
+ # Data type and value of a parameter.
2861
+ class GoogleCloudChannelV1alpha1Value
2862
+ include Google::Apis::Core::Hashable
2863
+
2864
+ # Represents a double value.
2865
+ # Corresponds to the JSON property `doubleValue`
2866
+ # @return [Float]
2867
+ attr_accessor :double_value
2868
+
2869
+ # Represents an int64 value.
2870
+ # Corresponds to the JSON property `int64Value`
2871
+ # @return [Fixnum]
2872
+ attr_accessor :int64_value
2873
+
2874
+ # Represents an 'Any' proto value.
2875
+ # Corresponds to the JSON property `protoValue`
2876
+ # @return [Hash<String,Object>]
2877
+ attr_accessor :proto_value
2878
+
2879
+ # Represents a string value.
2880
+ # Corresponds to the JSON property `stringValue`
2881
+ # @return [String]
2882
+ attr_accessor :string_value
2883
+
2884
+ def initialize(**args)
2885
+ update!(**args)
2886
+ end
2887
+
2888
+ # Update properties of this object
2889
+ def update!(**args)
2890
+ @double_value = args[:double_value] if args.key?(:double_value)
2891
+ @int64_value = args[:int64_value] if args.key?(:int64_value)
2892
+ @proto_value = args[:proto_value] if args.key?(:proto_value)
2893
+ @string_value = args[:string_value] if args.key?(:string_value)
2894
+ end
2895
+ end
2896
+
2897
+ # The request message for Operations.CancelOperation.
2898
+ class GoogleLongrunningCancelOperationRequest
2899
+ include Google::Apis::Core::Hashable
2900
+
2901
+ def initialize(**args)
2902
+ update!(**args)
2903
+ end
2904
+
2905
+ # Update properties of this object
2906
+ def update!(**args)
2907
+ end
2908
+ end
2909
+
2910
+ # The response message for Operations.ListOperations.
2911
+ class GoogleLongrunningListOperationsResponse
2912
+ include Google::Apis::Core::Hashable
2913
+
2914
+ # The standard List next-page token.
2915
+ # Corresponds to the JSON property `nextPageToken`
2916
+ # @return [String]
2917
+ attr_accessor :next_page_token
2918
+
2919
+ # A list of operations that matches the specified filter in the request.
2920
+ # Corresponds to the JSON property `operations`
2921
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleLongrunningOperation>]
2922
+ attr_accessor :operations
2923
+
2924
+ def initialize(**args)
2925
+ update!(**args)
2926
+ end
2927
+
2928
+ # Update properties of this object
2929
+ def update!(**args)
2930
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2931
+ @operations = args[:operations] if args.key?(:operations)
2932
+ end
2933
+ end
2934
+
2935
+ # This resource represents a long-running operation that is the result of a
2936
+ # network API call.
2937
+ class GoogleLongrunningOperation
2938
+ include Google::Apis::Core::Hashable
2939
+
2940
+ # If the value is `false`, it means the operation is still in progress. If `true`
2941
+ # , the operation is completed, and either `error` or `response` is available.
2942
+ # Corresponds to the JSON property `done`
2943
+ # @return [Boolean]
2944
+ attr_accessor :done
2945
+ alias_method :done?, :done
2946
+
2947
+ # The `Status` type defines a logical error model that is suitable for different
2948
+ # programming environments, including REST APIs and RPC APIs. It is used by [
2949
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
2950
+ # data: error code, error message, and error details. You can find out more
2951
+ # about this error model and how to work with it in the [API Design Guide](https:
2952
+ # //cloud.google.com/apis/design/errors).
2953
+ # Corresponds to the JSON property `error`
2954
+ # @return [Google::Apis::CloudchannelV1::GoogleRpcStatus]
2955
+ attr_accessor :error
2956
+
2957
+ # Service-specific metadata associated with the operation. It typically contains
2958
+ # progress information and common metadata such as create time. Some services
2959
+ # might not provide such metadata. Any method that returns a long-running
2960
+ # operation should document the metadata type, if any.
2961
+ # Corresponds to the JSON property `metadata`
2962
+ # @return [Hash<String,Object>]
2963
+ attr_accessor :metadata
2964
+
2965
+ # The server-assigned name, which is only unique within the same service that
2966
+ # originally returns it. If you use the default HTTP mapping, the `name` should
2967
+ # be a resource name ending with `operations/`unique_id``.
2968
+ # Corresponds to the JSON property `name`
2969
+ # @return [String]
2970
+ attr_accessor :name
2971
+
2972
+ # The normal response of the operation in case of success. If the original
2973
+ # method returns no data on success, such as `Delete`, the response is `google.
2974
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
2975
+ # the response should be the resource. For other methods, the response should
2976
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
2977
+ # example, if the original method name is `TakeSnapshot()`, the inferred
2978
+ # response type is `TakeSnapshotResponse`.
2979
+ # Corresponds to the JSON property `response`
2980
+ # @return [Hash<String,Object>]
2981
+ attr_accessor :response
2982
+
2983
+ def initialize(**args)
2984
+ update!(**args)
2985
+ end
2986
+
2987
+ # Update properties of this object
2988
+ def update!(**args)
2989
+ @done = args[:done] if args.key?(:done)
2990
+ @error = args[:error] if args.key?(:error)
2991
+ @metadata = args[:metadata] if args.key?(:metadata)
2992
+ @name = args[:name] if args.key?(:name)
2993
+ @response = args[:response] if args.key?(:response)
2994
+ end
2995
+ end
2996
+
2997
+ # A generic empty message that you can re-use to avoid defining duplicated empty
2998
+ # messages in your APIs. A typical example is to use it as the request or the
2999
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
3000
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
3001
+ # `Empty` is empty JSON object ````.
3002
+ class GoogleProtobufEmpty
3003
+ include Google::Apis::Core::Hashable
3004
+
3005
+ def initialize(**args)
3006
+ update!(**args)
3007
+ end
3008
+
3009
+ # Update properties of this object
3010
+ def update!(**args)
3011
+ end
3012
+ end
3013
+
3014
+ # The `Status` type defines a logical error model that is suitable for different
3015
+ # programming environments, including REST APIs and RPC APIs. It is used by [
3016
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
3017
+ # data: error code, error message, and error details. You can find out more
3018
+ # about this error model and how to work with it in the [API Design Guide](https:
3019
+ # //cloud.google.com/apis/design/errors).
3020
+ class GoogleRpcStatus
3021
+ include Google::Apis::Core::Hashable
3022
+
3023
+ # The status code, which should be an enum value of google.rpc.Code.
3024
+ # Corresponds to the JSON property `code`
3025
+ # @return [Fixnum]
3026
+ attr_accessor :code
3027
+
3028
+ # A list of messages that carry the error details. There is a common set of
3029
+ # message types for APIs to use.
3030
+ # Corresponds to the JSON property `details`
3031
+ # @return [Array<Hash<String,Object>>]
3032
+ attr_accessor :details
3033
+
3034
+ # A developer-facing error message, which should be in English. Any user-facing
3035
+ # error message should be localized and sent in the google.rpc.Status.details
3036
+ # field, or localized by the client.
3037
+ # Corresponds to the JSON property `message`
3038
+ # @return [String]
3039
+ attr_accessor :message
3040
+
3041
+ def initialize(**args)
3042
+ update!(**args)
3043
+ end
3044
+
3045
+ # Update properties of this object
3046
+ def update!(**args)
3047
+ @code = args[:code] if args.key?(:code)
3048
+ @details = args[:details] if args.key?(:details)
3049
+ @message = args[:message] if args.key?(:message)
3050
+ end
3051
+ end
3052
+
3053
+ # Represents an amount of money with its currency type.
3054
+ class GoogleTypeMoney
3055
+ include Google::Apis::Core::Hashable
3056
+
3057
+ # The three-letter currency code defined in ISO 4217.
3058
+ # Corresponds to the JSON property `currencyCode`
3059
+ # @return [String]
3060
+ attr_accessor :currency_code
3061
+
3062
+ # Number of nano (10^-9) units of the amount. The value must be between -999,999,
3063
+ # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
3064
+ # positive or zero. If `units` is zero, `nanos` can be positive, zero, or
3065
+ # negative. If `units` is negative, `nanos` must be negative or zero. For
3066
+ # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3067
+ # Corresponds to the JSON property `nanos`
3068
+ # @return [Fixnum]
3069
+ attr_accessor :nanos
3070
+
3071
+ # The whole units of the amount. For example if `currencyCode` is `"USD"`, then
3072
+ # 1 unit is one US dollar.
3073
+ # Corresponds to the JSON property `units`
3074
+ # @return [Fixnum]
3075
+ attr_accessor :units
3076
+
3077
+ def initialize(**args)
3078
+ update!(**args)
3079
+ end
3080
+
3081
+ # Update properties of this object
3082
+ def update!(**args)
3083
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
3084
+ @nanos = args[:nanos] if args.key?(:nanos)
3085
+ @units = args[:units] if args.key?(:units)
3086
+ end
3087
+ end
3088
+
3089
+ # Represents a postal address, e.g. for postal delivery or payments addresses.
3090
+ # Given a postal address, a postal service can deliver items to a premise, P.O.
3091
+ # Box or similar. It is not intended to model geographical locations (roads,
3092
+ # towns, mountains). In typical usage an address would be created via user input
3093
+ # or from importing existing data, depending on the type of process. Advice on
3094
+ # address input / editing: - Use an i18n-ready address widget such as https://
3095
+ # github.com/google/libaddressinput) - Users should not be presented with UI
3096
+ # elements for input or editing of fields outside countries where that field is
3097
+ # used. For more guidance on how to use this schema, please see: https://support.
3098
+ # google.com/business/answer/6397478
3099
+ class GoogleTypePostalAddress
3100
+ include Google::Apis::Core::Hashable
3101
+
3102
+ # Unstructured address lines describing the lower levels of an address. Because
3103
+ # values in address_lines do not have type information and may sometimes contain
3104
+ # multiple values in a single field (e.g. "Austin, TX"), it is important that
3105
+ # the line order is clear. The order of address lines should be "envelope order"
3106
+ # for the country/region of the address. In places where this can vary (e.g.
3107
+ # Japan), address_language is used to make it explicit (e.g. "ja" for large-to-
3108
+ # small ordering and "ja-Latn" or "en" for small-to-large). This way, the most
3109
+ # specific line of an address can be selected based on the language. The minimum
3110
+ # permitted structural representation of an address consists of a region_code
3111
+ # with all remaining information placed in the address_lines. It would be
3112
+ # possible to format such an address very approximately without geocoding, but
3113
+ # no semantic reasoning could be made about any of the address components until
3114
+ # it was at least partially resolved. Creating an address only containing a
3115
+ # region_code and address_lines, and then geocoding is the recommended way to
3116
+ # handle completely unstructured addresses (as opposed to guessing which parts
3117
+ # of the address should be localities or administrative areas).
3118
+ # Corresponds to the JSON property `addressLines`
3119
+ # @return [Array<String>]
3120
+ attr_accessor :address_lines
3121
+
3122
+ # Optional. Highest administrative subdivision which is used for postal
3123
+ # addresses of a country or region. For example, this can be a state, a province,
3124
+ # an oblast, or a prefecture. Specifically, for Spain this is the province and
3125
+ # not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many
3126
+ # countries don't use an administrative area in postal addresses. E.g. in
3127
+ # Switzerland this should be left unpopulated.
3128
+ # Corresponds to the JSON property `administrativeArea`
3129
+ # @return [String]
3130
+ attr_accessor :administrative_area
3131
+
3132
+ # Optional. BCP-47 language code of the contents of this address (if known).
3133
+ # This is often the UI language of the input form or is expected to match one of
3134
+ # the languages used in the address' country/region, or their transliterated
3135
+ # equivalents. This can affect formatting in certain countries, but is not
3136
+ # critical to the correctness of the data and will never affect any validation
3137
+ # or other non-formatting related operations. If this value is not known, it
3138
+ # should be omitted (rather than specifying a possibly incorrect default).
3139
+ # Examples: "zh-Hant", "ja", "ja-Latn", "en".
3140
+ # Corresponds to the JSON property `languageCode`
3141
+ # @return [String]
3142
+ attr_accessor :language_code
3143
+
3144
+ # Optional. Generally refers to the city/town portion of the address. Examples:
3145
+ # US city, IT comune, UK post town. In regions of the world where localities are
3146
+ # not well defined or do not fit into this structure well, leave locality empty
3147
+ # and use address_lines.
3148
+ # Corresponds to the JSON property `locality`
3149
+ # @return [String]
3150
+ attr_accessor :locality
3151
+
3152
+ # Optional. The name of the organization at the address.
3153
+ # Corresponds to the JSON property `organization`
3154
+ # @return [String]
3155
+ attr_accessor :organization
3156
+
3157
+ # Optional. Postal code of the address. Not all countries use or require postal
3158
+ # codes to be present, but where they are used, they may trigger additional
3159
+ # validation with other parts of the address (e.g. state/zip validation in the U.
3160
+ # S.A.).
3161
+ # Corresponds to the JSON property `postalCode`
3162
+ # @return [String]
3163
+ attr_accessor :postal_code
3164
+
3165
+ # Optional. The recipient at the address. This field may, under certain
3166
+ # circumstances, contain multiline information. For example, it might contain "
3167
+ # care of" information.
3168
+ # Corresponds to the JSON property `recipients`
3169
+ # @return [Array<String>]
3170
+ attr_accessor :recipients
3171
+
3172
+ # Required. CLDR region code of the country/region of the address. This is never
3173
+ # inferred and it is up to the user to ensure the value is correct. See http://
3174
+ # cldr.unicode.org/ and http://www.unicode.org/cldr/charts/30/supplemental/
3175
+ # territory_information.html for details. Example: "CH" for Switzerland.
3176
+ # Corresponds to the JSON property `regionCode`
3177
+ # @return [String]
3178
+ attr_accessor :region_code
3179
+
3180
+ # The schema revision of the `PostalAddress`. This must be set to 0, which is
3181
+ # the latest revision. All new revisions **must** be backward compatible with
3182
+ # old revisions.
3183
+ # Corresponds to the JSON property `revision`
3184
+ # @return [Fixnum]
3185
+ attr_accessor :revision
3186
+
3187
+ # Optional. Additional, country-specific, sorting code. This is not used in most
3188
+ # regions. Where it is used, the value is either a string like "CEDEX",
3189
+ # optionally followed by a number (e.g. "CEDEX 7"), or just a number alone,
3190
+ # representing the "sector code" (Jamaica), "delivery area indicator" (Malawi)
3191
+ # or "post office indicator" (e.g. Côte d'Ivoire).
3192
+ # Corresponds to the JSON property `sortingCode`
3193
+ # @return [String]
3194
+ attr_accessor :sorting_code
3195
+
3196
+ # Optional. Sublocality of the address. For example, this can be neighborhoods,
3197
+ # boroughs, districts.
3198
+ # Corresponds to the JSON property `sublocality`
3199
+ # @return [String]
3200
+ attr_accessor :sublocality
3201
+
3202
+ def initialize(**args)
3203
+ update!(**args)
3204
+ end
3205
+
3206
+ # Update properties of this object
3207
+ def update!(**args)
3208
+ @address_lines = args[:address_lines] if args.key?(:address_lines)
3209
+ @administrative_area = args[:administrative_area] if args.key?(:administrative_area)
3210
+ @language_code = args[:language_code] if args.key?(:language_code)
3211
+ @locality = args[:locality] if args.key?(:locality)
3212
+ @organization = args[:organization] if args.key?(:organization)
3213
+ @postal_code = args[:postal_code] if args.key?(:postal_code)
3214
+ @recipients = args[:recipients] if args.key?(:recipients)
3215
+ @region_code = args[:region_code] if args.key?(:region_code)
3216
+ @revision = args[:revision] if args.key?(:revision)
3217
+ @sorting_code = args[:sorting_code] if args.key?(:sorting_code)
3218
+ @sublocality = args[:sublocality] if args.key?(:sublocality)
3219
+ end
3220
+ end
3221
+ end
3222
+ end
3223
+ end