google-api-client 0.9.15 → 0.9.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +82 -3
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +33 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +38 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +80 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +23 -0
- data/generated/google/apis/admin_directory_v1/service.rb +39 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +11 -5
- data/generated/google/apis/analytics_v3/representations.rb +1 -0
- data/generated/google/apis/analytics_v3/service.rb +17 -18
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +80 -2
- data/generated/google/apis/androidenterprise_v1/representations.rb +30 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +55 -6
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/service.rb +36 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +2 -2
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +2 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +7 -0
- data/generated/google/apis/classroom_v1/representations.rb +1 -0
- data/generated/google/apis/classroom_v1/service.rb +25 -15
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +56 -8
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +535 -298
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +141 -36
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +250 -45
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +99 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +44 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +24 -33
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +44 -29
- data/generated/google/apis/compute_beta/representations.rb +1 -0
- data/generated/google/apis/compute_beta/service.rb +123 -25
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +43 -20
- data/generated/google/apis/compute_v1/representations.rb +3 -0
- data/generated/google/apis/compute_v1/service.rb +608 -67
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +38 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4009 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +1718 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +515 -0
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +9 -0
- data/generated/google/apis/drive_v2/representations.rb +1 -0
- data/generated/google/apis/drive_v2/service.rb +8 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +7 -0
- data/generated/google/apis/drive_v3/representations.rb +1 -0
- data/generated/google/apis/drive_v3/service.rb +8 -1
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +181 -206
- data/generated/google/apis/iam_v1/representations.rb +36 -45
- data/generated/google/apis/iam_v1/service.rb +101 -67
- data/generated/google/apis/identitytoolkit_v3.rb +4 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +11 -27
- data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -16
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +4 -2
- data/generated/google/apis/language_v1beta1/service.rb +2 -4
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +742 -732
- data/generated/google/apis/logging_v2beta1/representations.rb +134 -147
- data/generated/google/apis/logging_v2beta1/service.rb +276 -209
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +20 -13
- data/generated/google/apis/monitoring_v3/service.rb +1 -1
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +10 -9
- data/generated/google/apis/pubsub_v1/service.rb +128 -27
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +2 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +20 -30
- data/generated/google/apis/speech_v1beta1/representations.rb +6 -7
- data/generated/google/apis/speech_v1beta1/service.rb +68 -65
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +6 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +3 -3
- data/generated/google/apis/storage_v1/representations.rb +2 -1
- data/generated/google/apis/storage_v1/service.rb +5 -2
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +10 -2
@@ -0,0 +1,458 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
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/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module Adexchangebuyer2V2beta1
|
23
|
+
# Ad Exchange Buyer API II
|
24
|
+
#
|
25
|
+
# Accesses the latest features for managing Ad Exchange accounts and Real-Time
|
26
|
+
# Bidding configurations and auction metrics.
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
# require 'google/apis/adexchangebuyer2_v2beta1'
|
30
|
+
#
|
31
|
+
# Adexchangebuyer2 = Google::Apis::Adexchangebuyer2V2beta1 # Alias the module
|
32
|
+
# service = Adexchangebuyer2::AdExchangeBuyerIIService.new
|
33
|
+
#
|
34
|
+
# @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
|
35
|
+
class AdExchangeBuyerIIService < Google::Apis::Core::BaseService
|
36
|
+
# @return [String]
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
39
|
+
attr_accessor :key
|
40
|
+
|
41
|
+
# @return [String]
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
|
+
def initialize
|
47
|
+
super('https://adexchangebuyer.googleapis.com/', '')
|
48
|
+
end
|
49
|
+
|
50
|
+
# Updates an existing client buyer.
|
51
|
+
# @param [String] account_id
|
52
|
+
# Unique numerical account ID for the buyer of which the client buyer
|
53
|
+
# is a customer; the sponsor buyer to update a client for. (required)
|
54
|
+
# @param [String] client_account_id
|
55
|
+
# Unique numerical account ID of the client to update. (required)
|
56
|
+
# @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
|
57
|
+
# @param [String] quota_user
|
58
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
59
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60
|
+
# @param [String] fields
|
61
|
+
# Selector specifying which fields to include in a partial response.
|
62
|
+
# @param [Google::Apis::RequestOptions] options
|
63
|
+
# Request-specific options
|
64
|
+
#
|
65
|
+
# @yield [result, err] Result & error if block supplied
|
66
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
|
67
|
+
# @yieldparam err [StandardError] error object if request failed
|
68
|
+
#
|
69
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
|
70
|
+
#
|
71
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
72
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
73
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
74
|
+
def update_account_client(account_id, client_account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
75
|
+
command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
|
76
|
+
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
77
|
+
command.request_object = client_object
|
78
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
79
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
|
80
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
81
|
+
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
82
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
83
|
+
command.query['fields'] = fields unless fields.nil?
|
84
|
+
execute_or_queue_command(command, &block)
|
85
|
+
end
|
86
|
+
|
87
|
+
# Gets a client buyer with a given client account ID.
|
88
|
+
# @param [String] account_id
|
89
|
+
# Numerical account ID of the client's sponsor buyer. (required)
|
90
|
+
# @param [String] client_account_id
|
91
|
+
# Numerical account ID of the client buyer to retrieve. (required)
|
92
|
+
# @param [String] quota_user
|
93
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
94
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
95
|
+
# @param [String] fields
|
96
|
+
# Selector specifying which fields to include in a partial response.
|
97
|
+
# @param [Google::Apis::RequestOptions] options
|
98
|
+
# Request-specific options
|
99
|
+
#
|
100
|
+
# @yield [result, err] Result & error if block supplied
|
101
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
|
102
|
+
# @yieldparam err [StandardError] error object if request failed
|
103
|
+
#
|
104
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
|
105
|
+
#
|
106
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
107
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
108
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
109
|
+
def get_account_client(account_id, client_account_id, quota_user: nil, fields: nil, options: nil, &block)
|
110
|
+
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
|
111
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
112
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
|
113
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
114
|
+
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
115
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
116
|
+
command.query['fields'] = fields unless fields.nil?
|
117
|
+
execute_or_queue_command(command, &block)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Creates a new client buyer.
|
121
|
+
# @param [String] account_id
|
122
|
+
# Unique numerical account ID for the buyer of which the client buyer
|
123
|
+
# is a customer; the sponsor buyer to create a client for. (required)
|
124
|
+
# @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
|
125
|
+
# @param [String] quota_user
|
126
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
127
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
128
|
+
# @param [String] fields
|
129
|
+
# Selector specifying which fields to include in a partial response.
|
130
|
+
# @param [Google::Apis::RequestOptions] options
|
131
|
+
# Request-specific options
|
132
|
+
#
|
133
|
+
# @yield [result, err] Result & error if block supplied
|
134
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
|
135
|
+
# @yieldparam err [StandardError] error object if request failed
|
136
|
+
#
|
137
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
|
138
|
+
#
|
139
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
140
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
141
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
142
|
+
def create_account_client(account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
143
|
+
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients', options)
|
144
|
+
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
145
|
+
command.request_object = client_object
|
146
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
147
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
|
148
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
149
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
150
|
+
command.query['fields'] = fields unless fields.nil?
|
151
|
+
execute_or_queue_command(command, &block)
|
152
|
+
end
|
153
|
+
|
154
|
+
# Lists all the clients for the current sponsor buyer.
|
155
|
+
# @param [String] account_id
|
156
|
+
# Unique numerical account ID of the sponsor buyer to list the clients for.
|
157
|
+
# @param [Fixnum] page_size
|
158
|
+
# Requested page size. The server may return fewer clients than requested.
|
159
|
+
# If unspecified, the server will pick an appropriate default.
|
160
|
+
# @param [String] page_token
|
161
|
+
# A token identifying a page of results the server should return.
|
162
|
+
# Typically, this is the value of
|
163
|
+
# ListClientsResponse.nextPageToken
|
164
|
+
# returned from the previous call to the
|
165
|
+
# accounts.clients.list method.
|
166
|
+
# @param [String] quota_user
|
167
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
168
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
169
|
+
# @param [String] fields
|
170
|
+
# Selector specifying which fields to include in a partial response.
|
171
|
+
# @param [Google::Apis::RequestOptions] options
|
172
|
+
# Request-specific options
|
173
|
+
#
|
174
|
+
# @yield [result, err] Result & error if block supplied
|
175
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse] parsed result object
|
176
|
+
# @yieldparam err [StandardError] error object if request failed
|
177
|
+
#
|
178
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse]
|
179
|
+
#
|
180
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
181
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
182
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
183
|
+
def list_account_clients(account_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
184
|
+
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients', options)
|
185
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse::Representation
|
186
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse
|
187
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
188
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
189
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
190
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
191
|
+
command.query['fields'] = fields unless fields.nil?
|
192
|
+
execute_or_queue_command(command, &block)
|
193
|
+
end
|
194
|
+
|
195
|
+
# Updates an existing client user.
|
196
|
+
# Only the user status can be changed on update.
|
197
|
+
# @param [String] account_id
|
198
|
+
# Numerical account ID of the client's sponsor buyer. (required)
|
199
|
+
# @param [String] client_account_id
|
200
|
+
# Numerical account ID of the client buyer that the user to be retrieved
|
201
|
+
# is associated with. (required)
|
202
|
+
# @param [String] user_id
|
203
|
+
# Numerical identifier of the user to retrieve. (required)
|
204
|
+
# @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_object
|
205
|
+
# @param [String] quota_user
|
206
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
207
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
208
|
+
# @param [String] fields
|
209
|
+
# Selector specifying which fields to include in a partial response.
|
210
|
+
# @param [Google::Apis::RequestOptions] options
|
211
|
+
# Request-specific options
|
212
|
+
#
|
213
|
+
# @yield [result, err] Result & error if block supplied
|
214
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
|
215
|
+
# @yieldparam err [StandardError] error object if request failed
|
216
|
+
#
|
217
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
|
218
|
+
#
|
219
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
220
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
221
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
222
|
+
def update_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
223
|
+
command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
|
224
|
+
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
225
|
+
command.request_object = client_user_object
|
226
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
227
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
|
228
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
229
|
+
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
230
|
+
command.params['userId'] = user_id unless user_id.nil?
|
231
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
232
|
+
command.query['fields'] = fields unless fields.nil?
|
233
|
+
execute_or_queue_command(command, &block)
|
234
|
+
end
|
235
|
+
|
236
|
+
# Retrieves an existing client user.
|
237
|
+
# @param [String] account_id
|
238
|
+
# Numerical account ID of the client's sponsor buyer. (required)
|
239
|
+
# @param [String] client_account_id
|
240
|
+
# Numerical account ID of the client buyer
|
241
|
+
# that the user to be retrieved is associated with. (required)
|
242
|
+
# @param [String] user_id
|
243
|
+
# Numerical identifier of the user to retrieve. (required)
|
244
|
+
# @param [String] quota_user
|
245
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
246
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
247
|
+
# @param [String] fields
|
248
|
+
# Selector specifying which fields to include in a partial response.
|
249
|
+
# @param [Google::Apis::RequestOptions] options
|
250
|
+
# Request-specific options
|
251
|
+
#
|
252
|
+
# @yield [result, err] Result & error if block supplied
|
253
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
|
254
|
+
# @yieldparam err [StandardError] error object if request failed
|
255
|
+
#
|
256
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
|
257
|
+
#
|
258
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
259
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
260
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
261
|
+
def get_account_client_user(account_id, client_account_id, user_id, quota_user: nil, fields: nil, options: nil, &block)
|
262
|
+
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
|
263
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
264
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
|
265
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
266
|
+
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
267
|
+
command.params['userId'] = user_id unless user_id.nil?
|
268
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
269
|
+
command.query['fields'] = fields unless fields.nil?
|
270
|
+
execute_or_queue_command(command, &block)
|
271
|
+
end
|
272
|
+
|
273
|
+
# Lists all the known client users for a specified
|
274
|
+
# sponsor buyer account ID.
|
275
|
+
# @param [String] account_id
|
276
|
+
# Numerical account ID of the sponsor buyer of the client to list users for.
|
277
|
+
# (required)
|
278
|
+
# @param [String] client_account_id
|
279
|
+
# The account ID of the client buyer to list users for. (required)
|
280
|
+
# You must specify either a string representation of a
|
281
|
+
# numerical account identifier or the `-` character
|
282
|
+
# to list all the client users for all the clients
|
283
|
+
# of a given sponsor buyer.
|
284
|
+
# @param [Fixnum] page_size
|
285
|
+
# Requested page size. The server may return fewer clients than requested.
|
286
|
+
# If unspecified, the server will pick an appropriate default.
|
287
|
+
# @param [String] page_token
|
288
|
+
# A token identifying a page of results the server should return.
|
289
|
+
# Typically, this is the value of
|
290
|
+
# ListClientUsersResponse.nextPageToken
|
291
|
+
# returned from the previous call to the
|
292
|
+
# accounts.clients.users.list method.
|
293
|
+
# @param [String] quota_user
|
294
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
295
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
296
|
+
# @param [String] fields
|
297
|
+
# Selector specifying which fields to include in a partial response.
|
298
|
+
# @param [Google::Apis::RequestOptions] options
|
299
|
+
# Request-specific options
|
300
|
+
#
|
301
|
+
# @yield [result, err] Result & error if block supplied
|
302
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse] parsed result object
|
303
|
+
# @yieldparam err [StandardError] error object if request failed
|
304
|
+
#
|
305
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse]
|
306
|
+
#
|
307
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
308
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
309
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
310
|
+
def list_account_client_users(account_id, client_account_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
311
|
+
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options)
|
312
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation
|
313
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse
|
314
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
315
|
+
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
316
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
317
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
318
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
319
|
+
command.query['fields'] = fields unless fields.nil?
|
320
|
+
execute_or_queue_command(command, &block)
|
321
|
+
end
|
322
|
+
|
323
|
+
# Creates and sends out an email invitation to access
|
324
|
+
# an Ad Exchange client buyer account.
|
325
|
+
# @param [String] account_id
|
326
|
+
# Numerical account ID of the client's sponsor buyer. (required)
|
327
|
+
# @param [String] client_account_id
|
328
|
+
# Numerical account ID of the client buyer that the user
|
329
|
+
# should be associated with. (required)
|
330
|
+
# @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] client_user_invitation_object
|
331
|
+
# @param [String] quota_user
|
332
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
333
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
334
|
+
# @param [String] fields
|
335
|
+
# Selector specifying which fields to include in a partial response.
|
336
|
+
# @param [Google::Apis::RequestOptions] options
|
337
|
+
# Request-specific options
|
338
|
+
#
|
339
|
+
# @yield [result, err] Result & error if block supplied
|
340
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
|
341
|
+
# @yieldparam err [StandardError] error object if request failed
|
342
|
+
#
|
343
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
|
344
|
+
#
|
345
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
346
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
347
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
348
|
+
def create_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
349
|
+
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
|
350
|
+
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
351
|
+
command.request_object = client_user_invitation_object
|
352
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
353
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
|
354
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
355
|
+
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
356
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
357
|
+
command.query['fields'] = fields unless fields.nil?
|
358
|
+
execute_or_queue_command(command, &block)
|
359
|
+
end
|
360
|
+
|
361
|
+
# Retrieves an existing client user invitation.
|
362
|
+
# @param [String] account_id
|
363
|
+
# Numerical account ID of the client's sponsor buyer. (required)
|
364
|
+
# @param [String] client_account_id
|
365
|
+
# Numerical account ID of the client buyer that the user invitation
|
366
|
+
# to be retrieved is associated with. (required)
|
367
|
+
# @param [String] invitation_id
|
368
|
+
# Numerical identifier of the user invitation to retrieve. (required)
|
369
|
+
# @param [String] quota_user
|
370
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
371
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
372
|
+
# @param [String] fields
|
373
|
+
# Selector specifying which fields to include in a partial response.
|
374
|
+
# @param [Google::Apis::RequestOptions] options
|
375
|
+
# Request-specific options
|
376
|
+
#
|
377
|
+
# @yield [result, err] Result & error if block supplied
|
378
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
|
379
|
+
# @yieldparam err [StandardError] error object if request failed
|
380
|
+
#
|
381
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
|
382
|
+
#
|
383
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
384
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
385
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
386
|
+
def get_account_client_invitation(account_id, client_account_id, invitation_id, quota_user: nil, fields: nil, options: nil, &block)
|
387
|
+
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}', options)
|
388
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
389
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
|
390
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
391
|
+
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
392
|
+
command.params['invitationId'] = invitation_id unless invitation_id.nil?
|
393
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
394
|
+
command.query['fields'] = fields unless fields.nil?
|
395
|
+
execute_or_queue_command(command, &block)
|
396
|
+
end
|
397
|
+
|
398
|
+
# Lists all the client users invitations for a client
|
399
|
+
# with a given account ID.
|
400
|
+
# @param [String] account_id
|
401
|
+
# Numerical account ID of the client's sponsor buyer. (required)
|
402
|
+
# @param [String] client_account_id
|
403
|
+
# Numerical account ID of the client buyer to list invitations for.
|
404
|
+
# (required)
|
405
|
+
# You must either specify a string representation of a
|
406
|
+
# numerical account identifier or the `-` character
|
407
|
+
# to list all the invitations for all the clients
|
408
|
+
# of a given sponsor buyer.
|
409
|
+
# @param [Fixnum] page_size
|
410
|
+
# Requested page size. Server may return fewer clients than requested.
|
411
|
+
# If unspecified, server will pick an appropriate default.
|
412
|
+
# @param [String] page_token
|
413
|
+
# A token identifying a page of results the server should return.
|
414
|
+
# Typically, this is the value of
|
415
|
+
# ListClientUserInvitationsResponse.nextPageToken
|
416
|
+
# returned from the previous call to the
|
417
|
+
# clients.invitations.list
|
418
|
+
# method.
|
419
|
+
# @param [String] quota_user
|
420
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
421
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
422
|
+
# @param [String] fields
|
423
|
+
# Selector specifying which fields to include in a partial response.
|
424
|
+
# @param [Google::Apis::RequestOptions] options
|
425
|
+
# Request-specific options
|
426
|
+
#
|
427
|
+
# @yield [result, err] Result & error if block supplied
|
428
|
+
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse] parsed result object
|
429
|
+
# @yieldparam err [StandardError] error object if request failed
|
430
|
+
#
|
431
|
+
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse]
|
432
|
+
#
|
433
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
434
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
435
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
436
|
+
def list_account_client_invitations(account_id, client_account_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
437
|
+
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
|
438
|
+
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation
|
439
|
+
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse
|
440
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
441
|
+
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
442
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
443
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
444
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
445
|
+
command.query['fields'] = fields unless fields.nil?
|
446
|
+
execute_or_queue_command(command, &block)
|
447
|
+
end
|
448
|
+
|
449
|
+
protected
|
450
|
+
|
451
|
+
def apply_command_defaults(command)
|
452
|
+
command.query['key'] = key unless key.nil?
|
453
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
454
|
+
end
|
455
|
+
end
|
456
|
+
end
|
457
|
+
end
|
458
|
+
end
|