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.
Files changed (106) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +40 -0
  3. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  4. data/generated/google/apis/accessapproval_v1beta1/classes.rb +5 -2
  5. data/generated/google/apis/accessapproval_v1beta1/service.rb +3 -6
  6. data/generated/google/apis/admin_directory_v1.rb +4 -1
  7. data/generated/google/apis/admin_directory_v1/classes.rb +4 -3
  8. data/generated/google/apis/admin_reports_v1.rb +2 -2
  9. data/generated/google/apis/admin_reports_v1/classes.rb +87 -44
  10. data/generated/google/apis/admin_reports_v1/service.rb +306 -63
  11. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  12. data/generated/google/apis/androidpublisher_v3/classes.rb +6 -0
  13. data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
  14. data/generated/google/apis/appengine_v1.rb +1 -1
  15. data/generated/google/apis/appengine_v1/service.rb +10 -6
  16. data/generated/google/apis/appengine_v1beta.rb +1 -1
  17. data/generated/google/apis/appengine_v1beta/service.rb +10 -6
  18. data/generated/google/apis/bigquery_v2.rb +1 -1
  19. data/generated/google/apis/bigquery_v2/classes.rb +10 -18
  20. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  21. data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +1 -0
  22. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  23. data/generated/google/apis/cloudbilling_v1/classes.rb +65 -36
  24. data/generated/google/apis/cloudbilling_v1/representations.rb +0 -1
  25. data/generated/google/apis/cloudbilling_v1/service.rb +5 -3
  26. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  27. data/generated/google/apis/cloudfunctions_v1/service.rb +7 -3
  28. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  29. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -0
  30. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
  31. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +10 -4
  32. data/generated/google/apis/cloudkms_v1.rb +1 -1
  33. data/generated/google/apis/cloudkms_v1/service.rb +3 -0
  34. data/generated/google/apis/content_v2.rb +1 -1
  35. data/generated/google/apis/content_v2/classes.rb +23 -220
  36. data/generated/google/apis/content_v2/representations.rb +0 -115
  37. data/generated/google/apis/content_v2/service.rb +0 -160
  38. data/generated/google/apis/content_v2_1.rb +1 -1
  39. data/generated/google/apis/content_v2_1/classes.rb +57 -18
  40. data/generated/google/apis/content_v2_1/representations.rb +3 -0
  41. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  42. data/generated/google/apis/dataflow_v1b3/classes.rb +6 -9
  43. data/generated/google/apis/dataflow_v1b3/representations.rb +1 -1
  44. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  45. data/generated/google/apis/datafusion_v1beta1/classes.rb +156 -46
  46. data/generated/google/apis/datafusion_v1beta1/representations.rb +33 -0
  47. data/generated/google/apis/datafusion_v1beta1/service.rb +10 -1
  48. data/generated/google/apis/dialogflow_v2.rb +1 -1
  49. data/generated/google/apis/dialogflow_v2/classes.rb +280 -0
  50. data/generated/google/apis/dialogflow_v2/representations.rb +115 -0
  51. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  52. data/generated/google/apis/dialogflow_v2beta1/classes.rb +280 -0
  53. data/generated/google/apis/dialogflow_v2beta1/representations.rb +115 -0
  54. data/generated/google/apis/iap_v1.rb +1 -1
  55. data/generated/google/apis/iap_v1/classes.rb +2 -2
  56. data/generated/google/apis/iap_v1beta1.rb +1 -1
  57. data/generated/google/apis/iap_v1beta1/classes.rb +2 -2
  58. data/generated/google/apis/logging_v2.rb +1 -1
  59. data/generated/google/apis/logging_v2/classes.rb +12 -0
  60. data/generated/google/apis/logging_v2/representations.rb +2 -0
  61. data/generated/google/apis/logging_v2/service.rb +10 -5
  62. data/generated/google/apis/monitoring_v3.rb +1 -1
  63. data/generated/google/apis/monitoring_v3/classes.rb +15 -1
  64. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  65. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  66. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +5 -4
  67. data/generated/google/apis/pubsub_v1.rb +1 -1
  68. data/generated/google/apis/pubsub_v1/service.rb +3 -0
  69. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  70. data/generated/google/apis/pubsub_v1beta2/service.rb +2 -0
  71. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  72. data/generated/google/apis/remotebuildexecution_v1/classes.rb +24 -0
  73. data/generated/google/apis/remotebuildexecution_v1/representations.rb +4 -0
  74. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  75. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +24 -0
  76. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +4 -0
  77. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  78. data/generated/google/apis/remotebuildexecution_v2/classes.rb +24 -0
  79. data/generated/google/apis/remotebuildexecution_v2/representations.rb +4 -0
  80. data/generated/google/apis/securitycenter_v1.rb +1 -1
  81. data/generated/google/apis/securitycenter_v1/classes.rb +2 -2
  82. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  83. data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -2
  84. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  85. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +63 -0
  86. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +30 -0
  87. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  88. data/generated/google/apis/servicemanagement_v1/classes.rb +33 -7
  89. data/generated/google/apis/servicemanagement_v1/representations.rb +24 -0
  90. data/generated/google/apis/servicemanagement_v1/service.rb +31 -17
  91. data/generated/google/apis/serviceusage_v1.rb +1 -1
  92. data/generated/google/apis/serviceusage_v1/classes.rb +55 -0
  93. data/generated/google/apis/serviceusage_v1/representations.rb +29 -0
  94. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  95. data/generated/google/apis/serviceusage_v1beta1/classes.rb +55 -0
  96. data/generated/google/apis/serviceusage_v1beta1/representations.rb +29 -0
  97. data/generated/google/apis/sheets_v4.rb +1 -1
  98. data/generated/google/apis/sheets_v4/classes.rb +389 -0
  99. data/generated/google/apis/sheets_v4/representations.rb +79 -0
  100. data/google-api-client.gemspec +3 -3
  101. data/lib/google/apis/version.rb +1 -1
  102. metadata +10 -21
  103. data/generated/google/apis/urlshortener_v1.rb +0 -34
  104. data/generated/google/apis/urlshortener_v1/classes.rb +0 -246
  105. data/generated/google/apis/urlshortener_v1/representations.rb +0 -121
  106. data/generated/google/apis/urlshortener_v1/service.rb +0 -169
