Skip to content

Commit

Permalink
Bump version, regen APIs
Browse files Browse the repository at this point in the history
Delete services which are no longer discoverable:
 - adexchangebuyer:v1_3
 - appengine:v1beta4
 - appengine:v1beta5
 - autoscaler:v1beta2
 - classroom:v1beta1
 - cloudkms:v1beta1
 - cloudlatencytest:v2
 - container:v1beta1
 - coordinate:v1
 - datastore:v1beta2
 - datastore:v1beta3
 - deploymentmanager:v2beta2
 - dfareporting:v2_1
 - dfareporting:v2_3
 - dfareporting:v2_5
 - dfareporting:v2_6
 - gan:v1beta1
 - genomics:v1beta2
 - logging:v1beta3
 - manager:v1beta2
 - pubsub:v1beta2
 - tracing:v1

Also include fixes in the gemspec file recommended by the package
script.
  • Loading branch information
saicheems committed Jun 2, 2017
1 parent e3792b1 commit 3f26743
Show file tree
Hide file tree
Showing 395 changed files with 128,074 additions and 268,557 deletions.
51 changes: 51 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,54 @@
# 0.12.0
* *Breaking change* - Change behavior of `fetch_all` to collect Hash responses
into a single collection.
For responses that return a Hash, `fetch_all` used to return an array of
Hashes in version 0.11.3 and below:
```
items = service.fetch_all do |token|
service.aggregated_autoscaler_list(project, page_token: token)
end
items.each do |item|
item.each do |key, val|
puts String(key) + " => " + val.to_json
end
end
```
The new behavior is to return an array of [ key, value ] arrays:
```
items = service.fetch_all do |token|
service.foo(project, page_token: token)
end
items.each do |key, val|
puts String(key) + " => " + val.to_json
end
```
* Regenerate APIs
* Remove non-discoverable APIs:
* adexchangebuyer:v1\_3
* appengine:v1beta4
* appengine:v1beta5
* autoscaler:v1beta2
* classroom:v1beta1
* cloudkms:v1beta1
* cloudlatencytest:v2
* container:v1beta1
* coordinate:v1
* datastore:v1beta2
* datastore:v1beta3
* deploymentmanager:v2beta2
* dfareporting:v2\_1
* dfareporting:v2\_3
* dfareporting:v2\_5
* dfareporting:v2\_6
* gan:v1beta1
* genomics:v1beta2
* logging:v1beta3
* manager:v1beta2
* pubsub:v1beta2
* tracing:v1

# 0.11.3
* Add `RequestOptions.api_format_version` to opt-in to receive v2 error messages
* Fix `to_json` signature to allow args
Expand Down
66,782 changes: 32,317 additions & 34,465 deletions api_names.yaml

Large diffs are not rendered by default.

86,271 changes: 41,534 additions & 44,737 deletions api_names_out.yaml

Large diffs are not rendered by default.

Empty file removed dl.rb
Empty file.
88 changes: 44 additions & 44 deletions generated/google/apis/acceleratedmobilepageurl_v1/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,61 +22,93 @@ module Google
module Apis
module AcceleratedmobilepageurlV1

# AMP URL Error resource for a requested URL that couldn't be found.
class AmpUrlError
# AMP URL response for a requested URL.
class AmpUrl
include Google::Apis::Core::Hashable

# The error code of an API call.
# Corresponds to the JSON property `errorCode`
# The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to
# the cached document in the Google AMP Cache.
# Corresponds to the JSON property `cdnAmpUrl`
# @return [String]
attr_accessor :error_code
attr_accessor :cdn_amp_url

# The original non-AMP URL.
# Corresponds to the JSON property `originalUrl`
# @return [String]
attr_accessor :original_url

# The AMP URL pointing to the publisher's web server.
# Corresponds to the JSON property `ampUrl`
# @return [String]
attr_accessor :amp_url

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@cdn_amp_url = args[:cdn_amp_url] if args.key?(:cdn_amp_url)
@original_url = args[:original_url] if args.key?(:original_url)
@amp_url = args[:amp_url] if args.key?(:amp_url)
end
end

# AMP URL Error resource for a requested URL that couldn't be found.
class AmpUrlError
include Google::Apis::Core::Hashable

# An optional descriptive error message.
# Corresponds to the JSON property `errorMessage`
# @return [String]
attr_accessor :error_message

# The error code of an API call.
# Corresponds to the JSON property `errorCode`
# @return [String]
attr_accessor :error_code

