Skip to content

Commit 78017a9

Browse files
committed
Enable more APIs & regen
1 parent 9efb39e commit 78017a9

File tree

217 files changed

+111994
-92317
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

217 files changed

+111994
-92317
lines changed

api_names.yaml

Lines changed: 1210 additions & 37815 deletions
Large diffs are not rendered by default.

api_names_out.yaml

Lines changed: 26229 additions & 22262 deletions
Large diffs are not rendered by default.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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/acceleratedmobilepageurl_v1/service.rb'
16+
require 'google/apis/acceleratedmobilepageurl_v1/classes.rb'
17+
require 'google/apis/acceleratedmobilepageurl_v1/representations.rb'
18+
19+
module Google
20+
module Apis
21+
# Accelerated Mobile Pages (AMP) URL API
22+
#
23+
# This API contains a single method, batchGet. Call this method to retrieve the
24+
# AMP URL (and equivalent AMP Cache URL) for given public URL(s).
25+
#
26+
# @see https://developers.google.com/amp/cache/
27+
module AcceleratedmobilepageurlV1
28+
VERSION = 'V1'
29+
REVISION = '20170329'
30+
end
31+
end
32+
end
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
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 AcceleratedmobilepageurlV1
24+
25+
# AMP URL Error resource for a requested URL that couldn't be found.
26+
class AmpUrlError
27+
include Google::Apis::Core::Hashable
28+
29+
# An optional descriptive error message.
30+
# Corresponds to the JSON property `errorMessage`
31+
# @return [String]
32+
attr_accessor :error_message
33+
34+
# The error code of an API call.
35+
# Corresponds to the JSON property `errorCode`
36+
# @return [String]
37+
attr_accessor :error_code
38+
39+
# The original non-AMP URL.
40+
# Corresponds to the JSON property `originalUrl`
41+
# @return [String]
42+
attr_accessor :original_url
43+
44+
def initialize(**args)
45+
update!(**args)
46+
end
47+
48+
# Update properties of this object
49+
def update!(**args)
50+
@error_message = args[:error_message] if args.key?(:error_message)
51+
@error_code = args[:error_code] if args.key?(:error_code)
52+
@original_url = args[:original_url] if args.key?(:original_url)
53+
end
54+
end
55+
56+
# AMP URL request for a batch of URLs.
57+
class BatchGetAmpUrlsRequest
58+
include Google::Apis::Core::Hashable
59+
60+
# List of URLs to look up for the paired AMP URLs.
61+
# The URLs are case-sensitive. Up to 50 URLs per lookup
62+
# (see [Usage Limits](/amp/cache/reference/limits)).
63+
# Corresponds to the JSON property `urls`
64+
# @return [Array<String>]
65+
attr_accessor :urls
66+
67+
# The lookup_strategy being requested.
68+
# Corresponds to the JSON property `lookupStrategy`
69+
# @return [String]
70+
attr_accessor :lookup_strategy
71+
72+
def initialize(**args)
73+
update!(**args)
74+
end
75+
76+
# Update properties of this object
77+
def update!(**args)
78+
@urls = args[:urls] if args.key?(:urls)
79+
@lookup_strategy = args[:lookup_strategy] if args.key?(:lookup_strategy)
80+
end
81+
end
82+
83+
# Batch AMP URL response.
84+
class BatchGetAmpUrlsResponse
85+
include Google::Apis::Core::Hashable
86+
87+
# For each URL in BatchAmpUrlsRequest, the URL response. The response might
88+
# not be in the same order as URLs in the batch request.
89+
# If BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated
90+
# only once.
91+
# Corresponds to the JSON property `ampUrls`
92+
# @return [Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrl>]
93+
attr_accessor :amp_urls
94+
95+
# The errors for requested URLs that have no AMP URL.
96+
# Corresponds to the JSON property `urlErrors`
97+
# @return [Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError>]
98+
attr_accessor :url_errors
99+
100+
def initialize(**args)
101+
update!(**args)
102+
end
103+
104+
# Update properties of this object
105+
def update!(**args)
106+
@amp_urls = args[:amp_urls] if args.key?(:amp_urls)
107+
@url_errors = args[:url_errors] if args.key?(:url_errors)
108+
end
109+
end
110+
111+
# AMP URL response for a requested URL.
112+
class AmpUrl
113+
include Google::Apis::Core::Hashable
114+
115+
# The original non-AMP URL.
116+
# Corresponds to the JSON property `originalUrl`
117+
# @return [String]
118+
attr_accessor :original_url
119+
120+
# The AMP URL pointing to the publisher's web server.
121+
# Corresponds to the JSON property `ampUrl`
122+
# @return [String]
123+
attr_accessor :amp_url
124+
125+
# The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to
126+
# the cached document in the Google AMP Cache.
127+
# Corresponds to the JSON property `cdnAmpUrl`
128+
# @return [String]
129+
attr_accessor :cdn_amp_url
130+
131+
def initialize(**args)
132+
update!(**args)
133+
end
134+
135+
# Update properties of this object
136+
def update!(**args)
137+
@original_url = args[:original_url] if args.key?(:original_url)
138+
@amp_url = args[:amp_url] if args.key?(:amp_url)
139+
@cdn_amp_url = args[:cdn_amp_url] if args.key?(:cdn_amp_url)
140+
end
141+
end
142+
end
143+
end
144+
end
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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 AcceleratedmobilepageurlV1
24+
25+
class AmpUrlError
26+
class Representation < Google::Apis::Core::JsonRepresentation; end
27+
28+
include Google::Apis::Core::JsonObjectSupport
29+
end
30+
31+
class BatchGetAmpUrlsRequest
32+
class Representation < Google::Apis::Core::JsonRepresentation; end
33+
34+
include Google::Apis::Core::JsonObjectSupport
35+
end
36+
37+
class BatchGetAmpUrlsResponse
38+
class Representation < Google::Apis::Core::JsonRepresentation; end
39+
40+
include Google::Apis::Core::JsonObjectSupport
41+
end
42+
43+
class AmpUrl
44+
class Representation < Google::Apis::Core::JsonRepresentation; end
45+
46+
include Google::Apis::Core::JsonObjectSupport
47+
end
48+
49+
class AmpUrlError
50+
# @private
51+
class Representation < Google::Apis::Core::JsonRepresentation
52+
property :error_message, as: 'errorMessage'
53+
property :error_code, as: 'errorCode'
54+
property :original_url, as: 'originalUrl'
55+
end
56+
end
57+
58+
class BatchGetAmpUrlsRequest
59+
# @private
60+
class Representation < Google::Apis::Core::JsonRepresentation
61+
collection :urls, as: 'urls'
62+
property :lookup_strategy, as: 'lookupStrategy'
63+
end
64+
end
65+
66+
class BatchGetAmpUrlsResponse
67+
# @private
68+
class Representation < Google::Apis::Core::JsonRepresentation
69+
collection :amp_urls, as: 'ampUrls', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl::Representation
70+
71+
collection :url_errors, as: 'urlErrors', class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError, decorator: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError::Representation
72+
73+
end
74+
end
75+
76+
class AmpUrl
77+
# @private
78+
class Representation < Google::Apis::Core::JsonRepresentation
79+
property :original_url, as: 'originalUrl'
80+
property :amp_url, as: 'ampUrl'
81+
property :cdn_amp_url, as: 'cdnAmpUrl'
82+
end
83+
end
84+
end
85+
end
86+
end
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
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 AcceleratedmobilepageurlV1
23+
# Accelerated Mobile Pages (AMP) URL API
24+
#
25+
# This API contains a single method, batchGet. Call this method to retrieve the
26+
# AMP URL (and equivalent AMP Cache URL) for given public URL(s).
27+
#
28+
# @example
29+
# require 'google/apis/acceleratedmobilepageurl_v1'
30+
#
31+
# Acceleratedmobilepageurl = Google::Apis::AcceleratedmobilepageurlV1 # Alias the module
32+
# service = Acceleratedmobilepageurl::AcceleratedmobilepageurlService.new
33+
#
34+
# @see https://developers.google.com/amp/cache/
35+
class AcceleratedmobilepageurlService < 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://acceleratedmobilepageurl.googleapis.com/', '')
48+
end
49+
50+
# Returns AMP URL(s) and equivalent
51+
# [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).
52+
# @param [Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest] batch_get_amp_urls_request_object
53+
# @param [String] fields
54+
# Selector specifying which fields to include in a partial response.
55+
# @param [String] quota_user
56+
# Available to use for quota purposes for server-side applications. Can be any
57+
# arbitrary string assigned to a user, but should not exceed 40 characters.
58+
# @param [Google::Apis::RequestOptions] options
59+
# Request-specific options
60+
#
61+
# @yield [result, err] Result & error if block supplied
62+
# @yieldparam result [Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse] parsed result object
63+
# @yieldparam err [StandardError] error object if request failed
64+
#
65+
# @return [Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse]
66+
#
67+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
68+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
69+
# @raise [Google::Apis::AuthorizationError] Authorization is required
70+
def batch_get_amp_urls(batch_get_amp_urls_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
71+
command = make_simple_command(:post, 'v1/ampUrls:batchGet', options)
72+
command.request_representation = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest::Representation
73+
command.request_object = batch_get_amp_urls_request_object
74+
command.response_representation = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse::Representation
75+
command.response_class = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse
76+
command.query['fields'] = fields unless fields.nil?
77+
command.query['quotaUser'] = quota_user unless quota_user.nil?
78+
execute_or_queue_command(command, &block)
79+
end
80+
81+
protected
82+
83+
def apply_command_defaults(command)
84+
command.query['key'] = key unless key.nil?
85+
command.query['quotaUser'] = quota_user unless quota_user.nil?
86+
end
87+
end
88+
end
89+
end
90+
end

generated/google/apis/adexchangebuyer2_v2beta1.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module Apis
2626
# @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
2727
module Adexchangebuyer2V2beta1
2828
VERSION = 'V2beta1'
29-
REVISION = '20170324'
29+
REVISION = '20170329'
3030

3131
# Manage your Ad Exchange buyer account configuration
3232
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'

0 commit comments

Comments
 (0)