Autogenerated update (2017-10-26)
Update: - cloudbuild_v1 - dlp_v2beta1 - streetviewpublish_v1 - toolresults_v1beta3 - youtube_partner_v1
This commit is contained in:
parent
225b91b3ba
commit
f4fbd885bb
|
@ -12160,6 +12160,7 @@
|
||||||
"/cloudbuild:v1/Results/buildStepImages/build_step_image": build_step_image
|
"/cloudbuild:v1/Results/buildStepImages/build_step_image": build_step_image
|
||||||
"/cloudbuild:v1/Results/images": images
|
"/cloudbuild:v1/Results/images": images
|
||||||
"/cloudbuild:v1/Results/images/image": image
|
"/cloudbuild:v1/Results/images/image": image
|
||||||
|
"/cloudbuild:v1/RetryBuildRequest": retry_build_request
|
||||||
"/cloudbuild:v1/Secret": secret
|
"/cloudbuild:v1/Secret": secret
|
||||||
"/cloudbuild:v1/Secret/kmsKeyName": kms_key_name
|
"/cloudbuild:v1/Secret/kmsKeyName": kms_key_name
|
||||||
"/cloudbuild:v1/Secret/secretEnv": secret_env
|
"/cloudbuild:v1/Secret/secretEnv": secret_env
|
||||||
|
@ -12207,6 +12208,9 @@
|
||||||
"/cloudbuild:v1/cloudbuild.projects.builds.list/pageSize": page_size
|
"/cloudbuild:v1/cloudbuild.projects.builds.list/pageSize": page_size
|
||||||
"/cloudbuild:v1/cloudbuild.projects.builds.list/pageToken": page_token
|
"/cloudbuild:v1/cloudbuild.projects.builds.list/pageToken": page_token
|
||||||
"/cloudbuild:v1/cloudbuild.projects.builds.list/projectId": project_id
|
"/cloudbuild:v1/cloudbuild.projects.builds.list/projectId": project_id
|
||||||
|
"/cloudbuild:v1/cloudbuild.projects.builds.retry": retry_build
|
||||||
|
"/cloudbuild:v1/cloudbuild.projects.builds.retry/id": id
|
||||||
|
"/cloudbuild:v1/cloudbuild.projects.builds.retry/projectId": project_id
|
||||||
"/cloudbuild:v1/cloudbuild.projects.triggers.create": create_project_trigger
|
"/cloudbuild:v1/cloudbuild.projects.triggers.create": create_project_trigger
|
||||||
"/cloudbuild:v1/cloudbuild.projects.triggers.create/projectId": project_id
|
"/cloudbuild:v1/cloudbuild.projects.triggers.create/projectId": project_id
|
||||||
"/cloudbuild:v1/cloudbuild.projects.triggers.delete": delete_project_trigger
|
"/cloudbuild:v1/cloudbuild.projects.triggers.delete": delete_project_trigger
|
||||||
|
@ -12220,6 +12224,9 @@
|
||||||
"/cloudbuild:v1/cloudbuild.projects.triggers.patch": patch_project_trigger
|
"/cloudbuild:v1/cloudbuild.projects.triggers.patch": patch_project_trigger
|
||||||
"/cloudbuild:v1/cloudbuild.projects.triggers.patch/projectId": project_id
|
"/cloudbuild:v1/cloudbuild.projects.triggers.patch/projectId": project_id
|
||||||
"/cloudbuild:v1/cloudbuild.projects.triggers.patch/triggerId": trigger_id
|
"/cloudbuild:v1/cloudbuild.projects.triggers.patch/triggerId": trigger_id
|
||||||
|
"/cloudbuild:v1/cloudbuild.projects.triggers.run": run_project_trigger
|
||||||
|
"/cloudbuild:v1/cloudbuild.projects.triggers.run/projectId": project_id
|
||||||
|
"/cloudbuild:v1/cloudbuild.projects.triggers.run/triggerId": trigger_id
|
||||||
"/cloudbuild:v1/fields": fields
|
"/cloudbuild:v1/fields": fields
|
||||||
"/cloudbuild:v1/key": key
|
"/cloudbuild:v1/key": key
|
||||||
"/cloudbuild:v1/quotaUser": quota_user
|
"/cloudbuild:v1/quotaUser": quota_user
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/container-builder/docs/
|
# @see https://cloud.google.com/container-builder/docs/
|
||||||
module CloudbuildV1
|
module CloudbuildV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20171023'
|
REVISION = '20171025'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -796,6 +796,19 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# RetryBuildRequest specifies a build to retry.
|
||||||
|
class RetryBuildRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Secret pairs a set of secret environment variables containing encrypted
|
# Secret pairs a set of secret environment variables containing encrypted
|
||||||
# values with the Cloud KMS key to use to decrypt the value.
|
# values with the Cloud KMS key to use to decrypt the value.
|
||||||
class Secret
|
class Secret
|
||||||
|
|
|
@ -124,6 +124,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class RetryBuildRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class Secret
|
class Secret
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -342,6 +348,12 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class RetryBuildRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Secret
|
class Secret
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -316,6 +316,61 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Creates a new build based on the given build.
|
||||||
|
# This API creates a new build using the original build request, which may
|
||||||
|
# or may not result in an identical build.
|
||||||
|
# For triggered builds:
|
||||||
|
# * Triggered builds resolve to a precise revision, so a retry of a triggered
|
||||||
|
# build will result in a build that uses the same revision.
|
||||||
|
# For non-triggered builds that specify RepoSource:
|
||||||
|
# * If the original build built from the tip of a branch, the retried build
|
||||||
|
# will build from the tip of that branch, which may not be the same revision
|
||||||
|
# as the original build.
|
||||||
|
# * If the original build specified a commit sha or revision ID, the retried
|
||||||
|
# build will use the identical source.
|
||||||
|
# For builds that specify StorageSource:
|
||||||
|
# * If the original build pulled source from a GCS object without specifying
|
||||||
|
# the generation of the object, the new build will use the current object,
|
||||||
|
# which may be different from the original build source.
|
||||||
|
# * If the original build pulled source from a GCS object and specified the
|
||||||
|
# generation of the object, the new build will attempt to use the same
|
||||||
|
# object, which may or may not be available depending on the bucket's
|
||||||
|
# lifecycle management settings.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project.
|
||||||
|
# @param [String] id
|
||||||
|
# Build ID of the original build.
|
||||||
|
# @param [Google::Apis::CloudbuildV1::RetryBuildRequest] retry_build_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 [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::Operation]
|
||||||
|
#
|
||||||
|
# @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 retry_build(project_id, id, retry_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:retry', options)
|
||||||
|
command.request_representation = Google::Apis::CloudbuildV1::RetryBuildRequest::Representation
|
||||||
|
command.request_object = retry_build_request_object
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::Operation
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['id'] = id unless id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Creates a new BuildTrigger.
|
# Creates a new BuildTrigger.
|
||||||
# This API is experimental.
|
# This API is experimental.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
|
@ -485,6 +540,42 @@ module Google
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Runs a BuildTrigger at a particular source revision.
|
||||||
|
# @param [String] project_id
|
||||||
|
# ID of the project.
|
||||||
|
# @param [String] trigger_id
|
||||||
|
# ID of the trigger.
|
||||||
|
# @param [Google::Apis::CloudbuildV1::RepoSource] repo_source_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 [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::Operation]
|
||||||
|
#
|
||||||
|
# @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 run_project_trigger(project_id, trigger_id, repo_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/projects/{projectId}/triggers/{triggerId}:run', options)
|
||||||
|
command.request_representation = Google::Apis::CloudbuildV1::RepoSource::Representation
|
||||||
|
command.request_object = repo_source_object
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::Operation
|
||||||
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.params['triggerId'] = trigger_id unless trigger_id.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
|
protected
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
||||||
# @see https://cloud.google.com/dlp/docs/
|
# @see https://cloud.google.com/dlp/docs/
|
||||||
module DlpV2beta1
|
module DlpV2beta1
|
||||||
VERSION = 'V2beta1'
|
VERSION = 'V2beta1'
|
||||||
REVISION = '20171017'
|
REVISION = '20171024'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -790,13 +790,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Replaces an identifier with an surrogate using FPE with the FFX
|
# Replaces an identifier with a surrogate using FPE with the FFX
|
||||||
# mode of operation.
|
# mode of operation.
|
||||||
# The identifier must be representable by the US-ASCII character set.
|
# The identifier must be representable by the US-ASCII character set.
|
||||||
# For a given crypto key and context, the same identifier will be
|
# For a given crypto key and context, the same identifier will be
|
||||||
# replaced with the same surrogate.
|
# replaced with the same surrogate.
|
||||||
# Note that a given identifier must be either the empty string or be at
|
# Identifiers must be at least two characters long.
|
||||||
# least two characters long.
|
# In the case that the identifier is the empty string, it will be skipped.
|
||||||
class GooglePrivacyDlpV2beta1CryptoReplaceFfxFpeConfig
|
class GooglePrivacyDlpV2beta1CryptoReplaceFfxFpeConfig
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -859,7 +859,8 @@ module Google
|
||||||
# of employee IDs or job titles.
|
# of employee IDs or job titles.
|
||||||
# Dictionary words are case-insensitive and all characters other than letters
|
# Dictionary words are case-insensitive and all characters other than letters
|
||||||
# and digits in the unicode [Basic Multilingual
|
# and digits in the unicode [Basic Multilingual
|
||||||
# Plane](https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane)
|
# Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#
|
||||||
|
# Basic_Multilingual_Plane)
|
||||||
# will be replaced with whitespace when scanning for matches, so the
|
# will be replaced with whitespace when scanning for matches, so the
|
||||||
# dictionary phrase "Sam Johnson" will match all three phrases "sam johnson",
|
# dictionary phrase "Sam Johnson" will match all three phrases "sam johnson",
|
||||||
# "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters
|
# "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters
|
||||||
|
@ -1067,7 +1068,8 @@ module Google
|
||||||
# of employee IDs or job titles.
|
# of employee IDs or job titles.
|
||||||
# Dictionary words are case-insensitive and all characters other than letters
|
# Dictionary words are case-insensitive and all characters other than letters
|
||||||
# and digits in the unicode [Basic Multilingual
|
# and digits in the unicode [Basic Multilingual
|
||||||
# Plane](https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane)
|
# Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#
|
||||||
|
# Basic_Multilingual_Plane)
|
||||||
# will be replaced with whitespace when scanning for matches, so the
|
# will be replaced with whitespace when scanning for matches, so the
|
||||||
# dictionary phrase "Sam Johnson" will match all three phrases "sam johnson",
|
# dictionary phrase "Sam Johnson" will match all three phrases "sam johnson",
|
||||||
# "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters
|
# "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters
|
||||||
|
@ -2400,13 +2402,13 @@ module Google
|
||||||
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CryptoHashConfig]
|
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CryptoHashConfig]
|
||||||
attr_accessor :crypto_hash_config
|
attr_accessor :crypto_hash_config
|
||||||
|
|
||||||
# Replaces an identifier with an surrogate using FPE with the FFX
|
# Replaces an identifier with a surrogate using FPE with the FFX
|
||||||
# mode of operation.
|
# mode of operation.
|
||||||
# The identifier must be representable by the US-ASCII character set.
|
# The identifier must be representable by the US-ASCII character set.
|
||||||
# For a given crypto key and context, the same identifier will be
|
# For a given crypto key and context, the same identifier will be
|
||||||
# replaced with the same surrogate.
|
# replaced with the same surrogate.
|
||||||
# Note that a given identifier must be either the empty string or be at
|
# Identifiers must be at least two characters long.
|
||||||
# least two characters long.
|
# In the case that the identifier is the empty string, it will be skipped.
|
||||||
# Corresponds to the JSON property `cryptoReplaceFfxFpeConfig`
|
# Corresponds to the JSON property `cryptoReplaceFfxFpeConfig`
|
||||||
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CryptoReplaceFfxFpeConfig]
|
# @return [Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CryptoReplaceFfxFpeConfig]
|
||||||
attr_accessor :crypto_replace_ffx_fpe_config
|
attr_accessor :crypto_replace_ffx_fpe_config
|
||||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
||||||
# @see https://developers.google.com/streetview/publish/
|
# @see https://developers.google.com/streetview/publish/
|
||||||
module StreetviewpublishV1
|
module StreetviewpublishV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20170930'
|
REVISION = '20171024'
|
||||||
|
|
||||||
# Publish and manage your 360 photos on Google Street View
|
# Publish and manage your 360 photos on Google Street View
|
||||||
AUTH_STREETVIEWPUBLISH = 'https://www.googleapis.com/auth/streetviewpublish'
|
AUTH_STREETVIEWPUBLISH = 'https://www.googleapis.com/auth/streetviewpublish'
|
||||||
|
|
|
@ -172,36 +172,6 @@ module Google
|
||||||
# specified otherwise, this must conform to the
|
# specified otherwise, this must conform to the
|
||||||
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
||||||
# standard</a>. Values must be within normalized ranges.
|
# standard</a>. Values must be within normalized ranges.
|
||||||
# Example of normalization code in Python:
|
|
||||||
# def NormalizeLongitude(longitude):
|
|
||||||
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
|
||||||
# q, r = divmod(longitude, 360.0)
|
|
||||||
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
|
||||||
# return r - 360.0
|
|
||||||
# return r
|
|
||||||
# def NormalizeLatLng(latitude, longitude):
|
|
||||||
# """Wraps decimal degrees latitude and longitude to
|
|
||||||
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
|
||||||
# r = latitude % 360.0
|
|
||||||
# if r <= 90.0:
|
|
||||||
# return r, NormalizeLongitude(longitude)
|
|
||||||
# elif r >= 270.0:
|
|
||||||
# return r - 360, NormalizeLongitude(longitude)
|
|
||||||
# else:
|
|
||||||
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
|
||||||
# assert 180.0 == NormalizeLongitude(180.0)
|
|
||||||
# assert -180.0 == NormalizeLongitude(-180.0)
|
|
||||||
# assert -179.0 == NormalizeLongitude(181.0)
|
|
||||||
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
|
||||||
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
|
||||||
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
|
||||||
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
|
||||||
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
|
||||||
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
|
||||||
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
|
||||||
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
|
||||||
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
|
||||||
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
|
||||||
class LatLng
|
class LatLng
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -571,7 +541,7 @@ module Google
|
||||||
class Pose
|
class Pose
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Altitude of the pose in meters above ground level (as defined by WGS84).
|
# Altitude of the pose in meters above WGS84 ellipsoid.
|
||||||
# NaN indicates an unmeasured quantity.
|
# NaN indicates an unmeasured quantity.
|
||||||
# Corresponds to the JSON property `altitude`
|
# Corresponds to the JSON property `altitude`
|
||||||
# @return [Float]
|
# @return [Float]
|
||||||
|
@ -589,36 +559,6 @@ module Google
|
||||||
# specified otherwise, this must conform to the
|
# specified otherwise, this must conform to the
|
||||||
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
||||||
# standard</a>. Values must be within normalized ranges.
|
# standard</a>. Values must be within normalized ranges.
|
||||||
# Example of normalization code in Python:
|
|
||||||
# def NormalizeLongitude(longitude):
|
|
||||||
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
|
||||||
# q, r = divmod(longitude, 360.0)
|
|
||||||
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
|
||||||
# return r - 360.0
|
|
||||||
# return r
|
|
||||||
# def NormalizeLatLng(latitude, longitude):
|
|
||||||
# """Wraps decimal degrees latitude and longitude to
|
|
||||||
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
|
||||||
# r = latitude % 360.0
|
|
||||||
# if r <= 90.0:
|
|
||||||
# return r, NormalizeLongitude(longitude)
|
|
||||||
# elif r >= 270.0:
|
|
||||||
# return r - 360, NormalizeLongitude(longitude)
|
|
||||||
# else:
|
|
||||||
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
|
||||||
# assert 180.0 == NormalizeLongitude(180.0)
|
|
||||||
# assert -180.0 == NormalizeLongitude(-180.0)
|
|
||||||
# assert -179.0 == NormalizeLongitude(181.0)
|
|
||||||
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
|
||||||
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
|
||||||
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
|
||||||
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
|
||||||
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
|
||||||
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
|
||||||
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
|
||||||
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
|
||||||
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
|
||||||
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
|
||||||
# Corresponds to the JSON property `latLngPair`
|
# Corresponds to the JSON property `latLngPair`
|
||||||
# @return [Google::Apis::StreetviewpublishV1::LatLng]
|
# @return [Google::Apis::StreetviewpublishV1::LatLng]
|
||||||
attr_accessor :lat_lng_pair
|
attr_accessor :lat_lng_pair
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://firebase.google.com/docs/test-lab/
|
# @see https://firebase.google.com/docs/test-lab/
|
||||||
module ToolresultsV1beta3
|
module ToolresultsV1beta3
|
||||||
VERSION = 'V1beta3'
|
VERSION = 'V1beta3'
|
||||||
REVISION = '20171017'
|
REVISION = '20171024'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -84,10 +84,7 @@ module Google
|
||||||
attr_accessor :test_targets
|
attr_accessor :test_targets
|
||||||
|
|
||||||
# The flag indicates whether Android Test Orchestrator will be used to run test
|
# The flag indicates whether Android Test Orchestrator will be used to run test
|
||||||
# or not. Test orchestrator is used if either: - orchestrator_option field is
|
# or not.
|
||||||
# USE_ORCHESTRATOR, and test runner is compatible with orchestrator. Or -
|
|
||||||
# orchestrator_option field is unspecified or ORCHESTRATOR_OPTION_UNSPECIFIED,
|
|
||||||
# and test runner is compatible with orchestrator.
|
|
||||||
# Corresponds to the JSON property `useOrchestrator`
|
# Corresponds to the JSON property `useOrchestrator`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
attr_accessor :use_orchestrator
|
attr_accessor :use_orchestrator
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/youtube/partner/
|
# @see https://developers.google.com/youtube/partner/
|
||||||
module YoutubePartnerV1
|
module YoutubePartnerV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20171016'
|
REVISION = '20171023'
|
||||||
|
|
||||||
# View and manage your assets and associated content on YouTube
|
# View and manage your assets and associated content on YouTube
|
||||||
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
|
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
|
||||||
|
|
Loading…
Reference in New Issue