google-api-client 0.46.0 → 0.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +59 -0
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +68 -0
- data/generated/google/apis/accesscontextmanager_v1/representations.rb +30 -0
- data/generated/google/apis/accesscontextmanager_v1/service.rb +180 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +25 -0
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +15 -0
- data/generated/google/apis/admob_v1.rb +3 -2
- data/generated/google/apis/admob_v1/service.rb +2 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/service.rb +4 -1
- data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
- data/generated/google/apis/analyticsdata_v1alpha/classes.rb +31 -0
- data/generated/google/apis/analyticsdata_v1alpha/representations.rb +17 -0
- data/generated/google/apis/analyticsdata_v1alpha/service.rb +39 -0
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/service.rb +2 -5
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +231 -1
- data/generated/google/apis/apigee_v1/representations.rb +87 -0
- data/generated/google/apis/apigee_v1/service.rb +201 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/billingbudgets_v1.rb +38 -0
- data/generated/google/apis/billingbudgets_v1/classes.rb +362 -0
- data/generated/google/apis/billingbudgets_v1/representations.rb +170 -0
- data/generated/google/apis/billingbudgets_v1/service.rb +249 -0
- data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +3 -3
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +2 -1
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1/classes.rb +342 -0
- data/generated/google/apis/cloudshell_v1/representations.rb +200 -0
- data/generated/google/apis/cloudshell_v1/service.rb +177 -0
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +2 -3
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +2 -3
- data/generated/google/apis/composer_v1beta1/service.rb +37 -35
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +126 -21
- data/generated/google/apis/compute_alpha/representations.rb +7 -0
- data/generated/google/apis/compute_alpha/service.rb +62 -3
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +83 -19
- data/generated/google/apis/compute_beta/representations.rb +4 -0
- data/generated/google/apis/compute_beta/service.rb +3 -3
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +28 -8
- data/generated/google/apis/compute_v1/representations.rb +3 -0
- data/generated/google/apis/compute_v1/service.rb +3 -3
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +99 -0
- data/generated/google/apis/content_v2_1/representations.rb +47 -0
- data/generated/google/apis/content_v2_1/service.rb +37 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +50 -32
- data/generated/google/apis/dialogflow_v2/representations.rb +28 -13
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +50 -32
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +28 -13
- data/generated/google/apis/dialogflow_v2beta1/service.rb +54 -4
- data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v3beta1/classes.rb +66 -35
- data/generated/google/apis/dialogflow_v3beta1/representations.rb +29 -13
- data/generated/google/apis/dialogflow_v3beta1/service.rb +22 -9
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/service.rb +13 -10
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/service.rb +10 -10
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/service.rb +10 -10
- data/generated/google/apis/documentai_v1beta3.rb +36 -0
- data/generated/google/apis/documentai_v1beta3/classes.rb +6149 -0
- data/generated/google/apis/documentai_v1beta3/representations.rb +2666 -0
- data/generated/google/apis/documentai_v1beta3/service.rb +263 -0
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +2 -2
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +2 -1
- data/generated/google/apis/fitness_v1.rb +13 -1
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +116 -289
- data/generated/google/apis/healthcare_v1beta1/representations.rb +45 -81
- data/generated/google/apis/healthcare_v1beta1/service.rb +65 -61
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +2 -2
- data/generated/google/apis/lifesciences_v2beta.rb +1 -1
- data/generated/google/apis/lifesciences_v2beta/classes.rb +104 -0
- data/generated/google/apis/lifesciences_v2beta/representations.rb +47 -0
- data/generated/google/apis/memcache_v1beta2.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +48 -0
- data/generated/google/apis/monitoring_v3/representations.rb +18 -0
- data/generated/google/apis/oauth2_v2.rb +40 -0
- data/generated/google/apis/oauth2_v2/classes.rb +165 -0
- data/generated/google/apis/oauth2_v2/representations.rb +68 -0
- data/generated/google/apis/oauth2_v2/service.rb +158 -0
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +3 -2
- data/generated/google/apis/people_v1/service.rb +4 -4
- data/generated/google/apis/realtimebidding_v1.rb +1 -1
- data/generated/google/apis/realtimebidding_v1/classes.rb +55 -94
- data/generated/google/apis/realtimebidding_v1/representations.rb +18 -32
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +6 -0
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +6 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +6 -0
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -0
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +5 -2
- data/generated/google/apis/smartdevicemanagement_v1.rb +1 -1
- data/generated/google/apis/smartdevicemanagement_v1/classes.rb +4 -10
- data/generated/google/apis/smartdevicemanagement_v1/representations.rb +0 -1
- data/generated/google/apis/smartdevicemanagement_v1/service.rb +1 -4
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +49 -5
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +17 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +13 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +12 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +5 -2
- data/generated/google/apis/sts_v1.rb +1 -1
- data/generated/google/apis/sts_v1/classes.rb +10 -9
- data/generated/google/apis/sts_v1beta.rb +1 -1
- data/generated/google/apis/sts_v1beta/classes.rb +66 -70
- data/generated/google/apis/sts_v1beta/service.rb +2 -2
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +47 -0
- data/generated/google/apis/testing_v1/representations.rb +20 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +430 -2
- data/generated/google/apis/videointelligence_v1/representations.rb +241 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +430 -2
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +241 -0
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +430 -2
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +241 -0
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +430 -2
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +241 -0
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +430 -2
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +241 -0
- data/generated/google/apis/workflows_v1beta.rb +3 -2
- data/generated/google/apis/workflows_v1beta/service.rb +2 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +15 -3
|
@@ -0,0 +1,68 @@
|
|
|
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 '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 Oauth2V2
|
|
24
|
+
|
|
25
|
+
class Tokeninfo
|
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
+
|
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
class Userinfo
|
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
|
+
|
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
class Tokeninfo
|
|
38
|
+
# @private
|
|
39
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
40
|
+
property :audience, as: 'audience'
|
|
41
|
+
property :email, as: 'email'
|
|
42
|
+
property :expires_in, as: 'expires_in'
|
|
43
|
+
property :issued_to, as: 'issued_to'
|
|
44
|
+
property :scope, as: 'scope'
|
|
45
|
+
property :user_id, as: 'user_id'
|
|
46
|
+
property :verified_email, as: 'verified_email'
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
class Userinfo
|
|
51
|
+
# @private
|
|
52
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
53
|
+
property :email, as: 'email'
|
|
54
|
+
property :family_name, as: 'family_name'
|
|
55
|
+
property :gender, as: 'gender'
|
|
56
|
+
property :given_name, as: 'given_name'
|
|
57
|
+
property :hd, as: 'hd'
|
|
58
|
+
property :id, as: 'id'
|
|
59
|
+
property :link, as: 'link'
|
|
60
|
+
property :locale, as: 'locale'
|
|
61
|
+
property :name, as: 'name'
|
|
62
|
+
property :picture, as: 'picture'
|
|
63
|
+
property :verified_email, as: 'verified_email'
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
@@ -0,0 +1,158 @@
|
|
|
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 Oauth2V2
|
|
23
|
+
# Google OAuth2 API
|
|
24
|
+
#
|
|
25
|
+
# Obtains end-user authorization grants for use with other Google APIs.
|
|
26
|
+
#
|
|
27
|
+
# @example
|
|
28
|
+
# require 'google/apis/oauth2_v2'
|
|
29
|
+
#
|
|
30
|
+
# Oauth2 = Google::Apis::Oauth2V2 # Alias the module
|
|
31
|
+
# service = Oauth2::Oauth2Service.new
|
|
32
|
+
#
|
|
33
|
+
# @see https://developers.google.com/identity/protocols/oauth2/
|
|
34
|
+
class Oauth2Service < Google::Apis::Core::BaseService
|
|
35
|
+
# @return [String]
|
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
38
|
+
attr_accessor :key
|
|
39
|
+
|
|
40
|
+
# @return [String]
|
|
41
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
42
|
+
# characters.
|
|
43
|
+
attr_accessor :quota_user
|
|
44
|
+
|
|
45
|
+
# @return [String]
|
|
46
|
+
# Deprecated. Please use quotaUser instead.
|
|
47
|
+
attr_accessor :user_ip
|
|
48
|
+
|
|
49
|
+
def initialize
|
|
50
|
+
super('https://www.googleapis.com/', '')
|
|
51
|
+
@batch_path = 'batch/oauth2/v2'
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
#
|
|
55
|
+
# @param [String] access_token
|
|
56
|
+
# @param [String] id_token
|
|
57
|
+
# @param [String] fields
|
|
58
|
+
# Selector specifying which fields to include in a partial response.
|
|
59
|
+
# @param [String] quota_user
|
|
60
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
61
|
+
# characters.
|
|
62
|
+
# @param [String] user_ip
|
|
63
|
+
# Deprecated. Please use quotaUser instead.
|
|
64
|
+
# @param [Google::Apis::RequestOptions] options
|
|
65
|
+
# Request-specific options
|
|
66
|
+
#
|
|
67
|
+
# @yield [result, err] Result & error if block supplied
|
|
68
|
+
# @yieldparam result [Google::Apis::Oauth2V2::Tokeninfo] parsed result object
|
|
69
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
70
|
+
#
|
|
71
|
+
# @return [Google::Apis::Oauth2V2::Tokeninfo]
|
|
72
|
+
#
|
|
73
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
74
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
75
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
76
|
+
def tokeninfo(access_token: nil, id_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
77
|
+
command = make_simple_command(:post, 'oauth2/v2/tokeninfo', options)
|
|
78
|
+
command.response_representation = Google::Apis::Oauth2V2::Tokeninfo::Representation
|
|
79
|
+
command.response_class = Google::Apis::Oauth2V2::Tokeninfo
|
|
80
|
+
command.query['access_token'] = access_token unless access_token.nil?
|
|
81
|
+
command.query['id_token'] = id_token unless id_token.nil?
|
|
82
|
+
command.query['fields'] = fields unless fields.nil?
|
|
83
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
84
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
85
|
+
execute_or_queue_command(command, &block)
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
#
|
|
89
|
+
# @param [String] fields
|
|
90
|
+
# Selector specifying which fields to include in a partial response.
|
|
91
|
+
# @param [String] quota_user
|
|
92
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
93
|
+
# characters.
|
|
94
|
+
# @param [String] user_ip
|
|
95
|
+
# Deprecated. Please use quotaUser instead.
|
|
96
|
+
# @param [Google::Apis::RequestOptions] options
|
|
97
|
+
# Request-specific options
|
|
98
|
+
#
|
|
99
|
+
# @yield [result, err] Result & error if block supplied
|
|
100
|
+
# @yieldparam result [Google::Apis::Oauth2V2::Userinfo] parsed result object
|
|
101
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
102
|
+
#
|
|
103
|
+
# @return [Google::Apis::Oauth2V2::Userinfo]
|
|
104
|
+
#
|
|
105
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
106
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
107
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
108
|
+
def get_userinfo(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
109
|
+
command = make_simple_command(:get, 'oauth2/v2/userinfo', options)
|
|
110
|
+
command.response_representation = Google::Apis::Oauth2V2::Userinfo::Representation
|
|
111
|
+
command.response_class = Google::Apis::Oauth2V2::Userinfo
|
|
112
|
+
command.query['fields'] = fields unless fields.nil?
|
|
113
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
114
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
115
|
+
execute_or_queue_command(command, &block)
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
#
|
|
119
|
+
# @param [String] fields
|
|
120
|
+
# Selector specifying which fields to include in a partial response.
|
|
121
|
+
# @param [String] quota_user
|
|
122
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
123
|
+
# characters.
|
|
124
|
+
# @param [String] user_ip
|
|
125
|
+
# Deprecated. Please use quotaUser instead.
|
|
126
|
+
# @param [Google::Apis::RequestOptions] options
|
|
127
|
+
# Request-specific options
|
|
128
|
+
#
|
|
129
|
+
# @yield [result, err] Result & error if block supplied
|
|
130
|
+
# @yieldparam result [Google::Apis::Oauth2V2::Userinfo] parsed result object
|
|
131
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
132
|
+
#
|
|
133
|
+
# @return [Google::Apis::Oauth2V2::Userinfo]
|
|
134
|
+
#
|
|
135
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
136
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
137
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
138
|
+
def get_userinfo_v2(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
139
|
+
command = make_simple_command(:get, 'userinfo/v2/me', options)
|
|
140
|
+
command.response_representation = Google::Apis::Oauth2V2::Userinfo::Representation
|
|
141
|
+
command.response_class = Google::Apis::Oauth2V2::Userinfo
|
|
142
|
+
command.query['fields'] = fields unless fields.nil?
|
|
143
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
144
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
145
|
+
execute_or_queue_command(command, &block)
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
protected
|
|
149
|
+
|
|
150
|
+
def apply_command_defaults(command)
|
|
151
|
+
command.query['key'] = key unless key.nil?
|
|
152
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
153
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
end
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/people/
|
|
26
26
|
module PeopleV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20201006'
|
|
29
29
|
|
|
30
30
|
# See, edit, download, and permanently delete your contacts
|
|
31
31
|
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
|
|
@@ -1026,7 +1026,8 @@ module Google
|
|
|
1026
1026
|
attr_accessor :next_page_token
|
|
1027
1027
|
|
|
1028
1028
|
# A token, which can be sent as `sync_token` to retrieve changes since the last
|
|
1029
|
-
# request. Request must set `request_sync_token` to return the sync token.
|
|
1029
|
+
# request. Request must set `request_sync_token` to return the sync token. When
|
|
1030
|
+
# the response is paginated, only the last page will contain `nextSyncToken`.
|
|
1030
1031
|
# Corresponds to the JSON property `nextSyncToken`
|
|
1031
1032
|
# @return [String]
|
|
1032
1033
|
attr_accessor :next_sync_token
|
|
@@ -2567,7 +2568,7 @@ module Google
|
|
|
2567
2568
|
|
|
2568
2569
|
# The type of the URL. The type can be custom or one of these predefined values:
|
|
2569
2570
|
# * `home` * `work` * `blog` * `profile` * `homePage` * `ftp` * `reservations` *
|
|
2570
|
-
# `appInstallPage`: website for a
|
|
2571
|
+
# `appInstallPage`: website for a Currents application. * `other`
|
|
2571
2572
|
# Corresponds to the JSON property `type`
|
|
2572
2573
|
# @return [String]
|
|
2573
2574
|
attr_accessor :type
|
|
@@ -866,10 +866,10 @@ module Google
|
|
|
866
866
|
# Each path should start with `person.`: for example, `person.names` or `person.
|
|
867
867
|
# photos`.
|
|
868
868
|
# @param [Boolean] request_sync_token
|
|
869
|
-
# Optional. Whether the response should include `next_sync_token
|
|
870
|
-
# used to get all changes since the last request. For
|
|
871
|
-
# use the `sync_token` param instead. Initial sync
|
|
872
|
-
# request_sync_token` have an additional rate limit.
|
|
869
|
+
# Optional. Whether the response should include `next_sync_token` on the last
|
|
870
|
+
# page, which can be used to get all changes since the last request. For
|
|
871
|
+
# subsequent sync requests use the `sync_token` param instead. Initial sync
|
|
872
|
+
# requests that specify `request_sync_token` have an additional rate limit.
|
|
873
873
|
# @param [String] sort_order
|
|
874
874
|
# Optional. The order in which the connections should be sorted. Defaults to `
|
|
875
875
|
# LAST_MODIFIED_ASCENDING`.
|
|
@@ -28,7 +28,7 @@ module Google
|
|
|
28
28
|
# @see https://developers.google.com/authorized-buyers/apis/realtimebidding/reference/rest/
|
|
29
29
|
module RealtimebiddingV1
|
|
30
30
|
VERSION = 'V1'
|
|
31
|
-
REVISION = '
|
|
31
|
+
REVISION = '20201008'
|
|
32
32
|
|
|
33
33
|
# See, create, edit, and delete your Authorized Buyers and Open Bidding account entities
|
|
34
34
|
AUTH_REALTIME_BIDDING = 'https://www.googleapis.com/auth/realtime-bidding'
|
|
@@ -22,45 +22,6 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module RealtimebiddingV1
|
|
24
24
|
|
|
25
|
-
# Detected ad technology provider information.
|
|
26
|
-
class AdTechnologyProviders
|
|
27
|
-
include Google::Apis::Core::Hashable
|
|
28
|
-
|
|
29
|
-
# The detected ad technology provider IDs for this creative. See https://storage.
|
|
30
|
-
# googleapis.com/adx-rtb-dictionaries/providers.csv for mapping of provider ID
|
|
31
|
-
# to provided name, a privacy policy URL, and a list of domains which can be
|
|
32
|
-
# attributed to the provider. If the creative contains provider IDs that are
|
|
33
|
-
# outside of those listed in the `BidRequest.adslot.consented_providers_settings.
|
|
34
|
-
# consented_providers` field on the [Google bid protocol](https://developers.
|
|
35
|
-
# google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto) and the `
|
|
36
|
-
# BidRequest.user.ext.consented_providers_settings.consented_providers` field on
|
|
37
|
-
# the [OpenRTB protocol](https://developers.google.com/authorized-buyers/rtb/
|
|
38
|
-
# downloads/openrtb-adx-proto), and a bid is submitted with that creative for an
|
|
39
|
-
# impression that will serve to an EEA user, the bid will be filtered before the
|
|
40
|
-
# auction.
|
|
41
|
-
# Corresponds to the JSON property `detectedProviderIds`
|
|
42
|
-
# @return [Array<Fixnum>]
|
|
43
|
-
attr_accessor :detected_provider_ids
|
|
44
|
-
|
|
45
|
-
# Whether the creative contains an unidentified ad technology provider. If true
|
|
46
|
-
# for a given creative, any bid submitted with that creative for an impression
|
|
47
|
-
# that will serve to an EEA user will be filtered before the auction.
|
|
48
|
-
# Corresponds to the JSON property `hasUnidentifiedProvider`
|
|
49
|
-
# @return [Boolean]
|
|
50
|
-
attr_accessor :has_unidentified_provider
|
|
51
|
-
alias_method :has_unidentified_provider?, :has_unidentified_provider
|
|
52
|
-
|
|
53
|
-
def initialize(**args)
|
|
54
|
-
update!(**args)
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
# Update properties of this object
|
|
58
|
-
def update!(**args)
|
|
59
|
-
@detected_provider_ids = args[:detected_provider_ids] if args.key?(:detected_provider_ids)
|
|
60
|
-
@has_unidentified_provider = args[:has_unidentified_provider] if args.key?(:has_unidentified_provider)
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
|
|
64
25
|
# Detected advertiser and brand information.
|
|
65
26
|
class AdvertiserAndBrand
|
|
66
27
|
include Google::Apis::Core::Hashable
|
|
@@ -275,20 +236,15 @@ module Google
|
|
|
275
236
|
class CreativeServingDecision
|
|
276
237
|
include Google::Apis::Core::Hashable
|
|
277
238
|
|
|
278
|
-
#
|
|
279
|
-
# Corresponds to the JSON property `
|
|
280
|
-
# @return [Google::Apis::RealtimebiddingV1::
|
|
281
|
-
attr_accessor :
|
|
239
|
+
# Policy compliance of the creative for a transaction type or a region.
|
|
240
|
+
# Corresponds to the JSON property `chinaPolicyCompliance`
|
|
241
|
+
# @return [Google::Apis::RealtimebiddingV1::PolicyCompliance]
|
|
242
|
+
attr_accessor :china_policy_compliance
|
|
282
243
|
|
|
283
|
-
#
|
|
284
|
-
# Corresponds to the JSON property `
|
|
285
|
-
# @return [Google::Apis::RealtimebiddingV1::
|
|
286
|
-
attr_accessor :
|
|
287
|
-
|
|
288
|
-
# Serving status of the creative for a transaction type or a region.
|
|
289
|
-
# Corresponds to the JSON property `dealsServingStatus`
|
|
290
|
-
# @return [Google::Apis::RealtimebiddingV1::ServingStatus]
|
|
291
|
-
attr_accessor :deals_serving_status
|
|
244
|
+
# Policy compliance of the creative for a transaction type or a region.
|
|
245
|
+
# Corresponds to the JSON property `dealsPolicyCompliance`
|
|
246
|
+
# @return [Google::Apis::RealtimebiddingV1::PolicyCompliance]
|
|
247
|
+
attr_accessor :deals_policy_compliance
|
|
292
248
|
|
|
293
249
|
# Detected advertisers and brands.
|
|
294
250
|
# Corresponds to the JSON property `detectedAdvertisers`
|
|
@@ -357,15 +313,20 @@ module Google
|
|
|
357
313
|
# @return [String]
|
|
358
314
|
attr_accessor :last_status_update
|
|
359
315
|
|
|
360
|
-
#
|
|
361
|
-
# Corresponds to the JSON property `
|
|
362
|
-
# @return [Google::Apis::RealtimebiddingV1::
|
|
363
|
-
attr_accessor :
|
|
316
|
+
# Policy compliance of the creative for a transaction type or a region.
|
|
317
|
+
# Corresponds to the JSON property `networkPolicyCompliance`
|
|
318
|
+
# @return [Google::Apis::RealtimebiddingV1::PolicyCompliance]
|
|
319
|
+
attr_accessor :network_policy_compliance
|
|
320
|
+
|
|
321
|
+
# Policy compliance of the creative for a transaction type or a region.
|
|
322
|
+
# Corresponds to the JSON property `platformPolicyCompliance`
|
|
323
|
+
# @return [Google::Apis::RealtimebiddingV1::PolicyCompliance]
|
|
324
|
+
attr_accessor :platform_policy_compliance
|
|
364
325
|
|
|
365
|
-
#
|
|
366
|
-
# Corresponds to the JSON property `
|
|
367
|
-
# @return [Google::Apis::RealtimebiddingV1::
|
|
368
|
-
attr_accessor :
|
|
326
|
+
# Policy compliance of the creative for a transaction type or a region.
|
|
327
|
+
# Corresponds to the JSON property `russiaPolicyCompliance`
|
|
328
|
+
# @return [Google::Apis::RealtimebiddingV1::PolicyCompliance]
|
|
329
|
+
attr_accessor :russia_policy_compliance
|
|
369
330
|
|
|
370
331
|
def initialize(**args)
|
|
371
332
|
update!(**args)
|
|
@@ -373,9 +334,8 @@ module Google
|
|
|
373
334
|
|
|
374
335
|
# Update properties of this object
|
|
375
336
|
def update!(**args)
|
|
376
|
-
@
|
|
377
|
-
@
|
|
378
|
-
@deals_serving_status = args[:deals_serving_status] if args.key?(:deals_serving_status)
|
|
337
|
+
@china_policy_compliance = args[:china_policy_compliance] if args.key?(:china_policy_compliance)
|
|
338
|
+
@deals_policy_compliance = args[:deals_policy_compliance] if args.key?(:deals_policy_compliance)
|
|
379
339
|
@detected_advertisers = args[:detected_advertisers] if args.key?(:detected_advertisers)
|
|
380
340
|
@detected_attributes = args[:detected_attributes] if args.key?(:detected_attributes)
|
|
381
341
|
@detected_click_through_urls = args[:detected_click_through_urls] if args.key?(:detected_click_through_urls)
|
|
@@ -385,8 +345,9 @@ module Google
|
|
|
385
345
|
@detected_sensitive_categories = args[:detected_sensitive_categories] if args.key?(:detected_sensitive_categories)
|
|
386
346
|
@detected_vendor_ids = args[:detected_vendor_ids] if args.key?(:detected_vendor_ids)
|
|
387
347
|
@last_status_update = args[:last_status_update] if args.key?(:last_status_update)
|
|
388
|
-
@
|
|
389
|
-
@
|
|
348
|
+
@network_policy_compliance = args[:network_policy_compliance] if args.key?(:network_policy_compliance)
|
|
349
|
+
@platform_policy_compliance = args[:platform_policy_compliance] if args.key?(:platform_policy_compliance)
|
|
350
|
+
@russia_policy_compliance = args[:russia_policy_compliance] if args.key?(:russia_policy_compliance)
|
|
390
351
|
end
|
|
391
352
|
end
|
|
392
353
|
|
|
@@ -941,6 +902,35 @@ module Google
|
|
|
941
902
|
end
|
|
942
903
|
end
|
|
943
904
|
|
|
905
|
+
# Policy compliance of the creative for a transaction type or a region.
|
|
906
|
+
class PolicyCompliance
|
|
907
|
+
include Google::Apis::Core::Hashable
|
|
908
|
+
|
|
909
|
+
# Serving status for the given transaction type (e.g., open auction, deals) or
|
|
910
|
+
# region (e.g., China, Russia). Can be used to filter the response of the
|
|
911
|
+
# creatives.list method.
|
|
912
|
+
# Corresponds to the JSON property `status`
|
|
913
|
+
# @return [String]
|
|
914
|
+
attr_accessor :status
|
|
915
|
+
|
|
916
|
+
# Topics related to the policy compliance for this transaction type (e.g., open
|
|
917
|
+
# auction, deals) or region (e.g., China, Russia). Topics may be present only if
|
|
918
|
+
# status is DISAPPROVED.
|
|
919
|
+
# Corresponds to the JSON property `topics`
|
|
920
|
+
# @return [Array<Google::Apis::RealtimebiddingV1::PolicyTopicEntry>]
|
|
921
|
+
attr_accessor :topics
|
|
922
|
+
|
|
923
|
+
def initialize(**args)
|
|
924
|
+
update!(**args)
|
|
925
|
+
end
|
|
926
|
+
|
|
927
|
+
# Update properties of this object
|
|
928
|
+
def update!(**args)
|
|
929
|
+
@status = args[:status] if args.key?(:status)
|
|
930
|
+
@topics = args[:topics] if args.key?(:topics)
|
|
931
|
+
end
|
|
932
|
+
end
|
|
933
|
+
|
|
944
934
|
# Each policy topic entry will represent a violation of a policy topic for a
|
|
945
935
|
# creative, with the policy topic information and optional evidence for the
|
|
946
936
|
# policy violation.
|
|
@@ -1034,35 +1024,6 @@ module Google
|
|
|
1034
1024
|
end
|
|
1035
1025
|
end
|
|
1036
1026
|
|
|
1037
|
-
# Serving status of the creative for a transaction type or a region.
|
|
1038
|
-
class ServingStatus
|
|
1039
|
-
include Google::Apis::Core::Hashable
|
|
1040
|
-
|
|
1041
|
-
# Serving status for the given transaction type (e.g., open auction, deals) or
|
|
1042
|
-
# region (e.g., China, Russia). Can be used to filter the response of the
|
|
1043
|
-
# creatives.list method.
|
|
1044
|
-
# Corresponds to the JSON property `status`
|
|
1045
|
-
# @return [String]
|
|
1046
|
-
attr_accessor :status
|
|
1047
|
-
|
|
1048
|
-
# Policy topics related to the serving decision for this transaction type (e.g.,
|
|
1049
|
-
# open auction, deals) or region (e.g., China, Russia). Topics may be present
|
|
1050
|
-
# only if status is DISAPPROVED.
|
|
1051
|
-
# Corresponds to the JSON property `topics`
|
|
1052
|
-
# @return [Array<Google::Apis::RealtimebiddingV1::PolicyTopicEntry>]
|
|
1053
|
-
attr_accessor :topics
|
|
1054
|
-
|
|
1055
|
-
def initialize(**args)
|
|
1056
|
-
update!(**args)
|
|
1057
|
-
end
|
|
1058
|
-
|
|
1059
|
-
# Update properties of this object
|
|
1060
|
-
def update!(**args)
|
|
1061
|
-
@status = args[:status] if args.key?(:status)
|
|
1062
|
-
@topics = args[:topics] if args.key?(:topics)
|
|
1063
|
-
end
|
|
1064
|
-
end
|
|
1065
|
-
|
|
1066
1027
|
# The URL-level breakdown for the download size.
|
|
1067
1028
|
class UrlDownloadSize
|
|
1068
1029
|
include Google::Apis::Core::Hashable
|