google-api-client 0.32.1 → 0.33.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +40 -0
- data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
- data/generated/google/apis/accessapproval_v1beta1/classes.rb +5 -2
- data/generated/google/apis/accessapproval_v1beta1/service.rb +3 -6
- data/generated/google/apis/admin_directory_v1.rb +4 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +4 -3
- data/generated/google/apis/admin_reports_v1.rb +2 -2
- data/generated/google/apis/admin_reports_v1/classes.rb +87 -44
- data/generated/google/apis/admin_reports_v1/service.rb +306 -63
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +6 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/service.rb +10 -6
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/service.rb +10 -6
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +10 -18
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +1 -0
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +65 -36
- data/generated/google/apis/cloudbilling_v1/representations.rb +0 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +5 -3
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +7 -3
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +10 -4
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/service.rb +3 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +23 -220
- data/generated/google/apis/content_v2/representations.rb +0 -115
- data/generated/google/apis/content_v2/service.rb +0 -160
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +57 -18
- data/generated/google/apis/content_v2_1/representations.rb +3 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +6 -9
- data/generated/google/apis/dataflow_v1b3/representations.rb +1 -1
- data/generated/google/apis/datafusion_v1beta1.rb +1 -1
- data/generated/google/apis/datafusion_v1beta1/classes.rb +156 -46
- data/generated/google/apis/datafusion_v1beta1/representations.rb +33 -0
- data/generated/google/apis/datafusion_v1beta1/service.rb +10 -1
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +280 -0
- data/generated/google/apis/dialogflow_v2/representations.rb +115 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +280 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +115 -0
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +2 -2
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +2 -2
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +12 -0
- data/generated/google/apis/logging_v2/representations.rb +2 -0
- data/generated/google/apis/logging_v2/service.rb +10 -5
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +15 -1
- data/generated/google/apis/monitoring_v3/representations.rb +1 -0
- data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +5 -4
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/service.rb +3 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/service.rb +2 -0
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +24 -0
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +4 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +24 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +4 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +24 -0
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +4 -0
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +2 -2
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -2
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +63 -0
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +30 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +33 -7
- data/generated/google/apis/servicemanagement_v1/representations.rb +24 -0
- data/generated/google/apis/servicemanagement_v1/service.rb +31 -17
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +55 -0
- data/generated/google/apis/serviceusage_v1/representations.rb +29 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +55 -0
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +29 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +389 -0
- data/generated/google/apis/sheets_v4/representations.rb +79 -0
- data/google-api-client.gemspec +3 -3
- data/lib/google/apis/version.rb +1 -1
- metadata +10 -21
- data/generated/google/apis/urlshortener_v1.rb +0 -34
- data/generated/google/apis/urlshortener_v1/classes.rb +0 -246
- data/generated/google/apis/urlshortener_v1/representations.rb +0 -121
- data/generated/google/apis/urlshortener_v1/service.rb +0 -169
@@ -154,6 +154,12 @@ module Google
|
|
154
154
|
include Google::Apis::Core::JsonObjectSupport
|
155
155
|
end
|
156
156
|
|
157
|
+
class BaselineValueFormat
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
157
163
|
class BasicChartAxis
|
158
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
165
|
|
@@ -334,6 +340,12 @@ module Google
|
|
334
340
|
include Google::Apis::Core::JsonObjectSupport
|
335
341
|
end
|
336
342
|
|
343
|
+
class ChartCustomNumberFormatOptions
|
344
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
345
|
+
|
346
|
+
include Google::Apis::Core::JsonObjectSupport
|
347
|
+
end
|
348
|
+
|
337
349
|
class ChartData
|
338
350
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
351
|
|
@@ -730,6 +742,12 @@ module Google
|
|
730
742
|
include Google::Apis::Core::JsonObjectSupport
|
731
743
|
end
|
732
744
|
|
745
|
+
class KeyValueFormat
|
746
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
747
|
+
|
748
|
+
include Google::Apis::Core::JsonObjectSupport
|
749
|
+
end
|
750
|
+
|
733
751
|
class LineStyle
|
734
752
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
735
753
|
|
@@ -892,6 +910,12 @@ module Google
|
|
892
910
|
include Google::Apis::Core::JsonObjectSupport
|
893
911
|
end
|
894
912
|
|
913
|
+
class ScorecardChartSpec
|
914
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
915
|
+
|
916
|
+
include Google::Apis::Core::JsonObjectSupport
|
917
|
+
end
|
918
|
+
|
895
919
|
class SearchDeveloperMetadataRequest
|
896
920
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
897
921
|
|
@@ -1364,6 +1388,22 @@ module Google
|
|
1364
1388
|
end
|
1365
1389
|
end
|
1366
1390
|
|
1391
|
+
class BaselineValueFormat
|
1392
|
+
# @private
|
1393
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1394
|
+
property :comparison_type, as: 'comparisonType'
|
1395
|
+
property :description, as: 'description'
|
1396
|
+
property :negative_color, as: 'negativeColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
|
1397
|
+
|
1398
|
+
property :position, as: 'position', class: Google::Apis::SheetsV4::TextPosition, decorator: Google::Apis::SheetsV4::TextPosition::Representation
|
1399
|
+
|
1400
|
+
property :positive_color, as: 'positiveColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
|
1401
|
+
|
1402
|
+
property :text_format, as: 'textFormat', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation
|
1403
|
+
|
1404
|
+
end
|
1405
|
+
end
|
1406
|
+
|
1367
1407
|
class BasicChartAxis
|
1368
1408
|
# @private
|
1369
1409
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1728,6 +1768,14 @@ module Google
|
|
1728
1768
|
end
|
1729
1769
|
end
|
1730
1770
|
|
1771
|
+
class ChartCustomNumberFormatOptions
|
1772
|
+
# @private
|
1773
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1774
|
+
property :prefix, as: 'prefix'
|
1775
|
+
property :suffix, as: 'suffix'
|
1776
|
+
end
|
1777
|
+
end
|
1778
|
+
|
1731
1779
|
class ChartData
|
1732
1780
|
# @private
|
1733
1781
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1765,6 +1813,8 @@ module Google
|
|
1765
1813
|
|
1766
1814
|
property :pie_chart, as: 'pieChart', class: Google::Apis::SheetsV4::PieChartSpec, decorator: Google::Apis::SheetsV4::PieChartSpec::Representation
|
1767
1815
|
|
1816
|
+
property :scorecard_chart, as: 'scorecardChart', class: Google::Apis::SheetsV4::ScorecardChartSpec, decorator: Google::Apis::SheetsV4::ScorecardChartSpec::Representation
|
1817
|
+
|
1768
1818
|
property :subtitle, as: 'subtitle'
|
1769
1819
|
property :subtitle_text_format, as: 'subtitleTextFormat', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation
|
1770
1820
|
|
@@ -2383,6 +2433,16 @@ module Google
|
|
2383
2433
|
end
|
2384
2434
|
end
|
2385
2435
|
|
2436
|
+
class KeyValueFormat
|
2437
|
+
# @private
|
2438
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2439
|
+
property :position, as: 'position', class: Google::Apis::SheetsV4::TextPosition, decorator: Google::Apis::SheetsV4::TextPosition::Representation
|
2440
|
+
|
2441
|
+
property :text_format, as: 'textFormat', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation
|
2442
|
+
|
2443
|
+
end
|
2444
|
+
end
|
2445
|
+
|
2386
2446
|
class LineStyle
|
2387
2447
|
# @private
|
2388
2448
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2821,6 +2881,25 @@ module Google
|
|
2821
2881
|
end
|
2822
2882
|
end
|
2823
2883
|
|
2884
|
+
class ScorecardChartSpec
|
2885
|
+
# @private
|
2886
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2887
|
+
property :aggregate_type, as: 'aggregateType'
|
2888
|
+
property :baseline_value_data, as: 'baselineValueData', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
|
2889
|
+
|
2890
|
+
property :baseline_value_format, as: 'baselineValueFormat', class: Google::Apis::SheetsV4::BaselineValueFormat, decorator: Google::Apis::SheetsV4::BaselineValueFormat::Representation
|
2891
|
+
|
2892
|
+
property :custom_format_options, as: 'customFormatOptions', class: Google::Apis::SheetsV4::ChartCustomNumberFormatOptions, decorator: Google::Apis::SheetsV4::ChartCustomNumberFormatOptions::Representation
|
2893
|
+
|
2894
|
+
property :key_value_data, as: 'keyValueData', class: Google::Apis::SheetsV4::ChartData, decorator: Google::Apis::SheetsV4::ChartData::Representation
|
2895
|
+
|
2896
|
+
property :key_value_format, as: 'keyValueFormat', class: Google::Apis::SheetsV4::KeyValueFormat, decorator: Google::Apis::SheetsV4::KeyValueFormat::Representation
|
2897
|
+
|
2898
|
+
property :number_format_source, as: 'numberFormatSource'
|
2899
|
+
property :scale_factor, as: 'scaleFactor'
|
2900
|
+
end
|
2901
|
+
end
|
2902
|
+
|
2824
2903
|
class SearchDeveloperMetadataRequest
|
2825
2904
|
# @private
|
2826
2905
|
class Representation < Google::Apis::Core::JsonRepresentation
|
data/google-api-client.gemspec
CHANGED
@@ -18,14 +18,14 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = %w[lib generated]
|
20
20
|
|
21
|
-
spec.required_ruby_version = '~> 2.
|
21
|
+
spec.required_ruby_version = '~> 2.4'
|
22
22
|
|
23
23
|
spec.add_runtime_dependency 'representable', '~> 3.0'
|
24
24
|
spec.add_runtime_dependency 'retriable', '>= 2.0', '< 4.0'
|
25
25
|
spec.add_runtime_dependency 'addressable', '~> 2.5', '>= 2.5.1'
|
26
26
|
spec.add_runtime_dependency 'mini_mime', '~> 1.0'
|
27
|
-
spec.add_runtime_dependency 'signet', '~> 0.
|
28
|
-
spec.add_runtime_dependency 'googleauth', '
|
27
|
+
spec.add_runtime_dependency 'signet', '~> 0.12'
|
28
|
+
spec.add_runtime_dependency 'googleauth', '~> 0.9'
|
29
29
|
spec.add_runtime_dependency 'httpclient', '>= 2.8.1', '< 3.0'
|
30
30
|
spec.add_development_dependency 'thor', '~> 0.19'
|
31
31
|
spec.add_development_dependency 'activesupport', '>= 4.2', '< 5.1'
|
data/lib/google/apis/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.33.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Bazyl
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2019-10-
|
14
|
+
date: 2019-10-14 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: representable
|
@@ -87,34 +87,28 @@ dependencies:
|
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: '0.
|
90
|
+
version: '0.12'
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: '0.
|
97
|
+
version: '0.12'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: googleauth
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- - "
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: '0.5'
|
105
|
-
- - "<"
|
102
|
+
- - "~>"
|
106
103
|
- !ruby/object:Gem::Version
|
107
|
-
version: 0.
|
104
|
+
version: '0.9'
|
108
105
|
type: :runtime
|
109
106
|
prerelease: false
|
110
107
|
version_requirements: !ruby/object:Gem::Requirement
|
111
108
|
requirements:
|
112
|
-
- - "
|
113
|
-
- !ruby/object:Gem::Version
|
114
|
-
version: '0.5'
|
115
|
-
- - "<"
|
109
|
+
- - "~>"
|
116
110
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
111
|
+
version: '0.9'
|
118
112
|
- !ruby/object:Gem::Dependency
|
119
113
|
name: httpclient
|
120
114
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1164,10 +1158,6 @@ files:
|
|
1164
1158
|
- generated/google/apis/translate_v3beta1/classes.rb
|
1165
1159
|
- generated/google/apis/translate_v3beta1/representations.rb
|
1166
1160
|
- generated/google/apis/translate_v3beta1/service.rb
|
1167
|
-
- generated/google/apis/urlshortener_v1.rb
|
1168
|
-
- generated/google/apis/urlshortener_v1/classes.rb
|
1169
|
-
- generated/google/apis/urlshortener_v1/representations.rb
|
1170
|
-
- generated/google/apis/urlshortener_v1/service.rb
|
1171
1161
|
- generated/google/apis/vault_v1.rb
|
1172
1162
|
- generated/google/apis/vault_v1/classes.rb
|
1173
1163
|
- generated/google/apis/vault_v1/representations.rb
|
@@ -1326,15 +1316,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1326
1316
|
requirements:
|
1327
1317
|
- - "~>"
|
1328
1318
|
- !ruby/object:Gem::Version
|
1329
|
-
version: '2.
|
1319
|
+
version: '2.4'
|
1330
1320
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1331
1321
|
requirements:
|
1332
1322
|
- - ">="
|
1333
1323
|
- !ruby/object:Gem::Version
|
1334
1324
|
version: '0'
|
1335
1325
|
requirements: []
|
1336
|
-
|
1337
|
-
rubygems_version: 2.5.2.1
|
1326
|
+
rubygems_version: 3.0.3
|
1338
1327
|
signing_key:
|
1339
1328
|
specification_version: 4
|
1340
1329
|
summary: Client for accessing Google APIs
|
@@ -1,34 +0,0 @@
|
|
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/urlshortener_v1/service.rb'
|
16
|
-
require 'google/apis/urlshortener_v1/classes.rb'
|
17
|
-
require 'google/apis/urlshortener_v1/representations.rb'
|
18
|
-
|
19
|
-
module Google
|
20
|
-
module Apis
|
21
|
-
# URL Shortener API
|
22
|
-
#
|
23
|
-
# Lets you create, inspect, and manage goo.gl short URLs
|
24
|
-
#
|
25
|
-
# @see https://developers.google.com/url-shortener/v1/getting_started
|
26
|
-
module UrlshortenerV1
|
27
|
-
VERSION = 'V1'
|
28
|
-
REVISION = '20150519'
|
29
|
-
|
30
|
-
# Manage your goo.gl short URLs
|
31
|
-
AUTH_URLSHORTENER = 'https://www.googleapis.com/auth/urlshortener'
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
@@ -1,246 +0,0 @@
|
|
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 UrlshortenerV1
|
24
|
-
|
25
|
-
#
|
26
|
-
class AnalyticsSnapshot
|
27
|
-
include Google::Apis::Core::Hashable
|
28
|
-
|
29
|
-
# Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present
|
30
|
-
# if this data is available.
|
31
|
-
# Corresponds to the JSON property `browsers`
|
32
|
-
# @return [Array<Google::Apis::UrlshortenerV1::StringCount>]
|
33
|
-
attr_accessor :browsers
|
34
|
-
|
35
|
-
# Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (
|
36
|
-
# descending) click counts. Only present if this data is available.
|
37
|
-
# Corresponds to the JSON property `countries`
|
38
|
-
# @return [Array<Google::Apis::UrlshortenerV1::StringCount>]
|
39
|
-
attr_accessor :countries
|
40
|
-
|
41
|
-
# Number of clicks on all goo.gl short URLs pointing to this long URL.
|
42
|
-
# Corresponds to the JSON property `longUrlClicks`
|
43
|
-
# @return [Fixnum]
|
44
|
-
attr_accessor :long_url_clicks
|
45
|
-
|
46
|
-
# Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts.
|
47
|
-
# Only present if this data is available.
|
48
|
-
# Corresponds to the JSON property `platforms`
|
49
|
-
# @return [Array<Google::Apis::UrlshortenerV1::StringCount>]
|
50
|
-
attr_accessor :platforms
|
51
|
-
|
52
|
-
# Top referring hosts, e.g. "www.google.com"; sorted by (descending) click
|
53
|
-
# counts. Only present if this data is available.
|
54
|
-
# Corresponds to the JSON property `referrers`
|
55
|
-
# @return [Array<Google::Apis::UrlshortenerV1::StringCount>]
|
56
|
-
attr_accessor :referrers
|
57
|
-
|
58
|
-
# Number of clicks on this short URL.
|
59
|
-
# Corresponds to the JSON property `shortUrlClicks`
|
60
|
-
# @return [Fixnum]
|
61
|
-
attr_accessor :short_url_clicks
|
62
|
-
|
63
|
-
def initialize(**args)
|
64
|
-
update!(**args)
|
65
|
-
end
|
66
|
-
|
67
|
-
# Update properties of this object
|
68
|
-
def update!(**args)
|
69
|
-
@browsers = args[:browsers] if args.key?(:browsers)
|
70
|
-
@countries = args[:countries] if args.key?(:countries)
|
71
|
-
@long_url_clicks = args[:long_url_clicks] if args.key?(:long_url_clicks)
|
72
|
-
@platforms = args[:platforms] if args.key?(:platforms)
|
73
|
-
@referrers = args[:referrers] if args.key?(:referrers)
|
74
|
-
@short_url_clicks = args[:short_url_clicks] if args.key?(:short_url_clicks)
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
#
|
79
|
-
class AnalyticsSummary
|
80
|
-
include Google::Apis::Core::Hashable
|
81
|
-
|
82
|
-
# Click analytics over all time.
|
83
|
-
# Corresponds to the JSON property `allTime`
|
84
|
-
# @return [Google::Apis::UrlshortenerV1::AnalyticsSnapshot]
|
85
|
-
attr_accessor :all_time
|
86
|
-
|
87
|
-
# Click analytics over the last day.
|
88
|
-
# Corresponds to the JSON property `day`
|
89
|
-
# @return [Google::Apis::UrlshortenerV1::AnalyticsSnapshot]
|
90
|
-
attr_accessor :day
|
91
|
-
|
92
|
-
# Click analytics over the last month.
|
93
|
-
# Corresponds to the JSON property `month`
|
94
|
-
# @return [Google::Apis::UrlshortenerV1::AnalyticsSnapshot]
|
95
|
-
attr_accessor :month
|
96
|
-
|
97
|
-
# Click analytics over the last two hours.
|
98
|
-
# Corresponds to the JSON property `twoHours`
|
99
|
-
# @return [Google::Apis::UrlshortenerV1::AnalyticsSnapshot]
|
100
|
-
attr_accessor :two_hours
|
101
|
-
|
102
|
-
# Click analytics over the last week.
|
103
|
-
# Corresponds to the JSON property `week`
|
104
|
-
# @return [Google::Apis::UrlshortenerV1::AnalyticsSnapshot]
|
105
|
-
attr_accessor :week
|
106
|
-
|
107
|
-
def initialize(**args)
|
108
|
-
update!(**args)
|
109
|
-
end
|
110
|
-
|
111
|
-
# Update properties of this object
|
112
|
-
def update!(**args)
|
113
|
-
@all_time = args[:all_time] if args.key?(:all_time)
|
114
|
-
@day = args[:day] if args.key?(:day)
|
115
|
-
@month = args[:month] if args.key?(:month)
|
116
|
-
@two_hours = args[:two_hours] if args.key?(:two_hours)
|
117
|
-
@week = args[:week] if args.key?(:week)
|
118
|
-
end
|
119
|
-
end
|
120
|
-
|
121
|
-
#
|
122
|
-
class StringCount
|
123
|
-
include Google::Apis::Core::Hashable
|
124
|
-
|
125
|
-
# Number of clicks for this top entry, e.g. for this particular country or
|
126
|
-
# browser.
|
127
|
-
# Corresponds to the JSON property `count`
|
128
|
-
# @return [Fixnum]
|
129
|
-
attr_accessor :count
|
130
|
-
|
131
|
-
# Label assigned to this top entry, e.g. "US" or "Chrome".
|
132
|
-
# Corresponds to the JSON property `id`
|
133
|
-
# @return [String]
|
134
|
-
attr_accessor :id
|
135
|
-
|
136
|
-
def initialize(**args)
|
137
|
-
update!(**args)
|
138
|
-
end
|
139
|
-
|
140
|
-
# Update properties of this object
|
141
|
-
def update!(**args)
|
142
|
-
@count = args[:count] if args.key?(:count)
|
143
|
-
@id = args[:id] if args.key?(:id)
|
144
|
-
end
|
145
|
-
end
|
146
|
-
|
147
|
-
#
|
148
|
-
class Url
|
149
|
-
include Google::Apis::Core::Hashable
|
150
|
-
|
151
|
-
# A summary of the click analytics for the short and long URL. Might not be
|
152
|
-
# present if not requested or currently unavailable.
|
153
|
-
# Corresponds to the JSON property `analytics`
|
154
|
-
# @return [Google::Apis::UrlshortenerV1::AnalyticsSummary]
|
155
|
-
attr_accessor :analytics
|
156
|
-
|
157
|
-
# Time the short URL was created; ISO 8601 representation using the yyyy-MM-dd'T'
|
158
|
-
# HH:mm:ss.SSSZZ format, e.g. "2010-10-14T19:01:24.944+00:00".
|
159
|
-
# Corresponds to the JSON property `created`
|
160
|
-
# @return [String]
|
161
|
-
attr_accessor :created
|
162
|
-
|
163
|
-
# Short URL, e.g. "http://goo.gl/l6MS".
|
164
|
-
# Corresponds to the JSON property `id`
|
165
|
-
# @return [String]
|
166
|
-
attr_accessor :id
|
167
|
-
|
168
|
-
# The fixed string "urlshortener#url".
|
169
|
-
# Corresponds to the JSON property `kind`
|
170
|
-
# @return [String]
|
171
|
-
attr_accessor :kind
|
172
|
-
|
173
|
-
# Long URL, e.g. "http://www.google.com/". Might not be present if the status is
|
174
|
-
# "REMOVED".
|
175
|
-
# Corresponds to the JSON property `longUrl`
|
176
|
-
# @return [String]
|
177
|
-
attr_accessor :long_url
|
178
|
-
|
179
|
-
# Status of the target URL. Possible values: "OK", "MALWARE", "PHISHING", or "
|
180
|
-
# REMOVED". A URL might be marked "REMOVED" if it was flagged as spam, for
|
181
|
-
# example.
|
182
|
-
# Corresponds to the JSON property `status`
|
183
|
-
# @return [String]
|
184
|
-
attr_accessor :status
|
185
|
-
|
186
|
-
def initialize(**args)
|
187
|
-
update!(**args)
|
188
|
-
end
|
189
|
-
|
190
|
-
# Update properties of this object
|
191
|
-
def update!(**args)
|
192
|
-
@analytics = args[:analytics] if args.key?(:analytics)
|
193
|
-
@created = args[:created] if args.key?(:created)
|
194
|
-
@id = args[:id] if args.key?(:id)
|
195
|
-
@kind = args[:kind] if args.key?(:kind)
|
196
|
-
@long_url = args[:long_url] if args.key?(:long_url)
|
197
|
-
@status = args[:status] if args.key?(:status)
|
198
|
-
end
|
199
|
-
end
|
200
|
-
|
201
|
-
#
|
202
|
-
class UrlHistory
|
203
|
-
include Google::Apis::Core::Hashable
|
204
|
-
|
205
|
-
# A list of URL resources.
|
206
|
-
# Corresponds to the JSON property `items`
|
207
|
-
# @return [Array<Google::Apis::UrlshortenerV1::Url>]
|
208
|
-
attr_accessor :items
|
209
|
-
|
210
|
-
# Number of items returned with each full "page" of results. Note that the last
|
211
|
-
# page could have fewer items than the "itemsPerPage" value.
|
212
|
-
# Corresponds to the JSON property `itemsPerPage`
|
213
|
-
# @return [Fixnum]
|
214
|
-
attr_accessor :items_per_page
|
215
|
-
|
216
|
-
# The fixed string "urlshortener#urlHistory".
|
217
|
-
# Corresponds to the JSON property `kind`
|
218
|
-
# @return [String]
|
219
|
-
attr_accessor :kind
|
220
|
-
|
221
|
-
# A token to provide to get the next page of results.
|
222
|
-
# Corresponds to the JSON property `nextPageToken`
|
223
|
-
# @return [String]
|
224
|
-
attr_accessor :next_page_token
|
225
|
-
|
226
|
-
# Total number of short URLs associated with this user (may be approximate).
|
227
|
-
# Corresponds to the JSON property `totalItems`
|
228
|
-
# @return [Fixnum]
|
229
|
-
attr_accessor :total_items
|
230
|
-
|
231
|
-
def initialize(**args)
|
232
|
-
update!(**args)
|
233
|
-
end
|
234
|
-
|
235
|
-
# Update properties of this object
|
236
|
-
def update!(**args)
|
237
|
-
@items = args[:items] if args.key?(:items)
|
238
|
-
@items_per_page = args[:items_per_page] if args.key?(:items_per_page)
|
239
|
-
@kind = args[:kind] if args.key?(:kind)
|
240
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
241
|
-
@total_items = args[:total_items] if args.key?(:total_items)
|
242
|
-
end
|
243
|
-
end
|
244
|
-
end
|
245
|
-
end
|
246
|
-
end
|