Autogenerated update (2017-09-12)
Add: - testing_v1 Update: - adsensehost_v4_1 - androidmanagement_v1 - deploymentmanager_alpha - deploymentmanager_v2 - deploymentmanager_v2beta - language_v1 - language_v1beta1 - language_v1beta2 - ml_v1 - people_v1 - toolresults_v1beta3 - toolresults_v1beta3firstparty
This commit is contained in:
1 parent
80a05c98b8
commit
f23048c628
37 files changed
+3147
-26
No files matched your search
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/adsense/host/
|
||||
module AdsensehostV4_1
|
||||
VERSION = 'V4_1'
|
||||
REVISION = '20170906'
|
||||
REVISION = '20170910'
|
||||
|
||||
# View and manage your AdSense host data and associated accounts
|
||||
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/android/management
|
||||
module AndroidmanagementV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170828'
|
||||
REVISION = '20170905'
|
||||
|
||||
# Manage Android devices and apps for your customers
|
||||
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'
|
||||
|
||||
@@ -1484,6 +1484,13 @@ module Google
|
||||
# @return [Array<Google::Apis::AndroidmanagementV1::ApplicationPolicy>]
|
||||
attr_accessor :applications
|
||||
|
||||
# Whether auto time is required, which prevents the user from manually setting
|
||||
# the date and time.
|
||||
# Corresponds to the JSON property `autoTimeRequired`
|
||||
# @return [Boolean]
|
||||
attr_accessor :auto_time_required
|
||||
alias_method :auto_time_required?, :auto_time_required
|
||||
|
||||
# Whether applications other than the ones configured in applications are
|
||||
# blocked from being installed. When set, applications that were installed under
|
||||
# a previous policy but no longer appear in the policy are automatically
|
||||
@@ -1673,6 +1680,7 @@ module Google
|
||||
@add_user_disabled = args[:add_user_disabled] if args.key?(:add_user_disabled)
|
||||
@adjust_volume_disabled = args[:adjust_volume_disabled] if args.key?(:adjust_volume_disabled)
|
||||
@applications = args[:applications] if args.key?(:applications)
|
||||
@auto_time_required = args[:auto_time_required] if args.key?(:auto_time_required)
|
||||
@block_applications_enabled = args[:block_applications_enabled] if args.key?(:block_applications_enabled)
|
||||
@camera_disabled = args[:camera_disabled] if args.key?(:camera_disabled)
|
||||
@compliance_rules = args[:compliance_rules] if args.key?(:compliance_rules)
|
||||
|
||||
@@ -586,6 +586,7 @@ module Google
|
||||
property :adjust_volume_disabled, as: 'adjustVolumeDisabled'
|
||||
collection :applications, as: 'applications', class: Google::Apis::AndroidmanagementV1::ApplicationPolicy, decorator: Google::Apis::AndroidmanagementV1::ApplicationPolicy::Representation
|
||||
|
||||
property :auto_time_required, as: 'autoTimeRequired'
|
||||
property :block_applications_enabled, as: 'blockApplicationsEnabled'
|
||||
property :camera_disabled, as: 'cameraDisabled'
|
||||
collection :compliance_rules, as: 'complianceRules', class: Google::Apis::AndroidmanagementV1::ComplianceRule, decorator: Google::Apis::AndroidmanagementV1::ComplianceRule::Representation
|
||||
|
||||
@@ -51,7 +51,7 @@ module Google
|
||||
|
||||
def initialize
|
||||
super('https://www.googleapis.com/', 'appsmarket/v2/')
|
||||
@batch_path = 'batch/appsmarket/v2'
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
#
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/deployment-manager/
|
||||
module DeploymentmanagerAlpha
|
||||
VERSION = 'Alpha'
|
||||
REVISION = '20170810'
|
||||
REVISION = '20170907'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -420,7 +420,8 @@ module Google
|
||||
# @return [Array<Google::Apis::DeploymentmanagerAlpha::CollectionOverride>]
|
||||
attr_accessor :collection_overrides
|
||||
|
||||
# Credential used by ConfigurableResourceTypes.
|
||||
# The credential used by Deployment Manager and TypeProvider. Only one of the
|
||||
# options is permitted.
|
||||
# Corresponds to the JSON property `credential`
|
||||
# @return [Google::Apis::DeploymentmanagerAlpha::Credential]
|
||||
attr_accessor :credential
|
||||
@@ -448,7 +449,8 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Credential used by ConfigurableResourceTypes.
|
||||
# The credential used by Deployment Manager and TypeProvider. Only one of the
|
||||
# options is permitted.
|
||||
class Credential
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -457,6 +459,17 @@ module Google
|
||||
# @return [Google::Apis::DeploymentmanagerAlpha::BasicAuth]
|
||||
attr_accessor :basic_auth
|
||||
|
||||
# Service Account used as a credential.
|
||||
# Corresponds to the JSON property `serviceAccount`
|
||||
# @return [Google::Apis::DeploymentmanagerAlpha::ServiceAccount]
|
||||
attr_accessor :service_account
|
||||
|
||||
# Specify to use the project default credential, only supported by Deployment.
|
||||
# Corresponds to the JSON property `useProjectDefault`
|
||||
# @return [Boolean]
|
||||
attr_accessor :use_project_default
|
||||
alias_method :use_project_default?, :use_project_default
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
@@ -464,6 +477,8 @@ module Google
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@basic_auth = args[:basic_auth] if args.key?(:basic_auth)
|
||||
@service_account = args[:service_account] if args.key?(:service_account)
|
||||
@use_project_default = args[:use_project_default] if args.key?(:use_project_default)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -530,6 +545,12 @@ module Google
|
||||
# @return [Google::Apis::DeploymentmanagerAlpha::Operation]
|
||||
attr_accessor :operation
|
||||
|
||||
# api-linter: output-only-format=disabled [Output Only] Map of outputs from the
|
||||
# last manifest that deployed successfully.
|
||||
# Corresponds to the JSON property `outputs`
|
||||
# @return [Array<Google::Apis::DeploymentmanagerAlpha::DeploymentOutputsEntry>]
|
||||
attr_accessor :outputs
|
||||
|
||||
# [Output Only] Self link for the deployment.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
@@ -559,6 +580,7 @@ module Google
|
||||
@manifest = args[:manifest] if args.key?(:manifest)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@operation = args[:operation] if args.key?(:operation)
|
||||
@outputs = args[:outputs] if args.key?(:outputs)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
@target = args[:target] if args.key?(:target)
|
||||
@update = args[:update] if args.key?(:update)
|
||||
@@ -590,6 +612,31 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class DeploymentOutputsEntry
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `key`
|
||||
# @return [String]
|
||||
attr_accessor :key
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
attr_accessor :value
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@key = args[:key] if args.key?(:key)
|
||||
@value = args[:value] if args.key?(:value)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class DeploymentUpdate
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -1926,6 +1973,26 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Service Account used as a credential.
|
||||
class ServiceAccount
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The IAM service account email address like test@myproject.iam.gserviceaccount.
|
||||
# com
|
||||
# Corresponds to the JSON property `email`
|
||||
# @return [String]
|
||||
attr_accessor :email
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@email = args[:email] if args.key?(:email)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class TargetConfiguration
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -2215,7 +2282,8 @@ module Google
|
||||
# @return [Array<Google::Apis::DeploymentmanagerAlpha::CollectionOverride>]
|
||||
attr_accessor :collection_overrides
|
||||
|
||||
# Credential used by ConfigurableResourceTypes.
|
||||
# The credential used by Deployment Manager and TypeProvider. Only one of the
|
||||
# options is permitted.
|
||||
# Corresponds to the JSON property `credential`
|
||||
# @return [Google::Apis::DeploymentmanagerAlpha::Credential]
|
||||
attr_accessor :credential
|
||||
|
||||
@@ -112,6 +112,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DeploymentOutputsEntry
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DeploymentUpdate
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -310,6 +316,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ServiceAccount
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TargetConfiguration
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -518,6 +530,9 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :basic_auth, as: 'basicAuth', class: Google::Apis::DeploymentmanagerAlpha::BasicAuth, decorator: Google::Apis::DeploymentmanagerAlpha::BasicAuth::Representation
|
||||
|
||||
property :service_account, as: 'serviceAccount', class: Google::Apis::DeploymentmanagerAlpha::ServiceAccount, decorator: Google::Apis::DeploymentmanagerAlpha::ServiceAccount::Representation
|
||||
|
||||
property :use_project_default, as: 'useProjectDefault'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -534,6 +549,8 @@ module Google
|
||||
property :name, as: 'name'
|
||||
property :operation, as: 'operation', class: Google::Apis::DeploymentmanagerAlpha::Operation, decorator: Google::Apis::DeploymentmanagerAlpha::Operation::Representation
|
||||
|
||||
collection :outputs, as: 'outputs', class: Google::Apis::DeploymentmanagerAlpha::DeploymentOutputsEntry, decorator: Google::Apis::DeploymentmanagerAlpha::DeploymentOutputsEntry::Representation
|
||||
|
||||
property :self_link, as: 'selfLink'
|
||||
property :target, as: 'target', class: Google::Apis::DeploymentmanagerAlpha::TargetConfiguration, decorator: Google::Apis::DeploymentmanagerAlpha::TargetConfiguration::Representation
|
||||
|
||||
@@ -550,6 +567,14 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class DeploymentOutputsEntry
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key, as: 'key'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
|
||||
class DeploymentUpdate
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -903,6 +928,13 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class ServiceAccount
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :email, as: 'email'
|
||||
end
|
||||
end
|
||||
|
||||
class TargetConfiguration
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -51,7 +51,7 @@ module Google
|
||||
|
||||
def initialize
|
||||
super('https://www.googleapis.com/', 'deploymentmanager/alpha/projects/')
|
||||
@batch_path = 'batch/deploymentmanager/alpha'
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Deletes a composite type.
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://cloud.google.com/deployment-manager/
|
||||
module DeploymentmanagerV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20170810'
|
||||
REVISION = '20170907'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -50,7 +50,7 @@ module Google
|
||||
|
||||
def initialize
|
||||
super('https://www.googleapis.com/', 'deploymentmanager/v2/projects/')
|
||||
@batch_path = 'batch/deploymentmanager/v2'
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Cancels and removes the preview currently associated with the deployment.
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/deployment-manager/
|
||||
module DeploymentmanagerV2beta
|
||||
VERSION = 'V2beta'
|
||||
REVISION = '20170810'
|
||||
REVISION = '20170907'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -129,7 +129,8 @@ module Google
|
||||
# @return [Array<Google::Apis::DeploymentmanagerV2beta::CollectionOverride>]
|
||||
attr_accessor :collection_overrides
|
||||
|
||||
# Credential used by ConfigurableResourceTypes.
|
||||
# The credential used by Deployment Manager and TypeProvider. Only one of the
|
||||
# options is permitted.
|
||||
# Corresponds to the JSON property `credential`
|
||||
# @return [Google::Apis::DeploymentmanagerV2beta::Credential]
|
||||
attr_accessor :credential
|
||||
@@ -448,7 +449,8 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Credential used by ConfigurableResourceTypes.
|
||||
# The credential used by Deployment Manager and TypeProvider. Only one of the
|
||||
# options is permitted.
|
||||
class Credential
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -457,6 +459,17 @@ module Google
|
||||
# @return [Google::Apis::DeploymentmanagerV2beta::BasicAuth]
|
||||
attr_accessor :basic_auth
|
||||
|
||||
# Service Account used as a credential.
|
||||
# Corresponds to the JSON property `serviceAccount`
|
||||
# @return [Google::Apis::DeploymentmanagerV2beta::ServiceAccount]
|
||||
attr_accessor :service_account
|
||||
|
||||
# Specify to use the project default credential, only supported by Deployment.
|
||||
# Corresponds to the JSON property `useProjectDefault`
|
||||
# @return [Boolean]
|
||||
attr_accessor :use_project_default
|
||||
alias_method :use_project_default?, :use_project_default
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
@@ -464,6 +477,8 @@ module Google
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@basic_auth = args[:basic_auth] if args.key?(:basic_auth)
|
||||
@service_account = args[:service_account] if args.key?(:service_account)
|
||||
@use_project_default = args[:use_project_default] if args.key?(:use_project_default)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1930,6 +1945,26 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Service Account used as a credential.
|
||||
class ServiceAccount
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The IAM service account email address like test@myproject.iam.gserviceaccount.
|
||||
# com
|
||||
# Corresponds to the JSON property `email`
|
||||
# @return [String]
|
||||
attr_accessor :email
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@email = args[:email] if args.key?(:email)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class TargetConfiguration
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -2219,7 +2254,8 @@ module Google
|
||||
# @return [Array<Google::Apis::DeploymentmanagerV2beta::CollectionOverride>]
|
||||
attr_accessor :collection_overrides
|
||||
|
||||
# Credential used by ConfigurableResourceTypes.
|
||||
# The credential used by Deployment Manager and TypeProvider. Only one of the
|
||||
# options is permitted.
|
||||
# Corresponds to the JSON property `credential`
|
||||
# @return [Google::Apis::DeploymentmanagerV2beta::Credential]
|
||||
attr_accessor :credential
|
||||
|
||||
@@ -310,6 +310,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ServiceAccount
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TargetConfiguration
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -518,6 +524,9 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :basic_auth, as: 'basicAuth', class: Google::Apis::DeploymentmanagerV2beta::BasicAuth, decorator: Google::Apis::DeploymentmanagerV2beta::BasicAuth::Representation
|
||||
|
||||
property :service_account, as: 'serviceAccount', class: Google::Apis::DeploymentmanagerV2beta::ServiceAccount, decorator: Google::Apis::DeploymentmanagerV2beta::ServiceAccount::Representation
|
||||
|
||||
property :use_project_default, as: 'useProjectDefault'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -903,6 +912,13 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class ServiceAccount
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :email, as: 'email'
|
||||
end
|
||||
end
|
||||
|
||||
class TargetConfiguration
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -51,7 +51,7 @@ module Google
|
||||
|
||||
def initialize
|
||||
super('https://www.googleapis.com/', 'deploymentmanager/v2beta/projects/')
|
||||
@batch_path = 'batch/deploymentmanager/v2beta'
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Deletes a composite type.
|
||||
|
||||
@@ -51,7 +51,7 @@ module Google
|
||||
|
||||
def initialize
|
||||
super('https://www.googleapis.com/', 'doubleclicksearch/v2/')
|
||||
@batch_path = 'batch/doubleclicksearch/v2'
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Retrieves a list of conversions from a DoubleClick Search engine account.
|
||||
|
||||
@@ -27,7 +27,7 @@ module Google
|
||||
# @see https://cloud.google.com/natural-language/
|
||||
module LanguageV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170809'
|
||||
REVISION = '20170911'
|
||||
|
||||
# Apply machine learning models to reveal the structure and meaning of text
|
||||
AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language'
|
||||
|
||||
@@ -75,6 +75,59 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# The entity-level sentiment analysis request message.
|
||||
class AnalyzeEntitySentimentRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# ################################################################ #
|
||||
# Represents the input to API methods.
|
||||
# Corresponds to the JSON property `document`
|
||||
# @return [Google::Apis::LanguageV1::Document]
|
||||
attr_accessor :document
|
||||
|
||||
# The encoding type used by the API to calculate offsets.
|
||||
# Corresponds to the JSON property `encodingType`
|
||||
# @return [String]
|
||||
attr_accessor :encoding_type
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@document = args[:document] if args.key?(:document)
|
||||
@encoding_type = args[:encoding_type] if args.key?(:encoding_type)
|
||||
end
|
||||
end
|
||||
|
||||
# The entity-level sentiment analysis response message.
|
||||
class AnalyzeEntitySentimentResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The recognized entities in the input document with associated sentiments.
|
||||
# Corresponds to the JSON property `entities`
|
||||
# @return [Array<Google::Apis::LanguageV1::Entity>]
|
||||
attr_accessor :entities
|
||||
|
||||
# The language of the text, which will be the same as the language specified
|
||||
# in the request or, if not specified, the automatically-detected language.
|
||||
# See Document.language field for more details.
|
||||
# Corresponds to the JSON property `language`
|
||||
# @return [String]
|
||||
attr_accessor :language
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@entities = args[:entities] if args.key?(:entities)
|
||||
@language = args[:language] if args.key?(:language)
|
||||
end
|
||||
end
|
||||
|
||||
# The sentiment analysis request message.
|
||||
class AnalyzeSentimentRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -392,6 +445,12 @@ module Google
|
||||
# @return [Float]
|
||||
attr_accessor :salience
|
||||
|
||||
# Represents the feeling associated with the entire text or entities in
|
||||
# the text.
|
||||
# Corresponds to the JSON property `sentiment`
|
||||
# @return [Google::Apis::LanguageV1::Sentiment]
|
||||
attr_accessor :sentiment
|
||||
|
||||
# The entity type.
|
||||
# Corresponds to the JSON property `type`
|
||||
# @return [String]
|
||||
@@ -407,6 +466,7 @@ module Google
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@salience = args[:salience] if args.key?(:salience)
|
||||
@sentiment = args[:sentiment] if args.key?(:sentiment)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
end
|
||||
end
|
||||
@@ -416,6 +476,12 @@ module Google
|
||||
class EntityMention
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Represents the feeling associated with the entire text or entities in
|
||||
# the text.
|
||||
# Corresponds to the JSON property `sentiment`
|
||||
# @return [Google::Apis::LanguageV1::Sentiment]
|
||||
attr_accessor :sentiment
|
||||
|
||||
# Represents an output piece of text.
|
||||
# Corresponds to the JSON property `text`
|
||||
# @return [Google::Apis::LanguageV1::TextSpan]
|
||||
@@ -432,6 +498,7 @@ module Google
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@sentiment = args[:sentiment] if args.key?(:sentiment)
|
||||
@text = args[:text] if args.key?(:text)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
end
|
||||
@@ -454,6 +521,12 @@ module Google
|
||||
attr_accessor :extract_entities
|
||||
alias_method :extract_entities?, :extract_entities
|
||||
|
||||
# Extract entities and their associated sentiment.
|
||||
# Corresponds to the JSON property `extractEntitySentiment`
|
||||
# @return [Boolean]
|
||||
attr_accessor :extract_entity_sentiment
|
||||
alias_method :extract_entity_sentiment?, :extract_entity_sentiment
|
||||
|
||||
# Extract syntax information.
|
||||
# Corresponds to the JSON property `extractSyntax`
|
||||
# @return [Boolean]
|
||||
@@ -468,6 +541,7 @@ module Google
|
||||
def update!(**args)
|
||||
@extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment)
|
||||
@extract_entities = args[:extract_entities] if args.key?(:extract_entities)
|
||||
@extract_entity_sentiment = args[:extract_entity_sentiment] if args.key?(:extract_entity_sentiment)
|
||||
@extract_syntax = args[:extract_syntax] if args.key?(:extract_syntax)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -34,6 +34,18 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AnalyzeEntitySentimentRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AnalyzeEntitySentimentResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AnalyzeSentimentRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -154,6 +166,24 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class AnalyzeEntitySentimentRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :document, as: 'document', class: Google::Apis::LanguageV1::Document, decorator: Google::Apis::LanguageV1::Document::Representation
|
||||
|
||||
property :encoding_type, as: 'encodingType'
|
||||
end
|
||||
end
|
||||
|
||||
class AnalyzeEntitySentimentResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :entities, as: 'entities', class: Google::Apis::LanguageV1::Entity, decorator: Google::Apis::LanguageV1::Entity::Representation
|
||||
|
||||
property :language, as: 'language'
|
||||
end
|
||||
end
|
||||
|
||||
class AnalyzeSentimentRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -246,6 +276,8 @@ module Google
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
property :salience, as: 'salience'
|
||||
property :sentiment, as: 'sentiment', class: Google::Apis::LanguageV1::Sentiment, decorator: Google::Apis::LanguageV1::Sentiment::Representation
|
||||
|
||||
property :type, as: 'type'
|
||||
end
|
||||
end
|
||||
@@ -253,6 +285,8 @@ module Google
|
||||
class EntityMention
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :sentiment, as: 'sentiment', class: Google::Apis::LanguageV1::Sentiment, decorator: Google::Apis::LanguageV1::Sentiment::Representation
|
||||
|
||||
property :text, as: 'text', class: Google::Apis::LanguageV1::TextSpan, decorator: Google::Apis::LanguageV1::TextSpan::Representation
|
||||
|
||||
property :type, as: 'type'
|
||||
@@ -264,6 +298,7 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :extract_document_sentiment, as: 'extractDocumentSentiment'
|
||||
property :extract_entities, as: 'extractEntities'
|
||||
property :extract_entity_sentiment, as: 'extractEntitySentiment'
|
||||
property :extract_syntax, as: 'extractSyntax'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -81,6 +81,37 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Finds entities, similar to AnalyzeEntities in the text and analyzes
|
||||
# sentiment associated with each entity and its mentions.
|
||||
# @param [Google::Apis::LanguageV1::AnalyzeEntitySentimentRequest] analyze_entity_sentiment_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::LanguageV1::AnalyzeEntitySentimentResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::LanguageV1::AnalyzeEntitySentimentResponse]
|
||||
#
|
||||
# @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 analyze_document_entity_sentiment(analyze_entity_sentiment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/documents:analyzeEntitySentiment', options)
|
||||
command.request_representation = Google::Apis::LanguageV1::AnalyzeEntitySentimentRequest::Representation
|
||||
command.request_object = analyze_entity_sentiment_request_object
|
||||
command.response_representation = Google::Apis::LanguageV1::AnalyzeEntitySentimentResponse::Representation
|
||||
command.response_class = Google::Apis::LanguageV1::AnalyzeEntitySentimentResponse
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Analyzes the sentiment of the provided text.
|
||||
# @param [Google::Apis::LanguageV1::AnalyzeSentimentRequest] analyze_sentiment_request_object
|
||||
# @param [String] fields
|
||||
|
||||
@@ -27,7 +27,7 @@ module Google
|
||||
# @see https://cloud.google.com/natural-language/
|
||||
module LanguageV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20170809'
|
||||
REVISION = '20170911'
|
||||
|
||||
# Apply machine learning models to reveal the structure and meaning of text
|
||||
AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language'
|
||||
|
||||
@@ -27,7 +27,7 @@ module Google
|
||||
# @see https://cloud.google.com/natural-language/
|
||||
module LanguageV1beta2
|
||||
VERSION = 'V1beta2'
|
||||
REVISION = '20170905'
|
||||
REVISION = '20170911'
|
||||
|
||||
# Apply machine learning models to reveal the structure and meaning of text
|
||||
AUTH_CLOUD_LANGUAGE = 'https://www.googleapis.com/auth/cloud-language'
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://cloud.google.com/ml/
|
||||
module MlV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170825'
|
||||
REVISION = '20170909'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -466,6 +466,7 @@ module Google
|
||||
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
|
||||
# versions/list).
|
||||
# Next ID: 18
|
||||
# LINT.IfChange
|
||||
# Corresponds to the JSON property `defaultVersion`
|
||||
# @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
|
||||
attr_accessor :default_version
|
||||
@@ -558,6 +559,7 @@ module Google
|
||||
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
|
||||
# versions/list).
|
||||
# Next ID: 18
|
||||
# LINT.IfChange
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Google::Apis::MlV1::GoogleCloudMlV1Version]
|
||||
attr_accessor :version
|
||||
@@ -1214,6 +1216,7 @@ module Google
|
||||
# [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.
|
||||
# versions/list).
|
||||
# Next ID: 18
|
||||
# LINT.IfChange
|
||||
class GoogleCloudMlV1Version
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/people/
|
||||
module PeopleV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170829'
|
||||
REVISION = '20170909'
|
||||
|
||||
# Manage your contacts
|
||||
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
|
||||
|
||||
@@ -1726,6 +1726,13 @@ module Google
|
||||
class Photo
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# True if the photo is a default photo;
|
||||
# false if the photo is a user-provided photo.
|
||||
# Corresponds to the JSON property `default`
|
||||
# @return [Boolean]
|
||||
attr_accessor :default
|
||||
alias_method :default?, :default
|
||||
|
||||
# Metadata about a field.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Google::Apis::PeopleV1::FieldMetadata]
|
||||
@@ -1745,6 +1752,7 @@ module Google
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@default = args[:default] if args.key?(:default)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@url = args[:url] if args.key?(:url)
|
||||
end
|
||||
|
||||
@@ -763,6 +763,7 @@ module Google
|
||||
class Photo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :default, as: 'default'
|
||||
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
|
||||
|
||||
property :url, as: 'url'
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/testing_v1/service.rb'
|
||||
require 'google/apis/testing_v1/classes.rb'
|
||||
require 'google/apis/testing_v1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Google Cloud Testing API
|
||||
#
|
||||
# Allows developers to run automated tests for their mobile applications on
|
||||
# Google infrastructure.
|
||||
#
|
||||
# @see https://developers.google.com/cloud-test-lab/
|
||||
module TestingV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170905'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
# View your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
||||
end
|
||||
end
|
||||
end
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,688 @@
|
||||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module TestingV1
|
||||
|
||||
class Account
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AndroidDevice
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AndroidDeviceCatalog
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AndroidDeviceList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AndroidInstrumentationTest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AndroidMatrix
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AndroidModel
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AndroidRoboTest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AndroidRuntimeConfiguration
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AndroidTestLoop
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AndroidVersion
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CancelTestMatrixResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ClientInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ClientInfoDetail
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Date
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DeviceFile
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Distribution
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Environment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class EnvironmentMatrix
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class EnvironmentVariable
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FileReference
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleAuto
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleCloudStorage
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Locale
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NetworkConfiguration
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NetworkConfigurationCatalog
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ObbFile
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Orientation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ResultStorage
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RoboDirective
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestDetails
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestEnvironmentCatalog
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestExecution
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestMatrix
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestSetup
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestSpecification
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ToolResultsExecution
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ToolResultsHistory
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ToolResultsStep
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TrafficRule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Account
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :google_auto, as: 'googleAuto', class: Google::Apis::TestingV1::GoogleAuto, decorator: Google::Apis::TestingV1::GoogleAuto::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class AndroidDevice
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :android_model_id, as: 'androidModelId'
|
||||
property :android_version_id, as: 'androidVersionId'
|
||||
property :locale, as: 'locale'
|
||||
property :orientation, as: 'orientation'
|
||||
end
|
||||
end
|
||||
|
||||
class AndroidDeviceCatalog
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :models, as: 'models', class: Google::Apis::TestingV1::AndroidModel, decorator: Google::Apis::TestingV1::AndroidModel::Representation
|
||||
|
||||
property :runtime_configuration, as: 'runtimeConfiguration', class: Google::Apis::TestingV1::AndroidRuntimeConfiguration, decorator: Google::Apis::TestingV1::AndroidRuntimeConfiguration::Representation
|
||||
|
||||
collection :versions, as: 'versions', class: Google::Apis::TestingV1::AndroidVersion, decorator: Google::Apis::TestingV1::AndroidVersion::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class AndroidDeviceList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :android_devices, as: 'androidDevices', class: Google::Apis::TestingV1::AndroidDevice, decorator: Google::Apis::TestingV1::AndroidDevice::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class AndroidInstrumentationTest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :app_apk, as: 'appApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation
|
||||
|
||||
property :app_package_id, as: 'appPackageId'
|
||||
property :orchestrator_option, as: 'orchestratorOption'
|
||||
property :test_apk, as: 'testApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation
|
||||
|
||||
property :test_package_id, as: 'testPackageId'
|
||||
property :test_runner_class, as: 'testRunnerClass'
|
||||
collection :test_targets, as: 'testTargets'
|
||||
end
|
||||
end
|
||||
|
||||
class AndroidMatrix
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :android_model_ids, as: 'androidModelIds'
|
||||
collection :android_version_ids, as: 'androidVersionIds'
|
||||
collection :locales, as: 'locales'
|
||||
collection :orientations, as: 'orientations'
|
||||
end
|
||||
end
|
||||
|
||||
class AndroidModel
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :brand, as: 'brand'
|
||||
property :codename, as: 'codename'
|
||||
property :form, as: 'form'
|
||||
property :id, as: 'id'
|
||||
property :manufacturer, as: 'manufacturer'
|
||||
property :name, as: 'name'
|
||||
property :screen_density, as: 'screenDensity'
|
||||
property :screen_x, as: 'screenX'
|
||||
property :screen_y, as: 'screenY'
|
||||
collection :supported_abis, as: 'supportedAbis'
|
||||
collection :supported_version_ids, as: 'supportedVersionIds'
|
||||
collection :tags, as: 'tags'
|
||||
end
|
||||
end
|
||||
|
||||
class AndroidRoboTest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :app_apk, as: 'appApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation
|
||||
|
||||
property :app_initial_activity, as: 'appInitialActivity'
|
||||
property :app_package_id, as: 'appPackageId'
|
||||
property :max_depth, as: 'maxDepth'
|
||||
property :max_steps, as: 'maxSteps'
|
||||
collection :robo_directives, as: 'roboDirectives', class: Google::Apis::TestingV1::RoboDirective, decorator: Google::Apis::TestingV1::RoboDirective::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class AndroidRuntimeConfiguration
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :locales, as: 'locales', class: Google::Apis::TestingV1::Locale, decorator: Google::Apis::TestingV1::Locale::Representation
|
||||
|
||||
collection :orientations, as: 'orientations', class: Google::Apis::TestingV1::Orientation, decorator: Google::Apis::TestingV1::Orientation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class AndroidTestLoop
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :app_apk, as: 'appApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation
|
||||
|
||||
property :app_package_id, as: 'appPackageId'
|
||||
collection :scenario_labels, as: 'scenarioLabels'
|
||||
collection :scenarios, as: 'scenarios'
|
||||
end
|
||||
end
|
||||
|
||||
class AndroidVersion
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :api_level, as: 'apiLevel'
|
||||
property :code_name, as: 'codeName'
|
||||
property :distribution, as: 'distribution', class: Google::Apis::TestingV1::Distribution, decorator: Google::Apis::TestingV1::Distribution::Representation
|
||||
|
||||
property :id, as: 'id'
|
||||
property :release_date, as: 'releaseDate', class: Google::Apis::TestingV1::Date, decorator: Google::Apis::TestingV1::Date::Representation
|
||||
|
||||
collection :tags, as: 'tags'
|
||||
property :version_string, as: 'versionString'
|
||||
end
|
||||
end
|
||||
|
||||
class CancelTestMatrixResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :test_state, as: 'testState'
|
||||
end
|
||||
end
|
||||
|
||||
class ClientInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :client_info_details, as: 'clientInfoDetails', class: Google::Apis::TestingV1::ClientInfoDetail, decorator: Google::Apis::TestingV1::ClientInfoDetail::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class ClientInfoDetail
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key, as: 'key'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
|
||||
class Date
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :day, as: 'day'
|
||||
property :month, as: 'month'
|
||||
property :year, as: 'year'
|
||||
end
|
||||
end
|
||||
|
||||
class DeviceFile
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :obb_file, as: 'obbFile', class: Google::Apis::TestingV1::ObbFile, decorator: Google::Apis::TestingV1::ObbFile::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Distribution
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :market_share, as: 'marketShare'
|
||||
property :measurement_time, as: 'measurementTime'
|
||||
end
|
||||
end
|
||||
|
||||
class Environment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :android_device, as: 'androidDevice', class: Google::Apis::TestingV1::AndroidDevice, decorator: Google::Apis::TestingV1::AndroidDevice::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class EnvironmentMatrix
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :android_device_list, as: 'androidDeviceList', class: Google::Apis::TestingV1::AndroidDeviceList, decorator: Google::Apis::TestingV1::AndroidDeviceList::Representation
|
||||
|
||||
property :android_matrix, as: 'androidMatrix', class: Google::Apis::TestingV1::AndroidMatrix, decorator: Google::Apis::TestingV1::AndroidMatrix::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class EnvironmentVariable
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :key, as: 'key'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
|
||||
class FileReference
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :gcs_path, as: 'gcsPath'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleAuto
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleCloudStorage
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :gcs_path, as: 'gcsPath'
|
||||
end
|
||||
end
|
||||
|
||||
class Locale
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :name, as: 'name'
|
||||
property :region, as: 'region'
|
||||
collection :tags, as: 'tags'
|
||||
end
|
||||
end
|
||||
|
||||
class NetworkConfiguration
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :down_rule, as: 'downRule', class: Google::Apis::TestingV1::TrafficRule, decorator: Google::Apis::TestingV1::TrafficRule::Representation
|
||||
|
||||
property :id, as: 'id'
|
||||
property :up_rule, as: 'upRule', class: Google::Apis::TestingV1::TrafficRule, decorator: Google::Apis::TestingV1::TrafficRule::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class NetworkConfigurationCatalog
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :configurations, as: 'configurations', class: Google::Apis::TestingV1::NetworkConfiguration, decorator: Google::Apis::TestingV1::NetworkConfiguration::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ObbFile
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :obb, as: 'obb', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation
|
||||
|
||||
property :obb_file_name, as: 'obbFileName'
|
||||
end
|
||||
end
|
||||
|
||||
class Orientation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :id, as: 'id'
|
||||
property :name, as: 'name'
|
||||
collection :tags, as: 'tags'
|
||||
end
|
||||
end
|
||||
|
||||
class ResultStorage
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :google_cloud_storage, as: 'googleCloudStorage', class: Google::Apis::TestingV1::GoogleCloudStorage, decorator: Google::Apis::TestingV1::GoogleCloudStorage::Representation
|
||||
|
||||
property :tool_results_execution, as: 'toolResultsExecution', class: Google::Apis::TestingV1::ToolResultsExecution, decorator: Google::Apis::TestingV1::ToolResultsExecution::Representation
|
||||
|
||||
property :tool_results_history, as: 'toolResultsHistory', class: Google::Apis::TestingV1::ToolResultsHistory, decorator: Google::Apis::TestingV1::ToolResultsHistory::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class RoboDirective
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :action_type, as: 'actionType'
|
||||
property :input_text, as: 'inputText'
|
||||
property :resource_name, as: 'resourceName'
|
||||
end
|
||||
end
|
||||
|
||||
class TestDetails
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :error_message, as: 'errorMessage'
|
||||
collection :progress_messages, as: 'progressMessages'
|
||||
end
|
||||
end
|
||||
|
||||
class TestEnvironmentCatalog
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :android_device_catalog, as: 'androidDeviceCatalog', class: Google::Apis::TestingV1::AndroidDeviceCatalog, decorator: Google::Apis::TestingV1::AndroidDeviceCatalog::Representation
|
||||
|
||||
property :network_configuration_catalog, as: 'networkConfigurationCatalog', class: Google::Apis::TestingV1::NetworkConfigurationCatalog, decorator: Google::Apis::TestingV1::NetworkConfigurationCatalog::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class TestExecution
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :environment, as: 'environment', class: Google::Apis::TestingV1::Environment, decorator: Google::Apis::TestingV1::Environment::Representation
|
||||
|
||||
property :id, as: 'id'
|
||||
property :matrix_id, as: 'matrixId'
|
||||
property :project_id, as: 'projectId'
|
||||
property :state, as: 'state'
|
||||
property :test_details, as: 'testDetails', class: Google::Apis::TestingV1::TestDetails, decorator: Google::Apis::TestingV1::TestDetails::Representation
|
||||
|
||||
property :test_specification, as: 'testSpecification', class: Google::Apis::TestingV1::TestSpecification, decorator: Google::Apis::TestingV1::TestSpecification::Representation
|
||||
|
||||
property :timestamp, as: 'timestamp'
|
||||
property :tool_results_step, as: 'toolResultsStep', class: Google::Apis::TestingV1::ToolResultsStep, decorator: Google::Apis::TestingV1::ToolResultsStep::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class TestMatrix
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :client_info, as: 'clientInfo', class: Google::Apis::TestingV1::ClientInfo, decorator: Google::Apis::TestingV1::ClientInfo::Representation
|
||||
|
||||
property :environment_matrix, as: 'environmentMatrix', class: Google::Apis::TestingV1::EnvironmentMatrix, decorator: Google::Apis::TestingV1::EnvironmentMatrix::Representation
|
||||
|
||||
property :invalid_matrix_details, as: 'invalidMatrixDetails'
|
||||
property :project_id, as: 'projectId'
|
||||
property :result_storage, as: 'resultStorage', class: Google::Apis::TestingV1::ResultStorage, decorator: Google::Apis::TestingV1::ResultStorage::Representation
|
||||
|
||||
property :state, as: 'state'
|
||||
collection :test_executions, as: 'testExecutions', class: Google::Apis::TestingV1::TestExecution, decorator: Google::Apis::TestingV1::TestExecution::Representation
|
||||
|
||||
property :test_matrix_id, as: 'testMatrixId'
|
||||
property :test_specification, as: 'testSpecification', class: Google::Apis::TestingV1::TestSpecification, decorator: Google::Apis::TestingV1::TestSpecification::Representation
|
||||
|
||||
property :timestamp, as: 'timestamp'
|
||||
end
|
||||
end
|
||||
|
||||
class TestSetup
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :account, as: 'account', class: Google::Apis::TestingV1::Account, decorator: Google::Apis::TestingV1::Account::Representation
|
||||
|
||||
collection :directories_to_pull, as: 'directoriesToPull'
|
||||
collection :environment_variables, as: 'environmentVariables', class: Google::Apis::TestingV1::EnvironmentVariable, decorator: Google::Apis::TestingV1::EnvironmentVariable::Representation
|
||||
|
||||
collection :files_to_push, as: 'filesToPush', class: Google::Apis::TestingV1::DeviceFile, decorator: Google::Apis::TestingV1::DeviceFile::Representation
|
||||
|
||||
property :network_profile, as: 'networkProfile'
|
||||
end
|
||||
end
|
||||
|
||||
class TestSpecification
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :android_instrumentation_test, as: 'androidInstrumentationTest', class: Google::Apis::TestingV1::AndroidInstrumentationTest, decorator: Google::Apis::TestingV1::AndroidInstrumentationTest::Representation
|
||||
|
||||
property :android_robo_test, as: 'androidRoboTest', class: Google::Apis::TestingV1::AndroidRoboTest, decorator: Google::Apis::TestingV1::AndroidRoboTest::Representation
|
||||
|
||||
property :android_test_loop, as: 'androidTestLoop', class: Google::Apis::TestingV1::AndroidTestLoop, decorator: Google::Apis::TestingV1::AndroidTestLoop::Representation
|
||||
|
||||
property :auto_google_login, as: 'autoGoogleLogin'
|
||||
property :disable_performance_metrics, as: 'disablePerformanceMetrics'
|
||||
property :disable_video_recording, as: 'disableVideoRecording'
|
||||
property :test_setup, as: 'testSetup', class: Google::Apis::TestingV1::TestSetup, decorator: Google::Apis::TestingV1::TestSetup::Representation
|
||||
|
||||
property :test_timeout, as: 'testTimeout'
|
||||
end
|
||||
end
|
||||
|
||||
class ToolResultsExecution
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :execution_id, as: 'executionId'
|
||||
property :history_id, as: 'historyId'
|
||||
property :project_id, as: 'projectId'
|
||||
end
|
||||
end
|
||||
|
||||
class ToolResultsHistory
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :history_id, as: 'historyId'
|
||||
property :project_id, as: 'projectId'
|
||||
end
|
||||
end
|
||||
|
||||
class ToolResultsStep
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :execution_id, as: 'executionId'
|
||||
property :history_id, as: 'historyId'
|
||||
property :project_id, as: 'projectId'
|
||||
property :step_id, as: 'stepId'
|
||||
end
|
||||
end
|
||||
|
||||
class TrafficRule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :bandwidth, as: 'bandwidth'
|
||||
property :burst, as: 'burst'
|
||||
property :delay, as: 'delay'
|
||||
property :packet_duplication_ratio, as: 'packetDuplicationRatio'
|
||||
property :packet_loss_ratio, as: 'packetLossRatio'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,221 @@
|
||||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module TestingV1
|
||||
# Google Cloud Testing API
|
||||
#
|
||||
# Allows developers to run automated tests for their mobile applications on
|
||||
# Google infrastructure.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/testing_v1'
|
||||
#
|
||||
# Testing = Google::Apis::TestingV1 # Alias the module
|
||||
# service = Testing::TestingService.new
|
||||
#
|
||||
# @see https://developers.google.com/cloud-test-lab/
|
||||
class TestingService < 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
|
||||
|
||||
def initialize
|
||||
super('https://testing.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Cancels unfinished test executions in a test matrix.
|
||||
# This call returns immediately and cancellation proceeds asychronously.
|
||||
# If the matrix is already final, this operation will have no effect.
|
||||
# May return any of the following canonical error codes:
|
||||
# - PERMISSION_DENIED - if the user is not authorized to read project
|
||||
# - INVALID_ARGUMENT - if the request is malformed
|
||||
# - NOT_FOUND - if the Test Matrix does not exist
|
||||
# @param [String] project_id
|
||||
# Cloud project that owns the test.
|
||||
# @param [String] test_matrix_id
|
||||
# Test matrix that will be canceled.
|
||||
# @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::TestingV1::CancelTestMatrixResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::TestingV1::CancelTestMatrixResponse]
|
||||
#
|
||||
# @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 cancel_project_test_matrix(project_id, test_matrix_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/testMatrices/{testMatrixId}:cancel', options)
|
||||
command.response_representation = Google::Apis::TestingV1::CancelTestMatrixResponse::Representation
|
||||
command.response_class = Google::Apis::TestingV1::CancelTestMatrixResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['testMatrixId'] = test_matrix_id unless test_matrix_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
|
||||
|
||||
# Request to run a matrix of tests according to the given specifications.
|
||||
# Unsupported environments will be returned in the state UNSUPPORTED.
|
||||
# Matrices are limited to at most 200 supported executions.
|
||||
# May return any of the following canonical error codes:
|
||||
# - PERMISSION_DENIED - if the user is not authorized to write to project
|
||||
# - INVALID_ARGUMENT - if the request is malformed or if the matrix expands
|
||||
# to more than 200 supported executions
|
||||
# @param [String] project_id
|
||||
# The GCE project under which this job will run.
|
||||
# @param [Google::Apis::TestingV1::TestMatrix] test_matrix_object
|
||||
# @param [String] request_id
|
||||
# A string id used to detect duplicated requests.
|
||||
# Ids are automatically scoped to a project, so
|
||||
# users should ensure the ID is unique per-project.
|
||||
# A UUID is recommended.
|
||||
# Optional, but strongly recommended.
|
||||
# @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::TestingV1::TestMatrix] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::TestingV1::TestMatrix]
|
||||
#
|
||||
# @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 create_project_test_matrix(project_id, test_matrix_object = nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/testMatrices', options)
|
||||
command.request_representation = Google::Apis::TestingV1::TestMatrix::Representation
|
||||
command.request_object = test_matrix_object
|
||||
command.response_representation = Google::Apis::TestingV1::TestMatrix::Representation
|
||||
command.response_class = Google::Apis::TestingV1::TestMatrix
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['requestId'] = request_id unless request_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
|
||||
|
||||
# Check the status of a test matrix.
|
||||
# May return any of the following canonical error codes:
|
||||
# - PERMISSION_DENIED - if the user is not authorized to read project
|
||||
# - INVALID_ARGUMENT - if the request is malformed
|
||||
# - NOT_FOUND - if the Test Matrix does not exist
|
||||
# @param [String] project_id
|
||||
# Cloud project that owns the test matrix.
|
||||
# @param [String] test_matrix_id
|
||||
# Unique test matrix id which was assigned by the service.
|
||||
# @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::TestingV1::TestMatrix] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::TestingV1::TestMatrix]
|
||||
#
|
||||
# @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_project_test_matrix(project_id, test_matrix_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/testMatrices/{testMatrixId}', options)
|
||||
command.response_representation = Google::Apis::TestingV1::TestMatrix::Representation
|
||||
command.response_class = Google::Apis::TestingV1::TestMatrix
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['testMatrixId'] = test_matrix_id unless test_matrix_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
|
||||
|
||||
# Get the catalog of supported test environments.
|
||||
# May return any of the following canonical error codes:
|
||||
# - INVALID_ARGUMENT - if the request is malformed
|
||||
# - NOT_FOUND - if the environment type does not exist
|
||||
# - INTERNAL - if an internal error occurred
|
||||
# @param [String] environment_type
|
||||
# The type of environment that should be listed.
|
||||
# Required
|
||||
# @param [String] project_id
|
||||
# For authorization, the cloud project requesting the TestEnvironmentCatalog.
|
||||
# Optional
|
||||
# @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::TestingV1::TestEnvironmentCatalog] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::TestingV1::TestEnvironmentCatalog]
|
||||
#
|
||||
# @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_test_environment_catalog(environment_type, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/testEnvironmentCatalog/{environmentType}', options)
|
||||
command.response_representation = Google::Apis::TestingV1::TestEnvironmentCatalog::Representation
|
||||
command.response_class = Google::Apis::TestingV1::TestEnvironmentCatalog
|
||||
command.params['environmentType'] = environment_type unless environment_type.nil?
|
||||
command.query['projectId'] = project_id unless project_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
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://firebase.google.com/docs/test-lab/
|
||||
module ToolresultsV1beta3
|
||||
VERSION = 'V1beta3'
|
||||
REVISION = '20170906'
|
||||
REVISION = '20170911'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -50,7 +50,7 @@ module Google
|
||||
|
||||
def initialize
|
||||
super('https://www.googleapis.com/', 'toolresults/v1beta3/projects/')
|
||||
@batch_path = 'batch/toolresults/v1beta3'
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Gets the Tool Results settings for a project.
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://firebase.google.com/docs/test-lab/
|
||||
module ToolresultsV1beta3firstparty
|
||||
VERSION = 'V1beta3firstparty'
|
||||
REVISION = '20170906'
|
||||
REVISION = '20170911'
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -50,7 +50,7 @@ module Google
|
||||
|
||||
def initialize
|
||||
super('https://www.googleapis.com/', 'toolresults/v1beta3firstparty/projects/')
|
||||
@batch_path = 'batch/toolresults/v1beta3firstparty'
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Gets the Tool Results settings for a project.
|
||||
|
||||
@@ -50,7 +50,7 @@ module Google
|
||||
|
||||
def initialize
|
||||
super('https://www.googleapis.com/', 'youtube/partner/v1/')
|
||||
@batch_path = 'batch/youtubePartner/v1'
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Insert an asset label for an owner.
|
||||
|
||||
Reference in new issue
Block a user