Autogenerated update (2020-05-22)
Delete: - pagespeedonline_v1 Update: - bigquery_v2 - cloudbuild_v1 - cloudbuild_v1alpha1 - cloudbuild_v1alpha2 - iamcredentials_v1
This commit is contained in:
parent
5905a32742
commit
123adc5ac9
|
@ -0,0 +1,38 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/artifactregistry_v1beta1/service.rb'
|
||||
require 'google/apis/artifactregistry_v1beta1/classes.rb'
|
||||
require 'google/apis/artifactregistry_v1beta1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Artifact Registry API
|
||||
#
|
||||
# Store and manage build artifacts in a scalable and integrated service built on
|
||||
# Google infrastructure.
|
||||
#
|
||||
# @see https://cloud.google.com/artifacts/docs/
|
||||
module ArtifactregistryV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20200508'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
# View your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,380 @@
|
|||
# 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 ArtifactregistryV1beta1
|
||||
|
||||
class Binding
|
||||
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 Expr
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class File
|
||||
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 ListFilesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListPackagesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListRepositoriesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListTagsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListVersionsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Location
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Package
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Policy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Repository
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SetIamPolicyRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Tag
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestIamPermissionsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestIamPermissionsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Version
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Binding
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :condition, as: 'condition', class: Google::Apis::ArtifactregistryV1beta1::Expr, decorator: Google::Apis::ArtifactregistryV1beta1::Expr::Representation
|
||||
|
||||
collection :members, as: 'members'
|
||||
property :role, as: 'role'
|
||||
end
|
||||
end
|
||||
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class Expr
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :description, as: 'description'
|
||||
property :expression, as: 'expression'
|
||||
property :location, as: 'location'
|
||||
property :title, as: 'title'
|
||||
end
|
||||
end
|
||||
|
||||
class File
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :create_time, as: 'createTime'
|
||||
collection :hashes, as: 'hashes', class: Google::Apis::ArtifactregistryV1beta1::HashProp, decorator: Google::Apis::ArtifactregistryV1beta1::HashProp::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
property :owner, as: 'owner'
|
||||
property :size_bytes, :numeric_string => true, as: 'sizeBytes'
|
||||
property :update_time, as: 'updateTime'
|
||||
end
|
||||
end
|
||||
|
||||
class HashProp
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :type, as: 'type'
|
||||
property :value, :base64 => true, as: 'value'
|
||||
end
|
||||
end
|
||||
|
||||
class ListFilesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :files, as: 'files', class: Google::Apis::ArtifactregistryV1beta1::File, decorator: Google::Apis::ArtifactregistryV1beta1::File::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :locations, as: 'locations', class: Google::Apis::ArtifactregistryV1beta1::Location, decorator: Google::Apis::ArtifactregistryV1beta1::Location::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :operations, as: 'operations', class: Google::Apis::ArtifactregistryV1beta1::Operation, decorator: Google::Apis::ArtifactregistryV1beta1::Operation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListPackagesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :packages, as: 'packages', class: Google::Apis::ArtifactregistryV1beta1::Package, decorator: Google::Apis::ArtifactregistryV1beta1::Package::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListRepositoriesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :repositories, as: 'repositories', class: Google::Apis::ArtifactregistryV1beta1::Repository, decorator: Google::Apis::ArtifactregistryV1beta1::Repository::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListTagsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :tags, as: 'tags', class: Google::Apis::ArtifactregistryV1beta1::Tag, decorator: Google::Apis::ArtifactregistryV1beta1::Tag::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListVersionsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :versions, as: 'versions', class: Google::Apis::ArtifactregistryV1beta1::Version, decorator: Google::Apis::ArtifactregistryV1beta1::Version::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Location
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :display_name, as: 'displayName'
|
||||
hash :labels, as: 'labels'
|
||||
property :location_id, as: 'locationId'
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :done, as: 'done'
|
||||
property :error, as: 'error', class: Google::Apis::ArtifactregistryV1beta1::Status, decorator: Google::Apis::ArtifactregistryV1beta1::Status::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
hash :response, as: 'response'
|
||||
end
|
||||
end
|
||||
|
||||
class Package
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :create_time, as: 'createTime'
|
||||
property :display_name, as: 'displayName'
|
||||
property :name, as: 'name'
|
||||
property :update_time, as: 'updateTime'
|
||||
end
|
||||
end
|
||||
|
||||
class Policy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :bindings, as: 'bindings', class: Google::Apis::ArtifactregistryV1beta1::Binding, decorator: Google::Apis::ArtifactregistryV1beta1::Binding::Representation
|
||||
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
property :version, as: 'version'
|
||||
end
|
||||
end
|
||||
|
||||
class Repository
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :create_time, as: 'createTime'
|
||||
property :description, as: 'description'
|
||||
property :format, as: 'format'
|
||||
hash :labels, as: 'labels'
|
||||
property :name, as: 'name'
|
||||
property :update_time, as: 'updateTime'
|
||||
end
|
||||
end
|
||||
|
||||
class SetIamPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :policy, as: 'policy', class: Google::Apis::ArtifactregistryV1beta1::Policy, decorator: Google::Apis::ArtifactregistryV1beta1::Policy::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :details, as: 'details'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
|
||||
class Tag
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :version, as: 'version'
|
||||
end
|
||||
end
|
||||
|
||||
class TestIamPermissionsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class TestIamPermissionsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class Version
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :create_time, as: 'createTime'
|
||||
property :description, as: 'description'
|
||||
property :name, as: 'name'
|
||||
collection :related_tags, as: 'relatedTags', class: Google::Apis::ArtifactregistryV1beta1::Tag, decorator: Google::Apis::ArtifactregistryV1beta1::Tag::Representation
|
||||
|
||||
property :update_time, as: 'updateTime'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,957 @@
|
|||
# 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 ArtifactregistryV1beta1
|
||||
# Artifact Registry API
|
||||
#
|
||||
# Store and manage build artifacts in a scalable and integrated service built on
|
||||
# Google infrastructure.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/artifactregistry_v1beta1'
|
||||
#
|
||||
# Artifactregistry = Google::Apis::ArtifactregistryV1beta1 # Alias the module
|
||||
# service = Artifactregistry::ArtifactRegistryService.new
|
||||
#
|
||||
# @see https://cloud.google.com/artifacts/docs/
|
||||
class ArtifactRegistryService < 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://artifactregistry.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Gets information about a location.
|
||||
# @param [String] name
|
||||
# Resource name for the location.
|
||||
# @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::ArtifactregistryV1beta1::Location] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::Location]
|
||||
#
|
||||
# @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_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Location::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::Location
|
||||
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
|
||||
|
||||
# Lists information about the supported locations for this service.
|
||||
# @param [String] name
|
||||
# The resource that owns the locations collection, if applicable.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @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::ArtifactregistryV1beta1::ListLocationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::ListLocationsResponse]
|
||||
#
|
||||
# @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_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListLocationsResponse::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::ListLocationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the latest state of a long-running operation. Clients can use this
|
||||
# method to poll the operation result at intervals as recommended by the API
|
||||
# service.
|
||||
# @param [String] name
|
||||
# The name of the operation resource.
|
||||
# @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::ArtifactregistryV1beta1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Operation::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::Operation
|
||||
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
|
||||
|
||||
# Lists operations that match the specified filter in the request. If the
|
||||
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
# NOTE: the `name` binding allows API services to override the binding
|
||||
# to use different resource name schemes, such as `users/*/operations`. To
|
||||
# override the binding, API services can add a binding such as
|
||||
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
||||
# For backwards compatibility, the default name includes the operations
|
||||
# collection id, however overriding users must ensure the name binding
|
||||
# is the parent resource, without the operations collection id.
|
||||
# @param [String] name
|
||||
# The name of the operation's parent resource.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @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::ArtifactregistryV1beta1::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::ListOperationsResponse]
|
||||
#
|
||||
# @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_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::ListOperationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a repository. The returned Operation will finish once the
|
||||
# repository has been created. Its response will be the created Repository.
|
||||
# @param [String] parent
|
||||
# The name of the parent resource where the repository will be created.
|
||||
# @param [Google::Apis::ArtifactregistryV1beta1::Repository] repository_object
|
||||
# @param [String] repository_id
|
||||
# The repository id to use for this repository.
|
||||
# @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::ArtifactregistryV1beta1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_project_location_repository(parent, repository_object = nil, repository_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/{+parent}/repositories', options)
|
||||
command.request_representation = Google::Apis::ArtifactregistryV1beta1::Repository::Representation
|
||||
command.request_object = repository_object
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Operation::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::Operation
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['repositoryId'] = repository_id unless repository_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a repository and all of its contents. The returned Operation will
|
||||
# finish once the repository has been deleted. It will not have any Operation
|
||||
# metadata and will return a google.protobuf.Empty response.
|
||||
# @param [String] name
|
||||
# The name of the repository to delete.
|
||||
# @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::ArtifactregistryV1beta1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_project_location_repository(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Operation::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::Operation
|
||||
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
|
||||
|
||||
# Gets a repository.
|
||||
# @param [String] name
|
||||
# The name of the repository to retrieve.
|
||||
# @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::ArtifactregistryV1beta1::Repository] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::Repository]
|
||||
#
|
||||
# @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_location_repository(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Repository::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::Repository
|
||||
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
|
||||
|
||||
# Gets the IAM policy for a given resource.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Fixnum] options_requested_policy_version
|
||||
# Optional. The policy format version to be returned.
|
||||
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
||||
# rejected.
|
||||
# Requests for policies with any conditional bindings must specify version 3.
|
||||
# Policies without any conditional bindings may specify any valid value or
|
||||
# leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM
|
||||
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
# @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::ArtifactregistryV1beta1::Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::Policy]
|
||||
#
|
||||
# @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_location_repository_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Policy::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists repositories.
|
||||
# @param [String] parent
|
||||
# The name of the parent resource whose repositories will be listed.
|
||||
# @param [Fixnum] page_size
|
||||
# The maximum number of repositories to return.
|
||||
# @param [String] page_token
|
||||
# The next_page_token value returned from a previous list request, if any.
|
||||
# @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::ArtifactregistryV1beta1::ListRepositoriesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::ListRepositoriesResponse]
|
||||
#
|
||||
# @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_location_repositories(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+parent}/repositories', options)
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListRepositoriesResponse::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::ListRepositoriesResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates a repository.
|
||||
# @param [String] name
|
||||
# The name of the repository, for example:
|
||||
# "projects/p1/locations/us-central1/repositories/repo1".
|
||||
# @param [Google::Apis::ArtifactregistryV1beta1::Repository] repository_object
|
||||
# @param [String] update_mask
|
||||
# The update mask applies to the resource. For the `FieldMask` definition,
|
||||
# see
|
||||
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
||||
# fieldmask
|
||||
# @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::ArtifactregistryV1beta1::Repository] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::Repository]
|
||||
#
|
||||
# @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_location_repository(name, repository_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
||||
command.request_representation = Google::Apis::ArtifactregistryV1beta1::Repository::Representation
|
||||
command.request_object = repository_object
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Repository::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::Repository
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the IAM policy for a given resource.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being specified.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::ArtifactregistryV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::Policy]
|
||||
#
|
||||
# @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 set_repository_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
||||
command.request_representation = Google::Apis::ArtifactregistryV1beta1::SetIamPolicyRequest::Representation
|
||||
command.request_object = set_iam_policy_request_object
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Policy::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Tests if the caller has a list of permissions on a resource.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy detail is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsResponse]
|
||||
#
|
||||
# @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 test_repository_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
|
||||
command.request_representation = Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsRequest::Representation
|
||||
command.request_object = test_iam_permissions_request_object
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsResponse::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::TestIamPermissionsResponse
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets a file.
|
||||
# @param [String] name
|
||||
# The name of the file to retrieve.
|
||||
# @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::ArtifactregistryV1beta1::File] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::File]
|
||||
#
|
||||
# @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_location_repository_file(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::File::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::File
|
||||
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
|
||||
|
||||
# Lists files.
|
||||
# @param [String] parent
|
||||
# The name of the parent resource whose files will be listed.
|
||||
# @param [String] filter
|
||||
# An expression for filtering the results of the request. Filter rules are
|
||||
# case insensitive. The fields eligible for filtering are:
|
||||
# * `name`
|
||||
# * `owner`
|
||||
# An example of using a filter:
|
||||
# * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` -
|
||||
# -> Files with an
|
||||
# ID starting with "a/b/".
|
||||
# * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/
|
||||
# versions/1.0"` -->
|
||||
# Files owned by the version `1.0` in package `pkg1`.
|
||||
# @param [Fixnum] page_size
|
||||
# The maximum number of files to return.
|
||||
# @param [String] page_token
|
||||
# The next_page_token value returned from a previous list request, if any.
|
||||
# @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::ArtifactregistryV1beta1::ListFilesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::ListFilesResponse]
|
||||
#
|
||||
# @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_location_repository_files(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+parent}/files', options)
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListFilesResponse::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::ListFilesResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.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 package and all of its versions and tags. The returned operation
|
||||
# will complete once the package has been deleted.
|
||||
# @param [String] name
|
||||
# The name of the package to delete.
|
||||
# @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::ArtifactregistryV1beta1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_project_location_repository_package(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Operation::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::Operation
|
||||
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
|
||||
|
||||
# Gets a package.
|
||||
# @param [String] name
|
||||
# The name of the package to retrieve.
|
||||
# @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::ArtifactregistryV1beta1::Package] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::Package]
|
||||
#
|
||||
# @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_location_repository_package(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Package::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::Package
|
||||
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
|
||||
|
||||
# Lists packages.
|
||||
# @param [String] parent
|
||||
# The name of the parent resource whose packages will be listed.
|
||||
# @param [Fixnum] page_size
|
||||
# The maximum number of packages to return.
|
||||
# @param [String] page_token
|
||||
# The next_page_token value returned from a previous list request, if any.
|
||||
# @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::ArtifactregistryV1beta1::ListPackagesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::ListPackagesResponse]
|
||||
#
|
||||
# @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_location_repository_packages(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+parent}/packages', options)
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListPackagesResponse::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::ListPackagesResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a tag.
|
||||
# @param [String] parent
|
||||
# The name of the parent resource where the tag will be created.
|
||||
# @param [Google::Apis::ArtifactregistryV1beta1::Tag] tag_object
|
||||
# @param [String] tag_id
|
||||
# The tag id to use for this repository.
|
||||
# @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::ArtifactregistryV1beta1::Tag] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::Tag]
|
||||
#
|
||||
# @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_location_repository_package_tag(parent, tag_object = nil, tag_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/{+parent}/tags', options)
|
||||
command.request_representation = Google::Apis::ArtifactregistryV1beta1::Tag::Representation
|
||||
command.request_object = tag_object
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Tag::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::Tag
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['tagId'] = tag_id unless tag_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a tag.
|
||||
# @param [String] name
|
||||
# The name of the tag to delete.
|
||||
# @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::ArtifactregistryV1beta1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::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_location_repository_package_tag(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Empty::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::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
|
||||
|
||||
# Gets a tag.
|
||||
# @param [String] name
|
||||
# The name of the tag to retrieve.
|
||||
# @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::ArtifactregistryV1beta1::Tag] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::Tag]
|
||||
#
|
||||
# @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_location_repository_package_tag(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Tag::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::Tag
|
||||
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
|
||||
|
||||
# Lists tags.
|
||||
# @param [String] parent
|
||||
# The name of the parent resource whose tags will be listed.
|
||||
# @param [String] filter
|
||||
# An expression for filtering the results of the request. Filter rules are
|
||||
# case insensitive. The fields eligible for filtering are:
|
||||
# * `version`
|
||||
# An example of using a filter:
|
||||
# * `version="projects/p1/locations/us-central1/repositories/repo1/packages/
|
||||
# pkg1/versions/1.0"`
|
||||
# --> Tags that are applied to the version `1.0` in package `pkg1`.
|
||||
# @param [Fixnum] page_size
|
||||
# The maximum number of tags to return.
|
||||
# @param [String] page_token
|
||||
# The next_page_token value returned from a previous list request, if any.
|
||||
# @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::ArtifactregistryV1beta1::ListTagsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::ListTagsResponse]
|
||||
#
|
||||
# @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_location_repository_package_tags(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+parent}/tags', options)
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListTagsResponse::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::ListTagsResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates a tag.
|
||||
# @param [String] name
|
||||
# The name of the tag, for example:
|
||||
# "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1".
|
||||
# @param [Google::Apis::ArtifactregistryV1beta1::Tag] tag_object
|
||||
# @param [String] update_mask
|
||||
# The update mask applies to the resource. For the `FieldMask` definition,
|
||||
# see
|
||||
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
||||
# fieldmask
|
||||
# @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::ArtifactregistryV1beta1::Tag] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::Tag]
|
||||
#
|
||||
# @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_location_repository_package_tag(name, tag_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
||||
command.request_representation = Google::Apis::ArtifactregistryV1beta1::Tag::Representation
|
||||
command.request_object = tag_object
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Tag::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::Tag
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['updateMask'] = update_mask unless update_mask.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 version and all of its content. The returned operation will
|
||||
# complete once the version has been deleted.
|
||||
# @param [String] name
|
||||
# The name of the version to delete.
|
||||
# @param [Boolean] force
|
||||
# By default, a version that is tagged may not be deleted. If force=true, the
|
||||
# version and any tags pointing to the version are deleted.
|
||||
# @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::ArtifactregistryV1beta1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_project_location_repository_package_version(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Operation::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::Operation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['force'] = force unless force.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets a version
|
||||
# @param [String] name
|
||||
# The name of the version to retrieve.
|
||||
# @param [String] view
|
||||
# The view that should be returned in the response.
|
||||
# @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::ArtifactregistryV1beta1::Version] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::Version]
|
||||
#
|
||||
# @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_location_repository_package_version(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::Version::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::Version
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists versions.
|
||||
# @param [String] parent
|
||||
# The name of the parent resource whose versions will be listed.
|
||||
# @param [Fixnum] page_size
|
||||
# The maximum number of versions to return.
|
||||
# @param [String] page_token
|
||||
# The next_page_token value returned from a previous list request, if any.
|
||||
# @param [String] view
|
||||
# The view that should be returned in the response.
|
||||
# @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::ArtifactregistryV1beta1::ListVersionsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ArtifactregistryV1beta1::ListVersionsResponse]
|
||||
#
|
||||
# @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_location_repository_package_versions(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+parent}/versions', options)
|
||||
command.response_representation = Google::Apis::ArtifactregistryV1beta1::ListVersionsResponse::Representation
|
||||
command.response_class = Google::Apis::ArtifactregistryV1beta1::ListVersionsResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/bigquery/
|
||||
module BigqueryV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20200429'
|
||||
REVISION = '20200514'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
|
|
@ -2117,6 +2117,11 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :compression
|
||||
|
||||
# [Optional, Trusted Tester] Connection for external data source.
|
||||
# Corresponds to the JSON property `connectionId`
|
||||
# @return [String]
|
||||
attr_accessor :connection_id
|
||||
|
||||
# Additional properties to set if sourceFormat is set to CSV.
|
||||
# Corresponds to the JSON property `csvOptions`
|
||||
# @return [Google::Apis::BigqueryV2::CsvOptions]
|
||||
|
@ -2192,6 +2197,7 @@ module Google
|
|||
@autodetect = args[:autodetect] if args.key?(:autodetect)
|
||||
@bigtable_options = args[:bigtable_options] if args.key?(:bigtable_options)
|
||||
@compression = args[:compression] if args.key?(:compression)
|
||||
@connection_id = args[:connection_id] if args.key?(:connection_id)
|
||||
@csv_options = args[:csv_options] if args.key?(:csv_options)
|
||||
@google_sheets_options = args[:google_sheets_options] if args.key?(:google_sheets_options)
|
||||
@hive_partitioning_options = args[:hive_partitioning_options] if args.key?(:hive_partitioning_options)
|
||||
|
@ -6675,7 +6681,12 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
#
|
||||
# This is used for defining User Defined Function (UDF) resources only when
|
||||
# using legacy SQL. Users of Standard SQL should leverage either DDL (e.g.
|
||||
# CREATE [TEMPORARY] FUNCTION ... ) or the Routines API to define UDF resources.
|
||||
# For additional information on migrating, see: https://cloud.google.com/
|
||||
# bigquery/docs/reference/standard-sql/migrating-from-legacy-sql#
|
||||
# differences_in_user-defined_javascript_functions
|
||||
class UserDefinedFunctionResource
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
|
|
@ -1267,6 +1267,7 @@ module Google
|
|||
property :bigtable_options, as: 'bigtableOptions', class: Google::Apis::BigqueryV2::BigtableOptions, decorator: Google::Apis::BigqueryV2::BigtableOptions::Representation
|
||||
|
||||
property :compression, as: 'compression'
|
||||
property :connection_id, as: 'connectionId'
|
||||
property :csv_options, as: 'csvOptions', class: Google::Apis::BigqueryV2::CsvOptions, decorator: Google::Apis::BigqueryV2::CsvOptions::Representation
|
||||
|
||||
property :google_sheets_options, as: 'googleSheetsOptions', class: Google::Apis::BigqueryV2::GoogleSheetsOptions, decorator: Google::Apis::BigqueryV2::GoogleSheetsOptions::Representation
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/cloud-build/docs/
|
||||
module CloudbuildV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200505'
|
||||
REVISION = '20200520'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -262,6 +262,7 @@ module Google
|
|||
# Amount of time that this build should be allowed to run, to second
|
||||
# granularity. If this amount of time elapses, work on the build will cease
|
||||
# and the build status will be `TIMEOUT`.
|
||||
# `timeout` starts ticking from `startTime`.
|
||||
# Default time is ten minutes.
|
||||
# Corresponds to the JSON property `timeout`
|
||||
# @return [String]
|
||||
|
|
|
@ -371,6 +371,127 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Starts asynchronous cancellation on a long-running operation. The server
|
||||
# makes a best effort to cancel the operation, but success is not
|
||||
# guaranteed. If the server doesn't support this method, it returns
|
||||
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
||||
# Operations.GetOperation or
|
||||
# other methods to check whether the cancellation succeeded or whether the
|
||||
# operation completed despite cancellation. On successful cancellation,
|
||||
# the operation is not deleted; instead, it becomes an operation with
|
||||
# an Operation.error value with a google.rpc.Status.code of 1,
|
||||
# corresponding to `Code.CANCELLED`.
|
||||
# @param [String] name
|
||||
# The name of the operation resource to be cancelled.
|
||||
# @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1::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 cancel_project_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
||||
command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
|
||||
command.request_object = cancel_operation_request_object
|
||||
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::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
|
||||
|
||||
# Gets the latest state of a long-running operation. Clients can use this
|
||||
# method to poll the operation result at intervals as recommended by the API
|
||||
# service.
|
||||
# @param [String] name
|
||||
# The name of the operation resource.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::Operation
|
||||
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
|
||||
|
||||
# Lists operations that match the specified filter in the request. If the
|
||||
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
# NOTE: the `name` binding allows API services to override the binding
|
||||
# to use different resource name schemes, such as `users/*/operations`. To
|
||||
# override the binding, API services can add a binding such as
|
||||
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
||||
# For backwards compatibility, the default name includes the operations
|
||||
# collection id, however overriding users must ensure the name binding
|
||||
# is the parent resource, without the operations collection id.
|
||||
# @param [String] name
|
||||
# The name of the operation's parent resource.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1::ListOperationsResponse]
|
||||
#
|
||||
# @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_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a new `BuildTrigger`.
|
||||
# This API is experimental.
|
||||
# @param [String] project_id
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/cloud-build/docs/
|
||||
module CloudbuildV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20200317'
|
||||
REVISION = '20200520'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -262,6 +262,7 @@ module Google
|
|||
# Amount of time that this build should be allowed to run, to second
|
||||
# granularity. If this amount of time elapses, work on the build will cease
|
||||
# and the build status will be `TIMEOUT`.
|
||||
# `timeout` starts ticking from `startTime`.
|
||||
# Default time is ten minutes.
|
||||
# Corresponds to the JSON property `timeout`
|
||||
# @return [String]
|
||||
|
@ -611,6 +612,19 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The request message for Operations.CancelOperation.
|
||||
class CancelOperationRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# A generic empty message that you can re-use to avoid defining duplicated
|
||||
# empty messages in your APIs. A typical example is to use it as the request
|
||||
# or the response type of an API method. For instance:
|
||||
|
@ -676,6 +690,31 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The response message for Operations.ListOperations.
|
||||
class ListOperationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The standard List next-page token.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# A list of operations that matches the specified filter in the request.
|
||||
# Corresponds to the JSON property `operations`
|
||||
# @return [Array<Google::Apis::CloudbuildV1alpha1::Operation>]
|
||||
attr_accessor :operations
|
||||
|
||||
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)
|
||||
@operations = args[:operations] if args.key?(:operations)
|
||||
end
|
||||
end
|
||||
|
||||
# Response containing existing `WorkerPools`.
|
||||
class ListWorkerPoolsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -732,6 +771,70 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# This resource represents a long-running operation that is the result of a
|
||||
# network API call.
|
||||
class Operation
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# If the value is `false`, it means the operation is still in progress.
|
||||
# If `true`, the operation is completed, and either `error` or `response` is
|
||||
# available.
|
||||
# Corresponds to the JSON property `done`
|
||||
# @return [Boolean]
|
||||
attr_accessor :done
|
||||
alias_method :done?, :done
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||
# three pieces of data: error code, error message, and error details.
|
||||
# You can find out more about this error model and how to work with it in the
|
||||
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||
# Corresponds to the JSON property `error`
|
||||
# @return [Google::Apis::CloudbuildV1alpha1::Status]
|
||||
attr_accessor :error
|
||||
|
||||
# Service-specific metadata associated with the operation. It typically
|
||||
# contains progress information and common metadata such as create time.
|
||||
# Some services might not provide such metadata. Any method that returns a
|
||||
# long-running operation should document the metadata type, if any.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :metadata
|
||||
|
||||
# The server-assigned name, which is only unique within the same service that
|
||||
# originally returns it. If you use the default HTTP mapping, the
|
||||
# `name` should be a resource name ending with `operations/`unique_id``.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The normal response of the operation in case of success. If the original
|
||||
# method returns no data on success, such as `Delete`, the response is
|
||||
# `google.protobuf.Empty`. If the original method is standard
|
||||
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
||||
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
||||
# is the original method name. For example, if the original method name
|
||||
# is `TakeSnapshot()`, the inferred response type is
|
||||
# `TakeSnapshotResponse`.
|
||||
# Corresponds to the JSON property `response`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :response
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@done = args[:done] if args.key?(:done)
|
||||
@error = args[:error] if args.key?(:error)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@response = args[:response] if args.key?(:response)
|
||||
end
|
||||
end
|
||||
|
||||
# Location of the source in a Google Cloud Source Repository.
|
||||
class RepoSource
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -951,6 +1054,45 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||
# three pieces of data: error code, error message, and error details.
|
||||
# You can find out more about this error model and how to work with it in the
|
||||
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||
class Status
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status code, which should be an enum value of google.rpc.Code.
|
||||
# Corresponds to the JSON property `code`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :code
|
||||
|
||||
# A list of messages that carry the error details. There is a common set of
|
||||
# message types for APIs to use.
|
||||
# Corresponds to the JSON property `details`
|
||||
# @return [Array<Hash<String,Object>>]
|
||||
attr_accessor :details
|
||||
|
||||
# A developer-facing error message, which should be in English. Any
|
||||
# user-facing error message should be localized and sent in the
|
||||
# google.rpc.Status.details field, or localized by the client.
|
||||
# Corresponds to the JSON property `message`
|
||||
# @return [String]
|
||||
attr_accessor :message
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@code = args[:code] if args.key?(:code)
|
||||
@details = args[:details] if args.key?(:details)
|
||||
@message = args[:message] if args.key?(:message)
|
||||
end
|
||||
end
|
||||
|
||||
# Location of the source in an archive file in Google Cloud Storage.
|
||||
class StorageSource
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -70,6 +70,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CancelOperationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Empty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -88,6 +94,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListWorkerPoolsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -100,6 +112,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RepoSource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -130,6 +148,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class StorageSource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -283,6 +307,12 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class CancelOperationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -305,6 +335,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1alpha1::Operation, decorator: Google::Apis::CloudbuildV1alpha1::Operation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListWorkerPoolsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -322,6 +361,18 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :done, as: 'done'
|
||||
property :error, as: 'error', class: Google::Apis::CloudbuildV1alpha1::Status, decorator: Google::Apis::CloudbuildV1alpha1::Status::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
hash :response, as: 'response'
|
||||
end
|
||||
end
|
||||
|
||||
class RepoSource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -380,6 +431,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :details, as: 'details'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
|
||||
class StorageSource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -47,6 +47,127 @@ module Google
|
|||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Starts asynchronous cancellation on a long-running operation. The server
|
||||
# makes a best effort to cancel the operation, but success is not
|
||||
# guaranteed. If the server doesn't support this method, it returns
|
||||
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
||||
# Operations.GetOperation or
|
||||
# other methods to check whether the cancellation succeeded or whether the
|
||||
# operation completed despite cancellation. On successful cancellation,
|
||||
# the operation is not deleted; instead, it becomes an operation with
|
||||
# an Operation.error value with a google.rpc.Status.code of 1,
|
||||
# corresponding to `Code.CANCELLED`.
|
||||
# @param [String] name
|
||||
# The name of the operation resource to be cancelled.
|
||||
# @param [Google::Apis::CloudbuildV1alpha1::CancelOperationRequest] cancel_operation_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::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 cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1alpha1/{+name}:cancel', options)
|
||||
command.request_representation = Google::Apis::CloudbuildV1alpha1::CancelOperationRequest::Representation
|
||||
command.request_object = cancel_operation_request_object
|
||||
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
|
||||
|
||||
# Gets the latest state of a long-running operation. Clients can use this
|
||||
# method to poll the operation result at intervals as recommended by the API
|
||||
# service.
|
||||
# @param [String] name
|
||||
# The name of the operation resource.
|
||||
# @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::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1alpha1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1alpha1::Operation::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1alpha1::Operation
|
||||
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
|
||||
|
||||
# Lists operations that match the specified filter in the request. If the
|
||||
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
# NOTE: the `name` binding allows API services to override the binding
|
||||
# to use different resource name schemes, such as `users/*/operations`. To
|
||||
# override the binding, API services can add a binding such as
|
||||
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
||||
# For backwards compatibility, the default name includes the operations
|
||||
# collection id, however overriding users must ensure the name binding
|
||||
# is the parent resource, without the operations collection id.
|
||||
# @param [String] name
|
||||
# The name of the operation's parent resource.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @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::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1alpha1::ListOperationsResponse]
|
||||
#
|
||||
# @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_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1alpha1/{+name}/operations', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1alpha1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1alpha1::ListOperationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a `WorkerPool` to run the builds, and returns the new worker pool.
|
||||
# @param [String] parent
|
||||
# ID of the parent project.
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/cloud-build/docs/
|
||||
module CloudbuildV1alpha2
|
||||
VERSION = 'V1alpha2'
|
||||
REVISION = '20200317'
|
||||
REVISION = '20200520'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -262,6 +262,7 @@ module Google
|
|||
# Amount of time that this build should be allowed to run, to second
|
||||
# granularity. If this amount of time elapses, work on the build will cease
|
||||
# and the build status will be `TIMEOUT`.
|
||||
# `timeout` starts ticking from `startTime`.
|
||||
# Default time is ten minutes.
|
||||
# Corresponds to the JSON property `timeout`
|
||||
# @return [String]
|
||||
|
@ -611,6 +612,19 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The request message for Operations.CancelOperation.
|
||||
class CancelOperationRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# A generic empty message that you can re-use to avoid defining duplicated
|
||||
# empty messages in your APIs. A typical example is to use it as the request
|
||||
# or the response type of an API method. For instance:
|
||||
|
@ -676,6 +690,31 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The response message for Operations.ListOperations.
|
||||
class ListOperationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The standard List next-page token.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# A list of operations that matches the specified filter in the request.
|
||||
# Corresponds to the JSON property `operations`
|
||||
# @return [Array<Google::Apis::CloudbuildV1alpha2::Operation>]
|
||||
attr_accessor :operations
|
||||
|
||||
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)
|
||||
@operations = args[:operations] if args.key?(:operations)
|
||||
end
|
||||
end
|
||||
|
||||
# Response containing existing `WorkerPools`.
|
||||
class ListWorkerPoolsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -719,6 +758,70 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# This resource represents a long-running operation that is the result of a
|
||||
# network API call.
|
||||
class Operation
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# If the value is `false`, it means the operation is still in progress.
|
||||
# If `true`, the operation is completed, and either `error` or `response` is
|
||||
# available.
|
||||
# Corresponds to the JSON property `done`
|
||||
# @return [Boolean]
|
||||
attr_accessor :done
|
||||
alias_method :done?, :done
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||
# three pieces of data: error code, error message, and error details.
|
||||
# You can find out more about this error model and how to work with it in the
|
||||
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||
# Corresponds to the JSON property `error`
|
||||
# @return [Google::Apis::CloudbuildV1alpha2::Status]
|
||||
attr_accessor :error
|
||||
|
||||
# Service-specific metadata associated with the operation. It typically
|
||||
# contains progress information and common metadata such as create time.
|
||||
# Some services might not provide such metadata. Any method that returns a
|
||||
# long-running operation should document the metadata type, if any.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :metadata
|
||||
|
||||
# The server-assigned name, which is only unique within the same service that
|
||||
# originally returns it. If you use the default HTTP mapping, the
|
||||
# `name` should be a resource name ending with `operations/`unique_id``.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The normal response of the operation in case of success. If the original
|
||||
# method returns no data on success, such as `Delete`, the response is
|
||||
# `google.protobuf.Empty`. If the original method is standard
|
||||
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
||||
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
||||
# is the original method name. For example, if the original method name
|
||||
# is `TakeSnapshot()`, the inferred response type is
|
||||
# `TakeSnapshotResponse`.
|
||||
# Corresponds to the JSON property `response`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :response
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@done = args[:done] if args.key?(:done)
|
||||
@error = args[:error] if args.key?(:error)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@response = args[:response] if args.key?(:response)
|
||||
end
|
||||
end
|
||||
|
||||
# Location of the source in a Google Cloud Source Repository.
|
||||
class RepoSource
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -938,6 +1041,45 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||
# three pieces of data: error code, error message, and error details.
|
||||
# You can find out more about this error model and how to work with it in the
|
||||
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||
class Status
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status code, which should be an enum value of google.rpc.Code.
|
||||
# Corresponds to the JSON property `code`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :code
|
||||
|
||||
# A list of messages that carry the error details. There is a common set of
|
||||
# message types for APIs to use.
|
||||
# Corresponds to the JSON property `details`
|
||||
# @return [Array<Hash<String,Object>>]
|
||||
attr_accessor :details
|
||||
|
||||
# A developer-facing error message, which should be in English. Any
|
||||
# user-facing error message should be localized and sent in the
|
||||
# google.rpc.Status.details field, or localized by the client.
|
||||
# Corresponds to the JSON property `message`
|
||||
# @return [String]
|
||||
attr_accessor :message
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@code = args[:code] if args.key?(:code)
|
||||
@details = args[:details] if args.key?(:details)
|
||||
@message = args[:message] if args.key?(:message)
|
||||
end
|
||||
end
|
||||
|
||||
# Location of the source in an archive file in Google Cloud Storage.
|
||||
class StorageSource
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -70,6 +70,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CancelOperationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Empty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -88,6 +94,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListWorkerPoolsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -100,6 +112,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RepoSource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -130,6 +148,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class StorageSource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -283,6 +307,12 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class CancelOperationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -305,6 +335,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1alpha2::Operation, decorator: Google::Apis::CloudbuildV1alpha2::Operation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListWorkerPoolsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -320,6 +359,18 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :done, as: 'done'
|
||||
property :error, as: 'error', class: Google::Apis::CloudbuildV1alpha2::Status, decorator: Google::Apis::CloudbuildV1alpha2::Status::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
hash :response, as: 'response'
|
||||
end
|
||||
end
|
||||
|
||||
class RepoSource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -378,6 +429,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :details, as: 'details'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
|
||||
class StorageSource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -47,6 +47,127 @@ module Google
|
|||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Starts asynchronous cancellation on a long-running operation. The server
|
||||
# makes a best effort to cancel the operation, but success is not
|
||||
# guaranteed. If the server doesn't support this method, it returns
|
||||
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
||||
# Operations.GetOperation or
|
||||
# other methods to check whether the cancellation succeeded or whether the
|
||||
# operation completed despite cancellation. On successful cancellation,
|
||||
# the operation is not deleted; instead, it becomes an operation with
|
||||
# an Operation.error value with a google.rpc.Status.code of 1,
|
||||
# corresponding to `Code.CANCELLED`.
|
||||
# @param [String] name
|
||||
# The name of the operation resource to be cancelled.
|
||||
# @param [Google::Apis::CloudbuildV1alpha2::CancelOperationRequest] cancel_operation_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1alpha2::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1alpha2::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 cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1alpha2/{+name}:cancel', options)
|
||||
command.request_representation = Google::Apis::CloudbuildV1alpha2::CancelOperationRequest::Representation
|
||||
command.request_object = cancel_operation_request_object
|
||||
command.response_representation = Google::Apis::CloudbuildV1alpha2::Empty::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1alpha2::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
|
||||
|
||||
# Gets the latest state of a long-running operation. Clients can use this
|
||||
# method to poll the operation result at intervals as recommended by the API
|
||||
# service.
|
||||
# @param [String] name
|
||||
# The name of the operation resource.
|
||||
# @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::CloudbuildV1alpha2::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1alpha2::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1alpha2/{+name}', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1alpha2::Operation::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1alpha2::Operation
|
||||
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
|
||||
|
||||
# Lists operations that match the specified filter in the request. If the
|
||||
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
# NOTE: the `name` binding allows API services to override the binding
|
||||
# to use different resource name schemes, such as `users/*/operations`. To
|
||||
# override the binding, API services can add a binding such as
|
||||
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
||||
# For backwards compatibility, the default name includes the operations
|
||||
# collection id, however overriding users must ensure the name binding
|
||||
# is the parent resource, without the operations collection id.
|
||||
# @param [String] name
|
||||
# The name of the operation's parent resource.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @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::CloudbuildV1alpha2::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1alpha2::ListOperationsResponse]
|
||||
#
|
||||
# @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_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1alpha2/{+name}/operations', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1alpha2::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1alpha2::ListOperationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a `WorkerPool` to run the builds, and returns the new worker pool.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource where this book will be created.
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/dialogflow_v3alpha1/service.rb'
|
||||
require 'google/apis/dialogflow_v3alpha1/classes.rb'
|
||||
require 'google/apis/dialogflow_v3alpha1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Dialogflow API
|
||||
#
|
||||
# Builds conversational interfaces (for example, chatbots, and voice-powered
|
||||
# apps and devices).
|
||||
#
|
||||
# @see https://cloud.google.com/dialogflow/
|
||||
module DialogflowV3alpha1
|
||||
VERSION = 'V3alpha1'
|
||||
REVISION = '20200518'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
# View, manage and query your Dialogflow agents
|
||||
AUTH_DIALOGFLOW = 'https://www.googleapis.com/auth/dialogflow'
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,296 @@
|
|||
# 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 DialogflowV3alpha1
|
||||
# Dialogflow API
|
||||
#
|
||||
# Builds conversational interfaces (for example, chatbots, and voice-powered
|
||||
# apps and devices).
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/dialogflow_v3alpha1'
|
||||
#
|
||||
# Dialogflow = Google::Apis::DialogflowV3alpha1 # Alias the module
|
||||
# service = Dialogflow::DialogflowService.new
|
||||
#
|
||||
# @see https://cloud.google.com/dialogflow/
|
||||
class DialogflowService < 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://dialogflow.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Starts asynchronous cancellation on a long-running operation. The server
|
||||
# makes a best effort to cancel the operation, but success is not
|
||||
# guaranteed. If the server doesn't support this method, it returns
|
||||
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
||||
# Operations.GetOperation or
|
||||
# other methods to check whether the cancellation succeeded or whether the
|
||||
# operation completed despite cancellation. On successful cancellation,
|
||||
# the operation is not deleted; instead, it becomes an operation with
|
||||
# an Operation.error value with a google.rpc.Status.code of 1,
|
||||
# corresponding to `Code.CANCELLED`.
|
||||
# @param [String] name
|
||||
# The name of the operation resource to be cancelled.
|
||||
# @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::DialogflowV3alpha1::GoogleProtobufEmpty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DialogflowV3alpha1::GoogleProtobufEmpty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def cancel_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v3alpha1/{+name}:cancel', options)
|
||||
command.response_representation = Google::Apis::DialogflowV3alpha1::GoogleProtobufEmpty::Representation
|
||||
command.response_class = Google::Apis::DialogflowV3alpha1::GoogleProtobufEmpty
|
||||
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
|
||||
|
||||
# Gets the latest state of a long-running operation. Clients can use this
|
||||
# method to poll the operation result at intervals as recommended by the API
|
||||
# service.
|
||||
# @param [String] name
|
||||
# The name of the operation resource.
|
||||
# @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::DialogflowV3alpha1::GoogleLongrunningOperation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DialogflowV3alpha1::GoogleLongrunningOperation]
|
||||
#
|
||||
# @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_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v3alpha1/{+name}', options)
|
||||
command.response_representation = Google::Apis::DialogflowV3alpha1::GoogleLongrunningOperation::Representation
|
||||
command.response_class = Google::Apis::DialogflowV3alpha1::GoogleLongrunningOperation
|
||||
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
|
||||
|
||||
# Lists operations that match the specified filter in the request. If the
|
||||
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
# NOTE: the `name` binding allows API services to override the binding
|
||||
# to use different resource name schemes, such as `users/*/operations`. To
|
||||
# override the binding, API services can add a binding such as
|
||||
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
||||
# For backwards compatibility, the default name includes the operations
|
||||
# collection id, however overriding users must ensure the name binding
|
||||
# is the parent resource, without the operations collection id.
|
||||
# @param [String] name
|
||||
# The name of the operation's parent resource.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @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::DialogflowV3alpha1::GoogleLongrunningListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DialogflowV3alpha1::GoogleLongrunningListOperationsResponse]
|
||||
#
|
||||
# @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_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v3alpha1/{+name}/operations', options)
|
||||
command.response_representation = Google::Apis::DialogflowV3alpha1::GoogleLongrunningListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::DialogflowV3alpha1::GoogleLongrunningListOperationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Starts asynchronous cancellation on a long-running operation. The server
|
||||
# makes a best effort to cancel the operation, but success is not
|
||||
# guaranteed. If the server doesn't support this method, it returns
|
||||
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
||||
# Operations.GetOperation or
|
||||
# other methods to check whether the cancellation succeeded or whether the
|
||||
# operation completed despite cancellation. On successful cancellation,
|
||||
# the operation is not deleted; instead, it becomes an operation with
|
||||
# an Operation.error value with a google.rpc.Status.code of 1,
|
||||
# corresponding to `Code.CANCELLED`.
|
||||
# @param [String] name
|
||||
# The name of the operation resource to be cancelled.
|
||||
# @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::DialogflowV3alpha1::GoogleProtobufEmpty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DialogflowV3alpha1::GoogleProtobufEmpty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def cancel_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v3alpha1/{+name}:cancel', options)
|
||||
command.response_representation = Google::Apis::DialogflowV3alpha1::GoogleProtobufEmpty::Representation
|
||||
command.response_class = Google::Apis::DialogflowV3alpha1::GoogleProtobufEmpty
|
||||
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
|
||||
|
||||
# Gets the latest state of a long-running operation. Clients can use this
|
||||
# method to poll the operation result at intervals as recommended by the API
|
||||
# service.
|
||||
# @param [String] name
|
||||
# The name of the operation resource.
|
||||
# @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::DialogflowV3alpha1::GoogleLongrunningOperation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DialogflowV3alpha1::GoogleLongrunningOperation]
|
||||
#
|
||||
# @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_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v3alpha1/{+name}', options)
|
||||
command.response_representation = Google::Apis::DialogflowV3alpha1::GoogleLongrunningOperation::Representation
|
||||
command.response_class = Google::Apis::DialogflowV3alpha1::GoogleLongrunningOperation
|
||||
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
|
||||
|
||||
# Lists operations that match the specified filter in the request. If the
|
||||
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
# NOTE: the `name` binding allows API services to override the binding
|
||||
# to use different resource name schemes, such as `users/*/operations`. To
|
||||
# override the binding, API services can add a binding such as
|
||||
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
||||
# For backwards compatibility, the default name includes the operations
|
||||
# collection id, however overriding users must ensure the name binding
|
||||
# is the parent resource, without the operations collection id.
|
||||
# @param [String] name
|
||||
# The name of the operation's parent resource.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @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::DialogflowV3alpha1::GoogleLongrunningListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DialogflowV3alpha1::GoogleLongrunningListOperationsResponse]
|
||||
#
|
||||
# @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_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v3alpha1/{+name}/operations', options)
|
||||
command.response_representation = Google::Apis::DialogflowV3alpha1::GoogleLongrunningListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::DialogflowV3alpha1::GoogleLongrunningListOperationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.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
|
|
@ -12,21 +12,23 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/pagespeedonline_v1/service.rb'
|
||||
require 'google/apis/pagespeedonline_v1/classes.rb'
|
||||
require 'google/apis/pagespeedonline_v1/representations.rb'
|
||||
require 'google/apis/firebaseml_v1/service.rb'
|
||||
require 'google/apis/firebaseml_v1/classes.rb'
|
||||
require 'google/apis/firebaseml_v1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# PageSpeed Insights API
|
||||
# Firebase ML API
|
||||
#
|
||||
# Analyzes the performance of a web page and provides tailored suggestions to
|
||||
# make that page faster.
|
||||
# Access custom machine learning models hosted via Firebase ML.
|
||||
#
|
||||
# @see https://developers.google.com/speed/docs/insights/v1/getting_started
|
||||
module PagespeedonlineV1
|
||||
# @see https://firebase.google.com
|
||||
module FirebasemlV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180606'
|
||||
REVISION = '20200519'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,213 @@
|
|||
# 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 FirebasemlV1
|
||||
|
||||
# The request message for Operations.CancelOperation.
|
||||
class CancelOperationRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# A generic empty message that you can re-use to avoid defining duplicated
|
||||
# empty messages in your APIs. A typical example is to use it as the request
|
||||
# or the response type of an API method. For instance:
|
||||
# service Foo `
|
||||
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
||||
# `
|
||||
# The JSON representation for `Empty` is empty JSON object ````.
|
||||
class Empty
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# The response message for Operations.ListOperations.
|
||||
class ListOperationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The standard List next-page token.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# A list of operations that matches the specified filter in the request.
|
||||
# Corresponds to the JSON property `operations`
|
||||
# @return [Array<Google::Apis::FirebasemlV1::Operation>]
|
||||
attr_accessor :operations
|
||||
|
||||
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)
|
||||
@operations = args[:operations] if args.key?(:operations)
|
||||
end
|
||||
end
|
||||
|
||||
# This is returned in the longrunning operations
|
||||
# for create/update.
|
||||
class ModelOperationMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `basicOperationStatus`
|
||||
# @return [String]
|
||||
attr_accessor :basic_operation_status
|
||||
|
||||
# The name of the model we are creating/updating
|
||||
# The name must have the form `projects/`project_id`/models/`model_id``
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@basic_operation_status = args[:basic_operation_status] if args.key?(:basic_operation_status)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
end
|
||||
end
|
||||
|
||||
# This resource represents a long-running operation that is the result of a
|
||||
# network API call.
|
||||
class Operation
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# If the value is `false`, it means the operation is still in progress.
|
||||
# If `true`, the operation is completed, and either `error` or `response` is
|
||||
# available.
|
||||
# Corresponds to the JSON property `done`
|
||||
# @return [Boolean]
|
||||
attr_accessor :done
|
||||
alias_method :done?, :done
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||
# three pieces of data: error code, error message, and error details.
|
||||
# You can find out more about this error model and how to work with it in the
|
||||
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||
# Corresponds to the JSON property `error`
|
||||
# @return [Google::Apis::FirebasemlV1::Status]
|
||||
attr_accessor :error
|
||||
|
||||
# Service-specific metadata associated with the operation. It typically
|
||||
# contains progress information and common metadata such as create time.
|
||||
# Some services might not provide such metadata. Any method that returns a
|
||||
# long-running operation should document the metadata type, if any.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :metadata
|
||||
|
||||
# The server-assigned name, which is only unique within the same service that
|
||||
# originally returns it. If you use the default HTTP mapping, the
|
||||
# `name` should be a resource name ending with `operations/`unique_id``.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The normal response of the operation in case of success. If the original
|
||||
# method returns no data on success, such as `Delete`, the response is
|
||||
# `google.protobuf.Empty`. If the original method is standard
|
||||
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
||||
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
||||
# is the original method name. For example, if the original method name
|
||||
# is `TakeSnapshot()`, the inferred response type is
|
||||
# `TakeSnapshotResponse`.
|
||||
# Corresponds to the JSON property `response`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :response
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@done = args[:done] if args.key?(:done)
|
||||
@error = args[:error] if args.key?(:error)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@response = args[:response] if args.key?(:response)
|
||||
end
|
||||
end
|
||||
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||
# three pieces of data: error code, error message, and error details.
|
||||
# You can find out more about this error model and how to work with it in the
|
||||
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||
class Status
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The status code, which should be an enum value of google.rpc.Code.
|
||||
# Corresponds to the JSON property `code`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :code
|
||||
|
||||
# A list of messages that carry the error details. There is a common set of
|
||||
# message types for APIs to use.
|
||||
# Corresponds to the JSON property `details`
|
||||
# @return [Array<Hash<String,Object>>]
|
||||
attr_accessor :details
|
||||
|
||||
# A developer-facing error message, which should be in English. Any
|
||||
# user-facing error message should be localized and sent in the
|
||||
# google.rpc.Status.details field, or localized by the client.
|
||||
# Corresponds to the JSON property `message`
|
||||
# @return [String]
|
||||
attr_accessor :message
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@code = args[:code] if args.key?(:code)
|
||||
@details = args[:details] if args.key?(:details)
|
||||
@message = args[:message] if args.key?(:message)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,112 @@
|
|||
# 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 FirebasemlV1
|
||||
|
||||
class CancelOperationRequest
|
||||
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 ListOperationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ModelOperationMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CancelOperationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :operations, as: 'operations', class: Google::Apis::FirebasemlV1::Operation, decorator: Google::Apis::FirebasemlV1::Operation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ModelOperationMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :basic_operation_status, as: 'basicOperationStatus'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :done, as: 'done'
|
||||
property :error, as: 'error', class: Google::Apis::FirebasemlV1::Status, decorator: Google::Apis::FirebasemlV1::Status::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
hash :response, as: 'response'
|
||||
end
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :details, as: 'details'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,181 @@
|
|||
# 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 FirebasemlV1
|
||||
# Firebase ML API
|
||||
#
|
||||
# Access custom machine learning models hosted via Firebase ML.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/firebaseml_v1'
|
||||
#
|
||||
# Firebaseml = Google::Apis::FirebasemlV1 # Alias the module
|
||||
# service = Firebaseml::FirebaseMLService.new
|
||||
#
|
||||
# @see https://firebase.google.com
|
||||
class FirebaseMLService < 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://firebaseml.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Starts asynchronous cancellation on a long-running operation. The server
|
||||
# makes a best effort to cancel the operation, but success is not
|
||||
# guaranteed. If the server doesn't support this method, it returns
|
||||
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
||||
# Operations.GetOperation or
|
||||
# other methods to check whether the cancellation succeeded or whether the
|
||||
# operation completed despite cancellation. On successful cancellation,
|
||||
# the operation is not deleted; instead, it becomes an operation with
|
||||
# an Operation.error value with a google.rpc.Status.code of 1,
|
||||
# corresponding to `Code.CANCELLED`.
|
||||
# @param [String] name
|
||||
# The name of the operation resource to be cancelled.
|
||||
# @param [Google::Apis::FirebasemlV1::CancelOperationRequest] cancel_operation_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FirebasemlV1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FirebasemlV1::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 cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
||||
command.request_representation = Google::Apis::FirebasemlV1::CancelOperationRequest::Representation
|
||||
command.request_object = cancel_operation_request_object
|
||||
command.response_representation = Google::Apis::FirebasemlV1::Empty::Representation
|
||||
command.response_class = Google::Apis::FirebasemlV1::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
|
||||
|
||||
# Deletes a long-running operation. This method indicates that the client is
|
||||
# no longer interested in the operation result. It does not cancel the
|
||||
# operation. If the server doesn't support this method, it returns
|
||||
# `google.rpc.Code.UNIMPLEMENTED`.
|
||||
# @param [String] name
|
||||
# The name of the operation resource to be deleted.
|
||||
# @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::FirebasemlV1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FirebasemlV1::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_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::FirebasemlV1::Empty::Representation
|
||||
command.response_class = Google::Apis::FirebasemlV1::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
|
||||
|
||||
# Lists operations that match the specified filter in the request. If the
|
||||
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
# NOTE: the `name` binding allows API services to override the binding
|
||||
# to use different resource name schemes, such as `users/*/operations`. To
|
||||
# override the binding, API services can add a binding such as
|
||||
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
||||
# For backwards compatibility, the default name includes the operations
|
||||
# collection id, however overriding users must ensure the name binding
|
||||
# is the parent resource, without the operations collection id.
|
||||
# @param [String] name
|
||||
# The name of the operation's parent resource.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @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::FirebasemlV1::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FirebasemlV1::ListOperationsResponse]
|
||||
#
|
||||
# @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_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::FirebasemlV1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::FirebasemlV1::ListOperationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials
|
||||
module IamcredentialsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200417'
|
||||
REVISION = '20200515'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -194,12 +194,24 @@ module Google
|
|||
class SignBlobResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The ID of the key used to sign the blob.
|
||||
# The ID of the key used to sign the blob. The key used for signing will
|
||||
# remain valid for at least 12 hours after the blob is signed. To verify the
|
||||
# signature, you can retrieve the public key in several formats from the
|
||||
# following endpoints:
|
||||
# - RSA public key wrapped in an X.509 v3 certificate:
|
||||
# `https://www.googleapis.com/service_accounts/v1/metadata/x509/`ACCOUNT_EMAIL``
|
||||
# - Raw key in JSON format:
|
||||
# `https://www.googleapis.com/service_accounts/v1/metadata/raw/`ACCOUNT_EMAIL``
|
||||
# - JSON Web Key (JWK):
|
||||
# `https://www.googleapis.com/service_accounts/v1/metadata/jwk/`ACCOUNT_EMAIL``
|
||||
# Corresponds to the JSON property `keyId`
|
||||
# @return [String]
|
||||
attr_accessor :key_id
|
||||
|
||||
# The signature for the blob. Does not include the original blob.
|
||||
# After the key pair referenced by the `key_id` response field expires,
|
||||
# Google no longer exposes the public key that can be used to verify the
|
||||
# blob. As a result, the receiver can no longer verify the signature.
|
||||
# Corresponds to the JSON property `signedBlob`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
|
@ -257,7 +269,16 @@ module Google
|
|||
class SignJwtResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The ID of the key used to sign the JWT.
|
||||
# The ID of the key used to sign the JWT. The key used for signing will
|
||||
# remain valid for at least 12 hours after the JWT is signed. To verify the
|
||||
# signature, you can retrieve the public key in several formats from the
|
||||
# following endpoints:
|
||||
# - RSA public key wrapped in an X.509 v3 certificate:
|
||||
# `https://www.googleapis.com/service_accounts/v1/metadata/x509/`ACCOUNT_EMAIL``
|
||||
# - Raw key in JSON format:
|
||||
# `https://www.googleapis.com/service_accounts/v1/metadata/raw/`ACCOUNT_EMAIL``
|
||||
# - JSON Web Key (JWK):
|
||||
# `https://www.googleapis.com/service_accounts/v1/metadata/jwk/`ACCOUNT_EMAIL``
|
||||
# Corresponds to the JSON property `keyId`
|
||||
# @return [String]
|
||||
attr_accessor :key_id
|
||||
|
@ -265,6 +286,9 @@ module Google
|
|||
# The signed JWT. Contains the automatically generated header; the
|
||||
# client-supplied payload; and the signature, which is generated using the
|
||||
# key referenced by the `kid` field in the header.
|
||||
# After the key pair referenced by the `key_id` response field expires,
|
||||
# Google no longer exposes the public key that can be used to verify the JWT.
|
||||
# As a result, the receiver can no longer verify the signature.
|
||||
# Corresponds to the JSON property `signedJwt`
|
||||
# @return [String]
|
||||
attr_accessor :signed_jwt
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
# 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/networkmanagement_v1/service.rb'
|
||||
require 'google/apis/networkmanagement_v1/classes.rb'
|
||||
require 'google/apis/networkmanagement_v1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Network Management API
|
||||
#
|
||||
# The Network Management API provides a collection of network performance
|
||||
# monitoring and diagnostic capabilities.
|
||||
#
|
||||
# @see https://cloud.google.com/
|
||||
module NetworkmanagementV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20200505'
|
||||
|
||||
# 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,661 @@
|
|||
# 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 NetworkmanagementV1
|
||||
|
||||
class AbortInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuditConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AuditLogConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Binding
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CancelOperationRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ConnectivityTest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DeliverInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DropInfo
|
||||
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 Endpoint
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class EndpointInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Expr
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FirewallInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ForwardInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ForwardingRuleInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class InstanceInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListConnectivityTestsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LoadBalancerBackend
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LoadBalancerInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Location
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NetworkInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Operation
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OperationMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Policy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReachabilityDetails
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RerunConnectivityTestRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class RouteInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SetIamPolicyRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Status
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Step
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestIamPermissionsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TestIamPermissionsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Trace
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class VpnGatewayInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class VpnTunnelInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class AbortInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cause, as: 'cause'
|
||||
property :resource_uri, as: 'resourceUri'
|
||||
end
|
||||
end
|
||||
|
||||
class AuditConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::NetworkmanagementV1::AuditLogConfig, decorator: Google::Apis::NetworkmanagementV1::AuditLogConfig::Representation
|
||||
|
||||
property :service, as: 'service'
|
||||
end
|
||||
end
|
||||
|
||||
class AuditLogConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :exempted_members, as: 'exemptedMembers'
|
||||
property :log_type, as: 'logType'
|
||||
end
|
||||
end
|
||||
|
||||
class Binding
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :condition, as: 'condition', class: Google::Apis::NetworkmanagementV1::Expr, decorator: Google::Apis::NetworkmanagementV1::Expr::Representation
|
||||
|
||||
collection :members, as: 'members'
|
||||
property :role, as: 'role'
|
||||
end
|
||||
end
|
||||
|
||||
class CancelOperationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class ConnectivityTest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :create_time, as: 'createTime'
|
||||
property :description, as: 'description'
|
||||
property :destination, as: 'destination', class: Google::Apis::NetworkmanagementV1::Endpoint, decorator: Google::Apis::NetworkmanagementV1::Endpoint::Representation
|
||||
|
||||
property :display_name, as: 'displayName'
|
||||
hash :labels, as: 'labels'
|
||||
property :name, as: 'name'
|
||||
property :protocol, as: 'protocol'
|
||||
property :reachability_details, as: 'reachabilityDetails', class: Google::Apis::NetworkmanagementV1::ReachabilityDetails, decorator: Google::Apis::NetworkmanagementV1::ReachabilityDetails::Representation
|
||||
|
||||
collection :related_projects, as: 'relatedProjects'
|
||||
property :source, as: 'source', class: Google::Apis::NetworkmanagementV1::Endpoint, decorator: Google::Apis::NetworkmanagementV1::Endpoint::Representation
|
||||
|
||||
property :update_time, as: 'updateTime'
|
||||
end
|
||||
end
|
||||
|
||||
class DeliverInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :resource_uri, as: 'resourceUri'
|
||||
property :target, as: 'target'
|
||||
end
|
||||
end
|
||||
|
||||
class DropInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cause, as: 'cause'
|
||||
property :resource_uri, as: 'resourceUri'
|
||||
end
|
||||
end
|
||||
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class Endpoint
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :instance, as: 'instance'
|
||||
property :ip_address, as: 'ipAddress'
|
||||
property :network, as: 'network'
|
||||
property :network_type, as: 'networkType'
|
||||
property :port, as: 'port'
|
||||
property :project_id, as: 'projectId'
|
||||
end
|
||||
end
|
||||
|
||||
class EndpointInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :destination_ip, as: 'destinationIp'
|
||||
property :destination_network_uri, as: 'destinationNetworkUri'
|
||||
property :destination_port, as: 'destinationPort'
|
||||
property :protocol, as: 'protocol'
|
||||
property :source_ip, as: 'sourceIp'
|
||||
property :source_network_uri, as: 'sourceNetworkUri'
|
||||
property :source_port, as: 'sourcePort'
|
||||
end
|
||||
end
|
||||
|
||||
class Expr
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :description, as: 'description'
|
||||
property :expression, as: 'expression'
|
||||
property :location, as: 'location'
|
||||
property :title, as: 'title'
|
||||
end
|
||||
end
|
||||
|
||||
class FirewallInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :action, as: 'action'
|
||||
property :direction, as: 'direction'
|
||||
property :display_name, as: 'displayName'
|
||||
property :network_uri, as: 'networkUri'
|
||||
property :priority, as: 'priority'
|
||||
collection :target_service_accounts, as: 'targetServiceAccounts'
|
||||
collection :target_tags, as: 'targetTags'
|
||||
property :uri, as: 'uri'
|
||||
end
|
||||
end
|
||||
|
||||
class ForwardInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :resource_uri, as: 'resourceUri'
|
||||
property :target, as: 'target'
|
||||
end
|
||||
end
|
||||
|
||||
class ForwardingRuleInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :display_name, as: 'displayName'
|
||||
property :matched_port_range, as: 'matchedPortRange'
|
||||
property :matched_protocol, as: 'matchedProtocol'
|
||||
property :network_uri, as: 'networkUri'
|
||||
property :target, as: 'target'
|
||||
property :uri, as: 'uri'
|
||||
property :vip, as: 'vip'
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :display_name, as: 'displayName'
|
||||
property :external_ip, as: 'externalIp'
|
||||
property :interface, as: 'interface'
|
||||
property :internal_ip, as: 'internalIp'
|
||||
collection :network_tags, as: 'networkTags'
|
||||
property :network_uri, as: 'networkUri'
|
||||
property :service_account, as: 'serviceAccount'
|
||||
property :uri, as: 'uri'
|
||||
end
|
||||
end
|
||||
|
||||
class ListConnectivityTestsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :resources, as: 'resources', class: Google::Apis::NetworkmanagementV1::ConnectivityTest, decorator: Google::Apis::NetworkmanagementV1::ConnectivityTest::Representation
|
||||
|
||||
collection :unreachable, as: 'unreachable'
|
||||
end
|
||||
end
|
||||
|
||||
class ListLocationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :locations, as: 'locations', class: Google::Apis::NetworkmanagementV1::Location, decorator: Google::Apis::NetworkmanagementV1::Location::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :operations, as: 'operations', class: Google::Apis::NetworkmanagementV1::Operation, decorator: Google::Apis::NetworkmanagementV1::Operation::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class LoadBalancerBackend
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :display_name, as: 'displayName'
|
||||
collection :health_check_allowing_firewall_rules, as: 'healthCheckAllowingFirewallRules'
|
||||
collection :health_check_blocking_firewall_rules, as: 'healthCheckBlockingFirewallRules'
|
||||
property :health_check_firewall_state, as: 'healthCheckFirewallState'
|
||||
property :uri, as: 'uri'
|
||||
end
|
||||
end
|
||||
|
||||
class LoadBalancerInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :backend_type, as: 'backendType'
|
||||
property :backend_uri, as: 'backendUri'
|
||||
collection :backends, as: 'backends', class: Google::Apis::NetworkmanagementV1::LoadBalancerBackend, decorator: Google::Apis::NetworkmanagementV1::LoadBalancerBackend::Representation
|
||||
|
||||
property :health_check_uri, as: 'healthCheckUri'
|
||||
property :load_balancer_type, as: 'loadBalancerType'
|
||||
end
|
||||
end
|
||||
|
||||
class Location
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :display_name, as: 'displayName'
|
||||
hash :labels, as: 'labels'
|
||||
property :location_id, as: 'locationId'
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class NetworkInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :display_name, as: 'displayName'
|
||||
property :matched_ip_range, as: 'matchedIpRange'
|
||||
property :uri, as: 'uri'
|
||||
end
|
||||
end
|
||||
|
||||
class Operation
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :done, as: 'done'
|
||||
property :error, as: 'error', class: Google::Apis::NetworkmanagementV1::Status, decorator: Google::Apis::NetworkmanagementV1::Status::Representation
|
||||
|
||||
hash :metadata, as: 'metadata'
|
||||
property :name, as: 'name'
|
||||
hash :response, as: 'response'
|
||||
end
|
||||
end
|
||||
|
||||
class OperationMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :api_version, as: 'apiVersion'
|
||||
property :cancel_requested, as: 'cancelRequested'
|
||||
property :create_time, as: 'createTime'
|
||||
property :end_time, as: 'endTime'
|
||||
property :status_detail, as: 'statusDetail'
|
||||
property :target, as: 'target'
|
||||
property :verb, as: 'verb'
|
||||
end
|
||||
end
|
||||
|
||||
class Policy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::NetworkmanagementV1::AuditConfig, decorator: Google::Apis::NetworkmanagementV1::AuditConfig::Representation
|
||||
|
||||
collection :bindings, as: 'bindings', class: Google::Apis::NetworkmanagementV1::Binding, decorator: Google::Apis::NetworkmanagementV1::Binding::Representation
|
||||
|
||||
property :etag, :base64 => true, as: 'etag'
|
||||
property :version, as: 'version'
|
||||
end
|
||||
end
|
||||
|
||||
class ReachabilityDetails
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :error, as: 'error', class: Google::Apis::NetworkmanagementV1::Status, decorator: Google::Apis::NetworkmanagementV1::Status::Representation
|
||||
|
||||
property :result, as: 'result'
|
||||
collection :traces, as: 'traces', class: Google::Apis::NetworkmanagementV1::Trace, decorator: Google::Apis::NetworkmanagementV1::Trace::Representation
|
||||
|
||||
property :verify_time, as: 'verifyTime'
|
||||
end
|
||||
end
|
||||
|
||||
class RerunConnectivityTestRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class RouteInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :dest_ip_range, as: 'destIpRange'
|
||||
property :display_name, as: 'displayName'
|
||||
collection :instance_tags, as: 'instanceTags'
|
||||
property :network_uri, as: 'networkUri'
|
||||
property :next_hop, as: 'nextHop'
|
||||
property :next_hop_type, as: 'nextHopType'
|
||||
property :priority, as: 'priority'
|
||||
property :route_type, as: 'routeType'
|
||||
property :uri, as: 'uri'
|
||||
end
|
||||
end
|
||||
|
||||
class SetIamPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :policy, as: 'policy', class: Google::Apis::NetworkmanagementV1::Policy, decorator: Google::Apis::NetworkmanagementV1::Policy::Representation
|
||||
|
||||
property :update_mask, as: 'updateMask'
|
||||
end
|
||||
end
|
||||
|
||||
class Status
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
collection :details, as: 'details'
|
||||
property :message, as: 'message'
|
||||
end
|
||||
end
|
||||
|
||||
class Step
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :abort, as: 'abort', class: Google::Apis::NetworkmanagementV1::AbortInfo, decorator: Google::Apis::NetworkmanagementV1::AbortInfo::Representation
|
||||
|
||||
property :causes_drop, as: 'causesDrop'
|
||||
property :deliver, as: 'deliver', class: Google::Apis::NetworkmanagementV1::DeliverInfo, decorator: Google::Apis::NetworkmanagementV1::DeliverInfo::Representation
|
||||
|
||||
property :description, as: 'description'
|
||||
property :drop, as: 'drop', class: Google::Apis::NetworkmanagementV1::DropInfo, decorator: Google::Apis::NetworkmanagementV1::DropInfo::Representation
|
||||
|
||||
property :endpoint, as: 'endpoint', class: Google::Apis::NetworkmanagementV1::EndpointInfo, decorator: Google::Apis::NetworkmanagementV1::EndpointInfo::Representation
|
||||
|
||||
property :firewall, as: 'firewall', class: Google::Apis::NetworkmanagementV1::FirewallInfo, decorator: Google::Apis::NetworkmanagementV1::FirewallInfo::Representation
|
||||
|
||||
property :forward, as: 'forward', class: Google::Apis::NetworkmanagementV1::ForwardInfo, decorator: Google::Apis::NetworkmanagementV1::ForwardInfo::Representation
|
||||
|
||||
property :forwarding_rule, as: 'forwardingRule', class: Google::Apis::NetworkmanagementV1::ForwardingRuleInfo, decorator: Google::Apis::NetworkmanagementV1::ForwardingRuleInfo::Representation
|
||||
|
||||
property :instance, as: 'instance', class: Google::Apis::NetworkmanagementV1::InstanceInfo, decorator: Google::Apis::NetworkmanagementV1::InstanceInfo::Representation
|
||||
|
||||
property :load_balancer, as: 'loadBalancer', class: Google::Apis::NetworkmanagementV1::LoadBalancerInfo, decorator: Google::Apis::NetworkmanagementV1::LoadBalancerInfo::Representation
|
||||
|
||||
property :network, as: 'network', class: Google::Apis::NetworkmanagementV1::NetworkInfo, decorator: Google::Apis::NetworkmanagementV1::NetworkInfo::Representation
|
||||
|
||||
property :project_id, as: 'projectId'
|
||||
property :route, as: 'route', class: Google::Apis::NetworkmanagementV1::RouteInfo, decorator: Google::Apis::NetworkmanagementV1::RouteInfo::Representation
|
||||
|
||||
property :state, as: 'state'
|
||||
property :vpn_gateway, as: 'vpnGateway', class: Google::Apis::NetworkmanagementV1::VpnGatewayInfo, decorator: Google::Apis::NetworkmanagementV1::VpnGatewayInfo::Representation
|
||||
|
||||
property :vpn_tunnel, as: 'vpnTunnel', class: Google::Apis::NetworkmanagementV1::VpnTunnelInfo, decorator: Google::Apis::NetworkmanagementV1::VpnTunnelInfo::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class TestIamPermissionsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class TestIamPermissionsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :permissions, as: 'permissions'
|
||||
end
|
||||
end
|
||||
|
||||
class Trace
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :endpoint_info, as: 'endpointInfo', class: Google::Apis::NetworkmanagementV1::EndpointInfo, decorator: Google::Apis::NetworkmanagementV1::EndpointInfo::Representation
|
||||
|
||||
collection :steps, as: 'steps', class: Google::Apis::NetworkmanagementV1::Step, decorator: Google::Apis::NetworkmanagementV1::Step::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class VpnGatewayInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :display_name, as: 'displayName'
|
||||
property :ip_address, as: 'ipAddress'
|
||||
property :network_uri, as: 'networkUri'
|
||||
property :region, as: 'region'
|
||||
property :uri, as: 'uri'
|
||||
property :vpn_tunnel_uri, as: 'vpnTunnelUri'
|
||||
end
|
||||
end
|
||||
|
||||
class VpnTunnelInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :display_name, as: 'displayName'
|
||||
property :network_uri, as: 'networkUri'
|
||||
property :region, as: 'region'
|
||||
property :remote_gateway, as: 'remoteGateway'
|
||||
property :remote_gateway_ip, as: 'remoteGatewayIp'
|
||||
property :routing_type, as: 'routingType'
|
||||
property :source_gateway, as: 'sourceGateway'
|
||||
property :source_gateway_ip, as: 'sourceGatewayIp'
|
||||
property :uri, as: 'uri'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,667 @@
|
|||
# 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 NetworkmanagementV1
|
||||
# Network Management API
|
||||
#
|
||||
# The Network Management API provides a collection of network performance
|
||||
# monitoring and diagnostic capabilities.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/networkmanagement_v1'
|
||||
#
|
||||
# Networkmanagement = Google::Apis::NetworkmanagementV1 # Alias the module
|
||||
# service = Networkmanagement::NetworkManagementService.new
|
||||
#
|
||||
# @see https://cloud.google.com/
|
||||
class NetworkManagementService < 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://networkmanagement.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Gets information about a location.
|
||||
# @param [String] name
|
||||
# Resource name for the location.
|
||||
# @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::NetworkmanagementV1::Location] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::NetworkmanagementV1::Location]
|
||||
#
|
||||
# @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_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::NetworkmanagementV1::Location::Representation
|
||||
command.response_class = Google::Apis::NetworkmanagementV1::Location
|
||||
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
|
||||
|
||||
# Lists information about the supported locations for this service.
|
||||
# @param [String] name
|
||||
# The resource that owns the locations collection, if applicable.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @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::NetworkmanagementV1::ListLocationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::NetworkmanagementV1::ListLocationsResponse]
|
||||
#
|
||||
# @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_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
||||
command.response_representation = Google::Apis::NetworkmanagementV1::ListLocationsResponse::Representation
|
||||
command.response_class = Google::Apis::NetworkmanagementV1::ListLocationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a new Connectivity Test.
|
||||
# After you create a test, the reachability analysis is performed as part
|
||||
# of the long running operation, which completes when the analysis completes.
|
||||
# If the endpoint specifications in `ConnectivityTest` are invalid
|
||||
# (for example, containing non-existent resources in the network, or you
|
||||
# don't have read permissions to the network configurations of listed
|
||||
# projects), then the reachability result returns a value of `UNKNOWN`.
|
||||
# If the endpoint specifications in `ConnectivityTest` are
|
||||
# incomplete, the reachability result returns a value of
|
||||
# <code>AMBIGUOUS</code>. For more information,
|
||||
# see the Connectivity Test documentation.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource of the Connectivity Test to create:
|
||||
# `projects/`project_id`/locations/global`
|
||||
# @param [Google::Apis::NetworkmanagementV1::ConnectivityTest] connectivity_test_object
|
||||
# @param [String] test_id
|
||||
# Required. The logical name of the Connectivity Test in your project
|
||||
# with the following restrictions:
|
||||
# * Must contain only lowercase letters, numbers, and hyphens.
|
||||
# * Must start with a letter.
|
||||
# * Must be between 1-40 characters.
|
||||
# * Must end with a number or a letter.
|
||||
# * Must be unique within the customer 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::NetworkmanagementV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::NetworkmanagementV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_project_location_global_connectivity_test(parent, connectivity_test_object = nil, test_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+parent}/connectivityTests', options)
|
||||
command.request_representation = Google::Apis::NetworkmanagementV1::ConnectivityTest::Representation
|
||||
command.request_object = connectivity_test_object
|
||||
command.response_representation = Google::Apis::NetworkmanagementV1::Operation::Representation
|
||||
command.response_class = Google::Apis::NetworkmanagementV1::Operation
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['testId'] = test_id unless test_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a specific `ConnectivityTest`.
|
||||
# @param [String] name
|
||||
# Required. Connectivity Test resource name using the form:
|
||||
# `projects/`project_id`/locations/global/connectivityTests/`test_id``
|
||||
# @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::NetworkmanagementV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::NetworkmanagementV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_project_location_global_connectivity_test(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::NetworkmanagementV1::Operation::Representation
|
||||
command.response_class = Google::Apis::NetworkmanagementV1::Operation
|
||||
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
|
||||
|
||||
# Gets the details of a specific Connectivity Test.
|
||||
# @param [String] name
|
||||
# Required. `ConnectivityTest` resource name using the form:
|
||||
# `projects/`project_id`/locations/global/connectivityTests/`test_id``
|
||||
# @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::NetworkmanagementV1::ConnectivityTest] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::NetworkmanagementV1::ConnectivityTest]
|
||||
#
|
||||
# @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_location_global_connectivity_test(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::NetworkmanagementV1::ConnectivityTest::Representation
|
||||
command.response_class = Google::Apis::NetworkmanagementV1::ConnectivityTest
|
||||
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
|
||||
|
||||
# Gets the access control policy for a resource.
|
||||
# Returns an empty policy if the resource exists and does not have a policy
|
||||
# set.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Fixnum] options_requested_policy_version
|
||||
# Optional. The policy format version to be returned.
|
||||
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
||||
# rejected.
|
||||
# Requests for policies with any conditional bindings must specify version 3.
|
||||
# Policies without any conditional bindings may specify any valid value or
|
||||
# leave the field unset.
|
||||
# To learn which resources support conditions in their IAM policies, see the
|
||||
# [IAM
|
||||
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
# @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::NetworkmanagementV1::Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::NetworkmanagementV1::Policy]
|
||||
#
|
||||
# @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_location_global_connectivity_test_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
||||
command.response_representation = Google::Apis::NetworkmanagementV1::Policy::Representation
|
||||
command.response_class = Google::Apis::NetworkmanagementV1::Policy
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists all Connectivity Tests owned by a project.
|
||||
# @param [String] parent
|
||||
# Required. The parent resource of the Connectivity Tests:
|
||||
# `projects/`project_id`/locations/global`
|
||||
# @param [String] filter
|
||||
# Lists the `ConnectivityTests` that match the filter expression. A filter
|
||||
# expression filters the resources listed in the response. The expression
|
||||
# must be of the form `<field> <operator> <value>` where operators: `<`, `>`,
|
||||
# `<=`,
|
||||
# `>=`,
|
||||
# `!=`, `=`, `:` are supported (colon `:` represents a HAS operator which is
|
||||
# roughly synonymous with equality). <field> can refer to a proto or JSON
|
||||
# field, or a synthetic field. Field names can be camelCase or snake_case.
|
||||
# Examples:
|
||||
# - Filter by name:
|
||||
# name = "projects/proj-1/locations/global/connectivityTests/test-1
|
||||
# - Filter by labels:
|
||||
# - Resources that have a key called `foo`
|
||||
# labels.foo:*
|
||||
# - Resources that have a key called `foo` whose value is `bar`
|
||||
# labels.foo = bar
|
||||
# @param [String] order_by
|
||||
# Field to use to sort the list.
|
||||
# @param [Fixnum] page_size
|
||||
# Number of `ConnectivityTests` to return.
|
||||
# @param [String] page_token
|
||||
# Page token from an earlier query, as returned in `next_page_token`.
|
||||
# @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::NetworkmanagementV1::ListConnectivityTestsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::NetworkmanagementV1::ListConnectivityTestsResponse]
|
||||
#
|
||||
# @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_location_global_connectivity_tests(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+parent}/connectivityTests', options)
|
||||
command.response_representation = Google::Apis::NetworkmanagementV1::ListConnectivityTestsResponse::Representation
|
||||
command.response_class = Google::Apis::NetworkmanagementV1::ListConnectivityTestsResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the configuration of an existing `ConnectivityTest`.
|
||||
# After you update a test, the reachability analysis is performed as part
|
||||
# of the long running operation, which completes when the analysis completes.
|
||||
# The Reachability state in the test resource is updated with the new result.
|
||||
# If the endpoint specifications in `ConnectivityTest` are invalid
|
||||
# (for example, they contain non-existent resources in the network, or the
|
||||
# user does not have read permissions to the network configurations of
|
||||
# listed projects), then the reachability result returns a value of
|
||||
# <code>UNKNOWN</code>.
|
||||
# If the endpoint specifications in `ConnectivityTest` are incomplete, the
|
||||
# reachability result returns a value of `AMBIGUOUS`. See the documentation
|
||||
# in `ConnectivityTest` for for more details.
|
||||
# @param [String] name
|
||||
# Required. Unique name of the resource using the form:
|
||||
# `projects/`project_id`/locations/global/connectivityTests/`test_id``
|
||||
# @param [Google::Apis::NetworkmanagementV1::ConnectivityTest] connectivity_test_object
|
||||
# @param [String] update_mask
|
||||
# Required. Mask of fields to update. At least one path must be supplied in
|
||||
# this field.
|
||||
# @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::NetworkmanagementV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::NetworkmanagementV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_project_location_global_connectivity_test(name, connectivity_test_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1/{+name}', options)
|
||||
command.request_representation = Google::Apis::NetworkmanagementV1::ConnectivityTest::Representation
|
||||
command.request_object = connectivity_test_object
|
||||
command.response_representation = Google::Apis::NetworkmanagementV1::Operation::Representation
|
||||
command.response_class = Google::Apis::NetworkmanagementV1::Operation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Rerun an existing `ConnectivityTest`.
|
||||
# After the user triggers the rerun, the reachability analysis is performed
|
||||
# as part of the long running operation, which completes when the analysis
|
||||
# completes.
|
||||
# Even though the test configuration remains the same, the reachability
|
||||
# result may change due to underlying network configuration changes.
|
||||
# If the endpoint specifications in `ConnectivityTest` become invalid (for
|
||||
# example, specified resources are deleted in the network, or you lost
|
||||
# read permissions to the network configurations of listed projects), then
|
||||
# the reachability result returns a value of `UNKNOWN`.
|
||||
# @param [String] name
|
||||
# Required. Connectivity Test resource name using the form:
|
||||
# `projects/`project_id`/locations/global/connectivityTests/`test_id``
|
||||
# @param [Google::Apis::NetworkmanagementV1::RerunConnectivityTestRequest] rerun_connectivity_test_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::NetworkmanagementV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::NetworkmanagementV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def rerun_connectivity_test(name, rerun_connectivity_test_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:rerun', options)
|
||||
command.request_representation = Google::Apis::NetworkmanagementV1::RerunConnectivityTestRequest::Representation
|
||||
command.request_object = rerun_connectivity_test_request_object
|
||||
command.response_representation = Google::Apis::NetworkmanagementV1::Operation::Representation
|
||||
command.response_class = Google::Apis::NetworkmanagementV1::Operation
|
||||
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
|
||||
|
||||
# Sets the access control policy on the specified resource. Replaces any
|
||||
# existing policy.
|
||||
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy is being specified.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::NetworkmanagementV1::SetIamPolicyRequest] set_iam_policy_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::NetworkmanagementV1::Policy] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::NetworkmanagementV1::Policy]
|
||||
#
|
||||
# @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 set_connectivity_test_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
||||
command.request_representation = Google::Apis::NetworkmanagementV1::SetIamPolicyRequest::Representation
|
||||
command.request_object = set_iam_policy_request_object
|
||||
command.response_representation = Google::Apis::NetworkmanagementV1::Policy::Representation
|
||||
command.response_class = Google::Apis::NetworkmanagementV1::Policy
|
||||
command.params['resource'] = resource unless resource.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 permissions that a caller has on the specified resource.
|
||||
# If the resource does not exist, this will return an empty set of
|
||||
# permissions, not a `NOT_FOUND` error.
|
||||
# Note: This operation is designed to be used for building permission-aware
|
||||
# UIs and command-line tools, not for authorization checking. This operation
|
||||
# may "fail open" without warning.
|
||||
# @param [String] resource
|
||||
# REQUIRED: The resource for which the policy detail is being requested.
|
||||
# See the operation documentation for the appropriate value for this field.
|
||||
# @param [Google::Apis::NetworkmanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::NetworkmanagementV1::TestIamPermissionsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::NetworkmanagementV1::TestIamPermissionsResponse]
|
||||
#
|
||||
# @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 test_connectivity_test_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
||||
command.request_representation = Google::Apis::NetworkmanagementV1::TestIamPermissionsRequest::Representation
|
||||
command.request_object = test_iam_permissions_request_object
|
||||
command.response_representation = Google::Apis::NetworkmanagementV1::TestIamPermissionsResponse::Representation
|
||||
command.response_class = Google::Apis::NetworkmanagementV1::TestIamPermissionsResponse
|
||||
command.params['resource'] = resource unless resource.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Starts asynchronous cancellation on a long-running operation. The server
|
||||
# makes a best effort to cancel the operation, but success is not
|
||||
# guaranteed. If the server doesn't support this method, it returns
|
||||
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
||||
# Operations.GetOperation or
|
||||
# other methods to check whether the cancellation succeeded or whether the
|
||||
# operation completed despite cancellation. On successful cancellation,
|
||||
# the operation is not deleted; instead, it becomes an operation with
|
||||
# an Operation.error value with a google.rpc.Status.code of 1,
|
||||
# corresponding to `Code.CANCELLED`.
|
||||
# @param [String] name
|
||||
# The name of the operation resource to be cancelled.
|
||||
# @param [Google::Apis::NetworkmanagementV1::CancelOperationRequest] cancel_operation_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::NetworkmanagementV1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::NetworkmanagementV1::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 cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
||||
command.request_representation = Google::Apis::NetworkmanagementV1::CancelOperationRequest::Representation
|
||||
command.request_object = cancel_operation_request_object
|
||||
command.response_representation = Google::Apis::NetworkmanagementV1::Empty::Representation
|
||||
command.response_class = Google::Apis::NetworkmanagementV1::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
|
||||
|
||||
# Deletes a long-running operation. This method indicates that the client is
|
||||
# no longer interested in the operation result. It does not cancel the
|
||||
# operation. If the server doesn't support this method, it returns
|
||||
# `google.rpc.Code.UNIMPLEMENTED`.
|
||||
# @param [String] name
|
||||
# The name of the operation resource to be deleted.
|
||||
# @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::NetworkmanagementV1::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::NetworkmanagementV1::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_location_global_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::NetworkmanagementV1::Empty::Representation
|
||||
command.response_class = Google::Apis::NetworkmanagementV1::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
|
||||
|
||||
# Gets the latest state of a long-running operation. Clients can use this
|
||||
# method to poll the operation result at intervals as recommended by the API
|
||||
# service.
|
||||
# @param [String] name
|
||||
# The name of the operation resource.
|
||||
# @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::NetworkmanagementV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::NetworkmanagementV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_location_global_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||
command.response_representation = Google::Apis::NetworkmanagementV1::Operation::Representation
|
||||
command.response_class = Google::Apis::NetworkmanagementV1::Operation
|
||||
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
|
||||
|
||||
# Lists operations that match the specified filter in the request. If the
|
||||
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
||||
# NOTE: the `name` binding allows API services to override the binding
|
||||
# to use different resource name schemes, such as `users/*/operations`. To
|
||||
# override the binding, API services can add a binding such as
|
||||
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
||||
# For backwards compatibility, the default name includes the operations
|
||||
# collection id, however overriding users must ensure the name binding
|
||||
# is the parent resource, without the operations collection id.
|
||||
# @param [String] name
|
||||
# The name of the operation's parent resource.
|
||||
# @param [String] filter
|
||||
# The standard list filter.
|
||||
# @param [Fixnum] page_size
|
||||
# The standard list page size.
|
||||
# @param [String] page_token
|
||||
# The standard list page token.
|
||||
# @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::NetworkmanagementV1::ListOperationsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::NetworkmanagementV1::ListOperationsResponse]
|
||||
#
|
||||
# @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_location_global_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
||||
command.response_representation = Google::Apis::NetworkmanagementV1::ListOperationsResponse::Representation
|
||||
command.response_class = Google::Apis::NetworkmanagementV1::ListOperationsResponse
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.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
|
|
@ -1,542 +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 PagespeedonlineV1
|
||||
|
||||
#
|
||||
class Result
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The captcha verify result
|
||||
# Corresponds to the JSON property `captchaResult`
|
||||
# @return [String]
|
||||
attr_accessor :captcha_result
|
||||
|
||||
# Localized PageSpeed results. Contains a ruleResults entry for each PageSpeed
|
||||
# rule instantiated and run by the server.
|
||||
# Corresponds to the JSON property `formattedResults`
|
||||
# @return [Google::Apis::PagespeedonlineV1::Result::FormattedResults]
|
||||
attr_accessor :formatted_results
|
||||
|
||||
# Canonicalized and final URL for the document, after following page redirects (
|
||||
# if any).
|
||||
# Corresponds to the JSON property `id`
|
||||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# List of rules that were specified in the request, but which the server did not
|
||||
# know how to instantiate.
|
||||
# Corresponds to the JSON property `invalidRules`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :invalid_rules
|
||||
|
||||
# Kind of result.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# Summary statistics for the page, such as number of JavaScript bytes, number of
|
||||
# HTML bytes, etc.
|
||||
# Corresponds to the JSON property `pageStats`
|
||||
# @return [Google::Apis::PagespeedonlineV1::Result::PageStats]
|
||||
attr_accessor :page_stats
|
||||
|
||||
# Response code for the document. 200 indicates a normal page load. 4xx/5xx
|
||||
# indicates an error.
|
||||
# Corresponds to the JSON property `responseCode`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :response_code
|
||||
|
||||
# The PageSpeed Score (0-100), which indicates how much faster a page could be.
|
||||
# A high score indicates little room for improvement, while a lower score
|
||||
# indicates more room for improvement.
|
||||
# Corresponds to the JSON property `score`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :score
|
||||
|
||||
# Base64-encoded screenshot of the page that was analyzed.
|
||||
# Corresponds to the JSON property `screenshot`
|
||||
# @return [Google::Apis::PagespeedonlineV1::Result::Screenshot]
|
||||
attr_accessor :screenshot
|
||||
|
||||
# Title of the page, as displayed in the browser's title bar.
|
||||
# Corresponds to the JSON property `title`
|
||||
# @return [String]
|
||||
attr_accessor :title
|
||||
|
||||
# The version of PageSpeed used to generate these results.
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [Google::Apis::PagespeedonlineV1::Result::Version]
|
||||
attr_accessor :version
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@captcha_result = args[:captcha_result] if args.key?(:captcha_result)
|
||||
@formatted_results = args[:formatted_results] if args.key?(:formatted_results)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@invalid_rules = args[:invalid_rules] if args.key?(:invalid_rules)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@page_stats = args[:page_stats] if args.key?(:page_stats)
|
||||
@response_code = args[:response_code] if args.key?(:response_code)
|
||||
@score = args[:score] if args.key?(:score)
|
||||
@screenshot = args[:screenshot] if args.key?(:screenshot)
|
||||
@title = args[:title] if args.key?(:title)
|
||||
@version = args[:version] if args.key?(:version)
|
||||
end
|
||||
|
||||
# Localized PageSpeed results. Contains a ruleResults entry for each PageSpeed
|
||||
# rule instantiated and run by the server.
|
||||
class FormattedResults
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The locale of the formattedResults, e.g. "en_US".
|
||||
# Corresponds to the JSON property `locale`
|
||||
# @return [String]
|
||||
attr_accessor :locale
|
||||
|
||||
# Dictionary of formatted rule results, with one entry for each PageSpeed rule
|
||||
# instantiated and run by the server.
|
||||
# Corresponds to the JSON property `ruleResults`
|
||||
# @return [Hash<String,Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult>]
|
||||
attr_accessor :rule_results
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@locale = args[:locale] if args.key?(:locale)
|
||||
@rule_results = args[:rule_results] if args.key?(:rule_results)
|
||||
end
|
||||
|
||||
# The enum-like identifier for this rule. For instance "EnableKeepAlive" or "
|
||||
# AvoidCssImport". Not localized.
|
||||
class RuleResult
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Localized name of the rule, intended for presentation to a user.
|
||||
# Corresponds to the JSON property `localizedRuleName`
|
||||
# @return [String]
|
||||
attr_accessor :localized_rule_name
|
||||
|
||||
# The impact (unbounded floating point value) that implementing the suggestions
|
||||
# for this rule would have on making the page faster. Impact is comparable
|
||||
# between rules to determine which rule's suggestions would have a higher or
|
||||
# lower impact on making a page faster. For instance, if enabling compression
|
||||
# would save 1MB, while optimizing images would save 500kB, the enable
|
||||
# compression rule would have 2x the impact of the image optimization rule, all
|
||||
# other things being equal.
|
||||
# Corresponds to the JSON property `ruleImpact`
|
||||
# @return [Float]
|
||||
attr_accessor :rule_impact
|
||||
|
||||
# List of blocks of URLs. Each block may contain a heading and a list of URLs.
|
||||
# Each URL may optionally include additional details.
|
||||
# Corresponds to the JSON property `urlBlocks`
|
||||
# @return [Array<Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock>]
|
||||
attr_accessor :url_blocks
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@localized_rule_name = args[:localized_rule_name] if args.key?(:localized_rule_name)
|
||||
@rule_impact = args[:rule_impact] if args.key?(:rule_impact)
|
||||
@url_blocks = args[:url_blocks] if args.key?(:url_blocks)
|
||||
end
|
||||
|
||||
#
|
||||
class UrlBlock
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Heading to be displayed with the list of URLs.
|
||||
# Corresponds to the JSON property `header`
|
||||
# @return [Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Header]
|
||||
attr_accessor :header
|
||||
|
||||
# List of entries that provide information about URLs in the url block. Optional.
|
||||
# Corresponds to the JSON property `urls`
|
||||
# @return [Array<Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url>]
|
||||
attr_accessor :urls
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@header = args[:header] if args.key?(:header)
|
||||
@urls = args[:urls] if args.key?(:urls)
|
||||
end
|
||||
|
||||
# Heading to be displayed with the list of URLs.
|
||||
class Header
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of arguments for the format string.
|
||||
# Corresponds to the JSON property `args`
|
||||
# @return [Array<Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Header::Arg>]
|
||||
attr_accessor :args
|
||||
|
||||
# A localized format string with $N placeholders, where N is the 1-indexed
|
||||
# argument number, e.g. 'Minifying the following $1 resources would save a total
|
||||
# of $2 bytes'.
|
||||
# Corresponds to the JSON property `format`
|
||||
# @return [String]
|
||||
attr_accessor :format
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@args = args[:args] if args.key?(:args)
|
||||
@format = args[:format] if args.key?(:format)
|
||||
end
|
||||
|
||||
#
|
||||
class Arg
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, BYTES, or DURATION.
|
||||
# Corresponds to the JSON property `type`
|
||||
# @return [String]
|
||||
attr_accessor :type
|
||||
|
||||
# Argument value, as a localized string.
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
attr_accessor :value
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
@value = args[:value] if args.key?(:value)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class Url
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of entries that provide additional details about a single URL. Optional.
|
||||
# Corresponds to the JSON property `details`
|
||||
# @return [Array<Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Detail>]
|
||||
attr_accessor :details
|
||||
|
||||
# A format string that gives information about the URL, and a list of arguments
|
||||
# for that format string.
|
||||
# Corresponds to the JSON property `result`
|
||||
# @return [Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Result]
|
||||
attr_accessor :result
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@details = args[:details] if args.key?(:details)
|
||||
@result = args[:result] if args.key?(:result)
|
||||
end
|
||||
|
||||
#
|
||||
class Detail
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of arguments for the format string.
|
||||
# Corresponds to the JSON property `args`
|
||||
# @return [Array<Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Detail::Arg>]
|
||||
attr_accessor :args
|
||||
|
||||
# A localized format string with $N placeholders, where N is the 1-indexed
|
||||
# argument number, e.g. 'Unnecessary metadata for this resource adds an
|
||||
# additional $1 bytes to its download size'.
|
||||
# Corresponds to the JSON property `format`
|
||||
# @return [String]
|
||||
attr_accessor :format
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@args = args[:args] if args.key?(:args)
|
||||
@format = args[:format] if args.key?(:format)
|
||||
end
|
||||
|
||||
#
|
||||
class Arg
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, BYTES, or DURATION.
|
||||
# Corresponds to the JSON property `type`
|
||||
# @return [String]
|
||||
attr_accessor :type
|
||||
|
||||
# Argument value, as a localized string.
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
attr_accessor :value
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
@value = args[:value] if args.key?(:value)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# A format string that gives information about the URL, and a list of arguments
|
||||
# for that format string.
|
||||
class Result
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of arguments for the format string.
|
||||
# Corresponds to the JSON property `args`
|
||||
# @return [Array<Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Result::Arg>]
|
||||
attr_accessor :args
|
||||
|
||||
# A localized format string with $N placeholders, where N is the 1-indexed
|
||||
# argument number, e.g. 'Minifying the resource at URL $1 can save $2 bytes'.
|
||||
# Corresponds to the JSON property `format`
|
||||
# @return [String]
|
||||
attr_accessor :format
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@args = args[:args] if args.key?(:args)
|
||||
@format = args[:format] if args.key?(:format)
|
||||
end
|
||||
|
||||
#
|
||||
class Arg
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, BYTES, or DURATION.
|
||||
# Corresponds to the JSON property `type`
|
||||
# @return [String]
|
||||
attr_accessor :type
|
||||
|
||||
# Argument value, as a localized string.
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
attr_accessor :value
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
@value = args[:value] if args.key?(:value)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Summary statistics for the page, such as number of JavaScript bytes, number of
|
||||
# HTML bytes, etc.
|
||||
class PageStats
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Number of uncompressed response bytes for CSS resources on the page.
|
||||
# Corresponds to the JSON property `cssResponseBytes`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :css_response_bytes
|
||||
|
||||
# Number of response bytes for flash resources on the page.
|
||||
# Corresponds to the JSON property `flashResponseBytes`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :flash_response_bytes
|
||||
|
||||
# Number of uncompressed response bytes for the main HTML document and all
|
||||
# iframes on the page.
|
||||
# Corresponds to the JSON property `htmlResponseBytes`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :html_response_bytes
|
||||
|
||||
# Number of response bytes for image resources on the page.
|
||||
# Corresponds to the JSON property `imageResponseBytes`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :image_response_bytes
|
||||
|
||||
# Number of uncompressed response bytes for JS resources on the page.
|
||||
# Corresponds to the JSON property `javascriptResponseBytes`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :javascript_response_bytes
|
||||
|
||||
# Number of CSS resources referenced by the page.
|
||||
# Corresponds to the JSON property `numberCssResources`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :number_css_resources
|
||||
|
||||
# Number of unique hosts referenced by the page.
|
||||
# Corresponds to the JSON property `numberHosts`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :number_hosts
|
||||
|
||||
# Number of JavaScript resources referenced by the page.
|
||||
# Corresponds to the JSON property `numberJsResources`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :number_js_resources
|
||||
|
||||
# Number of HTTP resources loaded by the page.
|
||||
# Corresponds to the JSON property `numberResources`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :number_resources
|
||||
|
||||
# Number of static (i.e. cacheable) resources on the page.
|
||||
# Corresponds to the JSON property `numberStaticResources`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :number_static_resources
|
||||
|
||||
# Number of response bytes for other resources on the page.
|
||||
# Corresponds to the JSON property `otherResponseBytes`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :other_response_bytes
|
||||
|
||||
# Number of uncompressed response bytes for text resources not covered by other
|
||||
# statistics (i.e non-HTML, non-script, non-CSS resources) on the page.
|
||||
# Corresponds to the JSON property `textResponseBytes`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :text_response_bytes
|
||||
|
||||
# Total size of all request bytes sent by the page.
|
||||
# Corresponds to the JSON property `totalRequestBytes`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :total_request_bytes
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@css_response_bytes = args[:css_response_bytes] if args.key?(:css_response_bytes)
|
||||
@flash_response_bytes = args[:flash_response_bytes] if args.key?(:flash_response_bytes)
|
||||
@html_response_bytes = args[:html_response_bytes] if args.key?(:html_response_bytes)
|
||||
@image_response_bytes = args[:image_response_bytes] if args.key?(:image_response_bytes)
|
||||
@javascript_response_bytes = args[:javascript_response_bytes] if args.key?(:javascript_response_bytes)
|
||||
@number_css_resources = args[:number_css_resources] if args.key?(:number_css_resources)
|
||||
@number_hosts = args[:number_hosts] if args.key?(:number_hosts)
|
||||
@number_js_resources = args[:number_js_resources] if args.key?(:number_js_resources)
|
||||
@number_resources = args[:number_resources] if args.key?(:number_resources)
|
||||
@number_static_resources = args[:number_static_resources] if args.key?(:number_static_resources)
|
||||
@other_response_bytes = args[:other_response_bytes] if args.key?(:other_response_bytes)
|
||||
@text_response_bytes = args[:text_response_bytes] if args.key?(:text_response_bytes)
|
||||
@total_request_bytes = args[:total_request_bytes] if args.key?(:total_request_bytes)
|
||||
end
|
||||
end
|
||||
|
||||
# Base64-encoded screenshot of the page that was analyzed.
|
||||
class Screenshot
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Image data base64 encoded.
|
||||
# Corresponds to the JSON property `data`
|
||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||
# @return [String]
|
||||
attr_accessor :data
|
||||
|
||||
# Height of screenshot in pixels.
|
||||
# Corresponds to the JSON property `height`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :height
|
||||
|
||||
# Mime type of image data. E.g. "image/jpeg".
|
||||
# Corresponds to the JSON property `mime_type`
|
||||
# @return [String]
|
||||
attr_accessor :mime_type
|
||||
|
||||
# Width of screenshot in pixels.
|
||||
# Corresponds to the JSON property `width`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :width
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@data = args[:data] if args.key?(:data)
|
||||
@height = args[:height] if args.key?(:height)
|
||||
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
||||
@width = args[:width] if args.key?(:width)
|
||||
end
|
||||
end
|
||||
|
||||
# The version of PageSpeed used to generate these results.
|
||||
class Version
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The major version number of PageSpeed used to generate these results.
|
||||
# Corresponds to the JSON property `major`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :major
|
||||
|
||||
# The minor version number of PageSpeed used to generate these results.
|
||||
# Corresponds to the JSON property `minor`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :minor
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@major = args[:major] if args.key?(:major)
|
||||
@minor = args[:minor] if args.key?(:minor)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,258 +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 PagespeedonlineV1
|
||||
|
||||
class Result
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class FormattedResults
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class RuleResult
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class UrlBlock
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Header
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Arg
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Url
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Detail
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Arg
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Result
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
class Arg
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PageStats
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Screenshot
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Version
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Result
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :captcha_result, as: 'captchaResult'
|
||||
property :formatted_results, as: 'formattedResults', class: Google::Apis::PagespeedonlineV1::Result::FormattedResults, decorator: Google::Apis::PagespeedonlineV1::Result::FormattedResults::Representation
|
||||
|
||||
property :id, as: 'id'
|
||||
collection :invalid_rules, as: 'invalidRules'
|
||||
property :kind, as: 'kind'
|
||||
property :page_stats, as: 'pageStats', class: Google::Apis::PagespeedonlineV1::Result::PageStats, decorator: Google::Apis::PagespeedonlineV1::Result::PageStats::Representation
|
||||
|
||||
property :response_code, as: 'responseCode'
|
||||
property :score, as: 'score'
|
||||
property :screenshot, as: 'screenshot', class: Google::Apis::PagespeedonlineV1::Result::Screenshot, decorator: Google::Apis::PagespeedonlineV1::Result::Screenshot::Representation
|
||||
|
||||
property :title, as: 'title'
|
||||
property :version, as: 'version', class: Google::Apis::PagespeedonlineV1::Result::Version, decorator: Google::Apis::PagespeedonlineV1::Result::Version::Representation
|
||||
|
||||
end
|
||||
|
||||
class FormattedResults
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :locale, as: 'locale'
|
||||
hash :rule_results, as: 'ruleResults', class: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult, decorator: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::Representation
|
||||
|
||||
end
|
||||
|
||||
class RuleResult
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :localized_rule_name, as: 'localizedRuleName'
|
||||
property :rule_impact, as: 'ruleImpact'
|
||||
collection :url_blocks, as: 'urlBlocks', class: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock, decorator: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Representation
|
||||
|
||||
end
|
||||
|
||||
class UrlBlock
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :header, as: 'header', class: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Header, decorator: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Header::Representation
|
||||
|
||||
collection :urls, as: 'urls', class: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url, decorator: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Representation
|
||||
|
||||
end
|
||||
|
||||
class Header
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :args, as: 'args', class: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Header::Arg, decorator: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Header::Arg::Representation
|
||||
|
||||
property :format, as: 'format'
|
||||
end
|
||||
|
||||
class Arg
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :type, as: 'type'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class Url
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :details, as: 'details', class: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Detail, decorator: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Detail::Representation
|
||||
|
||||
property :result, as: 'result', class: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Result, decorator: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Result::Representation
|
||||
|
||||
end
|
||||
|
||||
class Detail
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :args, as: 'args', class: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Detail::Arg, decorator: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Detail::Arg::Representation
|
||||
|
||||
property :format, as: 'format'
|
||||
end
|
||||
|
||||
class Arg
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :type, as: 'type'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class Result
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :args, as: 'args', class: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Result::Arg, decorator: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Result::Arg::Representation
|
||||
|
||||
property :format, as: 'format'
|
||||
end
|
||||
|
||||
class Arg
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :type, as: 'type'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class PageStats
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :css_response_bytes, :numeric_string => true, as: 'cssResponseBytes'
|
||||
property :flash_response_bytes, :numeric_string => true, as: 'flashResponseBytes'
|
||||
property :html_response_bytes, :numeric_string => true, as: 'htmlResponseBytes'
|
||||
property :image_response_bytes, :numeric_string => true, as: 'imageResponseBytes'
|
||||
property :javascript_response_bytes, :numeric_string => true, as: 'javascriptResponseBytes'
|
||||
property :number_css_resources, as: 'numberCssResources'
|
||||
property :number_hosts, as: 'numberHosts'
|
||||
property :number_js_resources, as: 'numberJsResources'
|
||||
property :number_resources, as: 'numberResources'
|
||||
property :number_static_resources, as: 'numberStaticResources'
|
||||
property :other_response_bytes, :numeric_string => true, as: 'otherResponseBytes'
|
||||
property :text_response_bytes, :numeric_string => true, as: 'textResponseBytes'
|
||||
property :total_request_bytes, :numeric_string => true, as: 'totalRequestBytes'
|
||||
end
|
||||
end
|
||||
|
||||
class Screenshot
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :data, :base64 => true, as: 'data'
|
||||
property :height, as: 'height'
|
||||
property :mime_type, as: 'mime_type'
|
||||
property :width, as: 'width'
|
||||
end
|
||||
end
|
||||
|
||||
class Version
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :major, as: 'major'
|
||||
property :minor, as: 'minor'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,116 +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 PagespeedonlineV1
|
||||
# PageSpeed Insights API
|
||||
#
|
||||
# Analyzes the performance of a web page and provides tailored suggestions to
|
||||
# make that page faster.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/pagespeedonline_v1'
|
||||
#
|
||||
# Pagespeedonline = Google::Apis::PagespeedonlineV1 # Alias the module
|
||||
# service = Pagespeedonline::PagespeedonlineService.new
|
||||
#
|
||||
# @see https://developers.google.com/speed/docs/insights/v1/getting_started
|
||||
class PagespeedonlineService < 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/', 'pagespeedonline/v1/')
|
||||
@batch_path = 'batch/pagespeedonline/v1'
|
||||
end
|
||||
|
||||
# Runs PageSpeed analysis on the page at the specified URL, and returns a
|
||||
# PageSpeed score, a list of suggestions to make that page faster, and other
|
||||
# information.
|
||||
# @param [String] url
|
||||
# The URL to fetch and analyze
|
||||
# @param [Boolean] filter_third_party_resources
|
||||
# Indicates if third party resources should be filtered out before PageSpeed
|
||||
# analysis.
|
||||
# @param [String] locale
|
||||
# The locale used to localize formatted results
|
||||
# @param [Array<String>, String] rule
|
||||
# A PageSpeed rule to run; if none are given, all rules are run
|
||||
# @param [Boolean] screenshot
|
||||
# Indicates if binary data containing a screenshot should be included
|
||||
# @param [String] strategy
|
||||
# The analysis strategy to use
|
||||
# @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::PagespeedonlineV1::Result] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::PagespeedonlineV1::Result]
|
||||
#
|
||||
# @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 runpagespeed_pagespeedapi(url, filter_third_party_resources: nil, locale: nil, rule: nil, screenshot: nil, strategy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'runPagespeed', options)
|
||||
command.response_representation = Google::Apis::PagespeedonlineV1::Result::Representation
|
||||
command.response_class = Google::Apis::PagespeedonlineV1::Result
|
||||
command.query['filter_third_party_resources'] = filter_third_party_resources unless filter_third_party_resources.nil?
|
||||
command.query['locale'] = locale unless locale.nil?
|
||||
command.query['rule'] = rule unless rule.nil?
|
||||
command.query['screenshot'] = screenshot unless screenshot.nil?
|
||||
command.query['strategy'] = strategy unless strategy.nil?
|
||||
command.query['url'] = url unless url.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
|
Loading…
Reference in New Issue