# The original non-AMP URL.
# Corresponds to the JSON property `originalUrl`
# @return [String]
attr_accessor :original_url

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@error_message = args[:error_message] if args.key?(:error_message)
@error_code = args[:error_code] if args.key?(:error_code)
@original_url = args[:original_url] if args.key?(:original_url)
@error_message = args[:error_message] if args.key?(:error_message)
end
end

# AMP URL request for a batch of URLs.
class BatchGetAmpUrlsRequest
include Google::Apis::Core::Hashable

# The lookup_strategy being requested.
# Corresponds to the JSON property `lookupStrategy`
# @return [String]
attr_accessor :lookup_strategy

# List of URLs to look up for the paired AMP URLs.
# The URLs are case-sensitive. Up to 50 URLs per lookup
# (see [Usage Limits](/amp/cache/reference/limits)).
# Corresponds to the JSON property `urls`
# @return [Array<String>]
attr_accessor :urls

# The lookup_strategy being requested.
# Corresponds to the JSON property `lookupStrategy`
# @return [String]
attr_accessor :lookup_strategy

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@lookup_strategy = args[:lookup_strategy] if args.key?(:lookup_strategy)
@urls = args[:urls] if args.key?(:urls)
@lookup_strategy = args[:lookup_strategy] if args.key?(:lookup_strategy)
end
end

Expand Down Expand Up @@ -107,38 +139,6 @@ def update!(**args)
@url_errors = args[:url_errors] if args.key?(:url_errors)
end
end

# AMP URL response for a requested URL.
class AmpUrl
include Google::Apis::Core::Hashable

# The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to
# the cached document in the Google AMP Cache.
# Corresponds to the JSON property `cdnAmpUrl`
# @return [String]
attr_accessor :cdn_amp_url

# The original non-AMP URL.
# Corresponds to the JSON property `originalUrl`
# @return [String]
attr_accessor :original_url

# The AMP URL pointing to the publisher's web server.
# Corresponds to the JSON property `ampUrl`
# @return [String]
attr_accessor :amp_url

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@cdn_amp_url = args[:cdn_amp_url] if args.key?(:cdn_amp_url)
@original_url = args[:original_url] if args.key?(:original_url)
@amp_url = args[:amp_url] if args.key?(:amp_url)
end
end
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ module Google
module Apis
module AcceleratedmobilepageurlV1

class AmpUrl
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class AmpUrlError
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand All @@ -41,25 +47,28 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
end

class AmpUrl
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cdn_amp_url, as: 'cdnAmpUrl'
property :original_url, as: 'originalUrl'
property :amp_url, as: 'ampUrl'
end
end

class AmpUrlError
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error_message, as: 'errorMessage'
property :error_code, as: 'errorCode'
property :original_url, as: 'originalUrl'
property :error_message, as: 'errorMessage'
end
end

class BatchGetAmpUrlsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :lookup_strategy, as: 'lookupStrategy'
collection :urls, as: 'urls'
property :lookup_strategy, as: 'lookupStrategy'
end
end

Expand All @@ -72,15 +81,6 @@ class Representation < Google::Apis::Core::JsonRepresentation

end
end

class AmpUrl
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cdn_amp_url, as: 'cdnAmpUrl'
property :original_url, as: 'originalUrl'
property :amp_url, as: 'ampUrl'
end
end
end
end
end
20 changes: 10 additions & 10 deletions generated/google/apis/acceleratedmobilepageurl_v1/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ module AcceleratedmobilepageurlV1
#
# @see https://developers.google.com/amp/cache/
class AcceleratedmobilepageurlService < Google::Apis::Core::BaseService
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user

# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key

# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user

def initialize
super('https://acceleratedmobilepageurl.googleapis.com/', '')
@batch_path = 'batch'
Expand All @@ -51,11 +51,11 @@ def initialize
# Returns AMP URL(s) and equivalent
# [AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).
# @param [Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest] batch_get_amp_urls_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
Expand All @@ -68,22 +68,22 @@ def initialize
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_get_amp_urls(batch_get_amp_urls_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
def batch_get_amp_urls(batch_get_amp_urls_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/ampUrls:batchGet', options)
command.request_representation = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest::Representation
command.request_object = batch_get_amp_urls_request_object
command.response_representation = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse::Representation
command.response_class = Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

protected

def apply_command_defaults(command)
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/adexchangebuyer2_v2beta1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module Apis
# @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
module Adexchangebuyer2V2beta1
VERSION = 'V2beta1'
REVISION = '20170525'
REVISION = '20170531'

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

0 comments on commit 3f26743

Please sign in to comment.