Autogenerated update (2019-12-19)
Delete: - surveys_v2 Update: - binaryauthorization_v1 - firebase_v1beta1
This commit is contained in:
parent
08a9ac6bef
commit
2c3ca589fe
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/binary-authorization/
|
||||
module BinaryauthorizationV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20191206'
|
||||
REVISION = '20191213'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
# 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/cloudbuild_v1alpha1/service.rb'
|
||||
require 'google/apis/cloudbuild_v1alpha1/classes.rb'
|
||||
require 'google/apis/cloudbuild_v1alpha1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Cloud Build API
|
||||
#
|
||||
# Creates and manages builds on Google Cloud Platform.
|
||||
#
|
||||
# @see https://cloud.google.com/cloud-build/docs/
|
||||
module CloudbuildV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20191212'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,435 @@
|
|||
# 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 CloudbuildV1alpha1
|
||||
|
||||
class ArtifactObjects
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ArtifactResult
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Artifacts
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Build
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BuildOperationMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BuildOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BuildStep
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BuiltImage
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Empty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FileHashes
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HashProp
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListWorkerPoolsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Network
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RepoSource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Results
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Secret
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Source
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SourceProvenance
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class StorageSource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TimeSpan
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Volume
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class WorkerConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class WorkerPool
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ArtifactObjects
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :location, as: 'location'
|
||||
collection :paths, as: 'paths'
|
||||
property :timing, as: 'timing', class: Google::Apis::CloudbuildV1alpha1::TimeSpan, decorator: Google::Apis::CloudbuildV1alpha1::TimeSpan::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ArtifactResult
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1alpha1::FileHashes, decorator: Google::Apis::CloudbuildV1alpha1::FileHashes::Representation
|
||||
|
||||
property :location, as: 'location'
|
||||
end
|
||||
end
|
||||
|
||||
class Artifacts
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :images, as: 'images'
|
||||
property :objects, as: 'objects', class: Google::Apis::CloudbuildV1alpha1::ArtifactObjects, decorator: Google::Apis::CloudbuildV1alpha1::ArtifactObjects::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Build
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :artifacts, as: 'artifacts', class: Google::Apis::CloudbuildV1alpha1::Artifacts, decorator: Google::Apis::CloudbuildV1alpha1::Artifacts::Representation
|
||||
|
||||
property :build_trigger_id, as: 'buildTriggerId'
|
||||
property :create_time, as: 'createTime'
|
||||
property :finish_time, as: 'finishTime'
|
||||
property :id, as: 'id'
|
||||
collection :images, as: 'images'
|
||||
property :log_url, as: 'logUrl'
|
||||
property :logs_bucket, as: 'logsBucket'
|
||||
property :options, as: 'options', class: Google::Apis::CloudbuildV1alpha1::BuildOptions, decorator: Google::Apis::CloudbuildV1alpha1::BuildOptions::Representation
|
||||
|
||||
property :project_id, as: 'projectId'
|
||||
property :results, as: 'results', class: Google::Apis::CloudbuildV1alpha1::Results, decorator: Google::Apis::CloudbuildV1alpha1::Results::Representation
|
||||
|
||||
collection :secrets, as: 'secrets', class: Google::Apis::CloudbuildV1alpha1::Secret, decorator: Google::Apis::CloudbuildV1alpha1::Secret::Representation
|
||||
|
||||
property :source, as: 'source', class: Google::Apis::CloudbuildV1alpha1::Source, decorator: Google::Apis::CloudbuildV1alpha1::Source::Representation
|
||||
|
||||
property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1alpha1::SourceProvenance, decorator: Google::Apis::CloudbuildV1alpha1::SourceProvenance::Representation
|
||||
|
||||
property :start_time, as: 'startTime'
|
||||
property :status, as: 'status'
|
||||
property :status_detail, as: 'statusDetail'
|
||||
collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1alpha1::BuildStep, decorator: Google::Apis::CloudbuildV1alpha1::BuildStep::Representation
|
||||
|
||||
hash :substitutions, as: 'substitutions'
|
||||
collection :tags, as: 'tags'
|
||||
property :timeout, as: 'timeout'
|
||||
hash :timing, as: 'timing', class: Google::Apis::CloudbuildV1alpha1::TimeSpan, decorator: Google::Apis::CloudbuildV1alpha1::TimeSpan::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class BuildOperationMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :build, as: 'build', class: Google::Apis::CloudbuildV1alpha1::Build, decorator: Google::Apis::CloudbuildV1alpha1::Build::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class BuildOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
|
||||
collection :env, as: 'env'
|
||||
property :log_streaming_option, as: 'logStreamingOption'
|
||||
property :logging, as: 'logging'
|
||||
property :machine_type, as: 'machineType'
|
||||
property :requested_verify_option, as: 'requestedVerifyOption'
|
||||
collection :secret_env, as: 'secretEnv'
|
||||
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
||||
property :substitution_option, as: 'substitutionOption'
|
||||
collection :volumes, as: 'volumes', class: Google::Apis::CloudbuildV1alpha1::Volume, decorator: Google::Apis::CloudbuildV1alpha1::Volume::Representation
|
||||
|
||||
property :worker_pool, as: 'workerPool'
|
||||
end
|
||||
end
|
||||
|
||||
class BuildStep
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :args, as: 'args'
|
||||
property :dir, as: 'dir'
|
||||
property :entrypoint, as: 'entrypoint'
|
||||
collection :env, as: 'env'
|
||||
property :id, as: 'id'
|
||||
property :name, as: 'name'
|
||||
property :pull_timing, as: 'pullTiming', class: Google::Apis::CloudbuildV1alpha1::TimeSpan, decorator: Google::Apis::CloudbuildV1alpha1::TimeSpan::Representation
|
||||
|
||||
collection :secret_env, as: 'secretEnv'
|
||||
property :status, as: 'status'
|
||||
property :timeout, as: 'timeout'
|
||||
property :timing, as: 'timing', class: Google::Apis::CloudbuildV1alpha1::TimeSpan, decorator: Google::Apis::CloudbuildV1alpha1::TimeSpan::Representation
|
||||
|
||||
collection :volumes, as: 'volumes', class: Google::Apis::CloudbuildV1alpha1::Volume, decorator: Google::Apis::CloudbuildV1alpha1::Volume::Representation
|
||||
|
||||
collection :wait_for, as: 'waitFor'
|
||||
end
|
||||
end
|
||||
|
||||
class BuiltImage
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :digest, as: 'digest'
|
||||
property :name, as: 'name'
|
||||
property :push_timing, as: 'pushTiming', class: Google::Apis::CloudbuildV1alpha1::TimeSpan, decorator: Google::Apis::CloudbuildV1alpha1::TimeSpan::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class FileHashes
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1alpha1::HashProp, decorator: Google::Apis::CloudbuildV1alpha1::HashProp::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class HashProp
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :type, as: 'type'
|
||||
property :value, :base64 => true, as: 'value'
|
||||
end
|
||||
end
|
||||
|
||||
class ListWorkerPoolsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :worker_pools, as: 'workerPools', class: Google::Apis::CloudbuildV1alpha1::WorkerPool, decorator: Google::Apis::CloudbuildV1alpha1::WorkerPool::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Network
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :network, as: 'network'
|
||||
property :project_id, as: 'projectId'
|
||||
property :subnetwork, as: 'subnetwork'
|
||||
end
|
||||
end
|
||||
|
||||
class RepoSource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :branch_name, as: 'branchName'
|
||||
property :commit_sha, as: 'commitSha'
|
||||
property :dir, as: 'dir'
|
||||
property :project_id, as: 'projectId'
|
||||
property :repo_name, as: 'repoName'
|
||||
hash :substitutions, as: 'substitutions'
|
||||
property :tag_name, as: 'tagName'
|
||||
end
|
||||
end
|
||||
|
||||
class Results
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :artifact_manifest, as: 'artifactManifest'
|
||||
property :artifact_timing, as: 'artifactTiming', class: Google::Apis::CloudbuildV1alpha1::TimeSpan, decorator: Google::Apis::CloudbuildV1alpha1::TimeSpan::Representation
|
||||
|
||||
collection :build_step_images, as: 'buildStepImages'
|
||||
collection :build_step_outputs, as: 'buildStepOutputs'
|
||||
collection :images, as: 'images', class: Google::Apis::CloudbuildV1alpha1::BuiltImage, decorator: Google::Apis::CloudbuildV1alpha1::BuiltImage::Representation
|
||||
|
||||
property :num_artifacts, :numeric_string => true, as: 'numArtifacts'
|
||||
end
|
||||
end
|
||||
|
||||
class Secret
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kms_key_name, as: 'kmsKeyName'
|
||||
hash :secret_env, as: 'secretEnv'
|
||||
end
|
||||
end
|
||||
|
||||
class Source
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1alpha1::RepoSource, decorator: Google::Apis::CloudbuildV1alpha1::RepoSource::Representation
|
||||
|
||||
property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1alpha1::StorageSource, decorator: Google::Apis::CloudbuildV1alpha1::StorageSource::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SourceProvenance
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1alpha1::FileHashes, decorator: Google::Apis::CloudbuildV1alpha1::FileHashes::Representation
|
||||
|
||||
property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1alpha1::RepoSource, decorator: Google::Apis::CloudbuildV1alpha1::RepoSource::Representation
|
||||
|
||||
property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1alpha1::StorageSource, decorator: Google::Apis::CloudbuildV1alpha1::StorageSource::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class StorageSource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :bucket, as: 'bucket'
|
||||
property :generation, :numeric_string => true, as: 'generation'
|
||||
property :object, as: 'object'
|
||||
end
|
||||
end
|
||||
|
||||
class TimeSpan
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :end_time, as: 'endTime'
|
||||
property :start_time, as: 'startTime'
|
||||
end
|
||||
end
|
||||
|
||||
class Volume
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :path, as: 'path'
|
||||
end
|
||||
end
|
||||
|
||||
class WorkerConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
|
||||
property :machine_type, as: 'machineType'
|
||||
property :network, as: 'network', class: Google::Apis::CloudbuildV1alpha1::Network, decorator: Google::Apis::CloudbuildV1alpha1::Network::Representation
|
||||
|
||||
property :tag, as: 'tag'
|
||||
end
|
||||
end
|
||||
|
||||
class WorkerPool
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :create_time, as: 'createTime'
|
||||
property :delete_time, as: 'deleteTime'
|
||||
property :name, as: 'name'
|
||||
property :project_id, as: 'projectId'
|
||||
collection :regions, as: 'regions'
|
||||
property :service_account_email, as: 'serviceAccountEmail'
|
||||
property :status, as: 'status'
|
||||
property :update_time, as: 'updateTime'
|
||||
property :worker_config, as: 'workerConfig', class: Google::Apis::CloudbuildV1alpha1::WorkerConfig, decorator: Google::Apis::CloudbuildV1alpha1::WorkerConfig::Representation
|
||||
|
||||
property :worker_count, :numeric_string => true, as: 'workerCount'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,223 @@
|
|||
# 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 CloudbuildV1alpha1
|
||||
# Cloud Build API
|
||||
#
|
||||
# Creates and manages builds on Google Cloud Platform.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/cloudbuild_v1alpha1'
|
||||
#
|
||||
# Cloudbuild = Google::Apis::CloudbuildV1alpha1 # Alias the module
|
||||
# service = Cloudbuild::CloudBuildService.new
|
||||
#
|
||||
# @see https://cloud.google.com/cloud-build/docs/
|
||||
class CloudBuildService < 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://cloudbuild.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Creates a `WorkerPool` to run the builds, and returns the new worker pool.
|
||||
# This API is experimental.
|
||||
# @param [String] parent
|
||||
# ID of the parent project.
|
||||
# @param [Google::Apis::CloudbuildV1alpha1::WorkerPool] worker_pool_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::CloudbuildV1alpha1::WorkerPool] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1alpha1::WorkerPool]
|
||||
#
|
||||
# @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_worker_pool(parent, worker_pool_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1alpha1/{+parent}/workerPools', options)
|
||||
command.request_representation = Google::Apis::CloudbuildV1alpha1::WorkerPool::Representation
|
||||
command.request_object = worker_pool_object
|
||||
command.response_representation = Google::Apis::CloudbuildV1alpha1::WorkerPool::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1alpha1::WorkerPool
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a `WorkerPool` by its project ID and WorkerPool name.
|
||||
# This API is experimental.
|
||||
# @param [String] name
|
||||
# The field will contain name of the resource requested, for example:
|
||||
# "projects/project-1/workerPools/workerpool-name"
|
||||
# @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::CloudbuildV1alpha1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1alpha1::Empty]
|
||||
#
|
||||
# @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 delete_project_worker_pool(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1alpha1::Empty::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1alpha1::Empty
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns information about a `WorkerPool`.
|
||||
# This API is experimental.
|
||||
# @param [String] name
|
||||
# The field will contain name of the resource requested, for example:
|
||||
# "projects/project-1/workerPools/workerpool-name"
|
||||
# @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::CloudbuildV1alpha1::WorkerPool] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1alpha1::WorkerPool]
|
||||
#
|
||||
# @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_worker_pool(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1alpha1::WorkerPool::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1alpha1::WorkerPool
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# List project's `WorkerPool`s.
|
||||
# This API is experimental.
|
||||
# @param [String] parent
|
||||
# ID of the parent project.
|
||||
# @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::CloudbuildV1alpha1::ListWorkerPoolsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1alpha1::ListWorkerPoolsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_worker_pools(parent, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1alpha1/{+parent}/workerPools', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1alpha1::ListWorkerPoolsResponse::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1alpha1::ListWorkerPoolsResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Update a `WorkerPool`.
|
||||
# This API is experimental.
|
||||
# @param [String] name
|
||||
# The field will contain name of the resource requested, for example:
|
||||
# "projects/project-1/workerPools/workerpool-name"
|
||||
# @param [Google::Apis::CloudbuildV1alpha1::WorkerPool] worker_pool_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::CloudbuildV1alpha1::WorkerPool] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1alpha1::WorkerPool]
|
||||
#
|
||||
# @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 patch_project_worker_pool(name, worker_pool_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
|
||||
command.request_representation = Google::Apis::CloudbuildV1alpha1::WorkerPool::Representation
|
||||
command.request_object = worker_pool_object
|
||||
command.response_representation = Google::Apis::CloudbuildV1alpha1::WorkerPool::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1alpha1::WorkerPool
|
||||
command.params['name'] = name unless name.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
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://firebase.google.com
|
||||
module FirebaseV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20191213'
|
||||
REVISION = '20191217'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -12,26 +12,20 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/surveys_v2/service.rb'
|
||||
require 'google/apis/surveys_v2/classes.rb'
|
||||
require 'google/apis/surveys_v2/representations.rb'
|
||||
require 'google/apis/prod_tt_sasportal_v1alpha1/service.rb'
|
||||
require 'google/apis/prod_tt_sasportal_v1alpha1/classes.rb'
|
||||
require 'google/apis/prod_tt_sasportal_v1alpha1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Surveys API
|
||||
# SAS Portal API (Testing)
|
||||
#
|
||||
# Creates and conducts surveys, lists the surveys that an authenticated user
|
||||
# owns, and retrieves survey results and information about specified surveys.
|
||||
#
|
||||
module SurveysV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20180508'
|
||||
|
||||
# View and manage your surveys and results
|
||||
AUTH_SURVEYS = 'https://www.googleapis.com/auth/surveys'
|
||||
|
||||
# View your surveys and survey results
|
||||
AUTH_SURVEYS_READONLY = 'https://www.googleapis.com/auth/surveys.readonly'
|
||||
#
|
||||
# @see https://developers.google.com/spectrum-access-system/
|
||||
module ProdTtSasportalV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20191217'
|
||||
|
||||
# View your email address
|
||||
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,503 @@
|
|||
# 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 ProdTtSasportalV1alpha1
|
||||
|
||||
class SasPortalAssignment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalCreateSignedDeviceRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalCustomer
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalDevice
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalDeviceAirInterface
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalDeviceConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalDeviceGrant
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalDeviceModel
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalDpaMoveList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalEmpty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalFrequencyRange
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalGenerateSecretRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalGenerateSecretResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalGetPolicyRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalInstallationParams
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalListCustomersResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalListDevicesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalListNodesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalMoveDeviceRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalMoveNodeRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalNode
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalOperation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalPolicy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalSetPolicyRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalSignDeviceRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalStatus
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalTestPermissionsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalTestPermissionsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalUpdateSignedDeviceRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalValidateInstallerRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalValidateInstallerResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalAssignment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :members, as: 'members'
|
||||
property :role, as: 'role'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalCreateSignedDeviceRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :encoded_device, :base64 => true, as: 'encodedDevice'
|
||||
property :installer_id, as: 'installerId'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalCustomer
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :display_name, as: 'displayName'
|
||||
property :name, as: 'name'
|
||||
collection :sas_user_ids, as: 'sasUserIds'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalDevice
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :active_config, as: 'activeConfig', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeviceConfig, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeviceConfig::Representation
|
||||
|
||||
property :display_name, as: 'displayName'
|
||||
property :fcc_id, as: 'fccId'
|
||||
collection :grants, as: 'grants', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeviceGrant, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeviceGrant::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
property :preloaded_config, as: 'preloadedConfig', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeviceConfig, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeviceConfig::Representation
|
||||
|
||||
property :serial_number, as: 'serialNumber'
|
||||
property :state, as: 'state'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalDeviceAirInterface
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :radio_technology, as: 'radioTechnology'
|
||||
property :supported_spec, as: 'supportedSpec'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalDeviceConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :air_interface, as: 'airInterface', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeviceAirInterface, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeviceAirInterface::Representation
|
||||
|
||||
property :call_sign, as: 'callSign'
|
||||
property :category, as: 'category'
|
||||
property :installation_params, as: 'installationParams', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalInstallationParams, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalInstallationParams::Representation
|
||||
|
||||
property :is_signed, as: 'isSigned'
|
||||
collection :measurement_capabilities, as: 'measurementCapabilities'
|
||||
property :model, as: 'model', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeviceModel, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDeviceModel::Representation
|
||||
|
||||
property :state, as: 'state'
|
||||
property :update_time, as: 'updateTime'
|
||||
property :user_id, as: 'userId'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalDeviceGrant
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :channel_type, as: 'channelType'
|
||||
property :expire_time, as: 'expireTime'
|
||||
property :frequency_range, as: 'frequencyRange', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalFrequencyRange, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalFrequencyRange::Representation
|
||||
|
||||
property :max_eirp, as: 'maxEirp'
|
||||
collection :move_list, as: 'moveList', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDpaMoveList, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDpaMoveList::Representation
|
||||
|
||||
property :state, as: 'state'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalDeviceModel
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :firmware_version, as: 'firmwareVersion'
|
||||
property :hardware_version, as: 'hardwareVersion'
|
||||
property :name, as: 'name'
|
||||
property :software_version, as: 'softwareVersion'
|
||||
property :vendor, as: 'vendor'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalDpaMoveList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :dpa_id, as: 'dpaId'
|
||||
property :frequency_range, as: 'frequencyRange', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalFrequencyRange, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalFrequencyRange::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalEmpty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalFrequencyRange
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :high_frequency_mhz, as: 'highFrequencyMhz'
|
||||
property :low_frequency_mhz, as: 'lowFrequencyMhz'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalGenerateSecretRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalGenerateSecretResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :secret, as: 'secret'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalGetPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :resource, as: 'resource'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalInstallationParams
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :antenna_azimuth, as: 'antennaAzimuth'
|
||||
property :antenna_beamwidth, as: 'antennaBeamwidth'
|
||||
property :antenna_downtilt, as: 'antennaDowntilt'
|
||||
property :antenna_gain, as: 'antennaGain'
|
||||
property :antenna_model, as: 'antennaModel'
|
||||
property :eirp_capability, as: 'eirpCapability'
|
||||
property :height, as: 'height'
|
||||
property :height_type, as: 'heightType'
|
||||
property :horizontal_accuracy, as: 'horizontalAccuracy'
|
||||
property :indoor_deployment, as: 'indoorDeployment'
|
||||
property :latitude, as: 'latitude'
|
||||
property :longitude, as: 'longitude'
|
||||
property :vertical_accuracy, as: 'verticalAccuracy'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalListCustomersResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :customers, as: 'customers', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalCustomer, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalCustomer::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalListDevicesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :devices, as: 'devices', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalListNodesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :nodes, as: 'nodes', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalNode::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalMoveDeviceRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :destination, as: 'destination'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalMoveNodeRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :destination, as: 'destination'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalNode
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :display_name, as: 'displayName'
|
||||
property :name, as: 'name'
|
||||
collection :sas_user_ids, as: 'sasUserIds'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalOperation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :done, as: 'done'
|
||||
property :error, as: 'error', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalStatus, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalStatus::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
hash :response, as: 'response'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalPolicy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :assignments, as: 'assignments', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalAssignment, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalAssignment::Representation
|
||||
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalSetPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :policy, as: 'policy', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalPolicy, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalPolicy::Representation
|
||||
|
||||
property :resource, as: 'resource'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalSignDeviceRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :device, as: 'device', class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice, decorator: Google::Apis::ProdTtSasportalV1alpha1::SasPortalDevice::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalStatus
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :details, as: 'details'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalTestPermissionsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
property :resource, as: 'resource'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalTestPermissionsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalUpdateSignedDeviceRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :encoded_device, :base64 => true, as: 'encodedDevice'
|
||||
property :installer_id, as: 'installerId'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalValidateInstallerRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :encoded_secret, as: 'encodedSecret'
|
||||
property :installer_id, as: 'installerId'
|
||||
property :secret, as: 'secret'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalValidateInstallerResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,34 @@
|
|||
# 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/sasportal_v1alpha1/service.rb'
|
||||
require 'google/apis/sasportal_v1alpha1/classes.rb'
|
||||
require 'google/apis/sasportal_v1alpha1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# SAS Portal API
|
||||
#
|
||||
#
|
||||
#
|
||||
# @see https://developers.google.com/spectrum-access-system/
|
||||
module SasportalV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20191217'
|
||||
|
||||
# View your email address
|
||||
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,503 @@
|
|||
# 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 SasportalV1alpha1
|
||||
|
||||
class SasPortalAssignment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalCreateSignedDeviceRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalCustomer
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalDevice
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalDeviceAirInterface
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalDeviceConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalDeviceGrant
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalDeviceModel
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalDpaMoveList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalEmpty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalFrequencyRange
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalGenerateSecretRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalGenerateSecretResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalGetPolicyRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalInstallationParams
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalListCustomersResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalListDevicesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalListNodesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalMoveDeviceRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalMoveNodeRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalNode
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalOperation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalPolicy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalSetPolicyRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalSignDeviceRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalStatus
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalTestPermissionsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalTestPermissionsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalUpdateSignedDeviceRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalValidateInstallerRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalValidateInstallerResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SasPortalAssignment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :members, as: 'members'
|
||||
property :role, as: 'role'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalCreateSignedDeviceRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :encoded_device, :base64 => true, as: 'encodedDevice'
|
||||
property :installer_id, as: 'installerId'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalCustomer
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :display_name, as: 'displayName'
|
||||
property :name, as: 'name'
|
||||
collection :sas_user_ids, as: 'sasUserIds'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalDevice
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :active_config, as: 'activeConfig', class: Google::Apis::SasportalV1alpha1::SasPortalDeviceConfig, decorator: Google::Apis::SasportalV1alpha1::SasPortalDeviceConfig::Representation
|
||||
|
||||
property :display_name, as: 'displayName'
|
||||
property :fcc_id, as: 'fccId'
|
||||
collection :grants, as: 'grants', class: Google::Apis::SasportalV1alpha1::SasPortalDeviceGrant, decorator: Google::Apis::SasportalV1alpha1::SasPortalDeviceGrant::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
property :preloaded_config, as: 'preloadedConfig', class: Google::Apis::SasportalV1alpha1::SasPortalDeviceConfig, decorator: Google::Apis::SasportalV1alpha1::SasPortalDeviceConfig::Representation
|
||||
|
||||
property :serial_number, as: 'serialNumber'
|
||||
property :state, as: 'state'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalDeviceAirInterface
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :radio_technology, as: 'radioTechnology'
|
||||
property :supported_spec, as: 'supportedSpec'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalDeviceConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :air_interface, as: 'airInterface', class: Google::Apis::SasportalV1alpha1::SasPortalDeviceAirInterface, decorator: Google::Apis::SasportalV1alpha1::SasPortalDeviceAirInterface::Representation
|
||||
|
||||
property :call_sign, as: 'callSign'
|
||||
property :category, as: 'category'
|
||||
property :installation_params, as: 'installationParams', class: Google::Apis::SasportalV1alpha1::SasPortalInstallationParams, decorator: Google::Apis::SasportalV1alpha1::SasPortalInstallationParams::Representation
|
||||
|
||||
property :is_signed, as: 'isSigned'
|
||||
collection :measurement_capabilities, as: 'measurementCapabilities'
|
||||
property :model, as: 'model', class: Google::Apis::SasportalV1alpha1::SasPortalDeviceModel, decorator: Google::Apis::SasportalV1alpha1::SasPortalDeviceModel::Representation
|
||||
|
||||
property :state, as: 'state'
|
||||
property :update_time, as: 'updateTime'
|
||||
property :user_id, as: 'userId'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalDeviceGrant
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :channel_type, as: 'channelType'
|
||||
property :expire_time, as: 'expireTime'
|
||||
property :frequency_range, as: 'frequencyRange', class: Google::Apis::SasportalV1alpha1::SasPortalFrequencyRange, decorator: Google::Apis::SasportalV1alpha1::SasPortalFrequencyRange::Representation
|
||||
|
||||
property :max_eirp, as: 'maxEirp'
|
||||
collection :move_list, as: 'moveList', class: Google::Apis::SasportalV1alpha1::SasPortalDpaMoveList, decorator: Google::Apis::SasportalV1alpha1::SasPortalDpaMoveList::Representation
|
||||
|
||||
property :state, as: 'state'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalDeviceModel
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :firmware_version, as: 'firmwareVersion'
|
||||
property :hardware_version, as: 'hardwareVersion'
|
||||
property :name, as: 'name'
|
||||
property :software_version, as: 'softwareVersion'
|
||||
property :vendor, as: 'vendor'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalDpaMoveList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :dpa_id, as: 'dpaId'
|
||||
property :frequency_range, as: 'frequencyRange', class: Google::Apis::SasportalV1alpha1::SasPortalFrequencyRange, decorator: Google::Apis::SasportalV1alpha1::SasPortalFrequencyRange::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalEmpty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalFrequencyRange
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :high_frequency_mhz, as: 'highFrequencyMhz'
|
||||
property :low_frequency_mhz, as: 'lowFrequencyMhz'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalGenerateSecretRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalGenerateSecretResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :secret, as: 'secret'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalGetPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :resource, as: 'resource'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalInstallationParams
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :antenna_azimuth, as: 'antennaAzimuth'
|
||||
property :antenna_beamwidth, as: 'antennaBeamwidth'
|
||||
property :antenna_downtilt, as: 'antennaDowntilt'
|
||||
property :antenna_gain, as: 'antennaGain'
|
||||
property :antenna_model, as: 'antennaModel'
|
||||
property :eirp_capability, as: 'eirpCapability'
|
||||
property :height, as: 'height'
|
||||
property :height_type, as: 'heightType'
|
||||
property :horizontal_accuracy, as: 'horizontalAccuracy'
|
||||
property :indoor_deployment, as: 'indoorDeployment'
|
||||
property :latitude, as: 'latitude'
|
||||
property :longitude, as: 'longitude'
|
||||
property :vertical_accuracy, as: 'verticalAccuracy'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalListCustomersResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :customers, as: 'customers', class: Google::Apis::SasportalV1alpha1::SasPortalCustomer, decorator: Google::Apis::SasportalV1alpha1::SasPortalCustomer::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalListDevicesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :devices, as: 'devices', class: Google::Apis::SasportalV1alpha1::SasPortalDevice, decorator: Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalListNodesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :nodes, as: 'nodes', class: Google::Apis::SasportalV1alpha1::SasPortalNode, decorator: Google::Apis::SasportalV1alpha1::SasPortalNode::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalMoveDeviceRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :destination, as: 'destination'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalMoveNodeRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :destination, as: 'destination'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalNode
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :display_name, as: 'displayName'
|
||||
property :name, as: 'name'
|
||||
collection :sas_user_ids, as: 'sasUserIds'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalOperation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :done, as: 'done'
|
||||
property :error, as: 'error', class: Google::Apis::SasportalV1alpha1::SasPortalStatus, decorator: Google::Apis::SasportalV1alpha1::SasPortalStatus::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
hash :response, as: 'response'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalPolicy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :assignments, as: 'assignments', class: Google::Apis::SasportalV1alpha1::SasPortalAssignment, decorator: Google::Apis::SasportalV1alpha1::SasPortalAssignment::Representation
|
||||
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalSetPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :policy, as: 'policy', class: Google::Apis::SasportalV1alpha1::SasPortalPolicy, decorator: Google::Apis::SasportalV1alpha1::SasPortalPolicy::Representation
|
||||
|
||||
property :resource, as: 'resource'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalSignDeviceRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :device, as: 'device', class: Google::Apis::SasportalV1alpha1::SasPortalDevice, decorator: Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalStatus
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :details, as: 'details'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalTestPermissionsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
property :resource, as: 'resource'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalTestPermissionsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalUpdateSignedDeviceRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :encoded_device, :base64 => true, as: 'encodedDevice'
|
||||
property :installer_id, as: 'installerId'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalValidateInstallerRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :encoded_secret, as: 'encodedSecret'
|
||||
property :installer_id, as: 'installerId'
|
||||
property :secret, as: 'secret'
|
||||
end
|
||||
end
|
||||
|
||||
class SasPortalValidateInstallerResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because it is too large
Load Diff
|
@ -1,691 +0,0 @@
|
|||
# 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 SurveysV2
|
||||
|
||||
#
|
||||
class FieldMask
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `fields`
|
||||
# @return [Array<Google::Apis::SurveysV2::FieldMask>]
|
||||
attr_accessor :fields
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@fields = args[:fields] if args.key?(:fields)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class PageInfo
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `resultPerPage`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :result_per_page
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `startIndex`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :start_index
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `totalResults`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :total_results
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@result_per_page = args[:result_per_page] if args.key?(:result_per_page)
|
||||
@start_index = args[:start_index] if args.key?(:start_index)
|
||||
@total_results = args[:total_results] if args.key?(:total_results)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class ResultsGetRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `resultMask`
|
||||
# @return [Google::Apis::SurveysV2::ResultsMask]
|
||||
attr_accessor :result_mask
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@result_mask = args[:result_mask] if args.key?(:result_mask)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class ResultsMask
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `fields`
|
||||
# @return [Array<Google::Apis::SurveysV2::FieldMask>]
|
||||
attr_accessor :fields
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `projection`
|
||||
# @return [String]
|
||||
attr_accessor :projection
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@fields = args[:fields] if args.key?(:fields)
|
||||
@projection = args[:projection] if args.key?(:projection)
|
||||
end
|
||||
end
|
||||
|
||||
# Representation of an individual survey object.
|
||||
class Survey
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Specifications for the target audience of a survey run through the API.
|
||||
# Corresponds to the JSON property `audience`
|
||||
# @return [Google::Apis::SurveysV2::SurveyAudience]
|
||||
attr_accessor :audience
|
||||
|
||||
# Message defining the cost to run a given survey through API.
|
||||
# Corresponds to the JSON property `cost`
|
||||
# @return [Google::Apis::SurveysV2::SurveyCost]
|
||||
attr_accessor :cost
|
||||
|
||||
# Additional information to store on behalf of the API consumer and associate
|
||||
# with this question. This binary blob is treated as opaque. This field is
|
||||
# limited to 64K bytes.
|
||||
# Corresponds to the JSON property `customerData`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :customer_data
|
||||
|
||||
# Text description of the survey.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# List of email addresses for survey owners. Must contain at least the address
|
||||
# of the user making the API call.
|
||||
# Corresponds to the JSON property `owners`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :owners
|
||||
|
||||
# List of questions defining the survey.
|
||||
# Corresponds to the JSON property `questions`
|
||||
# @return [Array<Google::Apis::SurveysV2::SurveyQuestion>]
|
||||
attr_accessor :questions
|
||||
|
||||
# Message representing why the survey was rejected from review, if it was.
|
||||
# Corresponds to the JSON property `rejectionReason`
|
||||
# @return [Google::Apis::SurveysV2::SurveyRejection]
|
||||
attr_accessor :rejection_reason
|
||||
|
||||
# State that the survey is in.
|
||||
# Corresponds to the JSON property `state`
|
||||
# @return [String]
|
||||
attr_accessor :state
|
||||
|
||||
# Unique survey ID, that is viewable in the URL of the Survey Creator UI
|
||||
# Corresponds to the JSON property `surveyUrlId`
|
||||
# @return [String]
|
||||
attr_accessor :survey_url_id
|
||||
|
||||
# Optional name that will be given to the survey.
|
||||
# Corresponds to the JSON property `title`
|
||||
# @return [String]
|
||||
attr_accessor :title
|
||||
|
||||
# Number of responses desired for the survey.
|
||||
# Corresponds to the JSON property `wantedResponseCount`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :wanted_response_count
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@audience = args[:audience] if args.key?(:audience)
|
||||
@cost = args[:cost] if args.key?(:cost)
|
||||
@customer_data = args[:customer_data] if args.key?(:customer_data)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@owners = args[:owners] if args.key?(:owners)
|
||||
@questions = args[:questions] if args.key?(:questions)
|
||||
@rejection_reason = args[:rejection_reason] if args.key?(:rejection_reason)
|
||||
@state = args[:state] if args.key?(:state)
|
||||
@survey_url_id = args[:survey_url_id] if args.key?(:survey_url_id)
|
||||
@title = args[:title] if args.key?(:title)
|
||||
@wanted_response_count = args[:wanted_response_count] if args.key?(:wanted_response_count)
|
||||
end
|
||||
end
|
||||
|
||||
# Specifications for the target audience of a survey run through the API.
|
||||
class SurveyAudience
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Optional list of age buckets to target. Supported age buckets are: ['18-24', '
|
||||
# 25-34', '35-44', '45-54', '55-64', '65+']
|
||||
# Corresponds to the JSON property `ages`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :ages
|
||||
|
||||
# Required country code that surveys should be targeted to. Accepts standard ISO
|
||||
# 3166-1 2 character language codes. For instance, 'US' for the United States,
|
||||
# and 'GB' for the United Kingdom.
|
||||
# Corresponds to the JSON property `country`
|
||||
# @return [String]
|
||||
attr_accessor :country
|
||||
|
||||
# Country subdivision (states/provinces/etc) that surveys should be targeted to.
|
||||
# For all countries except GB, ISO-3166-2 subdivision code is required (eg. 'US-
|
||||
# OH' for Ohio, United States). For GB, NUTS 1 statistical region codes for the
|
||||
# United Kingdom is required (eg. 'UK-UKC' for North East England).
|
||||
# Corresponds to the JSON property `countrySubdivision`
|
||||
# @return [String]
|
||||
attr_accessor :country_subdivision
|
||||
|
||||
# Optional gender to target.
|
||||
# Corresponds to the JSON property `gender`
|
||||
# @return [String]
|
||||
attr_accessor :gender
|
||||
|
||||
# Language code that surveys should be targeted to. For instance, 'en-US'.
|
||||
# Surveys may target bilingual users by specifying a list of language codes (for
|
||||
# example, 'de' and 'en-US'). In that case, all languages will be used for
|
||||
# targeting users but the survey content (which is displayed) must match the
|
||||
# first language listed. Accepts standard BCP47 language codes. See
|
||||
# specification.
|
||||
# Corresponds to the JSON property `languages`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :languages
|
||||
|
||||
# Online population source where the respondents are sampled from.
|
||||
# Corresponds to the JSON property `populationSource`
|
||||
# @return [String]
|
||||
attr_accessor :population_source
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@ages = args[:ages] if args.key?(:ages)
|
||||
@country = args[:country] if args.key?(:country)
|
||||
@country_subdivision = args[:country_subdivision] if args.key?(:country_subdivision)
|
||||
@gender = args[:gender] if args.key?(:gender)
|
||||
@languages = args[:languages] if args.key?(:languages)
|
||||
@population_source = args[:population_source] if args.key?(:population_source)
|
||||
end
|
||||
end
|
||||
|
||||
# Message defining the cost to run a given survey through API.
|
||||
class SurveyCost
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Cost per survey response in nano units of the given currency. To get the total
|
||||
# cost for a survey, multiply this value by wanted_response_count.
|
||||
# Corresponds to the JSON property `costPerResponseNanos`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :cost_per_response_nanos
|
||||
|
||||
# Currency code that the cost is given in.
|
||||
# Corresponds to the JSON property `currencyCode`
|
||||
# @return [String]
|
||||
attr_accessor :currency_code
|
||||
|
||||
# *Deprecated* Threshold to start a survey automatically if the quoted price is
|
||||
# at most this value. When a survey has a Screener (threshold) question, it must
|
||||
# go through an incidence pricing test to determine the final cost per response.
|
||||
# Typically you will have to make a followup call to start the survey giving the
|
||||
# final computed cost per response. If the survey has no threshold_answers,
|
||||
# setting this property will return an error. By specifying this property, you
|
||||
# indicate the max price per response you are willing to pay in advance of the
|
||||
# incidence test. If the price turns out to be lower than the specified value,
|
||||
# the survey will begin immediately and you will be charged at the rate
|
||||
# determined by the incidence pricing test. If the price turns out to be greater
|
||||
# than the specified value the survey will not be started and you will instead
|
||||
# be notified what price was determined by the incidence test. At that point,
|
||||
# you must raise the value of this property to be greater than or equal to that
|
||||
# cost before attempting to start the survey again. This will immediately start
|
||||
# the survey as long the incidence test was run within the last 21 days. This
|
||||
# will no longer be available after June 2018.
|
||||
# Corresponds to the JSON property `maxCostPerResponseNanos`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :max_cost_per_response_nanos
|
||||
|
||||
# Cost of survey in nano units of the given currency. DEPRECATED in favor of
|
||||
# cost_per_response_nanos
|
||||
# Corresponds to the JSON property `nanos`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :nanos
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@cost_per_response_nanos = args[:cost_per_response_nanos] if args.key?(:cost_per_response_nanos)
|
||||
@currency_code = args[:currency_code] if args.key?(:currency_code)
|
||||
@max_cost_per_response_nanos = args[:max_cost_per_response_nanos] if args.key?(:max_cost_per_response_nanos)
|
||||
@nanos = args[:nanos] if args.key?(:nanos)
|
||||
end
|
||||
end
|
||||
|
||||
# Message defining the question specifications.
|
||||
class SurveyQuestion
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The randomization option for multiple choice and multi-select questions. If
|
||||
# not specified, this option defaults to randomize.
|
||||
# Corresponds to the JSON property `answerOrder`
|
||||
# @return [String]
|
||||
attr_accessor :answer_order
|
||||
|
||||
# Required list of answer options for a question.
|
||||
# Corresponds to the JSON property `answers`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :answers
|
||||
|
||||
# Option to allow open-ended text box for Single Answer and Multiple Answer
|
||||
# question types. This can be used with SINGLE_ANSWER, SINGLE_ANSWER_WITH_IMAGE,
|
||||
# MULTIPLE_ANSWERS, and MULTIPLE_ANSWERS_WITH_IMAGE question types.
|
||||
# Corresponds to the JSON property `hasOther`
|
||||
# @return [Boolean]
|
||||
attr_accessor :has_other
|
||||
alias_method :has_other?, :has_other
|
||||
|
||||
# For rating questions, the text for the higher end of the scale, such as 'Best'.
|
||||
# For numeric questions, a string representing a floating-point that is the
|
||||
# maximum allowed number for a response.
|
||||
# Corresponds to the JSON property `highValueLabel`
|
||||
# @return [String]
|
||||
attr_accessor :high_value_label
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `images`
|
||||
# @return [Array<Google::Apis::SurveysV2::SurveyQuestionImage>]
|
||||
attr_accessor :images
|
||||
|
||||
# Currently only support pinning an answer option to the last position.
|
||||
# Corresponds to the JSON property `lastAnswerPositionPinned`
|
||||
# @return [Boolean]
|
||||
attr_accessor :last_answer_position_pinned
|
||||
alias_method :last_answer_position_pinned?, :last_answer_position_pinned
|
||||
|
||||
# For rating questions, the text for the lower end of the scale, such as 'Worst'.
|
||||
# For numeric questions, a string representing a floating-point that is the
|
||||
# minimum allowed number for a response.
|
||||
# Corresponds to the JSON property `lowValueLabel`
|
||||
# @return [String]
|
||||
attr_accessor :low_value_label
|
||||
|
||||
# Option to force the user to pick one of the open text suggestions. This
|
||||
# requires that suggestions are provided for this question.
|
||||
# Corresponds to the JSON property `mustPickSuggestion`
|
||||
# @return [Boolean]
|
||||
attr_accessor :must_pick_suggestion
|
||||
alias_method :must_pick_suggestion?, :must_pick_suggestion
|
||||
|
||||
# Number of stars to use for ratings questions.
|
||||
# Corresponds to the JSON property `numStars`
|
||||
# @return [String]
|
||||
attr_accessor :num_stars
|
||||
|
||||
# Placeholder text for an open text question.
|
||||
# Corresponds to the JSON property `openTextPlaceholder`
|
||||
# @return [String]
|
||||
attr_accessor :open_text_placeholder
|
||||
|
||||
# A list of suggested answers for open text question auto-complete. This is only
|
||||
# valid if single_line_response is true.
|
||||
# Corresponds to the JSON property `openTextSuggestions`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :open_text_suggestions
|
||||
|
||||
# Required question text shown to the respondent.
|
||||
# Corresponds to the JSON property `question`
|
||||
# @return [String]
|
||||
attr_accessor :question
|
||||
|
||||
# Used by the Rating Scale with Text question type. This text goes along with
|
||||
# the question field that is presented to the respondent, and is the actual text
|
||||
# that the respondent is asked to rate.
|
||||
# Corresponds to the JSON property `sentimentText`
|
||||
# @return [String]
|
||||
attr_accessor :sentiment_text
|
||||
|
||||
# Option to allow multiple line open text responses instead of a single line
|
||||
# response. Note that we don't show auto-complete suggestions with multiple line
|
||||
# responses.
|
||||
# Corresponds to the JSON property `singleLineResponse`
|
||||
# @return [Boolean]
|
||||
attr_accessor :single_line_response
|
||||
alias_method :single_line_response?, :single_line_response
|
||||
|
||||
# The threshold/screener answer options, which will screen a user into the rest
|
||||
# of the survey. These will be a subset of the answer option strings.
|
||||
# Corresponds to the JSON property `thresholdAnswers`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :threshold_answers
|
||||
|
||||
# Required field defining the question type. For details about configuring
|
||||
# different type of questions, consult the question configuration guide.
|
||||
# Corresponds to the JSON property `type`
|
||||
# @return [String]
|
||||
attr_accessor :type
|
||||
|
||||
# Optional unit of measurement for display (for example: hours, people, miles).
|
||||
# Corresponds to the JSON property `unitOfMeasurementLabel`
|
||||
# @return [String]
|
||||
attr_accessor :unit_of_measurement_label
|
||||
|
||||
# The YouTube video ID to be show in video questions.
|
||||
# Corresponds to the JSON property `videoId`
|
||||
# @return [String]
|
||||
attr_accessor :video_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@answer_order = args[:answer_order] if args.key?(:answer_order)
|
||||
@answers = args[:answers] if args.key?(:answers)
|
||||
@has_other = args[:has_other] if args.key?(:has_other)
|
||||
@high_value_label = args[:high_value_label] if args.key?(:high_value_label)
|
||||
@images = args[:images] if args.key?(:images)
|
||||
@last_answer_position_pinned = args[:last_answer_position_pinned] if args.key?(:last_answer_position_pinned)
|
||||
@low_value_label = args[:low_value_label] if args.key?(:low_value_label)
|
||||
@must_pick_suggestion = args[:must_pick_suggestion] if args.key?(:must_pick_suggestion)
|
||||
@num_stars = args[:num_stars] if args.key?(:num_stars)
|
||||
@open_text_placeholder = args[:open_text_placeholder] if args.key?(:open_text_placeholder)
|
||||
@open_text_suggestions = args[:open_text_suggestions] if args.key?(:open_text_suggestions)
|
||||
@question = args[:question] if args.key?(:question)
|
||||
@sentiment_text = args[:sentiment_text] if args.key?(:sentiment_text)
|
||||
@single_line_response = args[:single_line_response] if args.key?(:single_line_response)
|
||||
@threshold_answers = args[:threshold_answers] if args.key?(:threshold_answers)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
@unit_of_measurement_label = args[:unit_of_measurement_label] if args.key?(:unit_of_measurement_label)
|
||||
@video_id = args[:video_id] if args.key?(:video_id)
|
||||
end
|
||||
end
|
||||
|
||||
# Container object for image data and alt_text.
|
||||
class SurveyQuestionImage
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The alt text property used in image tags is required for all images.
|
||||
# Corresponds to the JSON property `altText`
|
||||
# @return [String]
|
||||
attr_accessor :alt_text
|
||||
|
||||
# Inline jpeg, gif, tiff, bmp, or png image raw bytes for an image question
|
||||
# types.
|
||||
# Corresponds to the JSON property `data`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :data
|
||||
|
||||
# The read-only URL for the hosted images.
|
||||
# Corresponds to the JSON property `url`
|
||||
# @return [String]
|
||||
attr_accessor :url
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@alt_text = args[:alt_text] if args.key?(:alt_text)
|
||||
@data = args[:data] if args.key?(:data)
|
||||
@url = args[:url] if args.key?(:url)
|
||||
end
|
||||
end
|
||||
|
||||
# Message representing why the survey was rejected from review, if it was.
|
||||
class SurveyRejection
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A human-readable explanation of what was wrong with the survey.
|
||||
# Corresponds to the JSON property `explanation`
|
||||
# @return [String]
|
||||
attr_accessor :explanation
|
||||
|
||||
# Which category of rejection this was. See the Google Surveys Help Center for
|
||||
# additional details on each category.
|
||||
# Corresponds to the JSON property `type`
|
||||
# @return [String]
|
||||
attr_accessor :type
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@explanation = args[:explanation] if args.key?(:explanation)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
end
|
||||
end
|
||||
|
||||
# Reference to the current results for a given survey.
|
||||
class SurveyResults
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Human readable string describing the status of the request.
|
||||
# Corresponds to the JSON property `status`
|
||||
# @return [String]
|
||||
attr_accessor :status
|
||||
|
||||
# External survey ID as viewable by survey owners in the editor view.
|
||||
# Corresponds to the JSON property `surveyUrlId`
|
||||
# @return [String]
|
||||
attr_accessor :survey_url_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@survey_url_id = args[:survey_url_id] if args.key?(:survey_url_id)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class SurveysDeleteResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Unique request ID used for logging and debugging. Please include in any error
|
||||
# reporting or troubleshooting requests.
|
||||
# Corresponds to the JSON property `requestId`
|
||||
# @return [String]
|
||||
attr_accessor :request_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@request_id = args[:request_id] if args.key?(:request_id)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class SurveysListResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `pageInfo`
|
||||
# @return [Google::Apis::SurveysV2::PageInfo]
|
||||
attr_accessor :page_info
|
||||
|
||||
# Unique request ID used for logging and debugging. Please include in any error
|
||||
# reporting or troubleshooting requests.
|
||||
# Corresponds to the JSON property `requestId`
|
||||
# @return [String]
|
||||
attr_accessor :request_id
|
||||
|
||||
# An individual survey resource.
|
||||
# Corresponds to the JSON property `resources`
|
||||
# @return [Array<Google::Apis::SurveysV2::Survey>]
|
||||
attr_accessor :resources
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `tokenPagination`
|
||||
# @return [Google::Apis::SurveysV2::TokenPagination]
|
||||
attr_accessor :token_pagination
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@page_info = args[:page_info] if args.key?(:page_info)
|
||||
@request_id = args[:request_id] if args.key?(:request_id)
|
||||
@resources = args[:resources] if args.key?(:resources)
|
||||
@token_pagination = args[:token_pagination] if args.key?(:token_pagination)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class SurveysStartRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# *Deprecated* Threshold to start a survey automatically if the quoted prices is
|
||||
# less than or equal to this value. See Survey.Cost for more details. This will
|
||||
# no longer be available after June 2018.
|
||||
# Corresponds to the JSON property `maxCostPerResponseNanos`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :max_cost_per_response_nanos
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@max_cost_per_response_nanos = args[:max_cost_per_response_nanos] if args.key?(:max_cost_per_response_nanos)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class SurveysStartResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Unique request ID used for logging and debugging. Please include in any error
|
||||
# reporting or troubleshooting requests.
|
||||
# Corresponds to the JSON property `requestId`
|
||||
# @return [String]
|
||||
attr_accessor :request_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@request_id = args[:request_id] if args.key?(:request_id)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class SurveysStopResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Unique request ID used for logging and debugging. Please include in any error
|
||||
# reporting or troubleshooting requests.
|
||||
# Corresponds to the JSON property `requestId`
|
||||
# @return [String]
|
||||
attr_accessor :request_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@request_id = args[:request_id] if args.key?(:request_id)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class TokenPagination
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `previousPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :previous_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@previous_page_token = args[:previous_page_token] if args.key?(:previous_page_token)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,305 +0,0 @@
|
|||
# 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 SurveysV2
|
||||
|
||||
class FieldMask
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PageInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ResultsGetRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ResultsMask
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Survey
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SurveyAudience
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SurveyCost
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SurveyQuestion
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SurveyQuestionImage
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SurveyRejection
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SurveyResults
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SurveysDeleteResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SurveysListResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SurveysStartRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SurveysStartResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SurveysStopResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TokenPagination
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FieldMask
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :fields, as: 'fields', class: Google::Apis::SurveysV2::FieldMask, decorator: Google::Apis::SurveysV2::FieldMask::Representation
|
||||
|
||||
property :id, as: 'id'
|
||||
end
|
||||
end
|
||||
|
||||
class PageInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :result_per_page, as: 'resultPerPage'
|
||||
property :start_index, as: 'startIndex'
|
||||
property :total_results, as: 'totalResults'
|
||||
end
|
||||
end
|
||||
|
||||
class ResultsGetRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :result_mask, as: 'resultMask', class: Google::Apis::SurveysV2::ResultsMask, decorator: Google::Apis::SurveysV2::ResultsMask::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ResultsMask
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :fields, as: 'fields', class: Google::Apis::SurveysV2::FieldMask, decorator: Google::Apis::SurveysV2::FieldMask::Representation
|
||||
|
||||
property :projection, as: 'projection'
|
||||
end
|
||||
end
|
||||
|
||||
class Survey
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :audience, as: 'audience', class: Google::Apis::SurveysV2::SurveyAudience, decorator: Google::Apis::SurveysV2::SurveyAudience::Representation
|
||||
|
||||
property :cost, as: 'cost', class: Google::Apis::SurveysV2::SurveyCost, decorator: Google::Apis::SurveysV2::SurveyCost::Representation
|
||||
|
||||
property :customer_data, :base64 => true, as: 'customerData'
|
||||
property :description, as: 'description'
|
||||
collection :owners, as: 'owners'
|
||||
collection :questions, as: 'questions', class: Google::Apis::SurveysV2::SurveyQuestion, decorator: Google::Apis::SurveysV2::SurveyQuestion::Representation
|
||||
|
||||
property :rejection_reason, as: 'rejectionReason', class: Google::Apis::SurveysV2::SurveyRejection, decorator: Google::Apis::SurveysV2::SurveyRejection::Representation
|
||||
|
||||
property :state, as: 'state'
|
||||
property :survey_url_id, as: 'surveyUrlId'
|
||||
property :title, as: 'title'
|
||||
property :wanted_response_count, as: 'wantedResponseCount'
|
||||
end
|
||||
end
|
||||
|
||||
class SurveyAudience
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :ages, as: 'ages'
|
||||
property :country, as: 'country'
|
||||
property :country_subdivision, as: 'countrySubdivision'
|
||||
property :gender, as: 'gender'
|
||||
collection :languages, as: 'languages'
|
||||
property :population_source, as: 'populationSource'
|
||||
end
|
||||
end
|
||||
|
||||
class SurveyCost
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cost_per_response_nanos, :numeric_string => true, as: 'costPerResponseNanos'
|
||||
property :currency_code, as: 'currencyCode'
|
||||
property :max_cost_per_response_nanos, :numeric_string => true, as: 'maxCostPerResponseNanos'
|
||||
property :nanos, :numeric_string => true, as: 'nanos'
|
||||
end
|
||||
end
|
||||
|
||||
class SurveyQuestion
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :answer_order, as: 'answerOrder'
|
||||
collection :answers, as: 'answers'
|
||||
property :has_other, as: 'hasOther'
|
||||
property :high_value_label, as: 'highValueLabel'
|
||||
collection :images, as: 'images', class: Google::Apis::SurveysV2::SurveyQuestionImage, decorator: Google::Apis::SurveysV2::SurveyQuestionImage::Representation
|
||||
|
||||
property :last_answer_position_pinned, as: 'lastAnswerPositionPinned'
|
||||
property :low_value_label, as: 'lowValueLabel'
|
||||
property :must_pick_suggestion, as: 'mustPickSuggestion'
|
||||
property :num_stars, as: 'numStars'
|
||||
property :open_text_placeholder, as: 'openTextPlaceholder'
|
||||
collection :open_text_suggestions, as: 'openTextSuggestions'
|
||||
property :question, as: 'question'
|
||||
property :sentiment_text, as: 'sentimentText'
|
||||
property :single_line_response, as: 'singleLineResponse'
|
||||
collection :threshold_answers, as: 'thresholdAnswers'
|
||||
property :type, as: 'type'
|
||||
property :unit_of_measurement_label, as: 'unitOfMeasurementLabel'
|
||||
property :video_id, as: 'videoId'
|
||||
end
|
||||
end
|
||||
|
||||
class SurveyQuestionImage
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :alt_text, as: 'altText'
|
||||
property :data, :base64 => true, as: 'data'
|
||||
property :url, as: 'url'
|
||||
end
|
||||
end
|
||||
|
||||
class SurveyRejection
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :explanation, as: 'explanation'
|
||||
property :type, as: 'type'
|
||||
end
|
||||
end
|
||||
|
||||
class SurveyResults
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :status, as: 'status'
|
||||
property :survey_url_id, as: 'surveyUrlId'
|
||||
end
|
||||
end
|
||||
|
||||
class SurveysDeleteResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :request_id, as: 'requestId'
|
||||
end
|
||||
end
|
||||
|
||||
class SurveysListResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :page_info, as: 'pageInfo', class: Google::Apis::SurveysV2::PageInfo, decorator: Google::Apis::SurveysV2::PageInfo::Representation
|
||||
|
||||
property :request_id, as: 'requestId'
|
||||
collection :resources, as: 'resources', class: Google::Apis::SurveysV2::Survey, decorator: Google::Apis::SurveysV2::Survey::Representation
|
||||
|
||||
property :token_pagination, as: 'tokenPagination', class: Google::Apis::SurveysV2::TokenPagination, decorator: Google::Apis::SurveysV2::TokenPagination::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SurveysStartRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :max_cost_per_response_nanos, :numeric_string => true, as: 'maxCostPerResponseNanos'
|
||||
end
|
||||
end
|
||||
|
||||
class SurveysStartResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :request_id, as: 'requestId'
|
||||
end
|
||||
end
|
||||
|
||||
class SurveysStopResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :request_id, as: 'requestId'
|
||||
end
|
||||
end
|
||||
|
||||
class TokenPagination
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :previous_page_token, as: 'previousPageToken'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,348 +0,0 @@
|
|||
# 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 SurveysV2
|
||||
# Surveys API
|
||||
#
|
||||
# Creates and conducts surveys, lists the surveys that an authenticated user
|
||||
# owns, and retrieves survey results and information about specified surveys.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/surveys_v2'
|
||||
#
|
||||
# Surveys = Google::Apis::SurveysV2 # Alias the module
|
||||
# service = Surveys::SurveysService.new
|
||||
#
|
||||
class SurveysService < 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]
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
attr_accessor :quota_user
|
||||
|
||||
# @return [String]
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
attr_accessor :user_ip
|
||||
|
||||
def initialize
|
||||
super('https://www.googleapis.com/', 'surveys/v2/')
|
||||
@batch_path = 'batch/surveys/v2'
|
||||
end
|
||||
|
||||
# Retrieves any survey results that have been produced so far. Results are
|
||||
# formatted as an Excel file. You must add "?alt=media" to the URL as an
|
||||
# argument to get results.
|
||||
# @param [String] survey_url_id
|
||||
# External URL ID for the survey.
|
||||
# @param [Google::Apis::SurveysV2::ResultsGetRequest] results_get_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [IO, String] download_dest
|
||||
# IO stream or filename to receive content download
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::SurveysV2::SurveyResults] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::SurveysV2::SurveyResults]
|
||||
#
|
||||
# @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_result(survey_url_id, results_get_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
||||
if download_dest.nil?
|
||||
command = make_simple_command(:get, 'surveys/{surveyUrlId}/results', options)
|
||||
else
|
||||
command = make_download_command(:get, 'surveys/{surveyUrlId}/results', options)
|
||||
command.download_dest = download_dest
|
||||
end
|
||||
command.request_representation = Google::Apis::SurveysV2::ResultsGetRequest::Representation
|
||||
command.request_object = results_get_request_object
|
||||
command.response_representation = Google::Apis::SurveysV2::SurveyResults::Representation
|
||||
command.response_class = Google::Apis::SurveysV2::SurveyResults
|
||||
command.params['surveyUrlId'] = survey_url_id unless survey_url_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Removes a survey from view in all user GET requests.
|
||||
# @param [String] survey_url_id
|
||||
# External URL ID for the survey.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::SurveysV2::SurveysDeleteResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::SurveysV2::SurveysDeleteResponse]
|
||||
#
|
||||
# @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 delete_survey(survey_url_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'surveys/{surveyUrlId}', options)
|
||||
command.response_representation = Google::Apis::SurveysV2::SurveysDeleteResponse::Representation
|
||||
command.response_class = Google::Apis::SurveysV2::SurveysDeleteResponse
|
||||
command.params['surveyUrlId'] = survey_url_id unless survey_url_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Retrieves information about the specified survey.
|
||||
# @param [String] survey_url_id
|
||||
# External URL ID for the survey.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::SurveysV2::Survey] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::SurveysV2::Survey]
|
||||
#
|
||||
# @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_survey(survey_url_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'surveys/{surveyUrlId}', options)
|
||||
command.response_representation = Google::Apis::SurveysV2::Survey::Representation
|
||||
command.response_class = Google::Apis::SurveysV2::Survey
|
||||
command.params['surveyUrlId'] = survey_url_id unless survey_url_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a survey.
|
||||
# @param [Google::Apis::SurveysV2::Survey] survey_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::SurveysV2::Survey] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::SurveysV2::Survey]
|
||||
#
|
||||
# @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 insert_survey(survey_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'surveys', options)
|
||||
command.request_representation = Google::Apis::SurveysV2::Survey::Representation
|
||||
command.request_object = survey_object
|
||||
command.response_representation = Google::Apis::SurveysV2::Survey::Representation
|
||||
command.response_class = Google::Apis::SurveysV2::Survey
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists the surveys owned by the authenticated user.
|
||||
# @param [Fixnum] max_results
|
||||
# @param [Fixnum] start_index
|
||||
# @param [String] token
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::SurveysV2::SurveysListResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::SurveysV2::SurveysListResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_surveys(max_results: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'surveys', options)
|
||||
command.response_representation = Google::Apis::SurveysV2::SurveysListResponse::Representation
|
||||
command.response_class = Google::Apis::SurveysV2::SurveysListResponse
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['startIndex'] = start_index unless start_index.nil?
|
||||
command.query['token'] = token unless token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Begins running a survey.
|
||||
# @param [String] resource_id
|
||||
# @param [Google::Apis::SurveysV2::SurveysStartRequest] surveys_start_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::SurveysV2::SurveysStartResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::SurveysV2::SurveysStartResponse]
|
||||
#
|
||||
# @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 start_survey(resource_id, surveys_start_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'surveys/{resourceId}/start', options)
|
||||
command.request_representation = Google::Apis::SurveysV2::SurveysStartRequest::Representation
|
||||
command.request_object = surveys_start_request_object
|
||||
command.response_representation = Google::Apis::SurveysV2::SurveysStartResponse::Representation
|
||||
command.response_class = Google::Apis::SurveysV2::SurveysStartResponse
|
||||
command.params['resourceId'] = resource_id unless resource_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Stops a running survey.
|
||||
# @param [String] resource_id
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::SurveysV2::SurveysStopResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::SurveysV2::SurveysStopResponse]
|
||||
#
|
||||
# @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 stop_survey(resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'surveys/{resourceId}/stop', options)
|
||||
command.response_representation = Google::Apis::SurveysV2::SurveysStopResponse::Representation
|
||||
command.response_class = Google::Apis::SurveysV2::SurveysStopResponse
|
||||
command.params['resourceId'] = resource_id unless resource_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates a survey. Currently the only property that can be updated is the
|
||||
# owners property.
|
||||
# @param [String] survey_url_id
|
||||
# External URL ID for the survey.
|
||||
# @param [Google::Apis::SurveysV2::Survey] survey_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::SurveysV2::Survey] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::SurveysV2::Survey]
|
||||
#
|
||||
# @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 update_survey(survey_url_id, survey_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'surveys/{surveyUrlId}', options)
|
||||
command.request_representation = Google::Apis::SurveysV2::Survey::Representation
|
||||
command.request_object = survey_object
|
||||
command.response_representation = Google::Apis::SurveysV2::Survey::Representation
|
||||
command.response_class = Google::Apis::SurveysV2::Survey
|
||||
command.params['surveyUrlId'] = survey_url_id unless survey_url_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,31 @@
|
|||
# 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/toolresults_v1/service.rb'
|
||||
require 'google/apis/toolresults_v1/classes.rb'
|
||||
require 'google/apis/toolresults_v1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Cloud Tool Results API
|
||||
#
|
||||
# API to publish and access results from developer tools.
|
||||
#
|
||||
# @see https://firebase.google.com/docs/test-lab/
|
||||
module ToolresultsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20191218'
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,696 @@
|
|||
# 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 ToolresultsV1
|
||||
|
||||
# Additional details for an ANR crash.
|
||||
class Anr
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A stacktrace.
|
||||
# Corresponds to the JSON property `stackTrace`
|
||||
# @return [Google::Apis::ToolresultsV1::StackTrace]
|
||||
attr_accessor :stack_trace
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@stack_trace = args[:stack_trace] if args.key?(:stack_trace)
|
||||
end
|
||||
end
|
||||
|
||||
# A suggestion to use deep links for a Robo run.
|
||||
class AvailableDeepLinks
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# A warning that Robo encountered a screen that was mostly blank; this may
|
||||
# indicate a problem with the app.
|
||||
class BlankScreen
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The screen id of the element
|
||||
# Corresponds to the JSON property `screenId`
|
||||
# @return [String]
|
||||
attr_accessor :screen_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@screen_id = args[:screen_id] if args.key?(:screen_id)
|
||||
end
|
||||
end
|
||||
|
||||
# Crash dialog was detected during the test execution
|
||||
class CrashDialogError
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The name of the package that caused the dialog.
|
||||
# Corresponds to the JSON property `crashPackage`
|
||||
# @return [String]
|
||||
attr_accessor :crash_package
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@crash_package = args[:crash_package] if args.key?(:crash_package)
|
||||
end
|
||||
end
|
||||
|
||||
# Additional details about encountered login screens.
|
||||
class EncounteredLoginScreen
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Number of encountered distinct login screens.
|
||||
# Corresponds to the JSON property `distinctScreens`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :distinct_screens
|
||||
|
||||
# Subset of login screens.
|
||||
# Corresponds to the JSON property `screenIds`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :screen_ids
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@distinct_screens = args[:distinct_screens] if args.key?(:distinct_screens)
|
||||
@screen_ids = args[:screen_ids] if args.key?(:screen_ids)
|
||||
end
|
||||
end
|
||||
|
||||
# Additional details about encountered screens with elements that are not
|
||||
# Android UI widgets.
|
||||
class EncounteredNonAndroidUiWidgetScreen
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Number of encountered distinct screens with non Android UI widgets.
|
||||
# Corresponds to the JSON property `distinctScreens`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :distinct_screens
|
||||
|
||||
# Subset of screens which contain non Android UI widgets.
|
||||
# Corresponds to the JSON property `screenIds`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :screen_ids
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@distinct_screens = args[:distinct_screens] if args.key?(:distinct_screens)
|
||||
@screen_ids = args[:screen_ids] if args.key?(:screen_ids)
|
||||
end
|
||||
end
|
||||
|
||||
# Failed to install the APK.
|
||||
class FailedToInstall
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# Additional details for a fatal exception.
|
||||
class FatalException
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A stacktrace.
|
||||
# Corresponds to the JSON property `stackTrace`
|
||||
# @return [Google::Apis::ToolresultsV1::StackTrace]
|
||||
attr_accessor :stack_trace
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@stack_trace = args[:stack_trace] if args.key?(:stack_trace)
|
||||
end
|
||||
end
|
||||
|
||||
# Additional details of in-app purchases encountered during the crawl.
|
||||
class InAppPurchasesFound
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The total number of in-app purchases flows explored: how many times the
|
||||
# robo tries to buy a SKU.
|
||||
# Corresponds to the JSON property `inAppPurchasesFlowsExplored`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :in_app_purchases_flows_explored
|
||||
|
||||
# The total number of in-app purchases flows started.
|
||||
# Corresponds to the JSON property `inAppPurchasesFlowsStarted`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :in_app_purchases_flows_started
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@in_app_purchases_flows_explored = args[:in_app_purchases_flows_explored] if args.key?(:in_app_purchases_flows_explored)
|
||||
@in_app_purchases_flows_started = args[:in_app_purchases_flows_started] if args.key?(:in_app_purchases_flows_started)
|
||||
end
|
||||
end
|
||||
|
||||
# A warning that Robo did not crawl potentially important parts of the app.
|
||||
class InsufficientCoverage
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# Additional details for an iOS app crash.
|
||||
class IosAppCrashed
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A stacktrace.
|
||||
# Corresponds to the JSON property `stackTrace`
|
||||
# @return [Google::Apis::ToolresultsV1::StackTrace]
|
||||
attr_accessor :stack_trace
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@stack_trace = args[:stack_trace] if args.key?(:stack_trace)
|
||||
end
|
||||
end
|
||||
|
||||
# Failed to find the launcher activity of an app.
|
||||
class LauncherActivityNotFound
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# Additional details for a native crash.
|
||||
class NativeCrash
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A stacktrace.
|
||||
# Corresponds to the JSON property `stackTrace`
|
||||
# @return [Google::Apis::ToolresultsV1::StackTrace]
|
||||
attr_accessor :stack_trace
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@stack_trace = args[:stack_trace] if args.key?(:stack_trace)
|
||||
end
|
||||
end
|
||||
|
||||
# A non-sdk API and examples of it being called along with other metadata
|
||||
# See
|
||||
# https://developer.android.com/distribute/best-practices/develop/restrictions-
|
||||
# non-sdk-interfaces
|
||||
class NonSdkApi
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The signature of the Non-SDK API
|
||||
# Corresponds to the JSON property `apiSignature`
|
||||
# @return [String]
|
||||
attr_accessor :api_signature
|
||||
|
||||
# Example stack traces of this API being called.
|
||||
# Corresponds to the JSON property `exampleStackTraces`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :example_stack_traces
|
||||
|
||||
# Optional debugging insights for non-SDK API violations.
|
||||
# Corresponds to the JSON property `insights`
|
||||
# @return [Array<Google::Apis::ToolresultsV1::NonSdkApiInsight>]
|
||||
attr_accessor :insights
|
||||
|
||||
# The total number of times this API was observed to have been called.
|
||||
# Corresponds to the JSON property `invocationCount`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :invocation_count
|
||||
|
||||
# Which list this API appears on
|
||||
# Corresponds to the JSON property `list`
|
||||
# @return [String]
|
||||
attr_accessor :list
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@api_signature = args[:api_signature] if args.key?(:api_signature)
|
||||
@example_stack_traces = args[:example_stack_traces] if args.key?(:example_stack_traces)
|
||||
@insights = args[:insights] if args.key?(:insights)
|
||||
@invocation_count = args[:invocation_count] if args.key?(:invocation_count)
|
||||
@list = args[:list] if args.key?(:list)
|
||||
end
|
||||
end
|
||||
|
||||
# Non-SDK API insights (to address debugging solutions).
|
||||
class NonSdkApiInsight
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Optional sample stack traces, for which this insight applies (there
|
||||
# should be at least one).
|
||||
# Corresponds to the JSON property `exampleTraceMessages`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :example_trace_messages
|
||||
|
||||
# A unique ID, to be used for determining the effectiveness of this
|
||||
# particular insight in the context of a matcher. (required)
|
||||
# Corresponds to the JSON property `matcherId`
|
||||
# @return [String]
|
||||
attr_accessor :matcher_id
|
||||
|
||||
# This insight indicates that the hidden API usage originates from a
|
||||
# Google-provided library. Users need not take any action.
|
||||
# Corresponds to the JSON property `pendingGoogleUpdateInsight`
|
||||
# @return [Google::Apis::ToolresultsV1::PendingGoogleUpdateInsight]
|
||||
attr_accessor :pending_google_update_insight
|
||||
|
||||
# This insight is a recommendation to upgrade a given library to the specified
|
||||
# version, in order to avoid dependencies on non-SDK APIs.
|
||||
# Corresponds to the JSON property `upgradeInsight`
|
||||
# @return [Google::Apis::ToolresultsV1::UpgradeInsight]
|
||||
attr_accessor :upgrade_insight
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@example_trace_messages = args[:example_trace_messages] if args.key?(:example_trace_messages)
|
||||
@matcher_id = args[:matcher_id] if args.key?(:matcher_id)
|
||||
@pending_google_update_insight = args[:pending_google_update_insight] if args.key?(:pending_google_update_insight)
|
||||
@upgrade_insight = args[:upgrade_insight] if args.key?(:upgrade_insight)
|
||||
end
|
||||
end
|
||||
|
||||
# Additional details for a non-sdk API usage violation.
|
||||
class NonSdkApiUsageViolation
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Signatures of a subset of those hidden API's.
|
||||
# Corresponds to the JSON property `apiSignatures`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :api_signatures
|
||||
|
||||
# Total number of unique hidden API's accessed.
|
||||
# Corresponds to the JSON property `uniqueApis`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :unique_apis
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@api_signatures = args[:api_signatures] if args.key?(:api_signatures)
|
||||
@unique_apis = args[:unique_apis] if args.key?(:unique_apis)
|
||||
end
|
||||
end
|
||||
|
||||
# Contains a summary and examples of non-sdk API usage violations.
|
||||
class NonSdkApiUsageViolationReport
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Examples of the detected API usages.
|
||||
# Corresponds to the JSON property `exampleApis`
|
||||
# @return [Array<Google::Apis::ToolresultsV1::NonSdkApi>]
|
||||
attr_accessor :example_apis
|
||||
|
||||
# Minimum API level required for the application to run.
|
||||
# Corresponds to the JSON property `minSdkVersion`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :min_sdk_version
|
||||
|
||||
# Specifies the API Level on which the application is designed to run.
|
||||
# Corresponds to the JSON property `targetSdkVersion`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :target_sdk_version
|
||||
|
||||
# Total number of unique Non-SDK API's accessed.
|
||||
# Corresponds to the JSON property `uniqueApis`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :unique_apis
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@example_apis = args[:example_apis] if args.key?(:example_apis)
|
||||
@min_sdk_version = args[:min_sdk_version] if args.key?(:min_sdk_version)
|
||||
@target_sdk_version = args[:target_sdk_version] if args.key?(:target_sdk_version)
|
||||
@unique_apis = args[:unique_apis] if args.key?(:unique_apis)
|
||||
end
|
||||
end
|
||||
|
||||
# A warning that Robo encountered a screen that has overlapping clickable
|
||||
# elements; this may indicate a potential UI issue.
|
||||
class OverlappingUiElements
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Resource names of the overlapping screen elements
|
||||
# Corresponds to the JSON property `resourceName`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :resource_name
|
||||
|
||||
# The screen id of the elements
|
||||
# Corresponds to the JSON property `screenId`
|
||||
# @return [String]
|
||||
attr_accessor :screen_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
||||
@screen_id = args[:screen_id] if args.key?(:screen_id)
|
||||
end
|
||||
end
|
||||
|
||||
# This insight indicates that the hidden API usage originates from a
|
||||
# Google-provided library. Users need not take any action.
|
||||
class PendingGoogleUpdateInsight
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The name of the Google-provided library with the non-SDK API dependency.
|
||||
# Corresponds to the JSON property `nameOfGoogleLibrary`
|
||||
# @return [String]
|
||||
attr_accessor :name_of_google_library
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@name_of_google_library = args[:name_of_google_library] if args.key?(:name_of_google_library)
|
||||
end
|
||||
end
|
||||
|
||||
# A notification that Robo signed in with Google.
|
||||
class PerformedGoogleLogin
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# A notification that Robo performed some monkey actions.
|
||||
class PerformedMonkeyActions
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The total number of monkey actions performed during the crawl.
|
||||
# Corresponds to the JSON property `totalActions`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :total_actions
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@total_actions = args[:total_actions] if args.key?(:total_actions)
|
||||
end
|
||||
end
|
||||
|
||||
# Execution stats for a user-provided Robo script.
|
||||
class RoboScriptExecution
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The number of Robo script actions executed successfully.
|
||||
# Corresponds to the JSON property `successfulActions`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :successful_actions
|
||||
|
||||
# The total number of actions in the Robo script.
|
||||
# Corresponds to the JSON property `totalActions`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :total_actions
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@successful_actions = args[:successful_actions] if args.key?(:successful_actions)
|
||||
@total_actions = args[:total_actions] if args.key?(:total_actions)
|
||||
end
|
||||
end
|
||||
|
||||
# A stacktrace.
|
||||
class StackTrace
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The stack trace message.
|
||||
# Required
|
||||
# Corresponds to the JSON property `exception`
|
||||
# @return [String]
|
||||
attr_accessor :exception
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@exception = args[:exception] if args.key?(:exception)
|
||||
end
|
||||
end
|
||||
|
||||
# User provided intent failed to resolve to an activity.
|
||||
class StartActivityNotFound
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `action`
|
||||
# @return [String]
|
||||
attr_accessor :action
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `uri`
|
||||
# @return [String]
|
||||
attr_accessor :uri
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@action = args[:action] if args.key?(:action)
|
||||
@uri = args[:uri] if args.key?(:uri)
|
||||
end
|
||||
end
|
||||
|
||||
# A warning that the screen hierarchy is deeper than the recommended threshold.
|
||||
class UiElementTooDeep
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The depth of the screen element
|
||||
# Corresponds to the JSON property `depth`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :depth
|
||||
|
||||
# The screen id of the element
|
||||
# Corresponds to the JSON property `screenId`
|
||||
# @return [String]
|
||||
attr_accessor :screen_id
|
||||
|
||||
# The screen state id of the element
|
||||
# Corresponds to the JSON property `screenStateId`
|
||||
# @return [String]
|
||||
attr_accessor :screen_state_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@depth = args[:depth] if args.key?(:depth)
|
||||
@screen_id = args[:screen_id] if args.key?(:screen_id)
|
||||
@screen_state_id = args[:screen_state_id] if args.key?(:screen_state_id)
|
||||
end
|
||||
end
|
||||
|
||||
# Default unspecified warning.
|
||||
class UnspecifiedWarning
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# Additional details of an unused robodirective.
|
||||
class UnusedRoboDirective
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The name of the resource that was unused.
|
||||
# Corresponds to the JSON property `resourceName`
|
||||
# @return [String]
|
||||
attr_accessor :resource_name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
||||
end
|
||||
end
|
||||
|
||||
# This insight is a recommendation to upgrade a given library to the specified
|
||||
# version, in order to avoid dependencies on non-SDK APIs.
|
||||
class UpgradeInsight
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The name of the package to be upgraded.
|
||||
# Corresponds to the JSON property `packageName`
|
||||
# @return [String]
|
||||
attr_accessor :package_name
|
||||
|
||||
# The suggested version to upgrade to.
|
||||
# Optional: In case we are not sure which version solves this problem
|
||||
# Corresponds to the JSON property `upgradeToVersion`
|
||||
# @return [String]
|
||||
attr_accessor :upgrade_to_version
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@package_name = args[:package_name] if args.key?(:package_name)
|
||||
@upgrade_to_version = args[:upgrade_to_version] if args.key?(:upgrade_to_version)
|
||||
end
|
||||
end
|
||||
|
||||
# Additional details of a used Robo directive.
|
||||
class UsedRoboDirective
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The name of the resource that was used.
|
||||
# Corresponds to the JSON property `resourceName`
|
||||
# @return [String]
|
||||
attr_accessor :resource_name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
||||
end
|
||||
end
|
||||
|
||||
# Additional details of a used Robo directive with an ignore action.
|
||||
# Note: This is a different scenario than unused directive.
|
||||
class UsedRoboIgnoreDirective
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The name of the resource that was ignored.
|
||||
# Corresponds to the JSON property `resourceName`
|
||||
# @return [String]
|
||||
attr_accessor :resource_name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,438 @@
|
|||
# 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 ToolresultsV1
|
||||
|
||||
class Anr
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AvailableDeepLinks
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class BlankScreen
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CrashDialogError
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class EncounteredLoginScreen
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class EncounteredNonAndroidUiWidgetScreen
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FailedToInstall
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FatalException
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class InAppPurchasesFound
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class InsufficientCoverage
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class IosAppCrashed
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LauncherActivityNotFound
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NativeCrash
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NonSdkApi
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NonSdkApiInsight
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NonSdkApiUsageViolation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NonSdkApiUsageViolationReport
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OverlappingUiElements
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PendingGoogleUpdateInsight
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PerformedGoogleLogin
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PerformedMonkeyActions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RoboScriptExecution
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class StackTrace
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class StartActivityNotFound
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UiElementTooDeep
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UnspecifiedWarning
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UnusedRoboDirective
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UpgradeInsight
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UsedRoboDirective
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UsedRoboIgnoreDirective
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Anr
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :stack_trace, as: 'stackTrace', class: Google::Apis::ToolresultsV1::StackTrace, decorator: Google::Apis::ToolresultsV1::StackTrace::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class AvailableDeepLinks
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class BlankScreen
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :screen_id, as: 'screenId'
|
||||
end
|
||||
end
|
||||
|
||||
class CrashDialogError
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :crash_package, as: 'crashPackage'
|
||||
end
|
||||
end
|
||||
|
||||
class EncounteredLoginScreen
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :distinct_screens, as: 'distinctScreens'
|
||||
collection :screen_ids, as: 'screenIds'
|
||||
end
|
||||
end
|
||||
|
||||
class EncounteredNonAndroidUiWidgetScreen
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :distinct_screens, as: 'distinctScreens'
|
||||
collection :screen_ids, as: 'screenIds'
|
||||
end
|
||||
end
|
||||
|
||||
class FailedToInstall
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class FatalException
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :stack_trace, as: 'stackTrace', class: Google::Apis::ToolresultsV1::StackTrace, decorator: Google::Apis::ToolresultsV1::StackTrace::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class InAppPurchasesFound
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :in_app_purchases_flows_explored, as: 'inAppPurchasesFlowsExplored'
|
||||
property :in_app_purchases_flows_started, as: 'inAppPurchasesFlowsStarted'
|
||||
end
|
||||
end
|
||||
|
||||
class InsufficientCoverage
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class IosAppCrashed
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :stack_trace, as: 'stackTrace', class: Google::Apis::ToolresultsV1::StackTrace, decorator: Google::Apis::ToolresultsV1::StackTrace::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LauncherActivityNotFound
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class NativeCrash
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :stack_trace, as: 'stackTrace', class: Google::Apis::ToolresultsV1::StackTrace, decorator: Google::Apis::ToolresultsV1::StackTrace::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class NonSdkApi
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :api_signature, as: 'apiSignature'
|
||||
collection :example_stack_traces, as: 'exampleStackTraces'
|
||||
collection :insights, as: 'insights', class: Google::Apis::ToolresultsV1::NonSdkApiInsight, decorator: Google::Apis::ToolresultsV1::NonSdkApiInsight::Representation
|
||||
|
||||
property :invocation_count, as: 'invocationCount'
|
||||
property :list, as: 'list'
|
||||
end
|
||||
end
|
||||
|
||||
class NonSdkApiInsight
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :example_trace_messages, as: 'exampleTraceMessages'
|
||||
property :matcher_id, as: 'matcherId'
|
||||
property :pending_google_update_insight, as: 'pendingGoogleUpdateInsight', class: Google::Apis::ToolresultsV1::PendingGoogleUpdateInsight, decorator: Google::Apis::ToolresultsV1::PendingGoogleUpdateInsight::Representation
|
||||
|
||||
property :upgrade_insight, as: 'upgradeInsight', class: Google::Apis::ToolresultsV1::UpgradeInsight, decorator: Google::Apis::ToolresultsV1::UpgradeInsight::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class NonSdkApiUsageViolation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :api_signatures, as: 'apiSignatures'
|
||||
property :unique_apis, as: 'uniqueApis'
|
||||
end
|
||||
end
|
||||
|
||||
class NonSdkApiUsageViolationReport
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :example_apis, as: 'exampleApis', class: Google::Apis::ToolresultsV1::NonSdkApi, decorator: Google::Apis::ToolresultsV1::NonSdkApi::Representation
|
||||
|
||||
property :min_sdk_version, as: 'minSdkVersion'
|
||||
property :target_sdk_version, as: 'targetSdkVersion'
|
||||
property :unique_apis, as: 'uniqueApis'
|
||||
end
|
||||
end
|
||||
|
||||
class OverlappingUiElements
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :resource_name, as: 'resourceName'
|
||||
property :screen_id, as: 'screenId'
|
||||
end
|
||||
end
|
||||
|
||||
class PendingGoogleUpdateInsight
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name_of_google_library, as: 'nameOfGoogleLibrary'
|
||||
end
|
||||
end
|
||||
|
||||
class PerformedGoogleLogin
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class PerformedMonkeyActions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :total_actions, as: 'totalActions'
|
||||
end
|
||||
end
|
||||
|
||||
class RoboScriptExecution
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :successful_actions, as: 'successfulActions'
|
||||
property :total_actions, as: 'totalActions'
|
||||
end
|
||||
end
|
||||
|
||||
class StackTrace
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :exception, as: 'exception'
|
||||
end
|
||||
end
|
||||
|
||||
class StartActivityNotFound
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :action, as: 'action'
|
||||
property :uri, as: 'uri'
|
||||
end
|
||||
end
|
||||
|
||||
class UiElementTooDeep
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :depth, as: 'depth'
|
||||
property :screen_id, as: 'screenId'
|
||||
property :screen_state_id, as: 'screenStateId'
|
||||
end
|
||||
end
|
||||
|
||||
class UnspecifiedWarning
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class UnusedRoboDirective
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :resource_name, as: 'resourceName'
|
||||
end
|
||||
end
|
||||
|
||||
class UpgradeInsight
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :package_name, as: 'packageName'
|
||||
property :upgrade_to_version, as: 'upgradeToVersion'
|
||||
end
|
||||
end
|
||||
|
||||
class UsedRoboDirective
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :resource_name, as: 'resourceName'
|
||||
end
|
||||
end
|
||||
|
||||
class UsedRoboIgnoreDirective
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :resource_name, as: 'resourceName'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,59 @@
|
|||
# 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 ToolresultsV1
|
||||
# Cloud Tool Results API
|
||||
#
|
||||
# API to publish and access results from developer tools.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/toolresults_v1'
|
||||
#
|
||||
# Toolresults = Google::Apis::ToolresultsV1 # Alias the module
|
||||
# service = Toolresults::ToolResultsService.new
|
||||
#
|
||||
# @see https://firebase.google.com/docs/test-lab/
|
||||
class ToolResultsService < 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://toolresults.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
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
|
Loading…
Reference in New Issue