Autogenerated update (2019-05-02)
Update: - bigquery_v2 - cloudscheduler_v1 - cloudscheduler_v1beta1 - container_v1 - container_v1beta1 - dialogflow_v2beta1 - healthcare_v1beta1 - storage_v1 - storagetransfer_v1 - webmasters_v3
This commit is contained in:
1 parent
f982223923
commit
4d4665275c
29 files changed
+599
-514
No files matched your search
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://cloud.google.com/bigquery/
|
||||
module BigqueryV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20190314'
|
||||
REVISION = '20190423'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
||||
@@ -2852,12 +2852,14 @@ module Google
|
||||
# DELETE query; see https://cloud.google.com/bigquery/docs/reference/standard-
|
||||
# sql/data-manipulation-language. "MERGE": MERGE query; see https://cloud.google.
|
||||
# com/bigquery/docs/reference/standard-sql/data-manipulation-language. "
|
||||
# ALTER_TABLE": ALTER TABLE query. "ALTER_VIEW": ALTER VIEW query. "
|
||||
# CREATE_FUNCTION": CREATE FUNCTION query. "CREATE_MODEL": CREATE [OR REPLACE]
|
||||
# MODEL ... AS SELECT ... . "CREATE_PROCEDURE": CREATE PROCEDURE query. "
|
||||
# CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS SELECT. "
|
||||
# CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS SELECT ... . "
|
||||
# DROP_TABLE": DROP TABLE query. "CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS
|
||||
# SELECT ... . "DROP_VIEW": DROP VIEW query. "CREATE_FUNCTION": CREATE FUNCTION
|
||||
# query. "DROP_FUNCTION" : DROP FUNCTION query. "ALTER_TABLE": ALTER TABLE query.
|
||||
# "ALTER_VIEW": ALTER VIEW query.
|
||||
# CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS SELECT ... . "DROP_FUNCTION" :
|
||||
# DROP FUNCTION query. "DROP_PROCEDURE": DROP PROCEDURE query. "DROP_TABLE":
|
||||
# DROP TABLE query. "DROP_VIEW": DROP VIEW query.
|
||||
# Corresponds to the JSON property `statementType`
|
||||
# @return [String]
|
||||
attr_accessor :statement_type
|
||||
@@ -3097,6 +3099,28 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# BigQuery-specific metadata about a location. This will be set on
|
||||
# google.cloud.location.Location.metadata in Cloud Location API
|
||||
# responses.
|
||||
class LocationMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The legacy BigQuery location ID, e.g. “EU” for the “europe” location.
|
||||
# This is for any API consumers that need the legacy “US” and “EU” locations.
|
||||
# Corresponds to the JSON property `legacyLocationId`
|
||||
# @return [String]
|
||||
attr_accessor :legacy_location_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@legacy_location_id = args[:legacy_location_id] if args.key?(:legacy_location_id)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class MaterializedViewDefinition
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -322,6 +322,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LocationMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MaterializedViewDefinition
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -1294,6 +1300,13 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class LocationMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :legacy_location_id, as: 'legacyLocationId'
|
||||
end
|
||||
end
|
||||
|
||||
class MaterializedViewDefinition
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://cloud.google.com/scheduler/
|
||||
module CloudschedulerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190326'
|
||||
REVISION = '20190429'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -285,6 +285,23 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :http_method
|
||||
|
||||
# Contains information needed for generating an
|
||||
# [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
|
||||
# This type of authorization should be used when sending requests to a GCP
|
||||
# endpoint.
|
||||
# Corresponds to the JSON property `oauthToken`
|
||||
# @return [Google::Apis::CloudschedulerV1::OAuthToken]
|
||||
attr_accessor :oauth_token
|
||||
|
||||
# Contains information needed for generating an
|
||||
# [OpenID Connect
|
||||
# token](https://developers.google.com/identity/protocols/OpenIDConnect). This
|
||||
# type of authorization should be used when sending requests to third party
|
||||
# endpoints or Cloud Run.
|
||||
# Corresponds to the JSON property `oidcToken`
|
||||
# @return [Google::Apis::CloudschedulerV1::OidcToken]
|
||||
attr_accessor :oidc_token
|
||||
|
||||
# Required.
|
||||
# The full URI path that the request will be sent to. This string
|
||||
# must begin with either "http://" or "https://". Some examples of
|
||||
@@ -305,6 +322,8 @@ module Google
|
||||
@body = args[:body] if args.key?(:body)
|
||||
@headers = args[:headers] if args.key?(:headers)
|
||||
@http_method = args[:http_method] if args.key?(:http_method)
|
||||
@oauth_token = args[:oauth_token] if args.key?(:oauth_token)
|
||||
@oidc_token = args[:oidc_token] if args.key?(:oidc_token)
|
||||
@uri = args[:uri] if args.key?(:uri)
|
||||
end
|
||||
end
|
||||
@@ -327,6 +346,19 @@ module Google
|
||||
# @return [Google::Apis::CloudschedulerV1::AppEngineHttpTarget]
|
||||
attr_accessor :app_engine_http_target
|
||||
|
||||
# The deadline for job attempts. If the request handler does not respond by
|
||||
# this deadline then the request is cancelled and the attempt is marked as a
|
||||
# `DEADLINE_EXCEEDED` failure. The failed attempt can be viewed in
|
||||
# execution logs. Cloud Scheduler will retry the job according
|
||||
# to the RetryConfig.
|
||||
# The allowed duration for this deadline is:
|
||||
# * For HTTP targets, between 15 seconds and 30 minutes.
|
||||
# * For App Engine HTTP targets, between 15
|
||||
# seconds and 24 hours.
|
||||
# Corresponds to the JSON property `attemptDeadline`
|
||||
# @return [String]
|
||||
attr_accessor :attempt_deadline
|
||||
|
||||
# Optionally caller-specified in CreateJob or
|
||||
# UpdateJob.
|
||||
# A human-readable description for the job. This string must not contain
|
||||
@@ -486,6 +518,7 @@ module Google
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@app_engine_http_target = args[:app_engine_http_target] if args.key?(:app_engine_http_target)
|
||||
@attempt_deadline = args[:attempt_deadline] if args.key?(:attempt_deadline)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@http_target = args[:http_target] if args.key?(:http_target)
|
||||
@last_attempt_time = args[:last_attempt_time] if args.key?(:last_attempt_time)
|
||||
@@ -603,6 +636,72 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Contains information needed for generating an
|
||||
# [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
|
||||
# This type of authorization should be used when sending requests to a GCP
|
||||
# endpoint.
|
||||
class OAuthToken
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# OAuth scope to be used for generating OAuth access token.
|
||||
# If not specified, "https://www.googleapis.com/auth/cloud-platform"
|
||||
# will be used.
|
||||
# Corresponds to the JSON property `scope`
|
||||
# @return [String]
|
||||
attr_accessor :scope
|
||||
|
||||
# [Service account email](https://cloud.google.com/iam/docs/service-accounts)
|
||||
# to be used for generating OAuth token.
|
||||
# The service account must be within the same project as the job. The caller
|
||||
# must have iam.serviceAccounts.actAs permission for the service account.
|
||||
# Corresponds to the JSON property `serviceAccountEmail`
|
||||
# @return [String]
|
||||
attr_accessor :service_account_email
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@scope = args[:scope] if args.key?(:scope)
|
||||
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
|
||||
end
|
||||
end
|
||||
|
||||
# Contains information needed for generating an
|
||||
# [OpenID Connect
|
||||
# token](https://developers.google.com/identity/protocols/OpenIDConnect). This
|
||||
# type of authorization should be used when sending requests to third party
|
||||
# endpoints or Cloud Run.
|
||||
class OidcToken
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Audience to be used when generating OIDC token. If not specified, the URI
|
||||
# specified in target will be used.
|
||||
# Corresponds to the JSON property `audience`
|
||||
# @return [String]
|
||||
attr_accessor :audience
|
||||
|
||||
# [Service account email](https://cloud.google.com/iam/docs/service-accounts)
|
||||
# to be used for generating OIDC token.
|
||||
# The service account must be within the same project as the job. The caller
|
||||
# must have iam.serviceAccounts.actAs permission for the service account.
|
||||
# Corresponds to the JSON property `serviceAccountEmail`
|
||||
# @return [String]
|
||||
attr_accessor :service_account_email
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@audience = args[:audience] if args.key?(:audience)
|
||||
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
|
||||
end
|
||||
end
|
||||
|
||||
# Request message for PauseJob.
|
||||
class PauseJobRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -70,6 +70,18 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OAuthToken
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OidcToken
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PauseJobRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -146,6 +158,10 @@ module Google
|
||||
property :body, :base64 => true, as: 'body'
|
||||
hash :headers, as: 'headers'
|
||||
property :http_method, as: 'httpMethod'
|
||||
property :oauth_token, as: 'oauthToken', class: Google::Apis::CloudschedulerV1::OAuthToken, decorator: Google::Apis::CloudschedulerV1::OAuthToken::Representation
|
||||
|
||||
property :oidc_token, as: 'oidcToken', class: Google::Apis::CloudschedulerV1::OidcToken, decorator: Google::Apis::CloudschedulerV1::OidcToken::Representation
|
||||
|
||||
property :uri, as: 'uri'
|
||||
end
|
||||
end
|
||||
@@ -155,6 +171,7 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :app_engine_http_target, as: 'appEngineHttpTarget', class: Google::Apis::CloudschedulerV1::AppEngineHttpTarget, decorator: Google::Apis::CloudschedulerV1::AppEngineHttpTarget::Representation
|
||||
|
||||
property :attempt_deadline, as: 'attemptDeadline'
|
||||
property :description, as: 'description'
|
||||
property :http_target, as: 'httpTarget', class: Google::Apis::CloudschedulerV1::HttpTarget, decorator: Google::Apis::CloudschedulerV1::HttpTarget::Representation
|
||||
|
||||
@@ -203,6 +220,22 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class OAuthToken
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :scope, as: 'scope'
|
||||
property :service_account_email, as: 'serviceAccountEmail'
|
||||
end
|
||||
end
|
||||
|
||||
class OidcToken
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :audience, as: 'audience'
|
||||
property :service_account_email, as: 'serviceAccountEmail'
|
||||
end
|
||||
end
|
||||
|
||||
class PauseJobRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://cloud.google.com/scheduler/
|
||||
module CloudschedulerV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20190326'
|
||||
REVISION = '20190429'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -297,7 +297,7 @@ module Google
|
||||
# [OpenID Connect
|
||||
# token](https://developers.google.com/identity/protocols/OpenIDConnect). This
|
||||
# type of authorization should be used when sending requests to third party
|
||||
# endpoints.
|
||||
# endpoints or Cloud Run.
|
||||
# Corresponds to the JSON property `oidcToken`
|
||||
# @return [Google::Apis::CloudschedulerV1beta1::OidcToken]
|
||||
attr_accessor :oidc_token
|
||||
@@ -674,7 +674,7 @@ module Google
|
||||
# [OpenID Connect
|
||||
# token](https://developers.google.com/identity/protocols/OpenIDConnect). This
|
||||
# type of authorization should be used when sending requests to third party
|
||||
# endpoints.
|
||||
# endpoints or Cloud Run.
|
||||
class OidcToken
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/container-engine/
|
||||
module ContainerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190411'
|
||||
REVISION = '20190418'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -323,6 +323,7 @@ module Google
|
||||
# "node_pool" object, since this configuration (along with the
|
||||
# "node_config") will be used to create a "NodePool" object with an
|
||||
# auto-generated name. Do not use this and a node_pool at the same time.
|
||||
# This field is deprecated, use node_pool.initial_node_count instead.
|
||||
# Corresponds to the JSON property `initialNodeCount`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :initial_node_count
|
||||
@@ -1428,7 +1429,7 @@ module Google
|
||||
class MasterAuthorizedNetworksConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# cidr_blocks define up to 10 external networks that could access
|
||||
# cidr_blocks define up to 50 external networks that could access
|
||||
# Kubernetes master through HTTPS.
|
||||
# Corresponds to the JSON property `cidrBlocks`
|
||||
# @return [Array<Google::Apis::ContainerV1::CidrBlock>]
|
||||
@@ -1809,6 +1810,11 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# [Output only] The pod CIDR block size per node in this node pool.
|
||||
# Corresponds to the JSON property `podIpv4CidrSize`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :pod_ipv4_cidr_size
|
||||
|
||||
# [Output only] Server-defined URL for the resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
@@ -1844,6 +1850,7 @@ module Google
|
||||
@management = args[:management] if args.key?(:management)
|
||||
@max_pods_constraint = args[:max_pods_constraint] if args.key?(:max_pods_constraint)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@pod_ipv4_cidr_size = args[:pod_ipv4_cidr_size] if args.key?(:pod_ipv4_cidr_size)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@status_message = args[:status_message] if args.key?(:status_message)
|
||||
|
||||
@@ -802,6 +802,7 @@ module Google
|
||||
property :max_pods_constraint, as: 'maxPodsConstraint', class: Google::Apis::ContainerV1::MaxPodsConstraint, decorator: Google::Apis::ContainerV1::MaxPodsConstraint::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
property :pod_ipv4_cidr_size, as: 'podIpv4CidrSize'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :status, as: 'status'
|
||||
property :status_message, as: 'statusMessage'
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/container-engine/
|
||||
module ContainerV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20190411'
|
||||
REVISION = '20190418'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -160,6 +160,34 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# AutoprovisioningNodePoolDefaults contains defaults for a node pool created
|
||||
# by NAP.
|
||||
class AutoprovisioningNodePoolDefaults
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Scopes that are used by NAP when creating node pools. If oauth_scopes are
|
||||
# specified, service_account should be empty.
|
||||
# Corresponds to the JSON property `oauthScopes`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :oauth_scopes
|
||||
|
||||
# The Google Cloud Platform Service Account to be used by the node VMs. If
|
||||
# service_account is specified, scopes should be empty.
|
||||
# Corresponds to the JSON property `serviceAccount`
|
||||
# @return [String]
|
||||
attr_accessor :service_account
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes)
|
||||
@service_account = args[:service_account] if args.key?(:service_account)
|
||||
end
|
||||
end
|
||||
|
||||
# Parameters for using BigQuery as the destination of resource usage export.
|
||||
class BigQueryDestination
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -446,6 +474,7 @@ module Google
|
||||
# "node_pool" object, since this configuration (along with the
|
||||
# "node_config") will be used to create a "NodePool" object with an
|
||||
# auto-generated name. Do not use this and a node_pool at the same time.
|
||||
# This field is deprecated, use node_pool.initial_node_count instead.
|
||||
# Corresponds to the JSON property `initialNodeCount`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :initial_node_count
|
||||
@@ -734,6 +763,12 @@ module Google
|
||||
class ClusterAutoscaling
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# AutoprovisioningNodePoolDefaults contains defaults for a node pool created
|
||||
# by NAP.
|
||||
# Corresponds to the JSON property `autoprovisioningNodePoolDefaults`
|
||||
# @return [Google::Apis::ContainerV1beta1::AutoprovisioningNodePoolDefaults]
|
||||
attr_accessor :autoprovisioning_node_pool_defaults
|
||||
|
||||
# Enables automatic node pool creation and deletion.
|
||||
# Corresponds to the JSON property `enableNodeAutoprovisioning`
|
||||
# @return [Boolean]
|
||||
@@ -752,6 +787,7 @@ module Google
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@autoprovisioning_node_pool_defaults = args[:autoprovisioning_node_pool_defaults] if args.key?(:autoprovisioning_node_pool_defaults)
|
||||
@enable_node_autoprovisioning = args[:enable_node_autoprovisioning] if args.key?(:enable_node_autoprovisioning)
|
||||
@resource_limits = args[:resource_limits] if args.key?(:resource_limits)
|
||||
end
|
||||
@@ -2276,6 +2312,11 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# [Output only] The pod CIDR block size per node in this node pool.
|
||||
# Corresponds to the JSON property `podIpv4CidrSize`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :pod_ipv4_cidr_size
|
||||
|
||||
# [Output only] Server-defined URL for the resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
@@ -2311,6 +2352,7 @@ module Google
|
||||
@management = args[:management] if args.key?(:management)
|
||||
@max_pods_constraint = args[:max_pods_constraint] if args.key?(:max_pods_constraint)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@pod_ipv4_cidr_size = args[:pod_ipv4_cidr_size] if args.key?(:pod_ipv4_cidr_size)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@status_message = args[:status_message] if args.key?(:status_message)
|
||||
|
||||
@@ -46,6 +46,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AutoprovisioningNodePoolDefaults
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BigQueryDestination
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -538,6 +544,14 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class AutoprovisioningNodePoolDefaults
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :oauth_scopes, as: 'oauthScopes'
|
||||
property :service_account, as: 'serviceAccount'
|
||||
end
|
||||
end
|
||||
|
||||
class BigQueryDestination
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -664,6 +678,8 @@ module Google
|
||||
class ClusterAutoscaling
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :autoprovisioning_node_pool_defaults, as: 'autoprovisioningNodePoolDefaults', class: Google::Apis::ContainerV1beta1::AutoprovisioningNodePoolDefaults, decorator: Google::Apis::ContainerV1beta1::AutoprovisioningNodePoolDefaults::Representation
|
||||
|
||||
property :enable_node_autoprovisioning, as: 'enableNodeAutoprovisioning'
|
||||
collection :resource_limits, as: 'resourceLimits', class: Google::Apis::ContainerV1beta1::ResourceLimit, decorator: Google::Apis::ContainerV1beta1::ResourceLimit::Representation
|
||||
|
||||
@@ -1040,6 +1056,7 @@ module Google
|
||||
property :max_pods_constraint, as: 'maxPodsConstraint', class: Google::Apis::ContainerV1beta1::MaxPodsConstraint, decorator: Google::Apis::ContainerV1beta1::MaxPodsConstraint::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
property :pod_ipv4_cidr_size, as: 'podIpv4CidrSize'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :status, as: 'status'
|
||||
property :status_message, as: 'statusMessage'
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/dialogflow-enterprise/
|
||||
module DialogflowV2beta1
|
||||
VERSION = 'V2beta1'
|
||||
REVISION = '20190420'
|
||||
REVISION = '20190429'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -2434,7 +2434,7 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Instructs the speech recognizer how to process the audio content.
|
||||
# Instructs the speech recognizer on how to process the audio content.
|
||||
class GoogleCloudDialogflowV2beta1InputAudioConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -3968,7 +3968,7 @@ module Google
|
||||
class GoogleCloudDialogflowV2beta1QueryInput
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Instructs the speech recognizer how to process the audio content.
|
||||
# Instructs the speech recognizer on how to process the audio content.
|
||||
# Corresponds to the JSON property `audioConfig`
|
||||
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudioConfig]
|
||||
attr_accessor :audio_config
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://cloud.google.com/healthcare
|
||||
module HealthcareV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20190420'
|
||||
REVISION = '20190427'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -2254,7 +2254,7 @@ module Google
|
||||
# return a `412 Precondition Failed` error.
|
||||
# If the search criteria identify zero matches, and the supplied resource
|
||||
# body contains an `id`, and the FHIR store has
|
||||
# [enable_update_create](FhirStore.enable_update_create) set, creates the
|
||||
# enable_update_create set, creates the
|
||||
# resource with the client-specified ID. If the search criteria identify zero
|
||||
# matches, and the supplied resource body does not contain an `id`, the
|
||||
# resource will be created with a server-assigned ID as per the
|
||||
@@ -2677,7 +2677,7 @@ module Google
|
||||
# interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#update).
|
||||
# If the specified resource does
|
||||
# not exist and the FHIR store has
|
||||
# [enable_update_create](FhirStore.enable_update_create) set, creates the
|
||||
# enable_update_create set, creates the
|
||||
# resource with the client-specified ID.
|
||||
# The request body must contain a JSON-encoded FHIR resource, and the request
|
||||
# headers must contain `Content-Type: application/fhir+json`. The resource
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/storage/docs/json_api/
|
||||
module StorageV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190326'
|
||||
REVISION = '20190416'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -106,6 +106,11 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :location
|
||||
|
||||
# The type of the bucket location.
|
||||
# Corresponds to the JSON property `locationType`
|
||||
# @return [String]
|
||||
attr_accessor :location_type
|
||||
|
||||
# The bucket's logging configuration, which defines the destination bucket and
|
||||
# optional name prefix for the current bucket's logs.
|
||||
# Corresponds to the JSON property `logging`
|
||||
@@ -201,6 +206,7 @@ module Google
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@lifecycle = args[:lifecycle] if args.key?(:lifecycle)
|
||||
@location = args[:location] if args.key?(:location)
|
||||
@location_type = args[:location_type] if args.key?(:location_type)
|
||||
@logging = args[:logging] if args.key?(:logging)
|
||||
@metageneration = args[:metageneration] if args.key?(:metageneration)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@@ -1053,7 +1059,7 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :access_id
|
||||
|
||||
# HTTP 1.1 Entity tag for the access-control entry.
|
||||
# HTTP 1.1 Entity tag for the HMAC key.
|
||||
# Corresponds to the JSON property `etag`
|
||||
# @return [String]
|
||||
attr_accessor :etag
|
||||
@@ -1091,12 +1097,12 @@ module Google
|
||||
|
||||
# The creation time of the HMAC key in RFC 3339 format.
|
||||
# Corresponds to the JSON property `timeCreated`
|
||||
# @return [String]
|
||||
# @return [DateTime]
|
||||
attr_accessor :time_created
|
||||
|
||||
# The last modification time of the HMAC key metadata in RFC 3339 format.
|
||||
# Corresponds to the JSON property `updated`
|
||||
# @return [String]
|
||||
# @return [DateTime]
|
||||
attr_accessor :updated
|
||||
|
||||
def initialize(**args)
|
||||
|
||||
@@ -291,6 +291,7 @@ module Google
|
||||
property :lifecycle, as: 'lifecycle', class: Google::Apis::StorageV1::Bucket::Lifecycle, decorator: Google::Apis::StorageV1::Bucket::Lifecycle::Representation
|
||||
|
||||
property :location, as: 'location'
|
||||
property :location_type, as: 'locationType'
|
||||
property :logging, as: 'logging', class: Google::Apis::StorageV1::Bucket::Logging, decorator: Google::Apis::StorageV1::Bucket::Logging::Representation
|
||||
|
||||
property :metageneration, :numeric_string => true, as: 'metageneration'
|
||||
@@ -554,8 +555,10 @@ module Google
|
||||
property :self_link, as: 'selfLink'
|
||||
property :service_account_email, as: 'serviceAccountEmail'
|
||||
property :state, as: 'state'
|
||||
property :time_created, as: 'timeCreated'
|
||||
property :updated, as: 'updated'
|
||||
property :time_created, as: 'timeCreated', type: DateTime
|
||||
|
||||
property :updated, as: 'updated', type: DateTime
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/storage-transfer/docs
|
||||
module StoragetransferV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190417'
|
||||
REVISION = '20190429'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -832,12 +832,12 @@ module Google
|
||||
class TransferJob
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# This field cannot be changed by user requests.
|
||||
# Output only. The time that the transfer job was created.
|
||||
# Corresponds to the JSON property `creationTime`
|
||||
# @return [String]
|
||||
attr_accessor :creation_time
|
||||
|
||||
# This field cannot be changed by user requests.
|
||||
# Output only. The time that the transfer job was deleted.
|
||||
# Corresponds to the JSON property `deletionTime`
|
||||
# @return [String]
|
||||
attr_accessor :deletion_time
|
||||
@@ -848,7 +848,7 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# This field cannot be changed by user requests.
|
||||
# Output only. The time that the transfer job was last modified.
|
||||
# Corresponds to the JSON property `lastModificationTime`
|
||||
# @return [String]
|
||||
attr_accessor :last_modification_time
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/webmaster-tools/
|
||||
module WebmastersV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20180627'
|
||||
REVISION = '20190428'
|
||||
|
||||
# View and manage Search Console data for your verified sites
|
||||
AUTH_WEBMASTERS = 'https://www.googleapis.com/auth/webmasters'
|
||||
|
||||
@@ -270,172 +270,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# An entry in a URL crawl errors time series.
|
||||
class UrlCrawlErrorCount
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The error count at the given timestamp.
|
||||
# Corresponds to the JSON property `count`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :count
|
||||
|
||||
# The date and time when the crawl attempt took place, in RFC 3339 format.
|
||||
# Corresponds to the JSON property `timestamp`
|
||||
# @return [DateTime]
|
||||
attr_accessor :timestamp
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@count = args[:count] if args.key?(:count)
|
||||
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
||||
end
|
||||
end
|
||||
|
||||
# Number of errors per day for a specific error type (defined by platform and
|
||||
# category).
|
||||
class UrlCrawlErrorCountsPerType
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The crawl error type.
|
||||
# Corresponds to the JSON property `category`
|
||||
# @return [String]
|
||||
attr_accessor :category
|
||||
|
||||
# The error count entries time series.
|
||||
# Corresponds to the JSON property `entries`
|
||||
# @return [Array<Google::Apis::WebmastersV3::UrlCrawlErrorCount>]
|
||||
attr_accessor :entries
|
||||
|
||||
# The general type of Googlebot that made the request (see list of Googlebot
|
||||
# user-agents for the user-agents used).
|
||||
# Corresponds to the JSON property `platform`
|
||||
# @return [String]
|
||||
attr_accessor :platform
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@category = args[:category] if args.key?(:category)
|
||||
@entries = args[:entries] if args.key?(:entries)
|
||||
@platform = args[:platform] if args.key?(:platform)
|
||||
end
|
||||
end
|
||||
|
||||
# A time series of the number of URL crawl errors per error category and
|
||||
# platform.
|
||||
class QueryUrlCrawlErrorsCountsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The time series of the number of URL crawl errors per error category and
|
||||
# platform.
|
||||
# Corresponds to the JSON property `countPerTypes`
|
||||
# @return [Array<Google::Apis::WebmastersV3::UrlCrawlErrorCountsPerType>]
|
||||
attr_accessor :count_per_types
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@count_per_types = args[:count_per_types] if args.key?(:count_per_types)
|
||||
end
|
||||
end
|
||||
|
||||
# Contains information about specific crawl errors.
|
||||
class UrlCrawlErrorsSample
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The time the error was first detected, in RFC 3339 format.
|
||||
# Corresponds to the JSON property `first_detected`
|
||||
# @return [DateTime]
|
||||
attr_accessor :first_detected
|
||||
|
||||
# The time when the URL was last crawled, in RFC 3339 format.
|
||||
# Corresponds to the JSON property `last_crawled`
|
||||
# @return [DateTime]
|
||||
attr_accessor :last_crawled
|
||||
|
||||
# The URL of an error, relative to the site.
|
||||
# Corresponds to the JSON property `pageUrl`
|
||||
# @return [String]
|
||||
attr_accessor :page_url
|
||||
|
||||
# The HTTP response code, if any.
|
||||
# Corresponds to the JSON property `responseCode`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :response_code
|
||||
|
||||
# Additional details about the URL, set only when calling get().
|
||||
# Corresponds to the JSON property `urlDetails`
|
||||
# @return [Google::Apis::WebmastersV3::UrlSampleDetails]
|
||||
attr_accessor :url_details
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@first_detected = args[:first_detected] if args.key?(:first_detected)
|
||||
@last_crawled = args[:last_crawled] if args.key?(:last_crawled)
|
||||
@page_url = args[:page_url] if args.key?(:page_url)
|
||||
@response_code = args[:response_code] if args.key?(:response_code)
|
||||
@url_details = args[:url_details] if args.key?(:url_details)
|
||||
end
|
||||
end
|
||||
|
||||
# List of crawl error samples.
|
||||
class ListUrlCrawlErrorsSamplesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Information about the sample URL and its crawl error.
|
||||
# Corresponds to the JSON property `urlCrawlErrorSample`
|
||||
# @return [Array<Google::Apis::WebmastersV3::UrlCrawlErrorsSample>]
|
||||
attr_accessor :url_crawl_error_sample
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@url_crawl_error_sample = args[:url_crawl_error_sample] if args.key?(:url_crawl_error_sample)
|
||||
end
|
||||
end
|
||||
|
||||
# Additional details about the URL, set only when calling get().
|
||||
class UrlSampleDetails
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of sitemaps pointing at this URL.
|
||||
# Corresponds to the JSON property `containingSitemaps`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :containing_sitemaps
|
||||
|
||||
# A sample set of URLs linking to this URL.
|
||||
# Corresponds to the JSON property `linkedFromUrls`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :linked_from_urls
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@containing_sitemaps = args[:containing_sitemaps] if args.key?(:containing_sitemaps)
|
||||
@linked_from_urls = args[:linked_from_urls] if args.key?(:linked_from_urls)
|
||||
end
|
||||
end
|
||||
|
||||
# Contains permission level information about a Search Console site. For more
|
||||
# information, see Permissions in Search Console.
|
||||
class WmxSite
|
||||
|
||||
@@ -64,42 +64,6 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UrlCrawlErrorCount
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UrlCrawlErrorCountsPerType
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class QueryUrlCrawlErrorsCountsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UrlCrawlErrorsSample
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListUrlCrawlErrorsSamplesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UrlSampleDetails
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class WmxSite
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -187,63 +151,6 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class UrlCrawlErrorCount
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :count, :numeric_string => true, as: 'count'
|
||||
property :timestamp, as: 'timestamp', type: DateTime
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class UrlCrawlErrorCountsPerType
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :category, as: 'category'
|
||||
collection :entries, as: 'entries', class: Google::Apis::WebmastersV3::UrlCrawlErrorCount, decorator: Google::Apis::WebmastersV3::UrlCrawlErrorCount::Representation
|
||||
|
||||
property :platform, as: 'platform'
|
||||
end
|
||||
end
|
||||
|
||||
class QueryUrlCrawlErrorsCountsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :count_per_types, as: 'countPerTypes', class: Google::Apis::WebmastersV3::UrlCrawlErrorCountsPerType, decorator: Google::Apis::WebmastersV3::UrlCrawlErrorCountsPerType::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class UrlCrawlErrorsSample
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :first_detected, as: 'first_detected', type: DateTime
|
||||
|
||||
property :last_crawled, as: 'last_crawled', type: DateTime
|
||||
|
||||
property :page_url, as: 'pageUrl'
|
||||
property :response_code, as: 'responseCode'
|
||||
property :url_details, as: 'urlDetails', class: Google::Apis::WebmastersV3::UrlSampleDetails, decorator: Google::Apis::WebmastersV3::UrlSampleDetails::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListUrlCrawlErrorsSamplesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :url_crawl_error_sample, as: 'urlCrawlErrorSample', class: Google::Apis::WebmastersV3::UrlCrawlErrorsSample, decorator: Google::Apis::WebmastersV3::UrlCrawlErrorsSample::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class UrlSampleDetails
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :containing_sitemaps, as: 'containingSitemaps'
|
||||
collection :linked_from_urls, as: 'linkedFromUrls'
|
||||
end
|
||||
end
|
||||
|
||||
class WmxSite
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -363,177 +363,6 @@ module Google
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves a time series of the number of URL crawl errors per error category
|
||||
# and platform.
|
||||
# @param [String] site_url
|
||||
# The site's URL, including protocol. For example: http://www.example.com/
|
||||
# @param [String] category
|
||||
# The crawl error category. For example: serverError. If not specified, returns
|
||||
# results for all categories.
|
||||
# @param [Boolean] latest_counts_only
|
||||
# If true, returns only the latest crawl error counts.
|
||||
# @param [String] platform
|
||||
# The user agent type (platform) that made the request. For example: web. If not
|
||||
# specified, returns results for all platforms.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::WebmastersV3::QueryUrlCrawlErrorsCountsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::WebmastersV3::QueryUrlCrawlErrorsCountsResponse]
|
||||
#
|
||||
# @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 query_errors_count(site_url, category: nil, latest_counts_only: nil, platform: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'sites/{siteUrl}/urlCrawlErrorsCounts/query', options)
|
||||
command.response_representation = Google::Apis::WebmastersV3::QueryUrlCrawlErrorsCountsResponse::Representation
|
||||
command.response_class = Google::Apis::WebmastersV3::QueryUrlCrawlErrorsCountsResponse
|
||||
command.params['siteUrl'] = site_url unless site_url.nil?
|
||||
command.query['category'] = category unless category.nil?
|
||||
command.query['latestCountsOnly'] = latest_counts_only unless latest_counts_only.nil?
|
||||
command.query['platform'] = platform unless platform.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves details about crawl errors for a site's sample URL.
|
||||
# @param [String] site_url
|
||||
# The site's URL, including protocol. For example: http://www.example.com/
|
||||
# @param [String] url
|
||||
# The relative path (without the site) of the sample URL. It must be one of the
|
||||
# URLs returned by list(). For example, for the URL https://www.example.com/
|
||||
# pagename on the site https://www.example.com/, the url value is pagename
|
||||
# @param [String] category
|
||||
# The crawl error category. For example: authPermissions
|
||||
# @param [String] platform
|
||||
# The user agent type (platform) that made the request. For example: web
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::WebmastersV3::UrlCrawlErrorsSample] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::WebmastersV3::UrlCrawlErrorsSample]
|
||||
#
|
||||
# @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 get_errors_sample(site_url, url, category, platform, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}', options)
|
||||
command.response_representation = Google::Apis::WebmastersV3::UrlCrawlErrorsSample::Representation
|
||||
command.response_class = Google::Apis::WebmastersV3::UrlCrawlErrorsSample
|
||||
command.params['siteUrl'] = site_url unless site_url.nil?
|
||||
command.params['url'] = url unless url.nil?
|
||||
command.query['category'] = category unless category.nil?
|
||||
command.query['platform'] = platform unless platform.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists a site's sample URLs for the specified crawl error category and platform.
|
||||
# @param [String] site_url
|
||||
# The site's URL, including protocol. For example: http://www.example.com/
|
||||
# @param [String] category
|
||||
# The crawl error category. For example: authPermissions
|
||||
# @param [String] platform
|
||||
# The user agent type (platform) that made the request. For example: web
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::WebmastersV3::ListUrlCrawlErrorsSamplesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::WebmastersV3::ListUrlCrawlErrorsSamplesResponse]
|
||||
#
|
||||
# @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 list_errors_samples(site_url, category, platform, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'sites/{siteUrl}/urlCrawlErrorsSamples', options)
|
||||
command.response_representation = Google::Apis::WebmastersV3::ListUrlCrawlErrorsSamplesResponse::Representation
|
||||
command.response_class = Google::Apis::WebmastersV3::ListUrlCrawlErrorsSamplesResponse
|
||||
command.params['siteUrl'] = site_url unless site_url.nil?
|
||||
command.query['category'] = category unless category.nil?
|
||||
command.query['platform'] = platform unless platform.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Marks the provided site's sample URL as fixed, and removes it from the samples
|
||||
# list.
|
||||
# @param [String] site_url
|
||||
# The site's URL, including protocol. For example: http://www.example.com/
|
||||
# @param [String] url
|
||||
# The relative path (without the site) of the sample URL. It must be one of the
|
||||
# URLs returned by list(). For example, for the URL https://www.example.com/
|
||||
# pagename on the site https://www.example.com/, the url value is pagename
|
||||
# @param [String] category
|
||||
# The crawl error category. For example: authPermissions
|
||||
# @param [String] platform
|
||||
# The user agent type (platform) that made the request. For example: web
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [NilClass] No result returned for this method
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [void]
|
||||
#
|
||||
# @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 mark_as_fixed(site_url, url, category, platform, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}', options)
|
||||
command.params['siteUrl'] = site_url unless site_url.nil?
|
||||
command.params['url'] = url unless url.nil?
|
||||
command.query['category'] = category unless category.nil?
|
||||
command.query['platform'] = platform unless platform.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
|
||||
Reference in new issue
Block a user