@@ -1,121 +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
- class AnalyticsSnapshot
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class AnalyticsSummary
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
- class StringCount
38
- class Representation < Google::Apis::Core::JsonRepresentation; end
39
-
40
- include Google::Apis::Core::JsonObjectSupport
41
- end
42
-
43
- class Url
44
- class Representation < Google::Apis::Core::JsonRepresentation; end
45
-
46
- include Google::Apis::Core::JsonObjectSupport
47
- end
48
-
49
- class UrlHistory
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
-
52
- include Google::Apis::Core::JsonObjectSupport
53
- end
54
-
55
- class AnalyticsSnapshot
56
- # @private
57
- class Representation < Google::Apis::Core::JsonRepresentation
58
- collection :browsers, as: 'browsers', class: Google::Apis::UrlshortenerV1::StringCount, decorator: Google::Apis::UrlshortenerV1::StringCount::Representation
59
-
60
- collection :countries, as: 'countries', class: Google::Apis::UrlshortenerV1::StringCount, decorator: Google::Apis::UrlshortenerV1::StringCount::Representation
61
-
62
- property :long_url_clicks, :numeric_string => true, as: 'longUrlClicks'
63
- collection :platforms, as: 'platforms', class: Google::Apis::UrlshortenerV1::StringCount, decorator: Google::Apis::UrlshortenerV1::StringCount::Representation
64
-
65
- collection :referrers, as: 'referrers', class: Google::Apis::UrlshortenerV1::StringCount, decorator: Google::Apis::UrlshortenerV1::StringCount::Representation
66
-
67
- property :short_url_clicks, :numeric_string => true, as: 'shortUrlClicks'
68
- end
69
- end
70
-
71
- class AnalyticsSummary
72
- # @private
73
- class Representation < Google::Apis::Core::JsonRepresentation
74
- property :all_time, as: 'allTime', class: Google::Apis::UrlshortenerV1::AnalyticsSnapshot, decorator: Google::Apis::UrlshortenerV1::AnalyticsSnapshot::Representation
75
-
76
- property :day, as: 'day', class: Google::Apis::UrlshortenerV1::AnalyticsSnapshot, decorator: Google::Apis::UrlshortenerV1::AnalyticsSnapshot::Representation
77
-
78
- property :month, as: 'month', class: Google::Apis::UrlshortenerV1::AnalyticsSnapshot, decorator: Google::Apis::UrlshortenerV1::AnalyticsSnapshot::Representation
79
-
80
- property :two_hours, as: 'twoHours', class: Google::Apis::UrlshortenerV1::AnalyticsSnapshot, decorator: Google::Apis::UrlshortenerV1::AnalyticsSnapshot::Representation
81
-
82
- property :week, as: 'week', class: Google::Apis::UrlshortenerV1::AnalyticsSnapshot, decorator: Google::Apis::UrlshortenerV1::AnalyticsSnapshot::Representation
83
-
84
- end
85
- end
86
-
87
- class StringCount
88
- # @private
89
- class Representation < Google::Apis::Core::JsonRepresentation
90
- property :count, :numeric_string => true, as: 'count'
91
- property :id, as: 'id'
92
- end
93
- end
94
-
95
- class Url
96
- # @private
97
- class Representation < Google::Apis::Core::JsonRepresentation
98
- property :analytics, as: 'analytics', class: Google::Apis::UrlshortenerV1::AnalyticsSummary, decorator: Google::Apis::UrlshortenerV1::AnalyticsSummary::Representation
99
-
100
- property :created, as: 'created'
101
- property :id, as: 'id'
102
- property :kind, as: 'kind'
103
- property :long_url, as: 'longUrl'
104
- property :status, as: 'status'
105
- end
106
- end
107
-
108
- class UrlHistory
109
- # @private
110
- class Representation < Google::Apis::Core::JsonRepresentation
111
- collection :items, as: 'items', class: Google::Apis::UrlshortenerV1::Url, decorator: Google::Apis::UrlshortenerV1::Url::Representation
112
-
113
- property :items_per_page, as: 'itemsPerPage'
114
- property :kind, as: 'kind'
115
- property :next_page_token, as: 'nextPageToken'
116
- property :total_items, as: 'totalItems'
117
- end
118
- end
119
- end
120
- end
121
- end
@@ -1,169 +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/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 UrlshortenerV1
23
- # URL Shortener API
24
- #
25
- # Lets you create, inspect, and manage goo.gl short URLs
26
- #
27
- # @example
28
- # require 'google/apis/urlshortener_v1'
29
- #
30
- # Urlshortener = Google::Apis::UrlshortenerV1 # Alias the module
31
- # service = Urlshortener::UrlshortenerService.new
32
- #
33
- # @see https://developers.google.com/url-shortener/v1/getting_started
34
- class UrlshortenerService < 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/', 'urlshortener/v1/')
51
- @batch_path = 'batch/urlshortener/v1'
52
- end
53
-
54
- # Expands a short URL or gets creation time and analytics.
55
- # @param [String] short_url
56
- # The short URL, including the protocol.
57
- # @param [String] projection
58
- # Additional information to return.
59
- # @param [String] fields
60
- # Selector specifying which fields to include in a partial response.
61
- # @param [String] quota_user
62
- # An opaque string that represents a user for quota purposes. Must not exceed 40
63
- # characters.
64
- # @param [String] user_ip
65
- # Deprecated. Please use quotaUser instead.
66
- # @param [Google::Apis::RequestOptions] options
67
- # Request-specific options
68
- #
69
- # @yield [result, err] Result & error if block supplied
70
- # @yieldparam result [Google::Apis::UrlshortenerV1::Url] parsed result object
71
- # @yieldparam err [StandardError] error object if request failed
72
- #
73
- # @return [Google::Apis::UrlshortenerV1::Url]
74
- #
75
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
76
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
77
- # @raise [Google::Apis::AuthorizationError] Authorization is required
78
- def get_url(short_url, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
79
- command = make_simple_command(:get, 'url', options)
80
- command.response_representation = Google::Apis::UrlshortenerV1::Url::Representation
81
- command.response_class = Google::Apis::UrlshortenerV1::Url
82
- command.query['projection'] = projection unless projection.nil?
83
- command.query['shortUrl'] = short_url unless short_url.nil?
84
- command.query['fields'] = fields unless fields.nil?
85
- command.query['quotaUser'] = quota_user unless quota_user.nil?
86
- command.query['userIp'] = user_ip unless user_ip.nil?
87
- execute_or_queue_command(command, &block)
88
- end
89
-
90
- # Creates a new short URL.
91
- # @param [Google::Apis::UrlshortenerV1::Url] url_object
92
- # @param [String] fields
93
- # Selector specifying which fields to include in a partial response.
94
- # @param [String] quota_user
95
- # An opaque string that represents a user for quota purposes. Must not exceed 40
96
- # characters.
97
- # @param [String] user_ip
98
- # Deprecated. Please use quotaUser instead.
99
- # @param [Google::Apis::RequestOptions] options
100
- # Request-specific options
101
- #
102
- # @yield [result, err] Result & error if block supplied
103
- # @yieldparam result [Google::Apis::UrlshortenerV1::Url] parsed result object
104
- # @yieldparam err [StandardError] error object if request failed
105
- #
106
- # @return [Google::Apis::UrlshortenerV1::Url]
107
- #
108
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
109
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
110
- # @raise [Google::Apis::AuthorizationError] Authorization is required
111
- def insert_url(url_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
112
- command = make_simple_command(:post, 'url', options)
113
- command.request_representation = Google::Apis::UrlshortenerV1::Url::Representation
114
- command.request_object = url_object
115
- command.response_representation = Google::Apis::UrlshortenerV1::Url::Representation
116
- command.response_class = Google::Apis::UrlshortenerV1::Url
117
- command.query['fields'] = fields unless fields.nil?
118
- command.query['quotaUser'] = quota_user unless quota_user.nil?
119
- command.query['userIp'] = user_ip unless user_ip.nil?
120
- execute_or_queue_command(command, &block)
121
- end
122
-
123
- # Retrieves a list of URLs shortened by a user.
124
- # @param [String] projection
125
- # Additional information to return.
126
- # @param [String] start_token
127
- # Token for requesting successive pages of results.
128
- # @param [String] fields
129
- # Selector specifying which fields to include in a partial response.
130
- # @param [String] quota_user
131
- # An opaque string that represents a user for quota purposes. Must not exceed 40
132
- # characters.
133
- # @param [String] user_ip
134
- # Deprecated. Please use quotaUser instead.
135
- # @param [Google::Apis::RequestOptions] options
136
- # Request-specific options
137
- #
138
- # @yield [result, err] Result & error if block supplied
139
- # @yieldparam result [Google::Apis::UrlshortenerV1::UrlHistory] parsed result object
140
- # @yieldparam err [StandardError] error object if request failed
141
- #
142
- # @return [Google::Apis::UrlshortenerV1::UrlHistory]
143
- #
144
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
145
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
146
- # @raise [Google::Apis::AuthorizationError] Authorization is required
147
- def list_urls(projection: nil, start_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
148
- command = make_simple_command(:get, 'url/history', options)
149
- command.response_representation = Google::Apis::UrlshortenerV1::UrlHistory::Representation
150
- command.response_class = Google::Apis::UrlshortenerV1::UrlHistory
151
- command.query['projection'] = projection unless projection.nil?
152
- command.query['start-token'] = start_token unless start_token.nil?
153
- command.query['fields'] = fields unless fields.nil?
154
- command.query['quotaUser'] = quota_user unless quota_user.nil?
155
- command.query['userIp'] = user_ip unless user_ip.nil?
156
- execute_or_queue_command(command, &block)
157
- end
158
-
159
- protected
160
-
161
- def apply_command_defaults(command)
162
- command.query['key'] = key unless key.nil?
163
- command.query['quotaUser'] = quota_user unless quota_user.nil?
164
- command.query['userIp'] = user_ip unless user_ip.nil?
165
- end
166
- end
167
- end
168
- end
169
- end