Bump version, regen APIs
This commit is contained in:
1 parent
b8f6f7c2fe
commit
9237ba59cb
241 files changed
+53894
-50212
No files matched your search
@@ -22,84 +22,6 @@ module Google
|
||||
module Apis
|
||||
module SearchconsoleV1
|
||||
|
||||
# Final state of the test, including error details if necessary.
|
||||
class TestStatus
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Status of the test.
|
||||
# Corresponds to the JSON property `status`
|
||||
# @return [String]
|
||||
attr_accessor :status
|
||||
|
||||
# Error details if applicable.
|
||||
# Corresponds to the JSON property `details`
|
||||
# @return [String]
|
||||
attr_accessor :details
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@details = args[:details] if args.key?(:details)
|
||||
end
|
||||
end
|
||||
|
||||
# Describe image data.
|
||||
class Image
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The mime-type of the image data.
|
||||
# Corresponds to the JSON property `mimeType`
|
||||
# @return [String]
|
||||
attr_accessor :mime_type
|
||||
|
||||
# Image data in format determined by the mime type. Currently, the format
|
||||
# will always be "image/png", but this might change in the future.
|
||||
# Corresponds to the JSON property `data`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :data
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
||||
@data = args[:data] if args.key?(:data)
|
||||
end
|
||||
end
|
||||
|
||||
# Mobile-friendly test request.
|
||||
class RunMobileFriendlyTestRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# URL for inspection.
|
||||
# Corresponds to the JSON property `url`
|
||||
# @return [String]
|
||||
attr_accessor :url
|
||||
|
||||
# Whether or not screenshot is requested. Default is false.
|
||||
# Corresponds to the JSON property `requestScreenshot`
|
||||
# @return [Boolean]
|
||||
attr_accessor :request_screenshot
|
||||
alias_method :request_screenshot?, :request_screenshot
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@url = args[:url] if args.key?(:url)
|
||||
@request_screenshot = args[:request_screenshot] if args.key?(:request_screenshot)
|
||||
end
|
||||
end
|
||||
|
||||
# Mobile-friendly issue.
|
||||
class MobileFriendlyIssue
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -139,16 +61,16 @@ module Google
|
||||
# @return [Google::Apis::SearchconsoleV1::Image]
|
||||
attr_accessor :screenshot
|
||||
|
||||
# Final state of the test, including error details if necessary.
|
||||
# Corresponds to the JSON property `testStatus`
|
||||
# @return [Google::Apis::SearchconsoleV1::TestStatus]
|
||||
attr_accessor :test_status
|
||||
|
||||
# Information about embedded resources issues.
|
||||
# Corresponds to the JSON property `resourceIssues`
|
||||
# @return [Array<Google::Apis::SearchconsoleV1::ResourceIssue>]
|
||||
attr_accessor :resource_issues
|
||||
|
||||
# Final state of the test, including error details if necessary.
|
||||
# Corresponds to the JSON property `testStatus`
|
||||
# @return [Google::Apis::SearchconsoleV1::TestStatus]
|
||||
attr_accessor :test_status
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
@@ -158,8 +80,8 @@ module Google
|
||||
@mobile_friendliness = args[:mobile_friendliness] if args.key?(:mobile_friendliness)
|
||||
@mobile_friendly_issues = args[:mobile_friendly_issues] if args.key?(:mobile_friendly_issues)
|
||||
@screenshot = args[:screenshot] if args.key?(:screenshot)
|
||||
@test_status = args[:test_status] if args.key?(:test_status)
|
||||
@resource_issues = args[:resource_issues] if args.key?(:resource_issues)
|
||||
@test_status = args[:test_status] if args.key?(:test_status)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -200,6 +122,84 @@ module Google
|
||||
@url = args[:url] if args.key?(:url)
|
||||
end
|
||||
end
|
||||
|
||||
# Final state of the test, including error details if necessary.
|
||||
class TestStatus
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Status of the test.
|
||||
# Corresponds to the JSON property `status`
|
||||
# @return [String]
|
||||
attr_accessor :status
|
||||
|
||||
# Error details if applicable.
|
||||
# Corresponds to the JSON property `details`
|
||||
# @return [String]
|
||||
attr_accessor :details
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@details = args[:details] if args.key?(:details)
|
||||
end
|
||||
end
|
||||
|
||||
# Describe image data.
|
||||
class Image
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Image data in format determined by the mime type. Currently, the format
|
||||
# will always be "image/png", but this might change in the future.
|
||||
# Corresponds to the JSON property `data`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :data
|
||||
|
||||
# The mime-type of the image data.
|
||||
# Corresponds to the JSON property `mimeType`
|
||||
# @return [String]
|
||||
attr_accessor :mime_type
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@data = args[:data] if args.key?(:data)
|
||||
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
||||
end
|
||||
end
|
||||
|
||||
# Mobile-friendly test request.
|
||||
class RunMobileFriendlyTestRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# URL for inspection.
|
||||
# Corresponds to the JSON property `url`
|
||||
# @return [String]
|
||||
attr_accessor :url
|
||||
|
||||
# Whether or not screenshot is requested. Default is false.
|
||||
# Corresponds to the JSON property `requestScreenshot`
|
||||
# @return [Boolean]
|
||||
attr_accessor :request_screenshot
|
||||
alias_method :request_screenshot?, :request_screenshot
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@url = args[:url] if args.key?(:url)
|
||||
@request_screenshot = args[:request_screenshot] if args.key?(:request_screenshot)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -22,24 +22,6 @@ module Google
|
||||
module Apis
|
||||
module SearchconsoleV1
|
||||
|
||||
class TestStatus
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Image
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RunMobileFriendlyTestRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MobileFriendlyIssue
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -65,27 +47,21 @@ module Google
|
||||
end
|
||||
|
||||
class TestStatus
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :status, as: 'status'
|
||||
property :details, as: 'details'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Image
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :mime_type, as: 'mimeType'
|
||||
property :data, :base64 => true, as: 'data'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RunMobileFriendlyTestRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :url, as: 'url'
|
||||
property :request_screenshot, as: 'requestScreenshot'
|
||||
end
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MobileFriendlyIssue
|
||||
@@ -103,10 +79,10 @@ module Google
|
||||
|
||||
property :screenshot, as: 'screenshot', class: Google::Apis::SearchconsoleV1::Image, decorator: Google::Apis::SearchconsoleV1::Image::Representation
|
||||
|
||||
property :test_status, as: 'testStatus', class: Google::Apis::SearchconsoleV1::TestStatus, decorator: Google::Apis::SearchconsoleV1::TestStatus::Representation
|
||||
|
||||
collection :resource_issues, as: 'resourceIssues', class: Google::Apis::SearchconsoleV1::ResourceIssue, decorator: Google::Apis::SearchconsoleV1::ResourceIssue::Representation
|
||||
|
||||
property :test_status, as: 'testStatus', class: Google::Apis::SearchconsoleV1::TestStatus, decorator: Google::Apis::SearchconsoleV1::TestStatus::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -124,6 +100,30 @@ module Google
|
||||
property :url, as: 'url'
|
||||
end
|
||||
end
|
||||
|
||||
class TestStatus
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :status, as: 'status'
|
||||
property :details, as: 'details'
|
||||
end
|
||||
end
|
||||
|
||||
class Image
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :data, :base64 => true, as: 'data'
|
||||
property :mime_type, as: 'mimeType'
|
||||
end
|
||||
end
|
||||
|
||||
class RunMobileFriendlyTestRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :url, as: 'url'
|
||||
property :request_screenshot, as: 'requestScreenshot'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -32,16 +32,16 @@ module Google
|
||||
#
|
||||
# @see https://developers.google.com/webmaster-tools/search-console-api/
|
||||
class SearchConsoleService < Google::Apis::Core::BaseService
|
||||
# @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
|
||||
|
||||
# @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
|
||||
|
||||
def initialize
|
||||
super('https://searchconsole.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
@@ -80,8 +80,8 @@ module Google
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['key'] = key unless key.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user