Autogenerated update (2020-09-14)
Update: - accessapproval_v1 - accesscontextmanager_v1 - accesscontextmanager_v1beta - admin_directory_v1 - admob_v1 - analyticsreporting_v4 - androidpublisher_v3 - appengine_v1 - appengine_v1beta - bigquery_v2 - bigtableadmin_v1 - bigtableadmin_v2 - binaryauthorization_v1 - binaryauthorization_v1beta1 - calendar_v3 - civicinfo_v2 - cloudasset_v1 - cloudasset_v1beta1 - cloudasset_v1p5beta1 - cloudbuild_v1 - cloudbuild_v1alpha1 - cloudbuild_v1alpha2 - clouderrorreporting_v1beta1 - cloudidentity_v1 - cloudidentity_v1beta1 - cloudiot_v1 - cloudresourcemanager_v1 - cloudresourcemanager_v1beta1 - cloudresourcemanager_v2 - cloudresourcemanager_v2beta1 - cloudsearch_v1 - cloudtasks_v2beta3 - container_v1 - container_v1beta1 - containeranalysis_v1alpha1 - containeranalysis_v1beta1 - content_v2 - content_v2_1 - datacatalog_v1beta1 - datafusion_v1 - datafusion_v1beta1 - dataproc_v1 - dataproc_v1beta2 - dialogflow_v2 - dialogflow_v2beta1 - dialogflow_v3beta1 - digitalassetlinks_v1 - displayvideo_v1 - dlp_v2 - documentai_v1beta2 - doubleclickbidmanager_v1 - doubleclickbidmanager_v1_1 - firebase_v1beta1 - firebasedynamiclinks_v1 - firebasehosting_v1beta1 - firebaseml_v1beta2 - firestore_v1 - firestore_v1beta1 - fitness_v1 - games_v1 - gameservices_v1 - gameservices_v1beta - healthcare_v1 - healthcare_v1beta1 - homegraph_v1 - iam_v1 - iap_v1 - iap_v1beta1 - jobs_v2 - jobs_v3 - jobs_v3p1beta1 - managedidentities_v1alpha1 - managedidentities_v1beta1 - ml_v1 - monitoring_v1 - osconfig_v1 - osconfig_v1beta - playcustomapp_v1 - prod_tt_sasportal_v1alpha1 - remotebuildexecution_v1 - remotebuildexecution_v1alpha - remotebuildexecution_v2 - runtimeconfig_v1beta1 - safebrowsing_v4 - secretmanager_v1 - secretmanager_v1beta1 - servicedirectory_v1beta1 - servicenetworking_v1 - speech_v1p1beta1 - sql_v1beta4 - storage_v1 - storagetransfer_v1 - texttospeech_v1beta1 - tpu_v1 - tpu_v1alpha1 - vault_v1 - verifiedaccess_v1 - videointelligence_v1 - videointelligence_v1beta2 - videointelligence_v1p1beta1 - videointelligence_v1p2beta1 - videointelligence_v1p3beta1 - vision_v1 - vision_v1p1beta1 - vision_v1p2beta1 - youtube_partner_v1 - youtube_v3
This commit is contained in:
parent
5b69d4a265
commit
9678faba19
1201
api_names_out.yaml
1201
api_names_out.yaml
File diff suppressed because it is too large
Load Diff
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/access-approval/docs
|
# @see https://cloud.google.com/access-approval/docs
|
||||||
module AccessapprovalV1
|
module AccessapprovalV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200807'
|
REVISION = '20200903'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -317,10 +317,12 @@ module Google
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The product for which Access Approval will be enrolled. Allowed values are
|
# The product for which Access Approval will be enrolled. Allowed values are
|
||||||
# listed below (case-sensitive): 1. all 2. appengine.googleapis.com 3. bigquery.
|
# listed below (case-sensitive): 1. all 2. ga-only 3. appengine.googleapis.com 4.
|
||||||
# googleapis.com 4. bigtable.googleapis.com 5. cloudkms.googleapis.com 6.
|
# bigquery.googleapis.com 5. bigtable.googleapis.com 6. cloudkms.googleapis.com
|
||||||
# compute.googleapis.com 7. dataflow.googleapis.com 8. iam.googleapis.com 9.
|
# 7. compute.googleapis.com 8. dataflow.googleapis.com 9. iam.googleapis.com 10.
|
||||||
# pubsub.googleapis.com 10. storage.googleapis.com
|
# pubsub.googleapis.com 11. storage.googleapis.com Note: 'all' will enroll the
|
||||||
|
# resource in all products supported at both 'GA' and 'Preview' levels. 'ga-only'
|
||||||
|
# will only enroll the resource in products supported at 'GA' level.
|
||||||
# Corresponds to the JSON property `cloudProduct`
|
# Corresponds to the JSON property `cloudProduct`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :cloud_product
|
attr_accessor :cloud_product
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/access-context-manager/docs/reference/rest/
|
# @see https://cloud.google.com/access-context-manager/docs/reference/rest/
|
||||||
module AccesscontextmanagerV1
|
module AccesscontextmanagerV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200801'
|
REVISION = '20200825'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/access-context-manager/docs/reference/rest/
|
# @see https://cloud.google.com/access-context-manager/docs/reference/rest/
|
||||||
module AccesscontextmanagerV1beta
|
module AccesscontextmanagerV1beta
|
||||||
VERSION = 'V1beta'
|
VERSION = 'V1beta'
|
||||||
REVISION = '20200801'
|
REVISION = '20200825'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
||||||
# @see http://developers.google.com/admin-sdk/
|
# @see http://developers.google.com/admin-sdk/
|
||||||
module AdminDirectoryV1
|
module AdminDirectoryV1
|
||||||
VERSION = 'DirectoryV1'
|
VERSION = 'DirectoryV1'
|
||||||
REVISION = '20200819'
|
REVISION = '20200909'
|
||||||
|
|
||||||
# View and manage customer related information
|
# View and manage customer related information
|
||||||
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'
|
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'
|
||||||
|
|
|
@ -3021,7 +3021,7 @@ module Google
|
||||||
|
|
||||||
# Custom fields of the user.
|
# Custom fields of the user.
|
||||||
# Corresponds to the JSON property `customSchemas`
|
# Corresponds to the JSON property `customSchemas`
|
||||||
# @return [Hash<String,Google::Apis::AdminDirectoryV1::UserCustomProperties>]
|
# @return [Hash<String,Hash<String,Object>>]
|
||||||
attr_accessor :custom_schemas
|
attr_accessor :custom_schemas
|
||||||
|
|
||||||
# Output only. CustomerId of User (Read-only)
|
# Output only. CustomerId of User (Read-only)
|
||||||
|
@ -3407,20 +3407,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# JSON template for a set of custom properties (i.e. all fields in a particular
|
|
||||||
# schema)
|
|
||||||
class UserCustomProperties
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# JSON template for an email.
|
# JSON template for an email.
|
||||||
class UserEmail
|
class UserEmail
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
|
@ -394,12 +394,6 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class UserCustomProperties
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class UserEmail
|
class UserEmail
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -1270,8 +1264,7 @@ module Google
|
||||||
property :change_password_at_next_login, as: 'changePasswordAtNextLogin'
|
property :change_password_at_next_login, as: 'changePasswordAtNextLogin'
|
||||||
property :creation_time, as: 'creationTime', type: DateTime
|
property :creation_time, as: 'creationTime', type: DateTime
|
||||||
|
|
||||||
hash :custom_schemas, as: 'customSchemas', class: Google::Apis::AdminDirectoryV1::UserCustomProperties, decorator: Google::Apis::AdminDirectoryV1::UserCustomProperties::Representation
|
hash :custom_schemas, as: 'customSchemas'
|
||||||
|
|
||||||
property :customer_id, as: 'customerId'
|
property :customer_id, as: 'customerId'
|
||||||
property :deletion_time, as: 'deletionTime', type: DateTime
|
property :deletion_time, as: 'deletionTime', type: DateTime
|
||||||
|
|
||||||
|
@ -1344,12 +1337,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class UserCustomProperties
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class UserEmail
|
class UserEmail
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -3046,6 +3046,35 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Turn off 2-Step Verification for user.
|
||||||
|
# @param [String] user_key
|
||||||
|
# Identifies the user in the API request. The value can be the user's primary
|
||||||
|
# email address, alias email address, or unique user 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 [NilClass] No result returned for this method
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [void]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def turn_two_step_verification_off(user_key, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'admin/directory/v1/users/{userKey}/twoStepVerification/turnOff', options)
|
||||||
|
command.params['userKey'] = user_key unless user_key.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Delete user
|
# Delete user
|
||||||
# @param [String] user_key
|
# @param [String] user_key
|
||||||
# Email or immutable ID of the user
|
# Email or immutable ID of the user
|
||||||
|
@ -3273,6 +3302,36 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Sign a user out of all web and device sessions and reset their sign-in cookies.
|
||||||
|
# User will have to sign in by authenticating again.
|
||||||
|
# @param [String] user_key
|
||||||
|
# Identifies the target user in the API request. The value can be the user's
|
||||||
|
# primary email address, alias email address, or unique user 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 [NilClass] No result returned for this method
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [void]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def sign_user_out(user_key, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'admin/directory/v1/users/{userKey}/signOut', options)
|
||||||
|
command.params['userKey'] = user_key unless user_key.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
# Undelete a deleted user
|
# Undelete a deleted user
|
||||||
# @param [String] user_key
|
# @param [String] user_key
|
||||||
# The immutable id of the user
|
# The immutable id of the user
|
||||||
|
@ -3340,6 +3399,9 @@ module Google
|
||||||
|
|
||||||
# Watch for changes in users list
|
# Watch for changes in users list
|
||||||
# @param [Google::Apis::AdminDirectoryV1::Channel] channel_object
|
# @param [Google::Apis::AdminDirectoryV1::Channel] channel_object
|
||||||
|
# @param [String] custom_field_mask
|
||||||
|
# Comma-separated list of schema names. All fields from these schemas are
|
||||||
|
# fetched. This should only be set when projection=custom.
|
||||||
# @param [String] customer
|
# @param [String] customer
|
||||||
# Immutable ID of the G Suite account. In case of multi-domain, to fetch all
|
# Immutable ID of the G Suite account. In case of multi-domain, to fetch all
|
||||||
# users for a customer, fill this field instead of domain.
|
# users for a customer, fill this field instead of domain.
|
||||||
|
@ -3348,6 +3410,23 @@ module Google
|
||||||
# return all users in a multi-domain fill customer field instead."
|
# return all users in a multi-domain fill customer field instead."
|
||||||
# @param [String] event
|
# @param [String] event
|
||||||
# Event on which subscription is intended
|
# Event on which subscription is intended
|
||||||
|
# @param [Fixnum] max_results
|
||||||
|
# Maximum number of results to return.
|
||||||
|
# @param [String] order_by
|
||||||
|
# Column to use for sorting results
|
||||||
|
# @param [String] page_token
|
||||||
|
# Token to specify next page in the list
|
||||||
|
# @param [String] projection
|
||||||
|
# What subset of fields to fetch for this user.
|
||||||
|
# @param [String] query
|
||||||
|
# Query string search. Should be of the form "". Complete documentation is at
|
||||||
|
# https: //developers.google.com/admin-sdk/directory/v1/guides/search-users
|
||||||
|
# @param [String] show_deleted
|
||||||
|
# If set to true, retrieves the list of deleted users. (Default: false)
|
||||||
|
# @param [String] sort_order
|
||||||
|
# Whether to return results in ascending or descending order.
|
||||||
|
# @param [String] view_type
|
||||||
|
# Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -3365,15 +3444,24 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def watch_user(channel_object = nil, customer: nil, domain: nil, event: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def watch_user(channel_object = nil, custom_field_mask: nil, customer: nil, domain: nil, event: nil, max_results: nil, order_by: nil, page_token: nil, projection: nil, query: nil, show_deleted: nil, sort_order: nil, view_type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'admin/directory/v1/users/watch', options)
|
command = make_simple_command(:post, 'admin/directory/v1/users/watch', options)
|
||||||
command.request_representation = Google::Apis::AdminDirectoryV1::Channel::Representation
|
command.request_representation = Google::Apis::AdminDirectoryV1::Channel::Representation
|
||||||
command.request_object = channel_object
|
command.request_object = channel_object
|
||||||
command.response_representation = Google::Apis::AdminDirectoryV1::Channel::Representation
|
command.response_representation = Google::Apis::AdminDirectoryV1::Channel::Representation
|
||||||
command.response_class = Google::Apis::AdminDirectoryV1::Channel
|
command.response_class = Google::Apis::AdminDirectoryV1::Channel
|
||||||
|
command.query['customFieldMask'] = custom_field_mask unless custom_field_mask.nil?
|
||||||
command.query['customer'] = customer unless customer.nil?
|
command.query['customer'] = customer unless customer.nil?
|
||||||
command.query['domain'] = domain unless domain.nil?
|
command.query['domain'] = domain unless domain.nil?
|
||||||
command.query['event'] = event unless event.nil?
|
command.query['event'] = event unless event.nil?
|
||||||
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
|
command.query['orderBy'] = order_by unless order_by.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['projection'] = projection unless projection.nil?
|
||||||
|
command.query['query'] = query unless query.nil?
|
||||||
|
command.query['showDeleted'] = show_deleted unless show_deleted.nil?
|
||||||
|
command.query['sortOrder'] = sort_order unless sort_order.nil?
|
||||||
|
command.query['viewType'] = view_type unless view_type.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/admob/api/
|
# @see https://developers.google.com/admob/api/
|
||||||
module AdmobV1
|
module AdmobV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200822'
|
REVISION = '20200905'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
# 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/analyticsdata_v1alpha/service.rb'
|
||||||
|
require 'google/apis/analyticsdata_v1alpha/classes.rb'
|
||||||
|
require 'google/apis/analyticsdata_v1alpha/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# Google Analytics Data API
|
||||||
|
#
|
||||||
|
# Accesses report data in Google Analytics.
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/analytics/trusted-testing/analytics-data/
|
||||||
|
module AnalyticsdataV1alpha
|
||||||
|
VERSION = 'V1alpha'
|
||||||
|
REVISION = '20200907'
|
||||||
|
|
||||||
|
# View and manage your Google Analytics data
|
||||||
|
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
|
||||||
|
|
||||||
|
# View your Google Analytics data
|
||||||
|
AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,789 @@
|
||||||
|
# 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 AnalyticsdataV1alpha
|
||||||
|
|
||||||
|
class BatchRunPivotReportsRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class BatchRunPivotReportsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class BatchRunReportsRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class BatchRunReportsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class BetweenFilter
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class CaseExpression
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Cohort
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class CohortReportSettings
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class CohortSpec
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class CohortsRange
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ConcatenateExpression
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DateRange
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Dimension
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DimensionExpression
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DimensionHeader
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DimensionMetadata
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DimensionOrderBy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class DimensionValue
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Entity
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Filter
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class FilterExpression
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class FilterExpressionList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class InListFilter
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Metric
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class MetricHeader
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class MetricMetadata
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class MetricOrderBy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class MetricValue
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class NumericFilter
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class NumericValue
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderBy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Pivot
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PivotDimensionHeader
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PivotHeader
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PivotOrderBy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PivotSelection
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class PropertyQuota
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class QuotaStatus
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ResponseMetaData
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class Row
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RunPivotReportRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RunPivotReportResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RunReportRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class RunReportResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class StringFilter
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class UniversalMetadata
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class BatchRunPivotReportsRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :entity, as: 'entity', class: Google::Apis::AnalyticsdataV1alpha::Entity, decorator: Google::Apis::AnalyticsdataV1alpha::Entity::Representation
|
||||||
|
|
||||||
|
collection :requests, as: 'requests', class: Google::Apis::AnalyticsdataV1alpha::RunPivotReportRequest, decorator: Google::Apis::AnalyticsdataV1alpha::RunPivotReportRequest::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BatchRunPivotReportsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :pivot_reports, as: 'pivotReports', class: Google::Apis::AnalyticsdataV1alpha::RunPivotReportResponse, decorator: Google::Apis::AnalyticsdataV1alpha::RunPivotReportResponse::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BatchRunReportsRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :entity, as: 'entity', class: Google::Apis::AnalyticsdataV1alpha::Entity, decorator: Google::Apis::AnalyticsdataV1alpha::Entity::Representation
|
||||||
|
|
||||||
|
collection :requests, as: 'requests', class: Google::Apis::AnalyticsdataV1alpha::RunReportRequest, decorator: Google::Apis::AnalyticsdataV1alpha::RunReportRequest::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BatchRunReportsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :reports, as: 'reports', class: Google::Apis::AnalyticsdataV1alpha::RunReportResponse, decorator: Google::Apis::AnalyticsdataV1alpha::RunReportResponse::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class BetweenFilter
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :from_value, as: 'fromValue', class: Google::Apis::AnalyticsdataV1alpha::NumericValue, decorator: Google::Apis::AnalyticsdataV1alpha::NumericValue::Representation
|
||||||
|
|
||||||
|
property :to_value, as: 'toValue', class: Google::Apis::AnalyticsdataV1alpha::NumericValue, decorator: Google::Apis::AnalyticsdataV1alpha::NumericValue::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CaseExpression
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :dimension_name, as: 'dimensionName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Cohort
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :date_range, as: 'dateRange', class: Google::Apis::AnalyticsdataV1alpha::DateRange, decorator: Google::Apis::AnalyticsdataV1alpha::DateRange::Representation
|
||||||
|
|
||||||
|
property :dimension, as: 'dimension'
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CohortReportSettings
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :accumulate, as: 'accumulate'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CohortSpec
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :cohort_report_settings, as: 'cohortReportSettings', class: Google::Apis::AnalyticsdataV1alpha::CohortReportSettings, decorator: Google::Apis::AnalyticsdataV1alpha::CohortReportSettings::Representation
|
||||||
|
|
||||||
|
collection :cohorts, as: 'cohorts', class: Google::Apis::AnalyticsdataV1alpha::Cohort, decorator: Google::Apis::AnalyticsdataV1alpha::Cohort::Representation
|
||||||
|
|
||||||
|
property :cohorts_range, as: 'cohortsRange', class: Google::Apis::AnalyticsdataV1alpha::CohortsRange, decorator: Google::Apis::AnalyticsdataV1alpha::CohortsRange::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class CohortsRange
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :end_offset, as: 'endOffset'
|
||||||
|
property :granularity, as: 'granularity'
|
||||||
|
property :start_offset, as: 'startOffset'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ConcatenateExpression
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :delimiter, as: 'delimiter'
|
||||||
|
collection :dimension_names, as: 'dimensionNames'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DateRange
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :end_date, as: 'endDate'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :start_date, as: 'startDate'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Dimension
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :dimension_expression, as: 'dimensionExpression', class: Google::Apis::AnalyticsdataV1alpha::DimensionExpression, decorator: Google::Apis::AnalyticsdataV1alpha::DimensionExpression::Representation
|
||||||
|
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DimensionExpression
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :concatenate, as: 'concatenate', class: Google::Apis::AnalyticsdataV1alpha::ConcatenateExpression, decorator: Google::Apis::AnalyticsdataV1alpha::ConcatenateExpression::Representation
|
||||||
|
|
||||||
|
property :lower_case, as: 'lowerCase', class: Google::Apis::AnalyticsdataV1alpha::CaseExpression, decorator: Google::Apis::AnalyticsdataV1alpha::CaseExpression::Representation
|
||||||
|
|
||||||
|
property :upper_case, as: 'upperCase', class: Google::Apis::AnalyticsdataV1alpha::CaseExpression, decorator: Google::Apis::AnalyticsdataV1alpha::CaseExpression::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DimensionHeader
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DimensionMetadata
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :api_name, as: 'apiName'
|
||||||
|
collection :deprecated_api_names, as: 'deprecatedApiNames'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :ui_name, as: 'uiName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DimensionOrderBy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :dimension_name, as: 'dimensionName'
|
||||||
|
property :order_type, as: 'orderType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class DimensionValue
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Entity
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :property_id, as: 'propertyId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Filter
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :between_filter, as: 'betweenFilter', class: Google::Apis::AnalyticsdataV1alpha::BetweenFilter, decorator: Google::Apis::AnalyticsdataV1alpha::BetweenFilter::Representation
|
||||||
|
|
||||||
|
property :field_name, as: 'fieldName'
|
||||||
|
property :in_list_filter, as: 'inListFilter', class: Google::Apis::AnalyticsdataV1alpha::InListFilter, decorator: Google::Apis::AnalyticsdataV1alpha::InListFilter::Representation
|
||||||
|
|
||||||
|
property :null_filter, as: 'nullFilter'
|
||||||
|
property :numeric_filter, as: 'numericFilter', class: Google::Apis::AnalyticsdataV1alpha::NumericFilter, decorator: Google::Apis::AnalyticsdataV1alpha::NumericFilter::Representation
|
||||||
|
|
||||||
|
property :string_filter, as: 'stringFilter', class: Google::Apis::AnalyticsdataV1alpha::StringFilter, decorator: Google::Apis::AnalyticsdataV1alpha::StringFilter::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class FilterExpression
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :and_group, as: 'andGroup', class: Google::Apis::AnalyticsdataV1alpha::FilterExpressionList, decorator: Google::Apis::AnalyticsdataV1alpha::FilterExpressionList::Representation
|
||||||
|
|
||||||
|
property :filter, as: 'filter', class: Google::Apis::AnalyticsdataV1alpha::Filter, decorator: Google::Apis::AnalyticsdataV1alpha::Filter::Representation
|
||||||
|
|
||||||
|
property :not_expression, as: 'notExpression', class: Google::Apis::AnalyticsdataV1alpha::FilterExpression, decorator: Google::Apis::AnalyticsdataV1alpha::FilterExpression::Representation
|
||||||
|
|
||||||
|
property :or_group, as: 'orGroup', class: Google::Apis::AnalyticsdataV1alpha::FilterExpressionList, decorator: Google::Apis::AnalyticsdataV1alpha::FilterExpressionList::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class FilterExpressionList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :expressions, as: 'expressions', class: Google::Apis::AnalyticsdataV1alpha::FilterExpression, decorator: Google::Apis::AnalyticsdataV1alpha::FilterExpression::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class InListFilter
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :case_sensitive, as: 'caseSensitive'
|
||||||
|
collection :values, as: 'values'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Metric
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :expression, as: 'expression'
|
||||||
|
property :invisible, as: 'invisible'
|
||||||
|
property :name, as: 'name'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class MetricHeader
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :type, as: 'type'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class MetricMetadata
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :api_name, as: 'apiName'
|
||||||
|
collection :deprecated_api_names, as: 'deprecatedApiNames'
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :expression, as: 'expression'
|
||||||
|
property :type, as: 'type'
|
||||||
|
property :ui_name, as: 'uiName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class MetricOrderBy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :metric_name, as: 'metricName'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class MetricValue
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class NumericFilter
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :operation, as: 'operation'
|
||||||
|
property :value, as: 'value', class: Google::Apis::AnalyticsdataV1alpha::NumericValue, decorator: Google::Apis::AnalyticsdataV1alpha::NumericValue::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class NumericValue
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :double_value, as: 'doubleValue'
|
||||||
|
property :int64_value, :numeric_string => true, as: 'int64Value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class OrderBy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :desc, as: 'desc'
|
||||||
|
property :dimension, as: 'dimension', class: Google::Apis::AnalyticsdataV1alpha::DimensionOrderBy, decorator: Google::Apis::AnalyticsdataV1alpha::DimensionOrderBy::Representation
|
||||||
|
|
||||||
|
property :metric, as: 'metric', class: Google::Apis::AnalyticsdataV1alpha::MetricOrderBy, decorator: Google::Apis::AnalyticsdataV1alpha::MetricOrderBy::Representation
|
||||||
|
|
||||||
|
property :pivot, as: 'pivot', class: Google::Apis::AnalyticsdataV1alpha::PivotOrderBy, decorator: Google::Apis::AnalyticsdataV1alpha::PivotOrderBy::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Pivot
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :field_names, as: 'fieldNames'
|
||||||
|
property :limit, :numeric_string => true, as: 'limit'
|
||||||
|
collection :metric_aggregations, as: 'metricAggregations'
|
||||||
|
property :offset, :numeric_string => true, as: 'offset'
|
||||||
|
collection :order_bys, as: 'orderBys', class: Google::Apis::AnalyticsdataV1alpha::OrderBy, decorator: Google::Apis::AnalyticsdataV1alpha::OrderBy::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PivotDimensionHeader
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :dimension_values, as: 'dimensionValues', class: Google::Apis::AnalyticsdataV1alpha::DimensionValue, decorator: Google::Apis::AnalyticsdataV1alpha::DimensionValue::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PivotHeader
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :pivot_dimension_headers, as: 'pivotDimensionHeaders', class: Google::Apis::AnalyticsdataV1alpha::PivotDimensionHeader, decorator: Google::Apis::AnalyticsdataV1alpha::PivotDimensionHeader::Representation
|
||||||
|
|
||||||
|
property :row_count, as: 'rowCount'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PivotOrderBy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :metric_name, as: 'metricName'
|
||||||
|
collection :pivot_selections, as: 'pivotSelections', class: Google::Apis::AnalyticsdataV1alpha::PivotSelection, decorator: Google::Apis::AnalyticsdataV1alpha::PivotSelection::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PivotSelection
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :dimension_name, as: 'dimensionName'
|
||||||
|
property :dimension_value, as: 'dimensionValue'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class PropertyQuota
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :concurrent_requests, as: 'concurrentRequests', class: Google::Apis::AnalyticsdataV1alpha::QuotaStatus, decorator: Google::Apis::AnalyticsdataV1alpha::QuotaStatus::Representation
|
||||||
|
|
||||||
|
property :server_errors_per_project_per_hour, as: 'serverErrorsPerProjectPerHour', class: Google::Apis::AnalyticsdataV1alpha::QuotaStatus, decorator: Google::Apis::AnalyticsdataV1alpha::QuotaStatus::Representation
|
||||||
|
|
||||||
|
property :tokens_per_day, as: 'tokensPerDay', class: Google::Apis::AnalyticsdataV1alpha::QuotaStatus, decorator: Google::Apis::AnalyticsdataV1alpha::QuotaStatus::Representation
|
||||||
|
|
||||||
|
property :tokens_per_hour, as: 'tokensPerHour', class: Google::Apis::AnalyticsdataV1alpha::QuotaStatus, decorator: Google::Apis::AnalyticsdataV1alpha::QuotaStatus::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class QuotaStatus
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :consumed, as: 'consumed'
|
||||||
|
property :remaining, as: 'remaining'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ResponseMetaData
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :data_loss_from_other_row, as: 'dataLossFromOtherRow'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Row
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :dimension_values, as: 'dimensionValues', class: Google::Apis::AnalyticsdataV1alpha::DimensionValue, decorator: Google::Apis::AnalyticsdataV1alpha::DimensionValue::Representation
|
||||||
|
|
||||||
|
collection :metric_values, as: 'metricValues', class: Google::Apis::AnalyticsdataV1alpha::MetricValue, decorator: Google::Apis::AnalyticsdataV1alpha::MetricValue::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RunPivotReportRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :cohort_spec, as: 'cohortSpec', class: Google::Apis::AnalyticsdataV1alpha::CohortSpec, decorator: Google::Apis::AnalyticsdataV1alpha::CohortSpec::Representation
|
||||||
|
|
||||||
|
property :currency_code, as: 'currencyCode'
|
||||||
|
collection :date_ranges, as: 'dateRanges', class: Google::Apis::AnalyticsdataV1alpha::DateRange, decorator: Google::Apis::AnalyticsdataV1alpha::DateRange::Representation
|
||||||
|
|
||||||
|
property :dimension_filter, as: 'dimensionFilter', class: Google::Apis::AnalyticsdataV1alpha::FilterExpression, decorator: Google::Apis::AnalyticsdataV1alpha::FilterExpression::Representation
|
||||||
|
|
||||||
|
collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsdataV1alpha::Dimension, decorator: Google::Apis::AnalyticsdataV1alpha::Dimension::Representation
|
||||||
|
|
||||||
|
property :entity, as: 'entity', class: Google::Apis::AnalyticsdataV1alpha::Entity, decorator: Google::Apis::AnalyticsdataV1alpha::Entity::Representation
|
||||||
|
|
||||||
|
property :keep_empty_rows, as: 'keepEmptyRows'
|
||||||
|
property :metric_filter, as: 'metricFilter', class: Google::Apis::AnalyticsdataV1alpha::FilterExpression, decorator: Google::Apis::AnalyticsdataV1alpha::FilterExpression::Representation
|
||||||
|
|
||||||
|
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsdataV1alpha::Metric, decorator: Google::Apis::AnalyticsdataV1alpha::Metric::Representation
|
||||||
|
|
||||||
|
collection :pivots, as: 'pivots', class: Google::Apis::AnalyticsdataV1alpha::Pivot, decorator: Google::Apis::AnalyticsdataV1alpha::Pivot::Representation
|
||||||
|
|
||||||
|
property :return_property_quota, as: 'returnPropertyQuota'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RunPivotReportResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :aggregates, as: 'aggregates', class: Google::Apis::AnalyticsdataV1alpha::Row, decorator: Google::Apis::AnalyticsdataV1alpha::Row::Representation
|
||||||
|
|
||||||
|
collection :dimension_headers, as: 'dimensionHeaders', class: Google::Apis::AnalyticsdataV1alpha::DimensionHeader, decorator: Google::Apis::AnalyticsdataV1alpha::DimensionHeader::Representation
|
||||||
|
|
||||||
|
property :metadata, as: 'metadata', class: Google::Apis::AnalyticsdataV1alpha::ResponseMetaData, decorator: Google::Apis::AnalyticsdataV1alpha::ResponseMetaData::Representation
|
||||||
|
|
||||||
|
collection :metric_headers, as: 'metricHeaders', class: Google::Apis::AnalyticsdataV1alpha::MetricHeader, decorator: Google::Apis::AnalyticsdataV1alpha::MetricHeader::Representation
|
||||||
|
|
||||||
|
collection :pivot_headers, as: 'pivotHeaders', class: Google::Apis::AnalyticsdataV1alpha::PivotHeader, decorator: Google::Apis::AnalyticsdataV1alpha::PivotHeader::Representation
|
||||||
|
|
||||||
|
property :property_quota, as: 'propertyQuota', class: Google::Apis::AnalyticsdataV1alpha::PropertyQuota, decorator: Google::Apis::AnalyticsdataV1alpha::PropertyQuota::Representation
|
||||||
|
|
||||||
|
collection :rows, as: 'rows', class: Google::Apis::AnalyticsdataV1alpha::Row, decorator: Google::Apis::AnalyticsdataV1alpha::Row::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RunReportRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :cohort_spec, as: 'cohortSpec', class: Google::Apis::AnalyticsdataV1alpha::CohortSpec, decorator: Google::Apis::AnalyticsdataV1alpha::CohortSpec::Representation
|
||||||
|
|
||||||
|
property :currency_code, as: 'currencyCode'
|
||||||
|
collection :date_ranges, as: 'dateRanges', class: Google::Apis::AnalyticsdataV1alpha::DateRange, decorator: Google::Apis::AnalyticsdataV1alpha::DateRange::Representation
|
||||||
|
|
||||||
|
property :dimension_filter, as: 'dimensionFilter', class: Google::Apis::AnalyticsdataV1alpha::FilterExpression, decorator: Google::Apis::AnalyticsdataV1alpha::FilterExpression::Representation
|
||||||
|
|
||||||
|
collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsdataV1alpha::Dimension, decorator: Google::Apis::AnalyticsdataV1alpha::Dimension::Representation
|
||||||
|
|
||||||
|
property :entity, as: 'entity', class: Google::Apis::AnalyticsdataV1alpha::Entity, decorator: Google::Apis::AnalyticsdataV1alpha::Entity::Representation
|
||||||
|
|
||||||
|
property :keep_empty_rows, as: 'keepEmptyRows'
|
||||||
|
property :limit, :numeric_string => true, as: 'limit'
|
||||||
|
collection :metric_aggregations, as: 'metricAggregations'
|
||||||
|
property :metric_filter, as: 'metricFilter', class: Google::Apis::AnalyticsdataV1alpha::FilterExpression, decorator: Google::Apis::AnalyticsdataV1alpha::FilterExpression::Representation
|
||||||
|
|
||||||
|
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsdataV1alpha::Metric, decorator: Google::Apis::AnalyticsdataV1alpha::Metric::Representation
|
||||||
|
|
||||||
|
property :offset, :numeric_string => true, as: 'offset'
|
||||||
|
collection :order_bys, as: 'orderBys', class: Google::Apis::AnalyticsdataV1alpha::OrderBy, decorator: Google::Apis::AnalyticsdataV1alpha::OrderBy::Representation
|
||||||
|
|
||||||
|
property :return_property_quota, as: 'returnPropertyQuota'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class RunReportResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :dimension_headers, as: 'dimensionHeaders', class: Google::Apis::AnalyticsdataV1alpha::DimensionHeader, decorator: Google::Apis::AnalyticsdataV1alpha::DimensionHeader::Representation
|
||||||
|
|
||||||
|
collection :maximums, as: 'maximums', class: Google::Apis::AnalyticsdataV1alpha::Row, decorator: Google::Apis::AnalyticsdataV1alpha::Row::Representation
|
||||||
|
|
||||||
|
property :metadata, as: 'metadata', class: Google::Apis::AnalyticsdataV1alpha::ResponseMetaData, decorator: Google::Apis::AnalyticsdataV1alpha::ResponseMetaData::Representation
|
||||||
|
|
||||||
|
collection :metric_headers, as: 'metricHeaders', class: Google::Apis::AnalyticsdataV1alpha::MetricHeader, decorator: Google::Apis::AnalyticsdataV1alpha::MetricHeader::Representation
|
||||||
|
|
||||||
|
collection :minimums, as: 'minimums', class: Google::Apis::AnalyticsdataV1alpha::Row, decorator: Google::Apis::AnalyticsdataV1alpha::Row::Representation
|
||||||
|
|
||||||
|
property :property_quota, as: 'propertyQuota', class: Google::Apis::AnalyticsdataV1alpha::PropertyQuota, decorator: Google::Apis::AnalyticsdataV1alpha::PropertyQuota::Representation
|
||||||
|
|
||||||
|
property :row_count, as: 'rowCount'
|
||||||
|
collection :rows, as: 'rows', class: Google::Apis::AnalyticsdataV1alpha::Row, decorator: Google::Apis::AnalyticsdataV1alpha::Row::Representation
|
||||||
|
|
||||||
|
collection :totals, as: 'totals', class: Google::Apis::AnalyticsdataV1alpha::Row, decorator: Google::Apis::AnalyticsdataV1alpha::Row::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class StringFilter
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :case_sensitive, as: 'caseSensitive'
|
||||||
|
property :match_type, as: 'matchType'
|
||||||
|
property :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class UniversalMetadata
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsdataV1alpha::DimensionMetadata, decorator: Google::Apis::AnalyticsdataV1alpha::DimensionMetadata::Representation
|
||||||
|
|
||||||
|
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsdataV1alpha::MetricMetadata, decorator: Google::Apis::AnalyticsdataV1alpha::MetricMetadata::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,220 @@
|
||||||
|
# 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 AnalyticsdataV1alpha
|
||||||
|
# Google Analytics Data API
|
||||||
|
#
|
||||||
|
# Accesses report data in Google Analytics.
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/analyticsdata_v1alpha'
|
||||||
|
#
|
||||||
|
# Analyticsdata = Google::Apis::AnalyticsdataV1alpha # Alias the module
|
||||||
|
# service = Analyticsdata::AnalyticsDataService.new
|
||||||
|
#
|
||||||
|
# @see https://developers.google.com/analytics/trusted-testing/analytics-data/
|
||||||
|
class AnalyticsDataService < 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://analyticsdata.googleapis.com/', '')
|
||||||
|
@batch_path = 'batch'
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns multiple pivot reports in a batch. All reports must be for the same
|
||||||
|
# Entity.
|
||||||
|
# @param [Google::Apis::AnalyticsdataV1alpha::BatchRunPivotReportsRequest] batch_run_pivot_reports_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::AnalyticsdataV1alpha::BatchRunPivotReportsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AnalyticsdataV1alpha::BatchRunPivotReportsResponse]
|
||||||
|
#
|
||||||
|
# @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 batch_run_pivot_reports(batch_run_pivot_reports_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1alpha:batchRunPivotReports', options)
|
||||||
|
command.request_representation = Google::Apis::AnalyticsdataV1alpha::BatchRunPivotReportsRequest::Representation
|
||||||
|
command.request_object = batch_run_pivot_reports_request_object
|
||||||
|
command.response_representation = Google::Apis::AnalyticsdataV1alpha::BatchRunPivotReportsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AnalyticsdataV1alpha::BatchRunPivotReportsResponse
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns multiple reports in a batch. All reports must be for the same Entity.
|
||||||
|
# @param [Google::Apis::AnalyticsdataV1alpha::BatchRunReportsRequest] batch_run_reports_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::AnalyticsdataV1alpha::BatchRunReportsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AnalyticsdataV1alpha::BatchRunReportsResponse]
|
||||||
|
#
|
||||||
|
# @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 batch_run_reports(batch_run_reports_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1alpha:batchRunReports', options)
|
||||||
|
command.request_representation = Google::Apis::AnalyticsdataV1alpha::BatchRunReportsRequest::Representation
|
||||||
|
command.request_object = batch_run_reports_request_object
|
||||||
|
command.response_representation = Google::Apis::AnalyticsdataV1alpha::BatchRunReportsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AnalyticsdataV1alpha::BatchRunReportsResponse
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns metadata for dimensions and metrics available in reporting methods.
|
||||||
|
# Used to explore the dimensions and metrics. Dimensions and metrics will be
|
||||||
|
# mostly added over time, but renames and deletions may occur. This method
|
||||||
|
# returns Universal Metadata. Universal Metadata are dimensions and metrics
|
||||||
|
# applicable to any property such as `country` and `totalUsers`.
|
||||||
|
# @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::AnalyticsdataV1alpha::UniversalMetadata] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AnalyticsdataV1alpha::UniversalMetadata]
|
||||||
|
#
|
||||||
|
# @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_universal_metadata(fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1alpha/universalMetadata', options)
|
||||||
|
command.response_representation = Google::Apis::AnalyticsdataV1alpha::UniversalMetadata::Representation
|
||||||
|
command.response_class = Google::Apis::AnalyticsdataV1alpha::UniversalMetadata
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns a customized pivot report of your Google Analytics event data. Pivot
|
||||||
|
# reports are more advanced and expressive formats than regular reports. In a
|
||||||
|
# pivot report, dimensions are only visible if they are included in a pivot.
|
||||||
|
# Multiple pivots can be specified to further dissect your data.
|
||||||
|
# @param [Google::Apis::AnalyticsdataV1alpha::RunPivotReportRequest] run_pivot_report_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::AnalyticsdataV1alpha::RunPivotReportResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AnalyticsdataV1alpha::RunPivotReportResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def run_pivot_report(run_pivot_report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1alpha:runPivotReport', options)
|
||||||
|
command.request_representation = Google::Apis::AnalyticsdataV1alpha::RunPivotReportRequest::Representation
|
||||||
|
command.request_object = run_pivot_report_request_object
|
||||||
|
command.response_representation = Google::Apis::AnalyticsdataV1alpha::RunPivotReportResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AnalyticsdataV1alpha::RunPivotReportResponse
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns a customized report of your Google Analytics event data. Reports
|
||||||
|
# contain statistics derived from data collected by the Google Analytics
|
||||||
|
# tracking code. The data returned from the API is as a table with columns for
|
||||||
|
# the requested dimensions and metrics. Metrics are individual measurements of
|
||||||
|
# user activity on your property, such as active users or event count.
|
||||||
|
# Dimensions break down metrics across some common criteria, such as country or
|
||||||
|
# event name.
|
||||||
|
# @param [Google::Apis::AnalyticsdataV1alpha::RunReportRequest] run_report_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::AnalyticsdataV1alpha::RunReportResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::AnalyticsdataV1alpha::RunReportResponse]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def run_report(run_report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1alpha:runReport', options)
|
||||||
|
command.request_representation = Google::Apis::AnalyticsdataV1alpha::RunReportRequest::Representation
|
||||||
|
command.request_object = run_report_request_object
|
||||||
|
command.response_representation = Google::Apis::AnalyticsdataV1alpha::RunReportResponse::Representation
|
||||||
|
command.response_class = Google::Apis::AnalyticsdataV1alpha::RunReportResponse
|
||||||
|
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://developers.google.com/analytics/devguides/reporting/core/v4/
|
# @see https://developers.google.com/analytics/devguides/reporting/core/v4/
|
||||||
module AnalyticsreportingV4
|
module AnalyticsreportingV4
|
||||||
VERSION = 'V4'
|
VERSION = 'V4'
|
||||||
REVISION = '20200803'
|
REVISION = '20200902'
|
||||||
|
|
||||||
# View and manage your Google Analytics data
|
# View and manage your Google Analytics data
|
||||||
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
|
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/android-publisher
|
# @see https://developers.google.com/android-publisher
|
||||||
module AndroidpublisherV3
|
module AndroidpublisherV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20200817'
|
REVISION = '20200909'
|
||||||
|
|
||||||
# View and manage your Google Play Developer account
|
# View and manage your Google Play Developer account
|
||||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
require 'google/apis/apigateway_v1alpha1/service.rb'
|
||||||
|
require 'google/apis/apigateway_v1alpha1/classes.rb'
|
||||||
|
require 'google/apis/apigateway_v1alpha1/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# API Gateway API
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/api-gateway/docs
|
||||||
|
module ApigatewayV1alpha1
|
||||||
|
VERSION = 'V1alpha1'
|
||||||
|
REVISION = '20200901'
|
||||||
|
|
||||||
|
# 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,633 @@
|
||||||
|
# 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 ApigatewayV1alpha1
|
||||||
|
|
||||||
|
# Specifies the audit configuration for a service. The configuration determines
|
||||||
|
# which permission types are logged, and what identities, if any, are exempted
|
||||||
|
# from logging. An AuditConfig must have one or more AuditLogConfigs. If there
|
||||||
|
# are AuditConfigs for both `allServices` and a specific service, the union of
|
||||||
|
# the two AuditConfigs is used for that service: the log_types specified in each
|
||||||
|
# AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
|
||||||
|
# exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
|
||||||
|
# service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
|
||||||
|
# exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
|
||||||
|
# ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
|
||||||
|
# "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
|
||||||
|
# , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
|
||||||
|
# this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
|
||||||
|
# exempts jose@example.com from DATA_READ logging, and aliya@example.com from
|
||||||
|
# DATA_WRITE logging.
|
||||||
|
class ApigatewayAuditConfig
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The configuration for logging of each type of permission.
|
||||||
|
# Corresponds to the JSON property `auditLogConfigs`
|
||||||
|
# @return [Array<Google::Apis::ApigatewayV1alpha1::ApigatewayAuditLogConfig>]
|
||||||
|
attr_accessor :audit_log_configs
|
||||||
|
|
||||||
|
# Specifies a service that will be enabled for audit logging. For example, `
|
||||||
|
# storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
|
||||||
|
# value that covers all services.
|
||||||
|
# Corresponds to the JSON property `service`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :service
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
|
||||||
|
@service = args[:service] if args.key?(:service)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Provides the configuration for logging a type of permissions. Example: ` "
|
||||||
|
# audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
|
||||||
|
# jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
|
||||||
|
# DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
|
||||||
|
# DATA_READ logging.
|
||||||
|
class ApigatewayAuditLogConfig
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Specifies the identities that do not cause logging for this type of permission.
|
||||||
|
# Follows the same format of Binding.members.
|
||||||
|
# Corresponds to the JSON property `exemptedMembers`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :exempted_members
|
||||||
|
|
||||||
|
# The log type that this config enables.
|
||||||
|
# Corresponds to the JSON property `logType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :log_type
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
||||||
|
@log_type = args[:log_type] if args.key?(:log_type)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Associates `members` with a `role`.
|
||||||
|
class ApigatewayBinding
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
||||||
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
||||||
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
||||||
|
# "Summary size limit" description: "Determines if a summary is less than 100
|
||||||
|
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
||||||
|
# Requestor is owner" description: "Determines if requestor is the document
|
||||||
|
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
||||||
|
# Logic): title: "Public documents" description: "Determine whether the document
|
||||||
|
# should be publicly visible" expression: "document.type != 'private' &&
|
||||||
|
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
||||||
|
# string" description: "Create a notification string with a timestamp."
|
||||||
|
# expression: "'New message received at ' + string(document.create_time)" The
|
||||||
|
# exact variables and functions that may be referenced within an expression are
|
||||||
|
# determined by the service that evaluates it. See the service documentation for
|
||||||
|
# additional information.
|
||||||
|
# Corresponds to the JSON property `condition`
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha1::ApigatewayExpr]
|
||||||
|
attr_accessor :condition
|
||||||
|
|
||||||
|
# Specifies the identities requesting access for a Cloud Platform resource. `
|
||||||
|
# members` can have the following values: * `allUsers`: A special identifier
|
||||||
|
# that represents anyone who is on the internet; with or without a Google
|
||||||
|
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
||||||
|
# anyone who is authenticated with a Google account or a service account. * `
|
||||||
|
# user:`emailid``: An email address that represents a specific Google account.
|
||||||
|
# For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
|
||||||
|
# address that represents a service account. For example, `my-other-app@appspot.
|
||||||
|
# gserviceaccount.com`. * `group:`emailid``: An email address that represents a
|
||||||
|
# Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
|
||||||
|
# `uniqueid``: An email address (plus unique identifier) representing a user
|
||||||
|
# that has been recently deleted. For example, `alice@example.com?uid=
|
||||||
|
# 123456789012345678901`. If the user is recovered, this value reverts to `user:`
|
||||||
|
# emailid`` and the recovered user retains the role in the binding. * `deleted:
|
||||||
|
# serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
|
||||||
|
# identifier) representing a service account that has been recently deleted. For
|
||||||
|
# example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
||||||
|
# If the service account is undeleted, this value reverts to `serviceAccount:`
|
||||||
|
# emailid`` and the undeleted service account retains the role in the binding. *
|
||||||
|
# `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
|
||||||
|
# identifier) representing a Google group that has been recently deleted. For
|
||||||
|
# example, `admins@example.com?uid=123456789012345678901`. If the group is
|
||||||
|
# recovered, this value reverts to `group:`emailid`` and the recovered group
|
||||||
|
# retains the role in the binding. * `domain:`domain``: The G Suite domain (
|
||||||
|
# primary) that represents all the users of that domain. For example, `google.
|
||||||
|
# com` or `example.com`.
|
||||||
|
# Corresponds to the JSON property `members`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :members
|
||||||
|
|
||||||
|
# Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
|
||||||
|
# , or `roles/owner`.
|
||||||
|
# Corresponds to the JSON property `role`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :role
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@condition = args[:condition] if args.key?(:condition)
|
||||||
|
@members = args[:members] if args.key?(:members)
|
||||||
|
@role = args[:role] if args.key?(:role)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The request message for Operations.CancelOperation.
|
||||||
|
class ApigatewayCancelOperationRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
||||||
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
||||||
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
||||||
|
# "Summary size limit" description: "Determines if a summary is less than 100
|
||||||
|
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
||||||
|
# Requestor is owner" description: "Determines if requestor is the document
|
||||||
|
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
||||||
|
# Logic): title: "Public documents" description: "Determine whether the document
|
||||||
|
# should be publicly visible" expression: "document.type != 'private' &&
|
||||||
|
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
||||||
|
# string" description: "Create a notification string with a timestamp."
|
||||||
|
# expression: "'New message received at ' + string(document.create_time)" The
|
||||||
|
# exact variables and functions that may be referenced within an expression are
|
||||||
|
# determined by the service that evaluates it. See the service documentation for
|
||||||
|
# additional information.
|
||||||
|
class ApigatewayExpr
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Optional. Description of the expression. This is a longer text which describes
|
||||||
|
# the expression, e.g. when hovered over it in a UI.
|
||||||
|
# Corresponds to the JSON property `description`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :description
|
||||||
|
|
||||||
|
# Textual representation of an expression in Common Expression Language syntax.
|
||||||
|
# Corresponds to the JSON property `expression`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :expression
|
||||||
|
|
||||||
|
# Optional. String indicating the location of the expression for error reporting,
|
||||||
|
# e.g. a file name and a position in the file.
|
||||||
|
# Corresponds to the JSON property `location`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :location
|
||||||
|
|
||||||
|
# Optional. Title for the expression, i.e. a short string describing its purpose.
|
||||||
|
# This can be used e.g. in UIs which allow to enter the expression.
|
||||||
|
# Corresponds to the JSON property `title`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :title
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@description = args[:description] if args.key?(:description)
|
||||||
|
@expression = args[:expression] if args.key?(:expression)
|
||||||
|
@location = args[:location] if args.key?(:location)
|
||||||
|
@title = args[:title] if args.key?(:title)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The response message for Locations.ListLocations.
|
||||||
|
class ApigatewayListLocationsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A list of locations that matches the specified filter in the request.
|
||||||
|
# Corresponds to the JSON property `locations`
|
||||||
|
# @return [Array<Google::Apis::ApigatewayV1alpha1::ApigatewayLocation>]
|
||||||
|
attr_accessor :locations
|
||||||
|
|
||||||
|
# The standard List next-page token.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@locations = args[:locations] if args.key?(:locations)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# The response message for Operations.ListOperations.
|
||||||
|
class ApigatewayListOperationsResponse
|
||||||
|
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::ApigatewayV1alpha1::ApigatewayOperation>]
|
||||||
|
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
|
||||||
|
|
||||||
|
# A resource that represents Google Cloud Platform location.
|
||||||
|
class ApigatewayLocation
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The friendly name for this location, typically a nearby city name. For example,
|
||||||
|
# "Tokyo".
|
||||||
|
# Corresponds to the JSON property `displayName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :display_name
|
||||||
|
|
||||||
|
# Cross-service attributes for the location. For example `"cloud.googleapis.com/
|
||||||
|
# region": "us-east1"`
|
||||||
|
# Corresponds to the JSON property `labels`
|
||||||
|
# @return [Hash<String,String>]
|
||||||
|
attr_accessor :labels
|
||||||
|
|
||||||
|
# The canonical id for this location. For example: `"us-east1"`.
|
||||||
|
# Corresponds to the JSON property `locationId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :location_id
|
||||||
|
|
||||||
|
# Service-specific metadata. For example the available capacity at the given
|
||||||
|
# location.
|
||||||
|
# Corresponds to the JSON property `metadata`
|
||||||
|
# @return [Hash<String,Object>]
|
||||||
|
attr_accessor :metadata
|
||||||
|
|
||||||
|
# Resource name for the location, which may vary between implementations. For
|
||||||
|
# example: `"projects/example-project/locations/us-east1"`
|
||||||
|
# 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)
|
||||||
|
@display_name = args[:display_name] if args.key?(:display_name)
|
||||||
|
@labels = args[:labels] if args.key?(:labels)
|
||||||
|
@location_id = args[:location_id] if args.key?(:location_id)
|
||||||
|
@metadata = args[:metadata] if args.key?(:metadata)
|
||||||
|
@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 ApigatewayOperation
|
||||||
|
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::ApigatewayV1alpha1::ApigatewayStatus]
|
||||||
|
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
|
||||||
|
|
||||||
|
# An Identity and Access Management (IAM) policy, which specifies access
|
||||||
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
||||||
|
# A `binding` binds one or more `members` to a single `role`. Members can be
|
||||||
|
# user accounts, service accounts, Google groups, and domains (such as G Suite).
|
||||||
|
# A `role` is a named list of permissions; each `role` can be an IAM predefined
|
||||||
|
# role or a user-created custom role. For some types of Google Cloud resources,
|
||||||
|
# a `binding` can also specify a `condition`, which is a logical expression that
|
||||||
|
# allows access to a resource only if the expression evaluates to `true`. A
|
||||||
|
# condition can add constraints based on attributes of the request, the resource,
|
||||||
|
# or both. To learn which resources support conditions in their IAM policies,
|
||||||
|
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
||||||
|
# resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
|
||||||
|
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
|
||||||
|
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
|
||||||
|
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
|
||||||
|
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
|
||||||
|
# title": "expirable access", "description": "Does not grant access after Sep
|
||||||
|
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
|
||||||
|
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
|
||||||
|
# members: - user:mike@example.com - group:admins@example.com - domain:google.
|
||||||
|
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
|
||||||
|
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
||||||
|
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
||||||
|
# description: Does not grant access after Sep 2020 expression: request.time <
|
||||||
|
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
|
||||||
|
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
||||||
|
# google.com/iam/docs/).
|
||||||
|
class ApigatewayPolicy
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Specifies cloud audit logging configuration for this policy.
|
||||||
|
# Corresponds to the JSON property `auditConfigs`
|
||||||
|
# @return [Array<Google::Apis::ApigatewayV1alpha1::ApigatewayAuditConfig>]
|
||||||
|
attr_accessor :audit_configs
|
||||||
|
|
||||||
|
# Associates a list of `members` to a `role`. Optionally, may specify a `
|
||||||
|
# condition` that determines how and when the `bindings` are applied. Each of
|
||||||
|
# the `bindings` must contain at least one member.
|
||||||
|
# Corresponds to the JSON property `bindings`
|
||||||
|
# @return [Array<Google::Apis::ApigatewayV1alpha1::ApigatewayBinding>]
|
||||||
|
attr_accessor :bindings
|
||||||
|
|
||||||
|
# `etag` is used for optimistic concurrency control as a way to help prevent
|
||||||
|
# simultaneous updates of a policy from overwriting each other. It is strongly
|
||||||
|
# suggested that systems make use of the `etag` in the read-modify-write cycle
|
||||||
|
# to perform policy updates in order to avoid race conditions: An `etag` is
|
||||||
|
# returned in the response to `getIamPolicy`, and systems are expected to put
|
||||||
|
# that etag in the request to `setIamPolicy` to ensure that their change will be
|
||||||
|
# applied to the same version of the policy. **Important:** If you use IAM
|
||||||
|
# Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
|
||||||
|
# If you omit this field, then IAM allows you to overwrite a version `3` policy
|
||||||
|
# with a version `1` policy, and all of the conditions in the version `3` policy
|
||||||
|
# are lost.
|
||||||
|
# Corresponds to the JSON property `etag`
|
||||||
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :etag
|
||||||
|
|
||||||
|
# Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
|
||||||
|
# Requests that specify an invalid value are rejected. Any operation that
|
||||||
|
# affects conditional role bindings must specify version `3`. This requirement
|
||||||
|
# applies to the following operations: * Getting a policy that includes a
|
||||||
|
# conditional role binding * Adding a conditional role binding to a policy *
|
||||||
|
# Changing a conditional role binding in a policy * Removing any role binding,
|
||||||
|
# with or without a condition, from a policy that includes conditions **
|
||||||
|
# Important:** If you use IAM Conditions, you must include the `etag` field
|
||||||
|
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
|
||||||
|
# to overwrite a version `3` policy with a version `1` policy, and all of the
|
||||||
|
# conditions in the version `3` policy are lost. If a policy does not include
|
||||||
|
# any conditions, operations on that policy may specify any valid version 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).
|
||||||
|
# Corresponds to the JSON property `version`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :version
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
||||||
|
@bindings = args[:bindings] if args.key?(:bindings)
|
||||||
|
@etag = args[:etag] if args.key?(:etag)
|
||||||
|
@version = args[:version] if args.key?(:version)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Request message for `SetIamPolicy` method.
|
||||||
|
class ApigatewaySetIamPolicyRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# An Identity and Access Management (IAM) policy, which specifies access
|
||||||
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
||||||
|
# A `binding` binds one or more `members` to a single `role`. Members can be
|
||||||
|
# user accounts, service accounts, Google groups, and domains (such as G Suite).
|
||||||
|
# A `role` is a named list of permissions; each `role` can be an IAM predefined
|
||||||
|
# role or a user-created custom role. For some types of Google Cloud resources,
|
||||||
|
# a `binding` can also specify a `condition`, which is a logical expression that
|
||||||
|
# allows access to a resource only if the expression evaluates to `true`. A
|
||||||
|
# condition can add constraints based on attributes of the request, the resource,
|
||||||
|
# or both. To learn which resources support conditions in their IAM policies,
|
||||||
|
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
||||||
|
# resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
|
||||||
|
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
|
||||||
|
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
|
||||||
|
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
|
||||||
|
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
|
||||||
|
# title": "expirable access", "description": "Does not grant access after Sep
|
||||||
|
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
|
||||||
|
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
|
||||||
|
# members: - user:mike@example.com - group:admins@example.com - domain:google.
|
||||||
|
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
|
||||||
|
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
||||||
|
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
||||||
|
# description: Does not grant access after Sep 2020 expression: request.time <
|
||||||
|
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
|
||||||
|
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
||||||
|
# google.com/iam/docs/).
|
||||||
|
# Corresponds to the JSON property `policy`
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy]
|
||||||
|
attr_accessor :policy
|
||||||
|
|
||||||
|
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
||||||
|
# the fields in the mask will be modified. If no mask is provided, the following
|
||||||
|
# default mask is used: `paths: "bindings, etag"`
|
||||||
|
# Corresponds to the JSON property `updateMask`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :update_mask
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@policy = args[:policy] if args.key?(:policy)
|
||||||
|
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
||||||
|
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 ApigatewayStatus
|
||||||
|
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
|
||||||
|
|
||||||
|
# Request message for `TestIamPermissions` method.
|
||||||
|
class ApigatewayTestIamPermissionsRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The set of permissions to check for the `resource`. Permissions with wildcards
|
||||||
|
# (such as '*' or 'storage.*') are not allowed. For more information see [IAM
|
||||||
|
# Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
||||||
|
# Corresponds to the JSON property `permissions`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :permissions
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@permissions = args[:permissions] if args.key?(:permissions)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response message for `TestIamPermissions` method.
|
||||||
|
class ApigatewayTestIamPermissionsResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
|
||||||
|
# Corresponds to the JSON property `permissions`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :permissions
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@permissions = args[:permissions] if args.key?(:permissions)
|
||||||
|
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
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,250 @@
|
||||||
|
# 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 ApigatewayV1alpha1
|
||||||
|
|
||||||
|
class ApigatewayAuditConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayAuditLogConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayBinding
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayCancelOperationRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayExpr
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayListLocationsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayListOperationsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayLocation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayOperation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayPolicy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewaySetIamPolicyRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayStatus
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayTestIamPermissionsRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayTestIamPermissionsResponse
|
||||||
|
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 ApigatewayAuditConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::ApigatewayV1alpha1::ApigatewayAuditLogConfig, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayAuditLogConfig::Representation
|
||||||
|
|
||||||
|
property :service, as: 'service'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayAuditLogConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :exempted_members, as: 'exemptedMembers'
|
||||||
|
property :log_type, as: 'logType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayBinding
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :condition, as: 'condition', class: Google::Apis::ApigatewayV1alpha1::ApigatewayExpr, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayExpr::Representation
|
||||||
|
|
||||||
|
collection :members, as: 'members'
|
||||||
|
property :role, as: 'role'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayCancelOperationRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayExpr
|
||||||
|
# @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 ApigatewayListLocationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :locations, as: 'locations', class: Google::Apis::ApigatewayV1alpha1::ApigatewayLocation, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayLocation::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayListOperationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :operations, as: 'operations', class: Google::Apis::ApigatewayV1alpha1::ApigatewayOperation, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayOperation::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayLocation
|
||||||
|
# @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 ApigatewayOperation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :done, as: 'done'
|
||||||
|
property :error, as: 'error', class: Google::Apis::ApigatewayV1alpha1::ApigatewayStatus, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayStatus::Representation
|
||||||
|
|
||||||
|
hash :metadata, as: 'metadata'
|
||||||
|
property :name, as: 'name'
|
||||||
|
hash :response, as: 'response'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayPolicy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ApigatewayV1alpha1::ApigatewayAuditConfig, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayAuditConfig::Representation
|
||||||
|
|
||||||
|
collection :bindings, as: 'bindings', class: Google::Apis::ApigatewayV1alpha1::ApigatewayBinding, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayBinding::Representation
|
||||||
|
|
||||||
|
property :etag, :base64 => true, as: 'etag'
|
||||||
|
property :version, as: 'version'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewaySetIamPolicyRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :policy, as: 'policy', class: Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation
|
||||||
|
|
||||||
|
property :update_mask, as: 'updateMask'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayStatus
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
collection :details, as: 'details'
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayTestIamPermissionsRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :permissions, as: 'permissions'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayTestIamPermissionsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :permissions, as: 'permissions'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,623 @@
|
||||||
|
# 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 ApigatewayV1alpha1
|
||||||
|
# API Gateway API
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# @example
|
||||||
|
# require 'google/apis/apigateway_v1alpha1'
|
||||||
|
#
|
||||||
|
# Apigateway = Google::Apis::ApigatewayV1alpha1 # Alias the module
|
||||||
|
# service = Apigateway::ApigatewayService.new
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/api-gateway/docs
|
||||||
|
class ApigatewayService < 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://apigateway.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::ApigatewayV1alpha1::ApigatewayLocation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha1::ApigatewayLocation]
|
||||||
|
#
|
||||||
|
# @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, 'v1alpha1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayLocation::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayLocation
|
||||||
|
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::ApigatewayV1alpha1::ApigatewayListLocationsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha1::ApigatewayListLocationsResponse]
|
||||||
|
#
|
||||||
|
# @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, 'v1alpha1/{+name}/locations', options)
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayListLocationsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayListLocationsResponse
|
||||||
|
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 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::ApigatewayV1alpha1::ApigatewayPolicy] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy]
|
||||||
|
#
|
||||||
|
# @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_api_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options)
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy
|
||||||
|
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
|
||||||
|
|
||||||
|
# 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::ApigatewayV1alpha1::ApigatewaySetIamPolicyRequest] apigateway_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::ApigatewayV1alpha1::ApigatewayPolicy] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy]
|
||||||
|
#
|
||||||
|
# @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_project_location_api_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
|
||||||
|
command.request_representation = Google::Apis::ApigatewayV1alpha1::ApigatewaySetIamPolicyRequest::Representation
|
||||||
|
command.request_object = apigateway_set_iam_policy_request_object
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy
|
||||||
|
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::ApigatewayV1alpha1::ApigatewayTestIamPermissionsRequest] apigateway_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::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse]
|
||||||
|
#
|
||||||
|
# @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_project_location_api_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
|
||||||
|
command.request_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsRequest::Representation
|
||||||
|
command.request_object = apigateway_test_iam_permissions_request_object
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse
|
||||||
|
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 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::ApigatewayV1alpha1::ApigatewayPolicy] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy]
|
||||||
|
#
|
||||||
|
# @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_api_config_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options)
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy
|
||||||
|
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
|
||||||
|
|
||||||
|
# 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::ApigatewayV1alpha1::ApigatewaySetIamPolicyRequest] apigateway_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::ApigatewayV1alpha1::ApigatewayPolicy] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy]
|
||||||
|
#
|
||||||
|
# @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_project_location_api_config_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
|
||||||
|
command.request_representation = Google::Apis::ApigatewayV1alpha1::ApigatewaySetIamPolicyRequest::Representation
|
||||||
|
command.request_object = apigateway_set_iam_policy_request_object
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy
|
||||||
|
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::ApigatewayV1alpha1::ApigatewayTestIamPermissionsRequest] apigateway_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::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse]
|
||||||
|
#
|
||||||
|
# @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_project_location_api_config_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
|
||||||
|
command.request_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsRequest::Representation
|
||||||
|
command.request_object = apigateway_test_iam_permissions_request_object
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse
|
||||||
|
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 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::ApigatewayV1alpha1::ApigatewayPolicy] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy]
|
||||||
|
#
|
||||||
|
# @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_gateway_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options)
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy
|
||||||
|
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
|
||||||
|
|
||||||
|
# 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::ApigatewayV1alpha1::ApigatewaySetIamPolicyRequest] apigateway_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::ApigatewayV1alpha1::ApigatewayPolicy] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy]
|
||||||
|
#
|
||||||
|
# @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_project_location_gateway_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
|
||||||
|
command.request_representation = Google::Apis::ApigatewayV1alpha1::ApigatewaySetIamPolicyRequest::Representation
|
||||||
|
command.request_object = apigateway_set_iam_policy_request_object
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy
|
||||||
|
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::ApigatewayV1alpha1::ApigatewayTestIamPermissionsRequest] apigateway_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::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse]
|
||||||
|
#
|
||||||
|
# @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_project_location_gateway_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
|
||||||
|
command.request_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsRequest::Representation
|
||||||
|
command.request_object = apigateway_test_iam_permissions_request_object
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse
|
||||||
|
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::ApigatewayV1alpha1::ApigatewayCancelOperationRequest] apigateway_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::ApigatewayV1alpha1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha1::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, apigateway_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::ApigatewayV1alpha1::ApigatewayCancelOperationRequest::Representation
|
||||||
|
command.request_object = apigateway_cancel_operation_request_object
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha1::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::ApigatewayV1alpha1::Empty] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha1::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_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::ApigatewayV1alpha1::Empty::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha1::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::ApigatewayV1alpha1::ApigatewayOperation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha1::ApigatewayOperation]
|
||||||
|
#
|
||||||
|
# @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::ApigatewayV1alpha1::ApigatewayOperation::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayOperation
|
||||||
|
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::ApigatewayV1alpha1::ApigatewayListOperationsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ApigatewayV1alpha1::ApigatewayListOperationsResponse]
|
||||||
|
#
|
||||||
|
# @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::ApigatewayV1alpha1::ApigatewayListOperationsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayListOperationsResponse
|
||||||
|
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
|
|
@ -0,0 +1,34 @@
|
||||||
|
# Copyright 2015 Google Inc.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
require 'google/apis/apigateway_v1beta/service.rb'
|
||||||
|
require 'google/apis/apigateway_v1beta/classes.rb'
|
||||||
|
require 'google/apis/apigateway_v1beta/representations.rb'
|
||||||
|
|
||||||
|
module Google
|
||||||
|
module Apis
|
||||||
|
# API Gateway API
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# @see https://cloud.google.com/api-gateway/docs
|
||||||
|
module ApigatewayV1beta
|
||||||
|
VERSION = 'V1beta'
|
||||||
|
REVISION = '20200901'
|
||||||
|
|
||||||
|
# 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,470 @@
|
||||||
|
# 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 ApigatewayV1beta
|
||||||
|
|
||||||
|
class ApigatewayApi
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayApiConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayApiConfigFile
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayApiConfigGrpcServiceDefinition
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayApiConfigOpenApiDocument
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayAuditConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayAuditLogConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayBackendConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayBinding
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayCancelOperationRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayExpr
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayGateway
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayGatewayConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayListApiConfigsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayListApisResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayListGatewaysResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayListLocationsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayListOperationsResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayLocation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayOperation
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayOperationMetadata
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayOperationMetadataDiagnostic
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayPolicy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewaySetIamPolicyRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayStatus
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayTestIamPermissionsRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayTestIamPermissionsResponse
|
||||||
|
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 ApigatewayApi
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :display_name, as: 'displayName'
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
property :managed_service, as: 'managedService'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :state, as: 'state'
|
||||||
|
property :update_time, as: 'updateTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayApiConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :display_name, as: 'displayName'
|
||||||
|
property :gateway_config, as: 'gatewayConfig', class: Google::Apis::ApigatewayV1beta::ApigatewayGatewayConfig, decorator: Google::Apis::ApigatewayV1beta::ApigatewayGatewayConfig::Representation
|
||||||
|
|
||||||
|
collection :grpc_services, as: 'grpcServices', class: Google::Apis::ApigatewayV1beta::ApigatewayApiConfigGrpcServiceDefinition, decorator: Google::Apis::ApigatewayV1beta::ApigatewayApiConfigGrpcServiceDefinition::Representation
|
||||||
|
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
collection :managed_service_configs, as: 'managedServiceConfigs', class: Google::Apis::ApigatewayV1beta::ApigatewayApiConfigFile, decorator: Google::Apis::ApigatewayV1beta::ApigatewayApiConfigFile::Representation
|
||||||
|
|
||||||
|
property :name, as: 'name'
|
||||||
|
collection :openapi_documents, as: 'openapiDocuments', class: Google::Apis::ApigatewayV1beta::ApigatewayApiConfigOpenApiDocument, decorator: Google::Apis::ApigatewayV1beta::ApigatewayApiConfigOpenApiDocument::Representation
|
||||||
|
|
||||||
|
property :service_config_id, as: 'serviceConfigId'
|
||||||
|
property :state, as: 'state'
|
||||||
|
property :update_time, as: 'updateTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayApiConfigFile
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :contents, :base64 => true, as: 'contents'
|
||||||
|
property :path, as: 'path'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayApiConfigGrpcServiceDefinition
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :file_descriptor_set, as: 'fileDescriptorSet', class: Google::Apis::ApigatewayV1beta::ApigatewayApiConfigFile, decorator: Google::Apis::ApigatewayV1beta::ApigatewayApiConfigFile::Representation
|
||||||
|
|
||||||
|
collection :source, as: 'source', class: Google::Apis::ApigatewayV1beta::ApigatewayApiConfigFile, decorator: Google::Apis::ApigatewayV1beta::ApigatewayApiConfigFile::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayApiConfigOpenApiDocument
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :document, as: 'document', class: Google::Apis::ApigatewayV1beta::ApigatewayApiConfigFile, decorator: Google::Apis::ApigatewayV1beta::ApigatewayApiConfigFile::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayAuditConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::ApigatewayV1beta::ApigatewayAuditLogConfig, decorator: Google::Apis::ApigatewayV1beta::ApigatewayAuditLogConfig::Representation
|
||||||
|
|
||||||
|
property :service, as: 'service'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayAuditLogConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :exempted_members, as: 'exemptedMembers'
|
||||||
|
property :log_type, as: 'logType'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayBackendConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :google_service_account, as: 'googleServiceAccount'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayBinding
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :condition, as: 'condition', class: Google::Apis::ApigatewayV1beta::ApigatewayExpr, decorator: Google::Apis::ApigatewayV1beta::ApigatewayExpr::Representation
|
||||||
|
|
||||||
|
collection :members, as: 'members'
|
||||||
|
property :role, as: 'role'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayCancelOperationRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayExpr
|
||||||
|
# @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 ApigatewayGateway
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :api_config, as: 'apiConfig'
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
property :default_hostname, as: 'defaultHostname'
|
||||||
|
property :display_name, as: 'displayName'
|
||||||
|
hash :labels, as: 'labels'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :state, as: 'state'
|
||||||
|
property :update_time, as: 'updateTime'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayGatewayConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :backend_config, as: 'backendConfig', class: Google::Apis::ApigatewayV1beta::ApigatewayBackendConfig, decorator: Google::Apis::ApigatewayV1beta::ApigatewayBackendConfig::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayListApiConfigsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :api_configs, as: 'apiConfigs', class: Google::Apis::ApigatewayV1beta::ApigatewayApiConfig, decorator: Google::Apis::ApigatewayV1beta::ApigatewayApiConfig::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :unreachable_locations, as: 'unreachableLocations'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayListApisResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :apis, as: 'apis', class: Google::Apis::ApigatewayV1beta::ApigatewayApi, decorator: Google::Apis::ApigatewayV1beta::ApigatewayApi::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :unreachable_locations, as: 'unreachableLocations'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayListGatewaysResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :gateways, as: 'gateways', class: Google::Apis::ApigatewayV1beta::ApigatewayGateway, decorator: Google::Apis::ApigatewayV1beta::ApigatewayGateway::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :unreachable_locations, as: 'unreachableLocations'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayListLocationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :locations, as: 'locations', class: Google::Apis::ApigatewayV1beta::ApigatewayLocation, decorator: Google::Apis::ApigatewayV1beta::ApigatewayLocation::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayListOperationsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
collection :operations, as: 'operations', class: Google::Apis::ApigatewayV1beta::ApigatewayOperation, decorator: Google::Apis::ApigatewayV1beta::ApigatewayOperation::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayLocation
|
||||||
|
# @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 ApigatewayOperation
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :done, as: 'done'
|
||||||
|
property :error, as: 'error', class: Google::Apis::ApigatewayV1beta::ApigatewayStatus, decorator: Google::Apis::ApigatewayV1beta::ApigatewayStatus::Representation
|
||||||
|
|
||||||
|
hash :metadata, as: 'metadata'
|
||||||
|
property :name, as: 'name'
|
||||||
|
hash :response, as: 'response'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayOperationMetadata
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :api_version, as: 'apiVersion'
|
||||||
|
property :create_time, as: 'createTime'
|
||||||
|
collection :diagnostics, as: 'diagnostics', class: Google::Apis::ApigatewayV1beta::ApigatewayOperationMetadataDiagnostic, decorator: Google::Apis::ApigatewayV1beta::ApigatewayOperationMetadataDiagnostic::Representation
|
||||||
|
|
||||||
|
property :end_time, as: 'endTime'
|
||||||
|
property :requested_cancellation, as: 'requestedCancellation'
|
||||||
|
property :status_message, as: 'statusMessage'
|
||||||
|
property :target, as: 'target'
|
||||||
|
property :verb, as: 'verb'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayOperationMetadataDiagnostic
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :location, as: 'location'
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayPolicy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ApigatewayV1beta::ApigatewayAuditConfig, decorator: Google::Apis::ApigatewayV1beta::ApigatewayAuditConfig::Representation
|
||||||
|
|
||||||
|
collection :bindings, as: 'bindings', class: Google::Apis::ApigatewayV1beta::ApigatewayBinding, decorator: Google::Apis::ApigatewayV1beta::ApigatewayBinding::Representation
|
||||||
|
|
||||||
|
property :etag, :base64 => true, as: 'etag'
|
||||||
|
property :version, as: 'version'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewaySetIamPolicyRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :policy, as: 'policy', class: Google::Apis::ApigatewayV1beta::ApigatewayPolicy, decorator: Google::Apis::ApigatewayV1beta::ApigatewayPolicy::Representation
|
||||||
|
|
||||||
|
property :update_mask, as: 'updateMask'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayStatus
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
collection :details, as: 'details'
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayTestIamPermissionsRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :permissions, as: 'permissions'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ApigatewayTestIamPermissionsResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :permissions, as: 'permissions'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Empty
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
File diff suppressed because it is too large
Load Diff
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/appengine/docs/admin-api/
|
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||||
module AppengineV1
|
module AppengineV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200822'
|
REVISION = '20200903'
|
||||||
|
|
||||||
# View and manage your applications deployed on Google App Engine
|
# View and manage your applications deployed on Google App Engine
|
||||||
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
||||||
|
|
|
@ -1140,91 +1140,91 @@ module Google
|
||||||
class Instance
|
class Instance
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# App Engine release this instance is running on.@OutputOnly
|
# Output only. App Engine release this instance is running on.
|
||||||
# Corresponds to the JSON property `appEngineRelease`
|
# Corresponds to the JSON property `appEngineRelease`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :app_engine_release
|
attr_accessor :app_engine_release
|
||||||
|
|
||||||
# Availability of the instance.@OutputOnly
|
# Output only. Availability of the instance.
|
||||||
# Corresponds to the JSON property `availability`
|
# Corresponds to the JSON property `availability`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :availability
|
attr_accessor :availability
|
||||||
|
|
||||||
# Average latency (ms) over the last minute.@OutputOnly
|
# Output only. Average latency (ms) over the last minute.
|
||||||
# Corresponds to the JSON property `averageLatency`
|
# Corresponds to the JSON property `averageLatency`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :average_latency
|
attr_accessor :average_latency
|
||||||
|
|
||||||
# Number of errors since this instance was started.@OutputOnly
|
# Output only. Number of errors since this instance was started.
|
||||||
# Corresponds to the JSON property `errors`
|
# Corresponds to the JSON property `errors`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :errors
|
attr_accessor :errors
|
||||||
|
|
||||||
# Relative name of the instance within the version. Example: instance-1.@
|
# Output only. Relative name of the instance within the version. Example:
|
||||||
# OutputOnly
|
# instance-1.
|
||||||
# Corresponds to the JSON property `id`
|
# Corresponds to the JSON property `id`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :id
|
attr_accessor :id
|
||||||
|
|
||||||
# Total memory in use (bytes).@OutputOnly
|
# Output only. Total memory in use (bytes).
|
||||||
# Corresponds to the JSON property `memoryUsage`
|
# Corresponds to the JSON property `memoryUsage`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :memory_usage
|
attr_accessor :memory_usage
|
||||||
|
|
||||||
# Full path to the Instance resource in the API. Example: apps/myapp/services/
|
# Output only. Full path to the Instance resource in the API. Example: apps/
|
||||||
# default/versions/v1/instances/instance-1.@OutputOnly
|
# myapp/services/default/versions/v1/instances/instance-1.
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
# Average queries per second (QPS) over the last minute.@OutputOnly
|
# Output only. Average queries per second (QPS) over the last minute.
|
||||||
# Corresponds to the JSON property `qps`
|
# Corresponds to the JSON property `qps`
|
||||||
# @return [Float]
|
# @return [Float]
|
||||||
attr_accessor :qps
|
attr_accessor :qps
|
||||||
|
|
||||||
# Number of requests since this instance was started.@OutputOnly
|
# Output only. Number of requests since this instance was started.
|
||||||
# Corresponds to the JSON property `requests`
|
# Corresponds to the JSON property `requests`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :requests
|
attr_accessor :requests
|
||||||
|
|
||||||
# Time that this instance was started.@OutputOnly
|
# Output only. Time that this instance was started.@OutputOnly
|
||||||
# Corresponds to the JSON property `startTime`
|
# Corresponds to the JSON property `startTime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :start_time
|
attr_accessor :start_time
|
||||||
|
|
||||||
# Whether this instance is in debug mode. Only applicable for instances in App
|
# Output only. Whether this instance is in debug mode. Only applicable for
|
||||||
# Engine flexible environment.@OutputOnly
|
# instances in App Engine flexible environment.
|
||||||
# Corresponds to the JSON property `vmDebugEnabled`
|
# Corresponds to the JSON property `vmDebugEnabled`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
attr_accessor :vm_debug_enabled
|
attr_accessor :vm_debug_enabled
|
||||||
alias_method :vm_debug_enabled?, :vm_debug_enabled
|
alias_method :vm_debug_enabled?, :vm_debug_enabled
|
||||||
|
|
||||||
# Virtual machine ID of this instance. Only applicable for instances in App
|
# Output only. Virtual machine ID of this instance. Only applicable for
|
||||||
# Engine flexible environment.@OutputOnly
|
# instances in App Engine flexible environment.
|
||||||
# Corresponds to the JSON property `vmId`
|
# Corresponds to the JSON property `vmId`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :vm_id
|
attr_accessor :vm_id
|
||||||
|
|
||||||
# The IP address of this instance. Only applicable for instances in App Engine
|
# Output only. The IP address of this instance. Only applicable for instances in
|
||||||
# flexible environment.@OutputOnly
|
# App Engine flexible environment.
|
||||||
# Corresponds to the JSON property `vmIp`
|
# Corresponds to the JSON property `vmIp`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :vm_ip
|
attr_accessor :vm_ip
|
||||||
|
|
||||||
# Name of the virtual machine where this instance lives. Only applicable for
|
# Output only. Name of the virtual machine where this instance lives. Only
|
||||||
# instances in App Engine flexible environment.@OutputOnly
|
# applicable for instances in App Engine flexible environment.
|
||||||
# Corresponds to the JSON property `vmName`
|
# Corresponds to the JSON property `vmName`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :vm_name
|
attr_accessor :vm_name
|
||||||
|
|
||||||
# Status of the virtual machine where this instance lives. Only applicable for
|
# Output only. Status of the virtual machine where this instance lives. Only
|
||||||
# instances in App Engine flexible environment.@OutputOnly
|
# applicable for instances in App Engine flexible environment.
|
||||||
# Corresponds to the JSON property `vmStatus`
|
# Corresponds to the JSON property `vmStatus`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :vm_status
|
attr_accessor :vm_status
|
||||||
|
|
||||||
# Zone where the virtual machine is located. Only applicable for instances in
|
# Output only. Zone where the virtual machine is located. Only applicable for
|
||||||
# App Engine flexible environment.@OutputOnly
|
# instances in App Engine flexible environment.
|
||||||
# Corresponds to the JSON property `vmZoneName`
|
# Corresponds to the JSON property `vmZoneName`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :vm_zone_name
|
attr_accessor :vm_zone_name
|
||||||
|
@ -1747,6 +1747,26 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# A NetworkSettings resource is a container for ingress settings for a version
|
||||||
|
# or service.
|
||||||
|
class NetworkSettings
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The ingress settings for version or service.
|
||||||
|
# Corresponds to the JSON property `ingressTrafficAllowed`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :ingress_traffic_allowed
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@ingress_traffic_allowed = args[:ingress_traffic_allowed] if args.key?(:ingress_traffic_allowed)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Target scaling by network usage. Only applicable in the App Engine flexible
|
# Target scaling by network usage. Only applicable in the App Engine flexible
|
||||||
# environment.
|
# environment.
|
||||||
class NetworkUtilization
|
class NetworkUtilization
|
||||||
|
@ -2257,6 +2277,12 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
|
# A NetworkSettings resource is a container for ingress settings for a version
|
||||||
|
# or service.
|
||||||
|
# Corresponds to the JSON property `networkSettings`
|
||||||
|
# @return [Google::Apis::AppengineV1::NetworkSettings]
|
||||||
|
attr_accessor :network_settings
|
||||||
|
|
||||||
# Traffic routing configuration for versions within a single service. Traffic
|
# Traffic routing configuration for versions within a single service. Traffic
|
||||||
# splits define how traffic directed to the service is assigned to versions.
|
# splits define how traffic directed to the service is assigned to versions.
|
||||||
# Corresponds to the JSON property `split`
|
# Corresponds to the JSON property `split`
|
||||||
|
@ -2271,6 +2297,7 @@ module Google
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@id = args[:id] if args.key?(:id)
|
@id = args[:id] if args.key?(:id)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@network_settings = args[:network_settings] if args.key?(:network_settings)
|
||||||
@split = args[:split] if args.key?(:split)
|
@split = args[:split] if args.key?(:split)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -298,6 +298,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class NetworkSettings
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class NetworkUtilization
|
class NetworkUtilization
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -896,6 +902,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class NetworkSettings
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :ingress_traffic_allowed, as: 'ingressTrafficAllowed'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class NetworkUtilization
|
class NetworkUtilization
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -1023,6 +1036,8 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :id, as: 'id'
|
property :id, as: 'id'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
|
property :network_settings, as: 'networkSettings', class: Google::Apis::AppengineV1::NetworkSettings, decorator: Google::Apis::AppengineV1::NetworkSettings::Representation
|
||||||
|
|
||||||
property :split, as: 'split', class: Google::Apis::AppengineV1::TrafficSplit, decorator: Google::Apis::AppengineV1::TrafficSplit::Representation
|
property :split, as: 'split', class: Google::Apis::AppengineV1::TrafficSplit, decorator: Google::Apis::AppengineV1::TrafficSplit::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/appengine/docs/admin-api/
|
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||||
module AppengineV1beta
|
module AppengineV1beta
|
||||||
VERSION = 'V1beta'
|
VERSION = 'V1beta'
|
||||||
REVISION = '20200822'
|
REVISION = '20200903'
|
||||||
|
|
||||||
# View and manage your applications deployed on Google App Engine
|
# View and manage your applications deployed on Google App Engine
|
||||||
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
||||||
|
|
|
@ -1219,91 +1219,97 @@ module Google
|
||||||
class Instance
|
class Instance
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# App Engine release this instance is running on.@OutputOnly
|
# Output only. App Engine release this instance is running on.
|
||||||
# Corresponds to the JSON property `appEngineRelease`
|
# Corresponds to the JSON property `appEngineRelease`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :app_engine_release
|
attr_accessor :app_engine_release
|
||||||
|
|
||||||
# Availability of the instance.@OutputOnly
|
# Output only. Availability of the instance.
|
||||||
# Corresponds to the JSON property `availability`
|
# Corresponds to the JSON property `availability`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :availability
|
attr_accessor :availability
|
||||||
|
|
||||||
# Average latency (ms) over the last minute.@OutputOnly
|
# Output only. Average latency (ms) over the last minute.
|
||||||
# Corresponds to the JSON property `averageLatency`
|
# Corresponds to the JSON property `averageLatency`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :average_latency
|
attr_accessor :average_latency
|
||||||
|
|
||||||
# Number of errors since this instance was started.@OutputOnly
|
# Output only. Number of errors since this instance was started.
|
||||||
# Corresponds to the JSON property `errors`
|
# Corresponds to the JSON property `errors`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :errors
|
attr_accessor :errors
|
||||||
|
|
||||||
# Relative name of the instance within the version. Example: instance-1.@
|
# Output only. Relative name of the instance within the version. Example:
|
||||||
# OutputOnly
|
# instance-1.
|
||||||
# Corresponds to the JSON property `id`
|
# Corresponds to the JSON property `id`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :id
|
attr_accessor :id
|
||||||
|
|
||||||
# Total memory in use (bytes).@OutputOnly
|
# Output only. Total memory in use (bytes).
|
||||||
# Corresponds to the JSON property `memoryUsage`
|
# Corresponds to the JSON property `memoryUsage`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :memory_usage
|
attr_accessor :memory_usage
|
||||||
|
|
||||||
# Full path to the Instance resource in the API. Example: apps/myapp/services/
|
# Output only. Full path to the Instance resource in the API. Example: apps/
|
||||||
# default/versions/v1/instances/instance-1.@OutputOnly
|
# myapp/services/default/versions/v1/instances/instance-1.
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
# Average queries per second (QPS) over the last minute.@OutputOnly
|
# Output only. Average queries per second (QPS) over the last minute.
|
||||||
# Corresponds to the JSON property `qps`
|
# Corresponds to the JSON property `qps`
|
||||||
# @return [Float]
|
# @return [Float]
|
||||||
attr_accessor :qps
|
attr_accessor :qps
|
||||||
|
|
||||||
# Number of requests since this instance was started.@OutputOnly
|
# Output only. Number of requests since this instance was started.
|
||||||
# Corresponds to the JSON property `requests`
|
# Corresponds to the JSON property `requests`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :requests
|
attr_accessor :requests
|
||||||
|
|
||||||
# Time that this instance was started.@OutputOnly
|
# Output only. Time that this instance was started.@OutputOnly
|
||||||
# Corresponds to the JSON property `startTime`
|
# Corresponds to the JSON property `startTime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :start_time
|
attr_accessor :start_time
|
||||||
|
|
||||||
# Whether this instance is in debug mode. Only applicable for instances in App
|
# Output only. Whether this instance is in debug mode. Only applicable for
|
||||||
# Engine flexible environment.@OutputOnly
|
# instances in App Engine flexible environment.
|
||||||
# Corresponds to the JSON property `vmDebugEnabled`
|
# Corresponds to the JSON property `vmDebugEnabled`
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
attr_accessor :vm_debug_enabled
|
attr_accessor :vm_debug_enabled
|
||||||
alias_method :vm_debug_enabled?, :vm_debug_enabled
|
alias_method :vm_debug_enabled?, :vm_debug_enabled
|
||||||
|
|
||||||
# Virtual machine ID of this instance. Only applicable for instances in App
|
# Output only. Virtual machine ID of this instance. Only applicable for
|
||||||
# Engine flexible environment.@OutputOnly
|
# instances in App Engine flexible environment.
|
||||||
# Corresponds to the JSON property `vmId`
|
# Corresponds to the JSON property `vmId`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :vm_id
|
attr_accessor :vm_id
|
||||||
|
|
||||||
# The IP address of this instance. Only applicable for instances in App Engine
|
# Output only. The IP address of this instance. Only applicable for instances in
|
||||||
# flexible environment.@OutputOnly
|
# App Engine flexible environment.
|
||||||
# Corresponds to the JSON property `vmIp`
|
# Corresponds to the JSON property `vmIp`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :vm_ip
|
attr_accessor :vm_ip
|
||||||
|
|
||||||
# Name of the virtual machine where this instance lives. Only applicable for
|
# Output only. The liveness health check of this instance. Only applicable for
|
||||||
# instances in App Engine flexible environment.@OutputOnly
|
# instances in App Engine flexible environment.
|
||||||
|
# Corresponds to the JSON property `vmLiveness`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :vm_liveness
|
||||||
|
|
||||||
|
# Output only. Name of the virtual machine where this instance lives. Only
|
||||||
|
# applicable for instances in App Engine flexible environment.
|
||||||
# Corresponds to the JSON property `vmName`
|
# Corresponds to the JSON property `vmName`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :vm_name
|
attr_accessor :vm_name
|
||||||
|
|
||||||
# Status of the virtual machine where this instance lives. Only applicable for
|
# Output only. Status of the virtual machine where this instance lives. Only
|
||||||
# instances in App Engine flexible environment.@OutputOnly
|
# applicable for instances in App Engine flexible environment.
|
||||||
# Corresponds to the JSON property `vmStatus`
|
# Corresponds to the JSON property `vmStatus`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :vm_status
|
attr_accessor :vm_status
|
||||||
|
|
||||||
# Zone where the virtual machine is located. Only applicable for instances in
|
# Output only. Zone where the virtual machine is located. Only applicable for
|
||||||
# App Engine flexible environment.@OutputOnly
|
# instances in App Engine flexible environment.
|
||||||
# Corresponds to the JSON property `vmZoneName`
|
# Corresponds to the JSON property `vmZoneName`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :vm_zone_name
|
attr_accessor :vm_zone_name
|
||||||
|
@ -1327,6 +1333,7 @@ module Google
|
||||||
@vm_debug_enabled = args[:vm_debug_enabled] if args.key?(:vm_debug_enabled)
|
@vm_debug_enabled = args[:vm_debug_enabled] if args.key?(:vm_debug_enabled)
|
||||||
@vm_id = args[:vm_id] if args.key?(:vm_id)
|
@vm_id = args[:vm_id] if args.key?(:vm_id)
|
||||||
@vm_ip = args[:vm_ip] if args.key?(:vm_ip)
|
@vm_ip = args[:vm_ip] if args.key?(:vm_ip)
|
||||||
|
@vm_liveness = args[:vm_liveness] if args.key?(:vm_liveness)
|
||||||
@vm_name = args[:vm_name] if args.key?(:vm_name)
|
@vm_name = args[:vm_name] if args.key?(:vm_name)
|
||||||
@vm_status = args[:vm_status] if args.key?(:vm_status)
|
@vm_status = args[:vm_status] if args.key?(:vm_status)
|
||||||
@vm_zone_name = args[:vm_zone_name] if args.key?(:vm_zone_name)
|
@vm_zone_name = args[:vm_zone_name] if args.key?(:vm_zone_name)
|
||||||
|
@ -1826,6 +1833,26 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# A NetworkSettings resource is a container for ingress settings for a version
|
||||||
|
# or service.
|
||||||
|
class NetworkSettings
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The ingress settings for version or service.
|
||||||
|
# Corresponds to the JSON property `ingressTrafficAllowed`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :ingress_traffic_allowed
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@ingress_traffic_allowed = args[:ingress_traffic_allowed] if args.key?(:ingress_traffic_allowed)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Target scaling by network usage. Only applicable in the App Engine flexible
|
# Target scaling by network usage. Only applicable in the App Engine flexible
|
||||||
# environment.
|
# environment.
|
||||||
class NetworkUtilization
|
class NetworkUtilization
|
||||||
|
@ -2336,6 +2363,12 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
|
# A NetworkSettings resource is a container for ingress settings for a version
|
||||||
|
# or service.
|
||||||
|
# Corresponds to the JSON property `networkSettings`
|
||||||
|
# @return [Google::Apis::AppengineV1beta::NetworkSettings]
|
||||||
|
attr_accessor :network_settings
|
||||||
|
|
||||||
# Traffic routing configuration for versions within a single service. Traffic
|
# Traffic routing configuration for versions within a single service. Traffic
|
||||||
# splits define how traffic directed to the service is assigned to versions.
|
# splits define how traffic directed to the service is assigned to versions.
|
||||||
# Corresponds to the JSON property `split`
|
# Corresponds to the JSON property `split`
|
||||||
|
@ -2350,6 +2383,7 @@ module Google
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@id = args[:id] if args.key?(:id)
|
@id = args[:id] if args.key?(:id)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@network_settings = args[:network_settings] if args.key?(:network_settings)
|
||||||
@split = args[:split] if args.key?(:split)
|
@split = args[:split] if args.key?(:split)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -310,6 +310,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class NetworkSettings
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class NetworkUtilization
|
class NetworkUtilization
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -777,6 +783,7 @@ module Google
|
||||||
property :vm_debug_enabled, as: 'vmDebugEnabled'
|
property :vm_debug_enabled, as: 'vmDebugEnabled'
|
||||||
property :vm_id, as: 'vmId'
|
property :vm_id, as: 'vmId'
|
||||||
property :vm_ip, as: 'vmIp'
|
property :vm_ip, as: 'vmIp'
|
||||||
|
property :vm_liveness, as: 'vmLiveness'
|
||||||
property :vm_name, as: 'vmName'
|
property :vm_name, as: 'vmName'
|
||||||
property :vm_status, as: 'vmStatus'
|
property :vm_status, as: 'vmStatus'
|
||||||
property :vm_zone_name, as: 'vmZoneName'
|
property :vm_zone_name, as: 'vmZoneName'
|
||||||
|
@ -930,6 +937,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class NetworkSettings
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :ingress_traffic_allowed, as: 'ingressTrafficAllowed'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class NetworkUtilization
|
class NetworkUtilization
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -1057,6 +1071,8 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :id, as: 'id'
|
property :id, as: 'id'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
|
property :network_settings, as: 'networkSettings', class: Google::Apis::AppengineV1beta::NetworkSettings, decorator: Google::Apis::AppengineV1beta::NetworkSettings::Representation
|
||||||
|
|
||||||
property :split, as: 'split', class: Google::Apis::AppengineV1beta::TrafficSplit, decorator: Google::Apis::AppengineV1beta::TrafficSplit::Representation
|
property :split, as: 'split', class: Google::Apis::AppengineV1beta::TrafficSplit, decorator: Google::Apis::AppengineV1beta::TrafficSplit::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/bigquery/
|
# @see https://cloud.google.com/bigquery/
|
||||||
module BigqueryV2
|
module BigqueryV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20200818'
|
REVISION = '20200827'
|
||||||
|
|
||||||
# View and manage your data in Google BigQuery
|
# View and manage your data in Google BigQuery
|
||||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||||
|
|
|
@ -3583,6 +3583,12 @@ module Google
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :total_slot_ms
|
attr_accessor :total_slot_ms
|
||||||
|
|
||||||
|
# [Output-only] [Alpha] Information of the multi-statement transaction if this
|
||||||
|
# job is part of one.
|
||||||
|
# Corresponds to the JSON property `transactionInfoTemplate`
|
||||||
|
# @return [Google::Apis::BigqueryV2::TransactionInfo]
|
||||||
|
attr_accessor :transaction_info_template
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -3605,6 +3611,7 @@ module Google
|
||||||
@start_time = args[:start_time] if args.key?(:start_time)
|
@start_time = args[:start_time] if args.key?(:start_time)
|
||||||
@total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
|
@total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
|
||||||
@total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
|
@total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
|
||||||
|
@transaction_info_template = args[:transaction_info_template] if args.key?(:transaction_info_template)
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -6750,6 +6757,25 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class TransactionInfo
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# [Output-only] // [Alpha] Id of the transaction.
|
||||||
|
# Corresponds to the JSON property `transactionId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :transaction_id
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@transaction_id = args[:transaction_id] if args.key?(:transaction_id)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# This is used for defining User Defined Function (UDF) resources only when
|
# 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.
|
# using legacy SQL. Users of Standard SQL should leverage either DDL (e.g.
|
||||||
# CREATE [TEMPORARY] FUNCTION ... ) or the Routines API to define UDF resources.
|
# CREATE [TEMPORARY] FUNCTION ... ) or the Routines API to define UDF resources.
|
||||||
|
|
|
@ -790,6 +790,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class TransactionInfo
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class UserDefinedFunctionResource
|
class UserDefinedFunctionResource
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -1643,6 +1649,8 @@ module Google
|
||||||
property :start_time, :numeric_string => true, as: 'startTime'
|
property :start_time, :numeric_string => true, as: 'startTime'
|
||||||
property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
|
property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
|
||||||
property :total_slot_ms, :numeric_string => true, as: 'totalSlotMs'
|
property :total_slot_ms, :numeric_string => true, as: 'totalSlotMs'
|
||||||
|
property :transaction_info_template, as: 'transactionInfoTemplate', class: Google::Apis::BigqueryV2::TransactionInfo, decorator: Google::Apis::BigqueryV2::TransactionInfo::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class ReservationUsage
|
class ReservationUsage
|
||||||
|
@ -2437,6 +2445,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class TransactionInfo
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :transaction_id, as: 'transactionId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class UserDefinedFunctionResource
|
class UserDefinedFunctionResource
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/bigtable/
|
# @see https://cloud.google.com/bigtable/
|
||||||
module BigtableadminV1
|
module BigtableadminV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200817'
|
REVISION = '20200821'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -26,30 +26,26 @@ module Google
|
||||||
class Backup
|
class Backup
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Output only. `end_time` is the time that the backup was finished. The row
|
# Output only. `end_time` is the time that the backup was finished. The row data
|
||||||
# data in the backup will be no newer than this timestamp.
|
# in the backup will be no newer than this timestamp.
|
||||||
# Corresponds to the JSON property `endTime`
|
# Corresponds to the JSON property `endTime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :end_time
|
attr_accessor :end_time
|
||||||
|
|
||||||
# Required. The expiration time of the backup, with microseconds
|
# Required. The expiration time of the backup, with microseconds granularity
|
||||||
# granularity that must be at least 6 hours and at most 30 days
|
# that must be at least 6 hours and at most 30 days from the time the request is
|
||||||
# from the time the request is received. Once the `expire_time`
|
# received. Once the `expire_time` has passed, Cloud Bigtable will delete the
|
||||||
# has passed, Cloud Bigtable will delete the backup and free the
|
# backup and free the resources used by the backup.
|
||||||
# resources used by the backup.
|
|
||||||
# Corresponds to the JSON property `expireTime`
|
# Corresponds to the JSON property `expireTime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :expire_time
|
attr_accessor :expire_time
|
||||||
|
|
||||||
# A globally unique identifier for the backup which cannot be
|
# A globally unique identifier for the backup which cannot be changed. Values
|
||||||
# changed. Values are of the form
|
# are of the form `projects/`project`/instances/`instance`/clusters/`cluster`/
|
||||||
# `projects/`project`/instances/`instance`/clusters/`cluster`/
|
# backups/_a-zA-Z0-9*` The final segment of the name must be between 1 and 50
|
||||||
# backups/_a-zA-Z0-9*`
|
# characters in length. The backup is stored in the cluster identified by the
|
||||||
# The final segment of the name must be between 1 and 50 characters
|
# prefix of the backup name of the form `projects/`project`/instances/`instance`/
|
||||||
# in length.
|
# clusters/`cluster``.
|
||||||
# The backup is stored in the cluster identified by the prefix of the backup
|
|
||||||
# name of the form
|
|
||||||
# `projects/`project`/instances/`instance`/clusters/`cluster``.
|
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
@ -60,17 +56,15 @@ module Google
|
||||||
attr_accessor :size_bytes
|
attr_accessor :size_bytes
|
||||||
|
|
||||||
# Required. Immutable. Name of the table from which this backup was created.
|
# Required. Immutable. Name of the table from which this backup was created.
|
||||||
# This needs
|
# This needs to be in the same instance as the backup. Values are of the form `
|
||||||
# to be in the same instance as the backup. Values are of the form
|
# projects/`project`/instances/`instance`/tables/`source_table``.
|
||||||
# `projects/`project`/instances/`instance`/tables/`source_table``.
|
|
||||||
# Corresponds to the JSON property `sourceTable`
|
# Corresponds to the JSON property `sourceTable`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :source_table
|
attr_accessor :source_table
|
||||||
|
|
||||||
# Output only. `start_time` is the time that the backup was started
|
# Output only. `start_time` is the time that the backup was started (i.e.
|
||||||
# (i.e. approximately the time the
|
# approximately the time the CreateBackup request is received). The row data in
|
||||||
# CreateBackup request is received). The
|
# this backup will be no older than this timestamp.
|
||||||
# row data in this backup will be no older than this timestamp.
|
|
||||||
# Corresponds to the JSON property `startTime`
|
# Corresponds to the JSON property `startTime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :start_time
|
attr_accessor :start_time
|
||||||
|
@ -105,8 +99,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :backup
|
attr_accessor :backup
|
||||||
|
|
||||||
# Output only. This time that the backup was finished. Row data in the
|
# Output only. This time that the backup was finished. Row data in the backup
|
||||||
# backup will be no newer than this timestamp.
|
# will be no newer than this timestamp.
|
||||||
# Corresponds to the JSON property `endTime`
|
# Corresponds to the JSON property `endTime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :end_time
|
attr_accessor :end_time
|
||||||
|
@ -116,8 +110,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :source_table
|
attr_accessor :source_table
|
||||||
|
|
||||||
# Output only. The time that the backup was started. Row data in the backup
|
# Output only. The time that the backup was started. Row data in the backup will
|
||||||
# will be no older than this timestamp.
|
# be no older than this timestamp.
|
||||||
# Corresponds to the JSON property `startTime`
|
# Corresponds to the JSON property `startTime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :start_time
|
attr_accessor :start_time
|
||||||
|
@ -135,36 +129,33 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A resizable group of nodes in a particular cloud location, capable
|
# A resizable group of nodes in a particular cloud location, capable of serving
|
||||||
# of serving all Tables in the parent
|
# all Tables in the parent Instance.
|
||||||
# Instance.
|
|
||||||
class Cluster
|
class Cluster
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Immutable. The type of storage used by this cluster to serve its
|
# Immutable. The type of storage used by this cluster to serve its parent
|
||||||
# parent instance's tables, unless explicitly overridden.
|
# instance's tables, unless explicitly overridden.
|
||||||
# Corresponds to the JSON property `defaultStorageType`
|
# Corresponds to the JSON property `defaultStorageType`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :default_storage_type
|
attr_accessor :default_storage_type
|
||||||
|
|
||||||
# Immutable. The location where this cluster's nodes and storage reside. For
|
# Immutable. The location where this cluster's nodes and storage reside. For
|
||||||
# best
|
# best performance, clients should be located as close as possible to this
|
||||||
# performance, clients should be located as close as possible to this
|
# cluster. Currently only zones are supported, so values should be of the form `
|
||||||
# cluster. Currently only zones are supported, so values should be of the
|
# projects/`project`/locations/`zone``.
|
||||||
# form `projects/`project`/locations/`zone``.
|
|
||||||
# Corresponds to the JSON property `location`
|
# Corresponds to the JSON property `location`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :location
|
attr_accessor :location
|
||||||
|
|
||||||
# The unique name of the cluster. Values are of the form
|
# The unique name of the cluster. Values are of the form `projects/`project`/
|
||||||
# `projects/`project`/instances/`instance`/clusters/a-z*`.
|
# instances/`instance`/clusters/a-z*`.
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
# Required. The number of nodes allocated to this cluster. More nodes enable
|
# Required. The number of nodes allocated to this cluster. More nodes enable
|
||||||
# higher
|
# higher throughput and more consistent performance.
|
||||||
# throughput and more consistent performance.
|
|
||||||
# Corresponds to the JSON property `serveNodes`
|
# Corresponds to the JSON property `serveNodes`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :serve_nodes
|
attr_accessor :serve_nodes
|
||||||
|
@ -188,8 +179,7 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Metadata type for the operation returned by
|
# Metadata type for the operation returned by CreateBackup.
|
||||||
# CreateBackup.
|
|
||||||
class CreateBackupMetadata
|
class CreateBackupMetadata
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -246,12 +236,10 @@ module Google
|
||||||
attr_accessor :request_time
|
attr_accessor :request_time
|
||||||
|
|
||||||
# Keys: the full `name` of each table that existed in the instance when
|
# Keys: the full `name` of each table that existed in the instance when
|
||||||
# CreateCluster was first called, i.e.
|
# CreateCluster was first called, i.e. `projects//instances//tables/`. Any table
|
||||||
# `projects/<project>/instances/<instance>/tables/<table>`. Any table added
|
# added to the instance by a later API call will be created in the new cluster
|
||||||
# to the instance by a later API call will be created in the new cluster by
|
# by that API call, not this one. Values: information on how much of a table's
|
||||||
# that API call, not this one.
|
# data has been copied to the newly-created cluster so far.
|
||||||
# Values: information on how much of a table's data has been copied to the
|
|
||||||
# newly-created cluster so far.
|
|
||||||
# Corresponds to the JSON property `tables`
|
# Corresponds to the JSON property `tables`
|
||||||
# @return [Hash<String,Google::Apis::BigtableadminV1::TableProgress>]
|
# @return [Hash<String,Google::Apis::BigtableadminV1::TableProgress>]
|
||||||
attr_accessor :tables
|
attr_accessor :tables
|
||||||
|
@ -273,24 +261,21 @@ module Google
|
||||||
class CreateClusterRequest
|
class CreateClusterRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# A resizable group of nodes in a particular cloud location, capable
|
# A resizable group of nodes in a particular cloud location, capable of serving
|
||||||
# of serving all Tables in the parent
|
# all Tables in the parent Instance.
|
||||||
# Instance.
|
|
||||||
# Corresponds to the JSON property `cluster`
|
# Corresponds to the JSON property `cluster`
|
||||||
# @return [Google::Apis::BigtableadminV1::Cluster]
|
# @return [Google::Apis::BigtableadminV1::Cluster]
|
||||||
attr_accessor :cluster
|
attr_accessor :cluster
|
||||||
|
|
||||||
# Required. The ID to be used when referring to the new cluster within its
|
# Required. The ID to be used when referring to the new cluster within its
|
||||||
# instance,
|
# instance, e.g., just `mycluster` rather than `projects/myproject/instances/
|
||||||
# e.g., just `mycluster` rather than
|
# myinstance/clusters/mycluster`.
|
||||||
# `projects/myproject/instances/myinstance/clusters/mycluster`.
|
|
||||||
# Corresponds to the JSON property `clusterId`
|
# Corresponds to the JSON property `clusterId`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :cluster_id
|
attr_accessor :cluster_id
|
||||||
|
|
||||||
# Required. The unique name of the instance in which to create the new cluster.
|
# Required. The unique name of the instance in which to create the new cluster.
|
||||||
# Values are of the form
|
# Values are of the form `projects/`project`/instances/`instance``.
|
||||||
# `projects/`project`/instances/`instance``.
|
|
||||||
# Corresponds to the JSON property `parent`
|
# Corresponds to the JSON property `parent`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :parent
|
attr_accessor :parent
|
||||||
|
@ -343,26 +328,22 @@ module Google
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Required. The clusters to be created within the instance, mapped by desired
|
# Required. The clusters to be created within the instance, mapped by desired
|
||||||
# cluster ID, e.g., just `mycluster` rather than
|
# cluster ID, e.g., just `mycluster` rather than `projects/myproject/instances/
|
||||||
# `projects/myproject/instances/myinstance/clusters/mycluster`.
|
# myinstance/clusters/mycluster`. Fields marked `OutputOnly` must be left blank.
|
||||||
# Fields marked `OutputOnly` must be left blank.
|
|
||||||
# Currently, at most four clusters can be specified.
|
# Currently, at most four clusters can be specified.
|
||||||
# Corresponds to the JSON property `clusters`
|
# Corresponds to the JSON property `clusters`
|
||||||
# @return [Hash<String,Google::Apis::BigtableadminV1::Cluster>]
|
# @return [Hash<String,Google::Apis::BigtableadminV1::Cluster>]
|
||||||
attr_accessor :clusters
|
attr_accessor :clusters
|
||||||
|
|
||||||
# A collection of Bigtable Tables and
|
# A collection of Bigtable Tables and the resources that serve them. All tables
|
||||||
# the resources that serve them.
|
# in an instance are served from all Clusters in the instance.
|
||||||
# All tables in an instance are served from all
|
|
||||||
# Clusters in the instance.
|
|
||||||
# Corresponds to the JSON property `instance`
|
# Corresponds to the JSON property `instance`
|
||||||
# @return [Google::Apis::BigtableadminV1::Instance]
|
# @return [Google::Apis::BigtableadminV1::Instance]
|
||||||
attr_accessor :instance
|
attr_accessor :instance
|
||||||
|
|
||||||
# Required. The ID to be used when referring to the new instance within its
|
# Required. The ID to be used when referring to the new instance within its
|
||||||
# project,
|
# project, e.g., just `myinstance` rather than `projects/myproject/instances/
|
||||||
# e.g., just `myinstance` rather than
|
# myinstance`.
|
||||||
# `projects/myproject/instances/myinstance`.
|
|
||||||
# Corresponds to the JSON property `instanceId`
|
# Corresponds to the JSON property `instanceId`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :instance_id
|
attr_accessor :instance_id
|
||||||
|
@ -436,16 +417,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A collection of Bigtable Tables and
|
# A collection of Bigtable Tables and the resources that serve them. All tables
|
||||||
# the resources that serve them.
|
# in an instance are served from all Clusters in the instance.
|
||||||
# All tables in an instance are served from all
|
|
||||||
# Clusters in the instance.
|
|
||||||
class Instance
|
class Instance
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Required. The descriptive name for this instance as it appears in UIs.
|
# Required. The descriptive name for this instance as it appears in UIs. Can be
|
||||||
# Can be changed at any time, but should be kept globally unique
|
# changed at any time, but should be kept globally unique to avoid confusion.
|
||||||
# to avoid confusion.
|
|
||||||
# Corresponds to the JSON property `displayName`
|
# Corresponds to the JSON property `displayName`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :display_name
|
attr_accessor :display_name
|
||||||
|
@ -453,19 +431,17 @@ module Google
|
||||||
# Required. Labels are a flexible and lightweight mechanism for organizing cloud
|
# Required. Labels are a flexible and lightweight mechanism for organizing cloud
|
||||||
# resources into groups that reflect a customer's organizational needs and
|
# resources into groups that reflect a customer's organizational needs and
|
||||||
# deployment strategies. They can be used to filter resources and aggregate
|
# deployment strategies. They can be used to filter resources and aggregate
|
||||||
# metrics.
|
# metrics. * Label keys must be between 1 and 63 characters long and must
|
||||||
# * Label keys must be between 1 and 63 characters long and must conform to
|
# conform to the regular expression: `\p`Ll`\p`Lo``0,62``. * Label values must
|
||||||
# the regular expression: `\p`Ll`\p`Lo``0,62``.
|
# be between 0 and 63 characters long and must conform to the regular expression:
|
||||||
# * Label values must be between 0 and 63 characters long and must conform to
|
# `[\p`Ll`\p`Lo`\p`N`_-]`0,63``. * No more than 64 labels can be associated
|
||||||
# the regular expression: `[\p`Ll`\p`Lo`\p`N`_-]`0,63``.
|
# with a given resource. * Keys and values must both be under 128 bytes.
|
||||||
# * No more than 64 labels can be associated with a given resource.
|
|
||||||
# * Keys and values must both be under 128 bytes.
|
|
||||||
# Corresponds to the JSON property `labels`
|
# Corresponds to the JSON property `labels`
|
||||||
# @return [Hash<String,String>]
|
# @return [Hash<String,String>]
|
||||||
attr_accessor :labels
|
attr_accessor :labels
|
||||||
|
|
||||||
# The unique name of the instance. Values are of the form
|
# The unique name of the instance. Values are of the form `projects/`project`/
|
||||||
# `projects/`project`/instances/a-z+[a-z0-9]`.
|
# instances/a-z+[a-z0-9]`.
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
@ -494,19 +470,17 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Encapsulates progress related information for a Cloud Bigtable long
|
# Encapsulates progress related information for a Cloud Bigtable long running
|
||||||
# running operation.
|
# operation.
|
||||||
class OperationProgress
|
class OperationProgress
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# If set, the time at which this operation failed or was completed
|
# If set, the time at which this operation failed or was completed successfully.
|
||||||
# successfully.
|
|
||||||
# Corresponds to the JSON property `endTime`
|
# Corresponds to the JSON property `endTime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :end_time
|
attr_accessor :end_time
|
||||||
|
|
||||||
# Percent completion of the operation.
|
# Percent completion of the operation. Values are between 0 and 100 inclusive.
|
||||||
# Values are between 0 and 100 inclusive.
|
|
||||||
# Corresponds to the JSON property `progressPercent`
|
# Corresponds to the JSON property `progressPercent`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :progress_percent
|
attr_accessor :progress_percent
|
||||||
|
@ -528,10 +502,10 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Metadata type for the long-running operation used to track the progress
|
# Metadata type for the long-running operation used to track the progress of
|
||||||
# of optimizations performed on a newly restored table. This long-running
|
# optimizations performed on a newly restored table. This long-running operation
|
||||||
# operation is automatically created by the system after the successful
|
# is automatically created by the system after the successful completion of a
|
||||||
# completion of a table restore, and cannot be cancelled.
|
# table restore, and cannot be cancelled.
|
||||||
class OptimizeRestoredTableMetadata
|
class OptimizeRestoredTableMetadata
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -540,8 +514,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
# Encapsulates progress related information for a Cloud Bigtable long
|
# Encapsulates progress related information for a Cloud Bigtable long running
|
||||||
# running operation.
|
# operation.
|
||||||
# Corresponds to the JSON property `progress`
|
# Corresponds to the JSON property `progress`
|
||||||
# @return [Google::Apis::BigtableadminV1::OperationProgress]
|
# @return [Google::Apis::BigtableadminV1::OperationProgress]
|
||||||
attr_accessor :progress
|
attr_accessor :progress
|
||||||
|
@ -561,16 +535,14 @@ module Google
|
||||||
class PartialUpdateInstanceRequest
|
class PartialUpdateInstanceRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# A collection of Bigtable Tables and
|
# A collection of Bigtable Tables and the resources that serve them. All tables
|
||||||
# the resources that serve them.
|
# in an instance are served from all Clusters in the instance.
|
||||||
# All tables in an instance are served from all
|
|
||||||
# Clusters in the instance.
|
|
||||||
# Corresponds to the JSON property `instance`
|
# Corresponds to the JSON property `instance`
|
||||||
# @return [Google::Apis::BigtableadminV1::Instance]
|
# @return [Google::Apis::BigtableadminV1::Instance]
|
||||||
attr_accessor :instance
|
attr_accessor :instance
|
||||||
|
|
||||||
# Required. The subset of Instance fields which should be replaced.
|
# Required. The subset of Instance fields which should be replaced. Must be
|
||||||
# Must be explicitly set.
|
# explicitly set.
|
||||||
# Corresponds to the JSON property `updateMask`
|
# Corresponds to the JSON property `updateMask`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :update_mask
|
attr_accessor :update_mask
|
||||||
|
@ -586,8 +558,7 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Metadata type for the long-running operation returned by
|
# Metadata type for the long-running operation returned by RestoreTable.
|
||||||
# RestoreTable.
|
|
||||||
class RestoreTableMetadata
|
class RestoreTableMetadata
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -601,21 +572,20 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
# If exists, the name of the long-running operation that will be used to
|
# If exists, the name of the long-running operation that will be used to track
|
||||||
# track the post-restore optimization process to optimize the performance of
|
# the post-restore optimization process to optimize the performance of the
|
||||||
# the restored table. The metadata type of the long-running operation is
|
# restored table. The metadata type of the long-running operation is
|
||||||
# OptimizeRestoreTableMetadata. The response type is
|
# OptimizeRestoreTableMetadata. The response type is Empty. This long-running
|
||||||
# Empty. This long-running operation may be
|
# operation may be automatically created by the system if applicable after the
|
||||||
# automatically created by the system if applicable after the
|
# RestoreTable long-running operation completes successfully. This operation may
|
||||||
# RestoreTable long-running operation completes successfully. This operation
|
# not be created if the table is already optimized or the restore was not
|
||||||
# may not be created if the table is already optimized or the restore was
|
# successful.
|
||||||
# not successful.
|
|
||||||
# Corresponds to the JSON property `optimizeTableOperationName`
|
# Corresponds to the JSON property `optimizeTableOperationName`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :optimize_table_operation_name
|
attr_accessor :optimize_table_operation_name
|
||||||
|
|
||||||
# Encapsulates progress related information for a Cloud Bigtable long
|
# Encapsulates progress related information for a Cloud Bigtable long running
|
||||||
# running operation.
|
# operation.
|
||||||
# Corresponds to the JSON property `progress`
|
# Corresponds to the JSON property `progress`
|
||||||
# @return [Google::Apis::BigtableadminV1::OperationProgress]
|
# @return [Google::Apis::BigtableadminV1::OperationProgress]
|
||||||
attr_accessor :progress
|
attr_accessor :progress
|
||||||
|
@ -643,9 +613,8 @@ module Google
|
||||||
class TableProgress
|
class TableProgress
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Estimate of the number of bytes copied so far for this table.
|
# Estimate of the number of bytes copied so far for this table. This will
|
||||||
# This will eventually reach 'estimated_size_bytes' unless the table copy
|
# eventually reach 'estimated_size_bytes' unless the table copy is CANCELLED.
|
||||||
# is CANCELLED.
|
|
||||||
# Corresponds to the JSON property `estimatedCopiedBytes`
|
# Corresponds to the JSON property `estimatedCopiedBytes`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :estimated_copied_bytes
|
attr_accessor :estimated_copied_bytes
|
||||||
|
@ -694,9 +663,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :finish_time
|
attr_accessor :finish_time
|
||||||
|
|
||||||
# A resizable group of nodes in a particular cloud location, capable
|
# A resizable group of nodes in a particular cloud location, capable of serving
|
||||||
# of serving all Tables in the parent
|
# all Tables in the parent Instance.
|
||||||
# Instance.
|
|
||||||
# Corresponds to the JSON property `originalRequest`
|
# Corresponds to the JSON property `originalRequest`
|
||||||
# @return [Google::Apis::BigtableadminV1::Cluster]
|
# @return [Google::Apis::BigtableadminV1::Cluster]
|
||||||
attr_accessor :original_request
|
attr_accessor :original_request
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/bigtable/
|
# @see https://cloud.google.com/bigtable/
|
||||||
module BigtableadminV2
|
module BigtableadminV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20200817'
|
REVISION = '20200821'
|
||||||
|
|
||||||
# Administer your Cloud Bigtable tables and clusters
|
# Administer your Cloud Bigtable tables and clusters
|
||||||
AUTH_BIGTABLE_ADMIN = 'https://www.googleapis.com/auth/bigtable.admin'
|
AUTH_BIGTABLE_ADMIN = 'https://www.googleapis.com/auth/bigtable.admin'
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -47,15 +47,13 @@ module Google
|
||||||
@batch_path = 'batch'
|
@batch_path = 'batch'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Starts asynchronous cancellation on a long-running operation. The server
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
||||||
# makes a best effort to cancel the operation, but success is not
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
||||||
# guaranteed. If the server doesn't support this method, it returns
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
||||||
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
||||||
# Operations.GetOperation or
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
||||||
# other methods to check whether the cancellation succeeded or whether the
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
||||||
# operation completed despite cancellation. On successful cancellation,
|
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
||||||
# 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`.
|
# corresponding to `Code.CANCELLED`.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# The name of the operation resource to be cancelled.
|
# The name of the operation resource to be cancelled.
|
||||||
|
@ -86,10 +84,10 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Deletes a long-running operation. This method indicates that the client is
|
# Deletes a long-running operation. This method indicates that the client is no
|
||||||
# no longer interested in the operation result. It does not cancel the
|
# longer interested in the operation result. It does not cancel the operation.
|
||||||
# operation. If the server doesn't support this method, it returns
|
# If the server doesn't support this method, it returns `google.rpc.Code.
|
||||||
# `google.rpc.Code.UNIMPLEMENTED`.
|
# UNIMPLEMENTED`.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# The name of the operation resource to be deleted.
|
# The name of the operation resource to be deleted.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
|
@ -119,9 +117,8 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Gets the latest state of a long-running operation. Clients can use this
|
# Gets the latest state of a long-running operation. Clients can use this method
|
||||||
# method to poll the operation result at intervals as recommended by the API
|
# to poll the operation result at intervals as recommended by the API service.
|
||||||
# service.
|
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# The name of the operation resource.
|
# The name of the operation resource.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
|
@ -151,15 +148,14 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Lists operations that match the specified filter in the request. If the
|
# Lists operations that match the specified filter in the request. If the server
|
||||||
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
||||||
# NOTE: the `name` binding allows API services to override the binding
|
# binding allows API services to override the binding to use different resource
|
||||||
# to use different resource name schemes, such as `users/*/operations`. To
|
# name schemes, such as `users/*/operations`. To override the binding, API
|
||||||
# override the binding, API services can add a binding such as
|
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
||||||
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
# service configuration. For backwards compatibility, the default name includes
|
||||||
# For backwards compatibility, the default name includes the operations
|
# the operations collection id, however overriding users must ensure the name
|
||||||
# collection id, however overriding users must ensure the name binding
|
# binding is the parent resource, without the operations collection id.
|
||||||
# is the parent resource, without the operations collection id.
|
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# The name of the operation's parent resource.
|
# The name of the operation's parent resource.
|
||||||
# @param [String] filter
|
# @param [String] filter
|
||||||
|
@ -234,8 +230,8 @@ module Google
|
||||||
|
|
||||||
# Delete an instance from a project.
|
# Delete an instance from a project.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required. The unique name of the instance to be deleted.
|
# Required. The unique name of the instance to be deleted. Values are of the
|
||||||
# Values are of the form `projects/`project`/instances/`instance``.
|
# form `projects/`project`/instances/`instance``.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -265,8 +261,8 @@ module Google
|
||||||
|
|
||||||
# Gets information about an instance.
|
# Gets information about an instance.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required. The unique name of the requested instance. Values are of the form
|
# Required. The unique name of the requested instance. Values are of the form `
|
||||||
# `projects/`project`/instances/`instance``.
|
# projects/`project`/instances/`instance``.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -297,8 +293,8 @@ module Google
|
||||||
# Gets the access control policy for an instance resource. Returns an empty
|
# Gets the access control policy for an instance resource. Returns an empty
|
||||||
# policy if an instance exists but does not have a policy set.
|
# policy if an instance exists but does not have a policy set.
|
||||||
# @param [String] resource
|
# @param [String] resource
|
||||||
# REQUIRED: The resource for which the policy is being requested.
|
# REQUIRED: The resource for which the policy is being requested. See the
|
||||||
# See the operation documentation for the appropriate value for this field.
|
# operation documentation for the appropriate value for this field.
|
||||||
# @param [Google::Apis::BigtableadminV2::GetIamPolicyRequest] get_iam_policy_request_object
|
# @param [Google::Apis::BigtableadminV2::GetIamPolicyRequest] get_iam_policy_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -332,8 +328,7 @@ module Google
|
||||||
# Lists information about instances in a project.
|
# Lists information about instances in a project.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# Required. The unique name of the project for which a list of instances is
|
# Required. The unique name of the project for which a list of instances is
|
||||||
# requested.
|
# requested. Values are of the form `projects/`project``.
|
||||||
# Values are of the form `projects/`project``.
|
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# DEPRECATED: This field is unused and ignored.
|
# DEPRECATED: This field is unused and ignored.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
|
@ -367,12 +362,12 @@ module Google
|
||||||
# Partially updates an instance within a project. This method can modify all
|
# Partially updates an instance within a project. This method can modify all
|
||||||
# fields of an Instance and is the preferred way to update an Instance.
|
# fields of an Instance and is the preferred way to update an Instance.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# The unique name of the instance. Values are of the form
|
# The unique name of the instance. Values are of the form `projects/`project`/
|
||||||
# `projects/`project`/instances/a-z+[a-z0-9]`.
|
# instances/a-z+[a-z0-9]`.
|
||||||
# @param [Google::Apis::BigtableadminV2::Instance] instance_object
|
# @param [Google::Apis::BigtableadminV2::Instance] instance_object
|
||||||
# @param [String] update_mask
|
# @param [String] update_mask
|
||||||
# Required. The subset of Instance fields which should be replaced.
|
# Required. The subset of Instance fields which should be replaced. Must be
|
||||||
# Must be explicitly set.
|
# explicitly set.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -403,11 +398,11 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Sets the access control policy on an instance resource. Replaces any
|
# Sets the access control policy on an instance resource. Replaces any existing
|
||||||
# existing policy.
|
# policy.
|
||||||
# @param [String] resource
|
# @param [String] resource
|
||||||
# REQUIRED: The resource for which the policy is being specified.
|
# REQUIRED: The resource for which the policy is being specified. See the
|
||||||
# See the operation documentation for the appropriate value for this field.
|
# operation documentation for the appropriate value for this field.
|
||||||
# @param [Google::Apis::BigtableadminV2::SetIamPolicyRequest] set_iam_policy_request_object
|
# @param [Google::Apis::BigtableadminV2::SetIamPolicyRequest] set_iam_policy_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -440,8 +435,8 @@ module Google
|
||||||
|
|
||||||
# Returns permissions that the caller has on the specified instance resource.
|
# Returns permissions that the caller has on the specified instance resource.
|
||||||
# @param [String] resource
|
# @param [String] resource
|
||||||
# REQUIRED: The resource for which the policy detail is being requested.
|
# REQUIRED: The resource for which the policy detail is being requested. See the
|
||||||
# See the operation documentation for the appropriate value for this field.
|
# operation documentation for the appropriate value for this field.
|
||||||
# @param [Google::Apis::BigtableadminV2::TestIamPermissionsRequest] test_iam_permissions_request_object
|
# @param [Google::Apis::BigtableadminV2::TestIamPermissionsRequest] test_iam_permissions_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -476,8 +471,8 @@ module Google
|
||||||
# name and type for an Instance. To update other Instance properties, such as
|
# name and type for an Instance. To update other Instance properties, such as
|
||||||
# labels, use PartialUpdateInstance.
|
# labels, use PartialUpdateInstance.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# The unique name of the instance. Values are of the form
|
# The unique name of the instance. Values are of the form `projects/`project`/
|
||||||
# `projects/`project`/instances/a-z+[a-z0-9]`.
|
# instances/a-z+[a-z0-9]`.
|
||||||
# @param [Google::Apis::BigtableadminV2::Instance] instance_object
|
# @param [Google::Apis::BigtableadminV2::Instance] instance_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -511,14 +506,12 @@ module Google
|
||||||
# Creates an app profile within an instance.
|
# Creates an app profile within an instance.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# Required. The unique name of the instance in which to create the new app
|
# Required. The unique name of the instance in which to create the new app
|
||||||
# profile.
|
# profile. Values are of the form `projects/`project`/instances/`instance``.
|
||||||
# Values are of the form
|
|
||||||
# `projects/`project`/instances/`instance``.
|
|
||||||
# @param [Google::Apis::BigtableadminV2::AppProfile] app_profile_object
|
# @param [Google::Apis::BigtableadminV2::AppProfile] app_profile_object
|
||||||
# @param [String] app_profile_id
|
# @param [String] app_profile_id
|
||||||
# Required. The ID to be used when referring to the new app profile within its
|
# Required. The ID to be used when referring to the new app profile within its
|
||||||
# instance, e.g., just `myprofile` rather than
|
# instance, e.g., just `myprofile` rather than `projects/myproject/instances/
|
||||||
# `projects/myproject/instances/myinstance/appProfiles/myprofile`.
|
# myinstance/appProfiles/myprofile`.
|
||||||
# @param [Boolean] ignore_warnings
|
# @param [Boolean] ignore_warnings
|
||||||
# If true, ignore safety checks when creating the app profile.
|
# If true, ignore safety checks when creating the app profile.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
|
@ -555,8 +548,7 @@ module Google
|
||||||
# Deletes an app profile from an instance.
|
# Deletes an app profile from an instance.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required. The unique name of the app profile to be deleted. Values are of the
|
# Required. The unique name of the app profile to be deleted. Values are of the
|
||||||
# form
|
# form `projects/`project`/instances/`instance`/appProfiles/`app_profile``.
|
||||||
# `projects/`project`/instances/`instance`/appProfiles/`app_profile``.
|
|
||||||
# @param [Boolean] ignore_warnings
|
# @param [Boolean] ignore_warnings
|
||||||
# Required. If true, ignore safety checks when deleting the app profile.
|
# Required. If true, ignore safety checks when deleting the app profile.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
|
@ -621,18 +613,16 @@ module Google
|
||||||
# Lists information about app profiles in an instance.
|
# Lists information about app profiles in an instance.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# Required. The unique name of the instance for which a list of app profiles is
|
# Required. The unique name of the instance for which a list of app profiles is
|
||||||
# requested. Values are of the form
|
# requested. Values are of the form `projects/`project`/instances/`instance``.
|
||||||
# `projects/`project`/instances/`instance``.
|
# Use ``instance` = '-'` to list AppProfiles for all Instances in a project, e.g.
|
||||||
# Use ``instance` = '-'` to list AppProfiles for all Instances in a project,
|
# , `projects/myproject/instances/-`.
|
||||||
# e.g., `projects/myproject/instances/-`.
|
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# Maximum number of results per page.
|
# Maximum number of results per page. A page_size of zero lets the server choose
|
||||||
# A page_size of zero lets the server choose the number of items to return.
|
# the number of items to return. A page_size which is strictly positive will
|
||||||
# A page_size which is strictly positive will return at most that many items.
|
# return at most that many items. A negative page_size will cause an error.
|
||||||
# A negative page_size will cause an error.
|
# Following the first request, subsequent paginated calls are not required to
|
||||||
# Following the first request, subsequent paginated calls are not required
|
# pass a page_size. If a page_size is set in subsequent calls, it must match the
|
||||||
# to pass a page_size. If a page_size is set in subsequent calls, it must
|
# page_size given in the first request.
|
||||||
# match the page_size given in the first request.
|
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# The value of `next_page_token` returned by a previous call.
|
# The value of `next_page_token` returned by a previous call.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
|
@ -666,14 +656,14 @@ module Google
|
||||||
|
|
||||||
# Updates an app profile within an instance.
|
# Updates an app profile within an instance.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# The unique name of the app profile. Values are of the form
|
# The unique name of the app profile. Values are of the form `projects/`project`/
|
||||||
# `projects/`project`/instances/`instance`/appProfiles/_a-zA-Z0-9*`.
|
# instances/`instance`/appProfiles/_a-zA-Z0-9*`.
|
||||||
# @param [Google::Apis::BigtableadminV2::AppProfile] app_profile_object
|
# @param [Google::Apis::BigtableadminV2::AppProfile] app_profile_object
|
||||||
# @param [Boolean] ignore_warnings
|
# @param [Boolean] ignore_warnings
|
||||||
# If true, ignore safety checks when updating the app profile.
|
# If true, ignore safety checks when updating the app profile.
|
||||||
# @param [String] update_mask
|
# @param [String] update_mask
|
||||||
# Required. The subset of app profile fields which should be replaced.
|
# Required. The subset of app profile fields which should be replaced. If unset,
|
||||||
# If unset, all fields will be replaced.
|
# all fields will be replaced.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -708,14 +698,12 @@ module Google
|
||||||
# Creates a cluster within an instance.
|
# Creates a cluster within an instance.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# Required. The unique name of the instance in which to create the new cluster.
|
# Required. The unique name of the instance in which to create the new cluster.
|
||||||
# Values are of the form
|
# Values are of the form `projects/`project`/instances/`instance``.
|
||||||
# `projects/`project`/instances/`instance``.
|
|
||||||
# @param [Google::Apis::BigtableadminV2::Cluster] cluster_object
|
# @param [Google::Apis::BigtableadminV2::Cluster] cluster_object
|
||||||
# @param [String] cluster_id
|
# @param [String] cluster_id
|
||||||
# Required. The ID to be used when referring to the new cluster within its
|
# Required. The ID to be used when referring to the new cluster within its
|
||||||
# instance,
|
# instance, e.g., just `mycluster` rather than `projects/myproject/instances/
|
||||||
# e.g., just `mycluster` rather than
|
# myinstance/clusters/mycluster`.
|
||||||
# `projects/myproject/instances/myinstance/clusters/mycluster`.
|
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -779,8 +767,8 @@ module Google
|
||||||
|
|
||||||
# Gets information about a cluster.
|
# Gets information about a cluster.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required. The unique name of the requested cluster. Values are of the form
|
# Required. The unique name of the requested cluster. Values are of the form `
|
||||||
# `projects/`project`/instances/`instance`/clusters/`cluster``.
|
# projects/`project`/instances/`instance`/clusters/`cluster``.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -811,10 +799,9 @@ module Google
|
||||||
# Lists information about clusters in an instance.
|
# Lists information about clusters in an instance.
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# Required. The unique name of the instance for which a list of clusters is
|
# Required. The unique name of the instance for which a list of clusters is
|
||||||
# requested.
|
# requested. Values are of the form `projects/`project`/instances/`instance``.
|
||||||
# Values are of the form `projects/`project`/instances/`instance``.
|
# Use ``instance` = '-'` to list Clusters for all Instances in a project, e.g., `
|
||||||
# Use ``instance` = '-'` to list Clusters for all Instances in a project,
|
# projects/myproject/instances/-`.
|
||||||
# e.g., `projects/myproject/instances/-`.
|
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# DEPRECATED: This field is unused and ignored.
|
# DEPRECATED: This field is unused and ignored.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
|
@ -847,8 +834,8 @@ module Google
|
||||||
|
|
||||||
# Updates a cluster within an instance.
|
# Updates a cluster within an instance.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# The unique name of the cluster. Values are of the form
|
# The unique name of the cluster. Values are of the form `projects/`project`/
|
||||||
# `projects/`project`/instances/`instance`/clusters/a-z*`.
|
# instances/`instance`/clusters/a-z*`.
|
||||||
# @param [Google::Apis::BigtableadminV2::Cluster] cluster_object
|
# @param [Google::Apis::BigtableadminV2::Cluster] cluster_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -879,27 +866,21 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Starts creating a new Cloud Bigtable Backup. The returned backup
|
# Starts creating a new Cloud Bigtable Backup. The returned backup long-running
|
||||||
# long-running operation can be used to
|
# operation can be used to track creation of the backup. The metadata field type
|
||||||
# track creation of the backup. The
|
# is CreateBackupMetadata. The response field type is Backup, if successful.
|
||||||
# metadata field type is
|
# Cancelling the returned operation will stop the creation and delete the backup.
|
||||||
# CreateBackupMetadata. The
|
|
||||||
# response field type is
|
|
||||||
# Backup, if successful. Cancelling the returned operation will stop the
|
|
||||||
# creation and delete the backup.
|
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# Required. This must be one of the clusters in the instance in which this
|
# Required. This must be one of the clusters in the instance in which this table
|
||||||
# table is located. The backup will be stored in this cluster. Values are
|
# is located. The backup will be stored in this cluster. Values are of the form `
|
||||||
# of the form `projects/`project`/instances/`instance`/clusters/`cluster``.
|
# projects/`project`/instances/`instance`/clusters/`cluster``.
|
||||||
# @param [Google::Apis::BigtableadminV2::Backup] backup_object
|
# @param [Google::Apis::BigtableadminV2::Backup] backup_object
|
||||||
# @param [String] backup_id
|
# @param [String] backup_id
|
||||||
# Required. The id of the backup to be created. The `backup_id` along with
|
# Required. The id of the backup to be created. The `backup_id` along with the
|
||||||
# the parent `parent` are combined as `parent`/backups/`backup_id` to create
|
# parent `parent` are combined as `parent`/backups/`backup_id` to create the
|
||||||
# the full backup name, of the form:
|
# full backup name, of the form: `projects/`project`/instances/`instance`/
|
||||||
# `projects/`project`/instances/`instance`/clusters/`cluster`/backups/`backup_id`
|
# clusters/`cluster`/backups/`backup_id``. This string must be between 1 and 50
|
||||||
# `.
|
# characters in length and match the regex _a-zA-Z0-9*.
|
||||||
# This string must be between 1 and 50 characters in length and match the
|
|
||||||
# regex _a-zA-Z0-9*.
|
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -932,9 +913,8 @@ module Google
|
||||||
|
|
||||||
# Deletes a pending or completed Cloud Bigtable backup.
|
# Deletes a pending or completed Cloud Bigtable backup.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required. Name of the backup to delete.
|
# Required. Name of the backup to delete. Values are of the form `projects/`
|
||||||
# Values are of the form
|
# project`/instances/`instance`/clusters/`cluster`/backups/`backup``.
|
||||||
# `projects/`project`/instances/`instance`/clusters/`cluster`/backups/`backup``.
|
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -964,9 +944,8 @@ module Google
|
||||||
|
|
||||||
# Gets metadata on a pending or completed Cloud Bigtable Backup.
|
# Gets metadata on a pending or completed Cloud Bigtable Backup.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required. Name of the backup.
|
# Required. Name of the backup. Values are of the form `projects/`project`/
|
||||||
# Values are of the form
|
# instances/`instance`/clusters/`cluster`/backups/`backup``.
|
||||||
# `projects/`project`/instances/`instance`/clusters/`cluster`/backups/`backup``.
|
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -994,12 +973,11 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Gets the access control policy for a Table resource.
|
# Gets the access control policy for a Table resource. Returns an empty policy
|
||||||
# Returns an empty policy if the resource exists but does not have a policy
|
# if the resource exists but does not have a policy set.
|
||||||
# set.
|
|
||||||
# @param [String] resource
|
# @param [String] resource
|
||||||
# REQUIRED: The resource for which the policy is being requested.
|
# REQUIRED: The resource for which the policy is being requested. See the
|
||||||
# See the operation documentation for the appropriate value for this field.
|
# operation documentation for the appropriate value for this field.
|
||||||
# @param [Google::Apis::BigtableadminV2::GetIamPolicyRequest] get_iam_policy_request_object
|
# @param [Google::Apis::BigtableadminV2::GetIamPolicyRequest] get_iam_policy_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1030,68 +1008,49 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Lists Cloud Bigtable backups. Returns both completed and pending
|
# Lists Cloud Bigtable backups. Returns both completed and pending backups.
|
||||||
# backups.
|
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# Required. The cluster to list backups from. Values are of the
|
# Required. The cluster to list backups from. Values are of the form `projects/`
|
||||||
# form `projects/`project`/instances/`instance`/clusters/`cluster``.
|
# project`/instances/`instance`/clusters/`cluster``. Use ``cluster` = '-'` to
|
||||||
# Use ``cluster` = '-'` to list backups for all clusters in an instance,
|
# list backups for all clusters in an instance, e.g., `projects/`project`/
|
||||||
# e.g., `projects/`project`/instances/`instance`/clusters/-`.
|
# instances/`instance`/clusters/-`.
|
||||||
# @param [String] filter
|
# @param [String] filter
|
||||||
# A filter expression that filters backups listed in the response.
|
# A filter expression that filters backups listed in the response. The
|
||||||
# The expression must specify the field name, a comparison operator,
|
# expression must specify the field name, a comparison operator, and the value
|
||||||
# and the value that you want to use for filtering. The value must be a
|
# that you want to use for filtering. The value must be a string, a number, or a
|
||||||
# string, a number, or a boolean. The comparison operator must be
|
# boolean. The comparison operator must be <, >, <=, >=, !=, =, or :. Colon ':'
|
||||||
# <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is
|
# represents a HAS operator which is roughly synonymous with equality. Filter
|
||||||
# roughly synonymous with equality. Filter rules are case insensitive.
|
# rules are case insensitive. The fields eligible for filtering are: * `name` * `
|
||||||
# The fields eligible for filtering are:
|
# source_table` * `state` * `start_time` (and values are of the format YYYY-MM-
|
||||||
# * `name`
|
# DDTHH:MM:SSZ) * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
|
||||||
# * `source_table`
|
# * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * `
|
||||||
# * `state`
|
# size_bytes` To filter on multiple expressions, provide each separate
|
||||||
# * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
|
# expression within parentheses. By default, each expression is an AND
|
||||||
# * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
|
# expression. However, you can include AND, OR, and NOT expressions explicitly.
|
||||||
# * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
|
# Some examples of using filters are: * `name:"exact"` --> The backup's name is
|
||||||
# * `size_bytes`
|
# the string "exact". * `name:howl` --> The backup's name contains the string "
|
||||||
# To filter on multiple expressions, provide each separate expression within
|
# howl". * `source_table:prod` --> The source_table's name contains the string "
|
||||||
# parentheses. By default, each expression is an AND expression. However,
|
# prod". * `state:CREATING` --> The backup is pending creation. * `state:READY` -
|
||||||
# you can include AND, OR, and NOT expressions explicitly.
|
# -> The backup is fully created and ready for use. * `(name:howl) AND (
|
||||||
# Some examples of using filters are:
|
# start_time < \"2018-03-28T14:50:00Z\")` --> The backup name contains the
|
||||||
# * `name:"exact"` --> The backup's name is the string "exact".
|
# string "howl" and start_time of the backup is before 2018-03-28T14:50:00Z. * `
|
||||||
# * `name:howl` --> The backup's name contains the string "howl".
|
# size_bytes > 10000000000` --> The backup's size is greater than 10GB
|
||||||
# * `source_table:prod`
|
|
||||||
# --> The source_table's name contains the string "prod".
|
|
||||||
# * `state:CREATING` --> The backup is pending creation.
|
|
||||||
# * `state:READY` --> The backup is fully created and ready for use.
|
|
||||||
# * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")`
|
|
||||||
# --> The backup name contains the string "howl" and start_time
|
|
||||||
# of the backup is before 2018-03-28T14:50:00Z.
|
|
||||||
# * `size_bytes > 10000000000` --> The backup's size is greater than 10GB
|
|
||||||
# @param [String] order_by
|
# @param [String] order_by
|
||||||
# An expression for specifying the sort order of the results of the request.
|
# An expression for specifying the sort order of the results of the request. The
|
||||||
# The string value should specify one or more fields in Backup. The full
|
# string value should specify one or more fields in Backup. The full syntax is
|
||||||
# syntax is described at https://aip.dev/132#ordering.
|
# described at https://aip.dev/132#ordering. Fields supported are: * name *
|
||||||
# Fields supported are:
|
# source_table * expire_time * start_time * end_time * size_bytes * state For
|
||||||
# * name
|
# example, "start_time". The default sorting order is ascending. To specify
|
||||||
# * source_table
|
# descending order for the field, a suffix " desc" should be appended to the
|
||||||
# * expire_time
|
# field name. For example, "start_time desc". Redundant space characters in the
|
||||||
# * start_time
|
# syntax are insigificant. If order_by is empty, results will be sorted by `
|
||||||
# * end_time
|
# start_time` in descending order starting from the most recently created backup.
|
||||||
# * size_bytes
|
|
||||||
# * state
|
|
||||||
# For example, "start_time". The default sorting order is ascending.
|
|
||||||
# To specify descending order for the field, a suffix " desc" should
|
|
||||||
# be appended to the field name. For example, "start_time desc".
|
|
||||||
# Redundant space characters in the syntax are insigificant.
|
|
||||||
# If order_by is empty, results will be sorted by `start_time` in descending
|
|
||||||
# order starting from the most recently created backup.
|
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# Number of backups to be returned in the response. If 0 or
|
# Number of backups to be returned in the response. If 0 or less, defaults to
|
||||||
# less, defaults to the server's maximum allowed page size.
|
# the server's maximum allowed page size.
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# If non-empty, `page_token` should contain a
|
# If non-empty, `page_token` should contain a next_page_token from a previous
|
||||||
# next_page_token from a
|
# ListBackupsResponse to the same `parent` and with the same `filter`.
|
||||||
# previous ListBackupsResponse to the same `parent` and with the same
|
|
||||||
# `filter`.
|
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1125,22 +1084,19 @@ module Google
|
||||||
|
|
||||||
# Updates a pending or completed Cloud Bigtable Backup.
|
# Updates a pending or completed Cloud Bigtable Backup.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# A globally unique identifier for the backup which cannot be
|
# A globally unique identifier for the backup which cannot be changed. Values
|
||||||
# changed. Values are of the form
|
# are of the form `projects/`project`/instances/`instance`/clusters/`cluster`/
|
||||||
# `projects/`project`/instances/`instance`/clusters/`cluster`/
|
# backups/_a-zA-Z0-9*` The final segment of the name must be between 1 and 50
|
||||||
# backups/_a-zA-Z0-9*`
|
# characters in length. The backup is stored in the cluster identified by the
|
||||||
# The final segment of the name must be between 1 and 50 characters
|
# prefix of the backup name of the form `projects/`project`/instances/`instance`/
|
||||||
# in length.
|
# clusters/`cluster``.
|
||||||
# The backup is stored in the cluster identified by the prefix of the backup
|
|
||||||
# name of the form
|
|
||||||
# `projects/`project`/instances/`instance`/clusters/`cluster``.
|
|
||||||
# @param [Google::Apis::BigtableadminV2::Backup] backup_object
|
# @param [Google::Apis::BigtableadminV2::Backup] backup_object
|
||||||
# @param [String] update_mask
|
# @param [String] update_mask
|
||||||
# Required. A mask specifying which fields (e.g. `expire_time`) in the
|
# Required. A mask specifying which fields (e.g. `expire_time`) in the Backup
|
||||||
# Backup resource should be updated. This mask is relative to the Backup
|
# resource should be updated. This mask is relative to the Backup resource, not
|
||||||
# resource, not to the request message. The field mask must always be
|
# to the request message. The field mask must always be specified; this prevents
|
||||||
# specified; this prevents any future fields from being erased accidentally
|
# any future fields from being erased accidentally by clients that do not know
|
||||||
# by clients that do not know about them.
|
# about them.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1171,11 +1127,11 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Sets the access control policy on a Table resource.
|
# Sets the access control policy on a Table resource. Replaces any existing
|
||||||
# Replaces any existing policy.
|
# policy.
|
||||||
# @param [String] resource
|
# @param [String] resource
|
||||||
# REQUIRED: The resource for which the policy is being specified.
|
# REQUIRED: The resource for which the policy is being specified. See the
|
||||||
# See the operation documentation for the appropriate value for this field.
|
# operation documentation for the appropriate value for this field.
|
||||||
# @param [Google::Apis::BigtableadminV2::SetIamPolicyRequest] set_iam_policy_request_object
|
# @param [Google::Apis::BigtableadminV2::SetIamPolicyRequest] set_iam_policy_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1208,8 +1164,8 @@ module Google
|
||||||
|
|
||||||
# Returns permissions that the caller has on the specified table resource.
|
# Returns permissions that the caller has on the specified table resource.
|
||||||
# @param [String] resource
|
# @param [String] resource
|
||||||
# REQUIRED: The resource for which the policy detail is being requested.
|
# REQUIRED: The resource for which the policy detail is being requested. See the
|
||||||
# See the operation documentation for the appropriate value for this field.
|
# operation documentation for the appropriate value for this field.
|
||||||
# @param [Google::Apis::BigtableadminV2::TestIamPermissionsRequest] test_iam_permissions_request_object
|
# @param [Google::Apis::BigtableadminV2::TestIamPermissionsRequest] test_iam_permissions_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1241,13 +1197,12 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# Checks replication consistency based on a consistency token, that is, if
|
# Checks replication consistency based on a consistency token, that is, if
|
||||||
# replication has caught up based on the conditions specified in the token
|
# replication has caught up based on the conditions specified in the token and
|
||||||
# and the check request.
|
# the check request.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required. The unique name of the Table for which to check replication
|
# Required. The unique name of the Table for which to check replication
|
||||||
# consistency.
|
# consistency. Values are of the form `projects/`project`/instances/`instance`/
|
||||||
# Values are of the form
|
# tables/`table``.
|
||||||
# `projects/`project`/instances/`instance`/tables/`table``.
|
|
||||||
# @param [Google::Apis::BigtableadminV2::CheckConsistencyRequest] check_consistency_request_object
|
# @param [Google::Apis::BigtableadminV2::CheckConsistencyRequest] check_consistency_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1278,12 +1233,11 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Creates a new table in the specified instance.
|
# Creates a new table in the specified instance. The table can be created with a
|
||||||
# The table can be created with a full set of initial column families,
|
# full set of initial column families, specified in the request.
|
||||||
# specified in the request.
|
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# Required. The unique name of the instance in which to create the table.
|
# Required. The unique name of the instance in which to create the table. Values
|
||||||
# Values are of the form `projects/`project`/instances/`instance``.
|
# are of the form `projects/`project`/instances/`instance``.
|
||||||
# @param [Google::Apis::BigtableadminV2::CreateTableRequest] create_table_request_object
|
# @param [Google::Apis::BigtableadminV2::CreateTableRequest] create_table_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1316,9 +1270,8 @@ module Google
|
||||||
|
|
||||||
# Permanently deletes a specified table and all of its data.
|
# Permanently deletes a specified table and all of its data.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required. The unique name of the table to be deleted.
|
# Required. The unique name of the table to be deleted. Values are of the form `
|
||||||
# Values are of the form
|
# projects/`project`/instances/`instance`/tables/`table``.
|
||||||
# `projects/`project`/instances/`instance`/tables/`table``.
|
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1351,8 +1304,8 @@ module Google
|
||||||
# particular prefix.
|
# particular prefix.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required. The unique name of the table on which to drop a range of rows.
|
# Required. The unique name of the table on which to drop a range of rows.
|
||||||
# Values are of the form
|
# Values are of the form `projects/`project`/instances/`instance`/tables/`table``
|
||||||
# `projects/`project`/instances/`instance`/tables/`table``.
|
# .
|
||||||
# @param [Google::Apis::BigtableadminV2::DropRowRangeRequest] drop_row_range_request_object
|
# @param [Google::Apis::BigtableadminV2::DropRowRangeRequest] drop_row_range_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1384,13 +1337,13 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# Generates a consistency token for a Table, which can be used in
|
# Generates a consistency token for a Table, which can be used in
|
||||||
# CheckConsistency to check whether mutations to the table that finished
|
# CheckConsistency to check whether mutations to the table that finished before
|
||||||
# before this call started have been replicated. The tokens will be available
|
# this call started have been replicated. The tokens will be available for 90
|
||||||
# for 90 days.
|
# days.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required. The unique name of the Table for which to create a consistency token.
|
# Required. The unique name of the Table for which to create a consistency token.
|
||||||
# Values are of the form
|
# Values are of the form `projects/`project`/instances/`instance`/tables/`table`
|
||||||
# `projects/`project`/instances/`instance`/tables/`table``.
|
# `.
|
||||||
# @param [Google::Apis::BigtableadminV2::GenerateConsistencyTokenRequest] generate_consistency_token_request_object
|
# @param [Google::Apis::BigtableadminV2::GenerateConsistencyTokenRequest] generate_consistency_token_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1423,12 +1376,11 @@ module Google
|
||||||
|
|
||||||
# Gets metadata information about the specified table.
|
# Gets metadata information about the specified table.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required. The unique name of the requested table.
|
# Required. The unique name of the requested table. Values are of the form `
|
||||||
# Values are of the form
|
# projects/`project`/instances/`instance`/tables/`table``.
|
||||||
# `projects/`project`/instances/`instance`/tables/`table``.
|
|
||||||
# @param [String] view
|
# @param [String] view
|
||||||
# The view to be applied to the returned table's fields.
|
# The view to be applied to the returned table's fields. Defaults to `
|
||||||
# Defaults to `SCHEMA_VIEW` if unspecified.
|
# SCHEMA_VIEW` if unspecified.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1457,12 +1409,11 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Gets the access control policy for a Table resource.
|
# Gets the access control policy for a Table resource. Returns an empty policy
|
||||||
# Returns an empty policy if the resource exists but does not have a policy
|
# if the resource exists but does not have a policy set.
|
||||||
# set.
|
|
||||||
# @param [String] resource
|
# @param [String] resource
|
||||||
# REQUIRED: The resource for which the policy is being requested.
|
# REQUIRED: The resource for which the policy is being requested. See the
|
||||||
# See the operation documentation for the appropriate value for this field.
|
# operation documentation for the appropriate value for this field.
|
||||||
# @param [Google::Apis::BigtableadminV2::GetIamPolicyRequest] get_iam_policy_request_object
|
# @param [Google::Apis::BigtableadminV2::GetIamPolicyRequest] get_iam_policy_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1498,18 +1449,17 @@ module Google
|
||||||
# Required. The unique name of the instance for which tables should be listed.
|
# Required. The unique name of the instance for which tables should be listed.
|
||||||
# Values are of the form `projects/`project`/instances/`instance``.
|
# Values are of the form `projects/`project`/instances/`instance``.
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# Maximum number of results per page.
|
# Maximum number of results per page. A page_size of zero lets the server choose
|
||||||
# A page_size of zero lets the server choose the number of items to return.
|
# the number of items to return. A page_size which is strictly positive will
|
||||||
# A page_size which is strictly positive will return at most that many items.
|
# return at most that many items. A negative page_size will cause an error.
|
||||||
# A negative page_size will cause an error.
|
# Following the first request, subsequent paginated calls are not required to
|
||||||
# Following the first request, subsequent paginated calls are not required
|
# pass a page_size. If a page_size is set in subsequent calls, it must match the
|
||||||
# to pass a page_size. If a page_size is set in subsequent calls, it must
|
# page_size given in the first request.
|
||||||
# match the page_size given in the first request.
|
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# The value of `next_page_token` returned by a previous call.
|
# The value of `next_page_token` returned by a previous call.
|
||||||
# @param [String] view
|
# @param [String] view
|
||||||
# The view to be applied to the returned tables' fields.
|
# The view to be applied to the returned tables' fields. Only NAME_ONLY view (
|
||||||
# Only NAME_ONLY view (default) and REPLICATION_VIEW are supported.
|
# default) and REPLICATION_VIEW are supported.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1541,13 +1491,13 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# Performs a series of column family modifications on the specified table.
|
# Performs a series of column family modifications on the specified table.
|
||||||
# Either all or none of the modifications will occur before this method
|
# Either all or none of the modifications will occur before this method returns,
|
||||||
# returns, but data requests received prior to that point may see a table
|
# but data requests received prior to that point may see a table where only some
|
||||||
# where only some modifications have taken effect.
|
# modifications have taken effect.
|
||||||
# @param [String] name
|
# @param [String] name
|
||||||
# Required. The unique name of the table whose families should be modified.
|
# Required. The unique name of the table whose families should be modified.
|
||||||
# Values are of the form
|
# Values are of the form `projects/`project`/instances/`instance`/tables/`table``
|
||||||
# `projects/`project`/instances/`instance`/tables/`table``.
|
# .
|
||||||
# @param [Google::Apis::BigtableadminV2::ModifyColumnFamiliesRequest] modify_column_families_request_object
|
# @param [Google::Apis::BigtableadminV2::ModifyColumnFamiliesRequest] modify_column_families_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1578,18 +1528,15 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Create a new table by restoring from a completed backup. The new table
|
# Create a new table by restoring from a completed backup. The new table must be
|
||||||
# must be in the same instance as the instance containing the backup. The
|
# in the same instance as the instance containing the backup. The returned table
|
||||||
# returned table long-running operation can
|
# long-running operation can be used to track the progress of the operation, and
|
||||||
# be used to track the progress of the operation, and to cancel it. The
|
# to cancel it. The metadata field type is RestoreTableMetadata. The response
|
||||||
# metadata field type is
|
# type is Table, if successful.
|
||||||
# RestoreTableMetadata. The
|
|
||||||
# response type is
|
|
||||||
# Table, if successful.
|
|
||||||
# @param [String] parent
|
# @param [String] parent
|
||||||
# Required. The name of the instance in which to create the restored
|
# Required. The name of the instance in which to create the restored table. This
|
||||||
# table. This instance must be the parent of the source backup. Values are
|
# instance must be the parent of the source backup. Values are of the form `
|
||||||
# of the form `projects/<project>/instances/<instance>`.
|
# projects//instances/`.
|
||||||
# @param [Google::Apis::BigtableadminV2::RestoreTableRequest] restore_table_request_object
|
# @param [Google::Apis::BigtableadminV2::RestoreTableRequest] restore_table_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1620,11 +1567,11 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Sets the access control policy on a Table resource.
|
# Sets the access control policy on a Table resource. Replaces any existing
|
||||||
# Replaces any existing policy.
|
# policy.
|
||||||
# @param [String] resource
|
# @param [String] resource
|
||||||
# REQUIRED: The resource for which the policy is being specified.
|
# REQUIRED: The resource for which the policy is being specified. See the
|
||||||
# See the operation documentation for the appropriate value for this field.
|
# operation documentation for the appropriate value for this field.
|
||||||
# @param [Google::Apis::BigtableadminV2::SetIamPolicyRequest] set_iam_policy_request_object
|
# @param [Google::Apis::BigtableadminV2::SetIamPolicyRequest] set_iam_policy_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1657,8 +1604,8 @@ module Google
|
||||||
|
|
||||||
# Returns permissions that the caller has on the specified table resource.
|
# Returns permissions that the caller has on the specified table resource.
|
||||||
# @param [String] resource
|
# @param [String] resource
|
||||||
# REQUIRED: The resource for which the policy detail is being requested.
|
# REQUIRED: The resource for which the policy detail is being requested. See the
|
||||||
# See the operation documentation for the appropriate value for this field.
|
# operation documentation for the appropriate value for this field.
|
||||||
# @param [Google::Apis::BigtableadminV2::TestIamPermissionsRequest] test_iam_permissions_request_object
|
# @param [Google::Apis::BigtableadminV2::TestIamPermissionsRequest] test_iam_permissions_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/binary-authorization/
|
# @see https://cloud.google.com/binary-authorization/
|
||||||
module BinaryauthorizationV1
|
module BinaryauthorizationV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200807'
|
REVISION = '20200828'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -177,6 +177,12 @@ module Google
|
||||||
class Binding
|
class Binding
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A client-specified ID for this binding. Expected to be globally unique to
|
||||||
|
# support the internal bindings-by-ID API.
|
||||||
|
# Corresponds to the JSON property `bindingId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :binding_id
|
||||||
|
|
||||||
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
||||||
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
||||||
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
||||||
|
@ -238,6 +244,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@binding_id = args[:binding_id] if args.key?(:binding_id)
|
||||||
@condition = args[:condition] if args.key?(:condition)
|
@condition = args[:condition] if args.key?(:condition)
|
||||||
@members = args[:members] if args.key?(:members)
|
@members = args[:members] if args.key?(:members)
|
||||||
@role = args[:role] if args.key?(:role)
|
@role = args[:role] if args.key?(:role)
|
||||||
|
|
|
@ -153,6 +153,7 @@ module Google
|
||||||
class Binding
|
class Binding
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :binding_id, as: 'bindingId'
|
||||||
property :condition, as: 'condition', class: Google::Apis::BinaryauthorizationV1::Expr, decorator: Google::Apis::BinaryauthorizationV1::Expr::Representation
|
property :condition, as: 'condition', class: Google::Apis::BinaryauthorizationV1::Expr, decorator: Google::Apis::BinaryauthorizationV1::Expr::Representation
|
||||||
|
|
||||||
collection :members, as: 'members'
|
collection :members, as: 'members'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/binary-authorization/
|
# @see https://cloud.google.com/binary-authorization/
|
||||||
module BinaryauthorizationV1beta1
|
module BinaryauthorizationV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20200807'
|
REVISION = '20200828'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -177,6 +177,12 @@ module Google
|
||||||
class Binding
|
class Binding
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A client-specified ID for this binding. Expected to be globally unique to
|
||||||
|
# support the internal bindings-by-ID API.
|
||||||
|
# Corresponds to the JSON property `bindingId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :binding_id
|
||||||
|
|
||||||
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
||||||
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
||||||
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
||||||
|
@ -238,6 +244,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@binding_id = args[:binding_id] if args.key?(:binding_id)
|
||||||
@condition = args[:condition] if args.key?(:condition)
|
@condition = args[:condition] if args.key?(:condition)
|
||||||
@members = args[:members] if args.key?(:members)
|
@members = args[:members] if args.key?(:members)
|
||||||
@role = args[:role] if args.key?(:role)
|
@role = args[:role] if args.key?(:role)
|
||||||
|
|
|
@ -153,6 +153,7 @@ module Google
|
||||||
class Binding
|
class Binding
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :binding_id, as: 'bindingId'
|
||||||
property :condition, as: 'condition', class: Google::Apis::BinaryauthorizationV1beta1::Expr, decorator: Google::Apis::BinaryauthorizationV1beta1::Expr::Representation
|
property :condition, as: 'condition', class: Google::Apis::BinaryauthorizationV1beta1::Expr, decorator: Google::Apis::BinaryauthorizationV1beta1::Expr::Representation
|
||||||
|
|
||||||
collection :members, as: 'members'
|
collection :members, as: 'members'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://developers.google.com/google-apps/calendar/firstapp
|
# @see https://developers.google.com/google-apps/calendar/firstapp
|
||||||
module CalendarV3
|
module CalendarV3
|
||||||
VERSION = 'V3'
|
VERSION = 'V3'
|
||||||
REVISION = '20200827'
|
REVISION = '20200902'
|
||||||
|
|
||||||
# See, edit, share, and permanently delete all the calendars you can access using Google Calendar
|
# See, edit, share, and permanently delete all the calendars you can access using Google Calendar
|
||||||
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
||||||
|
|
|
@ -1111,7 +1111,8 @@ module Google
|
||||||
# @return [Google::Apis::CalendarV3::Event::ExtendedProperties]
|
# @return [Google::Apis::CalendarV3::Event::ExtendedProperties]
|
||||||
attr_accessor :extended_properties
|
attr_accessor :extended_properties
|
||||||
|
|
||||||
# A gadget that extends this event.
|
# A gadget that extends this event. Gadgets are deprecated; this structure is
|
||||||
|
# instead only used for returning birthday calendar metadata.
|
||||||
# Corresponds to the JSON property `gadget`
|
# Corresponds to the JSON property `gadget`
|
||||||
# @return [Google::Apis::CalendarV3::Event::Gadget]
|
# @return [Google::Apis::CalendarV3::Event::Gadget]
|
||||||
attr_accessor :gadget
|
attr_accessor :gadget
|
||||||
|
@ -1431,11 +1432,12 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A gadget that extends this event.
|
# A gadget that extends this event. Gadgets are deprecated; this structure is
|
||||||
|
# instead only used for returning birthday calendar metadata.
|
||||||
class Gadget
|
class Gadget
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The gadget's display mode. Optional. Possible values are:
|
# The gadget's display mode. Deprecated. Possible values are:
|
||||||
# - "icon" - The gadget displays next to the event's title in the calendar view.
|
# - "icon" - The gadget displays next to the event's title in the calendar view.
|
||||||
# - "chip" - The gadget displays when the event is clicked.
|
# - "chip" - The gadget displays when the event is clicked.
|
||||||
# Corresponds to the JSON property `display`
|
# Corresponds to the JSON property `display`
|
||||||
|
@ -1443,17 +1445,17 @@ module Google
|
||||||
attr_accessor :display_mode
|
attr_accessor :display_mode
|
||||||
|
|
||||||
# The gadget's height in pixels. The height must be an integer greater than 0.
|
# The gadget's height in pixels. The height must be an integer greater than 0.
|
||||||
# Optional.
|
# Optional. Deprecated.
|
||||||
# Corresponds to the JSON property `height`
|
# Corresponds to the JSON property `height`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :height
|
attr_accessor :height
|
||||||
|
|
||||||
# The gadget's icon URL. The URL scheme must be HTTPS.
|
# The gadget's icon URL. The URL scheme must be HTTPS. Deprecated.
|
||||||
# Corresponds to the JSON property `iconLink`
|
# Corresponds to the JSON property `iconLink`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :icon_link
|
attr_accessor :icon_link
|
||||||
|
|
||||||
# The gadget's URL. The URL scheme must be HTTPS.
|
# The gadget's URL. The URL scheme must be HTTPS. Deprecated.
|
||||||
# Corresponds to the JSON property `link`
|
# Corresponds to the JSON property `link`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :link
|
attr_accessor :link
|
||||||
|
@ -1463,18 +1465,18 @@ module Google
|
||||||
# @return [Hash<String,String>]
|
# @return [Hash<String,String>]
|
||||||
attr_accessor :preferences
|
attr_accessor :preferences
|
||||||
|
|
||||||
# The gadget's title.
|
# The gadget's title. Deprecated.
|
||||||
# Corresponds to the JSON property `title`
|
# Corresponds to the JSON property `title`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :title
|
attr_accessor :title
|
||||||
|
|
||||||
# The gadget's type.
|
# The gadget's type. Deprecated.
|
||||||
# Corresponds to the JSON property `type`
|
# Corresponds to the JSON property `type`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :type
|
attr_accessor :type
|
||||||
|
|
||||||
# The gadget's width in pixels. The width must be an integer greater than 0.
|
# The gadget's width in pixels. The width must be an integer greater than 0.
|
||||||
# Optional.
|
# Optional. Deprecated.
|
||||||
# Corresponds to the JSON property `width`
|
# Corresponds to the JSON property `width`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :width
|
attr_accessor :width
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/civic-information/
|
# @see https://developers.google.com/civic-information/
|
||||||
module CivicinfoV2
|
module CivicinfoV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20200824'
|
REVISION = '20200908'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -96,6 +96,18 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :election_info_url
|
attr_accessor :election_info_url
|
||||||
|
|
||||||
|
# A last minute or emergency notification text provided by this administrative
|
||||||
|
# body.
|
||||||
|
# Corresponds to the JSON property `electionNoticeText`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :election_notice_text
|
||||||
|
|
||||||
|
# A URL provided by this administrative body for additional information related
|
||||||
|
# to the last minute or emergency notification.
|
||||||
|
# Corresponds to the JSON property `electionNoticeUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :election_notice_url
|
||||||
|
|
||||||
# The election officials for this election administrative body.
|
# The election officials for this election administrative body.
|
||||||
# Corresponds to the JSON property `electionOfficials`
|
# Corresponds to the JSON property `electionOfficials`
|
||||||
# @return [Array<Google::Apis::CivicinfoV2::ElectionOfficial>]
|
# @return [Array<Google::Apis::CivicinfoV2::ElectionOfficial>]
|
||||||
|
@ -154,6 +166,8 @@ module Google
|
||||||
@ballot_info_url = args[:ballot_info_url] if args.key?(:ballot_info_url)
|
@ballot_info_url = args[:ballot_info_url] if args.key?(:ballot_info_url)
|
||||||
@correspondence_address = args[:correspondence_address] if args.key?(:correspondence_address)
|
@correspondence_address = args[:correspondence_address] if args.key?(:correspondence_address)
|
||||||
@election_info_url = args[:election_info_url] if args.key?(:election_info_url)
|
@election_info_url = args[:election_info_url] if args.key?(:election_info_url)
|
||||||
|
@election_notice_text = args[:election_notice_text] if args.key?(:election_notice_text)
|
||||||
|
@election_notice_url = args[:election_notice_url] if args.key?(:election_notice_url)
|
||||||
@election_officials = args[:election_officials] if args.key?(:election_officials)
|
@election_officials = args[:election_officials] if args.key?(:election_officials)
|
||||||
@election_registration_confirmation_url = args[:election_registration_confirmation_url] if args.key?(:election_registration_confirmation_url)
|
@election_registration_confirmation_url = args[:election_registration_confirmation_url] if args.key?(:election_registration_confirmation_url)
|
||||||
@election_registration_url = args[:election_registration_url] if args.key?(:election_registration_url)
|
@election_registration_url = args[:election_registration_url] if args.key?(:election_registration_url)
|
||||||
|
@ -838,18 +852,14 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :id
|
attr_accessor :id
|
||||||
|
|
||||||
# Latitude of the location, in degrees north of the equator. Only some locations
|
# Latitude of the location, in degrees north of the equator. Note this field may
|
||||||
# -- generally, ballot drop boxes for vote-by-mail elections -- will have this
|
# not be available for some locations.
|
||||||
# set; for others, use a geocoding service like the Google Maps API to resolve
|
|
||||||
# the address to a geographic point.
|
|
||||||
# Corresponds to the JSON property `latitude`
|
# Corresponds to the JSON property `latitude`
|
||||||
# @return [Float]
|
# @return [Float]
|
||||||
attr_accessor :latitude
|
attr_accessor :latitude
|
||||||
|
|
||||||
# Longitude of the location, in degrees east of the Prime Meridian. Only some
|
# Longitude of the location, in degrees east of the Prime Meridian. Note this
|
||||||
# locations -- generally, ballot drop boxes for vote-by-mail elections -- will
|
# field may not be available for some locations.
|
||||||
# have this set; for others, use a geocoding service like the Google Maps API to
|
|
||||||
# resolve the address to a geographic point.
|
|
||||||
# Corresponds to the JSON property `longitude`
|
# Corresponds to the JSON property `longitude`
|
||||||
# @return [Float]
|
# @return [Float]
|
||||||
attr_accessor :longitude
|
attr_accessor :longitude
|
||||||
|
|
|
@ -164,6 +164,8 @@ module Google
|
||||||
property :correspondence_address, as: 'correspondenceAddress', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation
|
property :correspondence_address, as: 'correspondenceAddress', class: Google::Apis::CivicinfoV2::SimpleAddressType, decorator: Google::Apis::CivicinfoV2::SimpleAddressType::Representation
|
||||||
|
|
||||||
property :election_info_url, as: 'electionInfoUrl'
|
property :election_info_url, as: 'electionInfoUrl'
|
||||||
|
property :election_notice_text, as: 'electionNoticeText'
|
||||||
|
property :election_notice_url, as: 'electionNoticeUrl'
|
||||||
collection :election_officials, as: 'electionOfficials', class: Google::Apis::CivicinfoV2::ElectionOfficial, decorator: Google::Apis::CivicinfoV2::ElectionOfficial::Representation
|
collection :election_officials, as: 'electionOfficials', class: Google::Apis::CivicinfoV2::ElectionOfficial, decorator: Google::Apis::CivicinfoV2::ElectionOfficial::Representation
|
||||||
|
|
||||||
property :election_registration_confirmation_url, as: 'electionRegistrationConfirmationUrl'
|
property :election_registration_confirmation_url, as: 'electionRegistrationConfirmationUrl'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/asset-inventory/docs/quickstart
|
# @see https://cloud.google.com/asset-inventory/docs/quickstart
|
||||||
module CloudassetV1
|
module CloudassetV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200810'
|
REVISION = '20200828'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/asset-inventory/docs/quickstart
|
# @see https://cloud.google.com/asset-inventory/docs/quickstart
|
||||||
module CloudassetV1beta1
|
module CloudassetV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20200810'
|
REVISION = '20200828'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/asset-inventory/docs/quickstart
|
# @see https://cloud.google.com/asset-inventory/docs/quickstart
|
||||||
module CloudassetV1p5beta1
|
module CloudassetV1p5beta1
|
||||||
VERSION = 'V1p5beta1'
|
VERSION = 'V1p5beta1'
|
||||||
REVISION = '20200810'
|
REVISION = '20200828'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/cloud-build/docs/
|
# @see https://cloud.google.com/cloud-build/docs/
|
||||||
module CloudbuildV1
|
module CloudbuildV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200817'
|
REVISION = '20200910'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -177,6 +177,13 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :logs_bucket
|
attr_accessor :logs_bucket
|
||||||
|
|
||||||
|
# Output only. The 'Build' name with format: `projects/`project`/locations/`
|
||||||
|
# location`/builds/`build``, where `build` is a unique identifier generated by
|
||||||
|
# the service.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
# Optional arguments to enable specific features of builds.
|
# Optional arguments to enable specific features of builds.
|
||||||
# Corresponds to the JSON property `options`
|
# Corresponds to the JSON property `options`
|
||||||
# @return [Google::Apis::CloudbuildV1::BuildOptions]
|
# @return [Google::Apis::CloudbuildV1::BuildOptions]
|
||||||
|
@ -283,6 +290,7 @@ module Google
|
||||||
@images = args[:images] if args.key?(:images)
|
@images = args[:images] if args.key?(:images)
|
||||||
@log_url = args[:log_url] if args.key?(:log_url)
|
@log_url = args[:log_url] if args.key?(:log_url)
|
||||||
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
|
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
@options = args[:options] if args.key?(:options)
|
@options = args[:options] if args.key?(:options)
|
||||||
@project_id = args[:project_id] if args.key?(:project_id)
|
@project_id = args[:project_id] if args.key?(:project_id)
|
||||||
@queue_ttl = args[:queue_ttl] if args.key?(:queue_ttl)
|
@queue_ttl = args[:queue_ttl] if args.key?(:queue_ttl)
|
||||||
|
@ -645,7 +653,7 @@ module Google
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
# Substitutions for Build resource. The keys must match the following regular
|
# Substitutions for Build resource. The keys must match the following regular
|
||||||
# expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the keys in bindings.
|
# expression: `^_[A-Z0-9_]+$`.
|
||||||
# Corresponds to the JSON property `substitutions`
|
# Corresponds to the JSON property `substitutions`
|
||||||
# @return [Hash<String,String>]
|
# @return [Hash<String,String>]
|
||||||
attr_accessor :substitutions
|
attr_accessor :substitutions
|
||||||
|
@ -718,12 +726,31 @@ module Google
|
||||||
class CancelBuildRequest
|
class CancelBuildRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Required. ID of the build.
|
||||||
|
# Corresponds to the JSON property `id`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :id
|
||||||
|
|
||||||
|
# The name of the `Build` to retrieve. Format: `projects/`project`/locations/`
|
||||||
|
# location`/builds/`build``
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# Required. ID of the project.
|
||||||
|
# Corresponds to the JSON property `projectId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :project_id
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@id = args[:id] if args.key?(:id)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@project_id = args[:project_id] if args.key?(:project_id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -740,6 +767,40 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Request to create a new build.
|
||||||
|
class CreateBuildRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A build resource in the Cloud Build API. At a high level, a `Build` describes
|
||||||
|
# where to find source code, how to build it (for example, the builder image to
|
||||||
|
# run on the source), and where to store the built artifacts. Fields can include
|
||||||
|
# the following variables, which will be expanded when the build is created: - $
|
||||||
|
# PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of
|
||||||
|
# the build. - $REPO_NAME: the source repository name specified by RepoSource. -
|
||||||
|
# $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag
|
||||||
|
# name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA
|
||||||
|
# specified by RepoSource or resolved from the specified branch or tag. - $
|
||||||
|
# SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
|
||||||
|
# Corresponds to the JSON property `build`
|
||||||
|
# @return [Google::Apis::CloudbuildV1::Build]
|
||||||
|
attr_accessor :build
|
||||||
|
|
||||||
|
# Required. ID of the project.
|
||||||
|
# Corresponds to the JSON property `projectId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :project_id
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@build = args[:build] if args.key?(:build)
|
||||||
|
@project_id = args[:project_id] if args.key?(:project_id)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# A generic empty message that you can re-use to avoid defining duplicated empty
|
# 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
|
# 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.
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
||||||
|
@ -1370,12 +1431,31 @@ module Google
|
||||||
class RetryBuildRequest
|
class RetryBuildRequest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Required. Build ID of the original build.
|
||||||
|
# Corresponds to the JSON property `id`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :id
|
||||||
|
|
||||||
|
# The name of the `Build` to retry. Format: `projects/`project`/locations/`
|
||||||
|
# location`/builds/`build``
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
|
# Required. ID of the project.
|
||||||
|
# Corresponds to the JSON property `projectId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :project_id
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@id = args[:id] if args.key?(:id)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@project_id = args[:project_id] if args.key?(:project_id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -88,6 +88,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class CreateBuildRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class Empty
|
class Empty
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -296,6 +302,7 @@ module Google
|
||||||
collection :images, as: 'images'
|
collection :images, as: 'images'
|
||||||
property :log_url, as: 'logUrl'
|
property :log_url, as: 'logUrl'
|
||||||
property :logs_bucket, as: 'logsBucket'
|
property :logs_bucket, as: 'logsBucket'
|
||||||
|
property :name, as: 'name'
|
||||||
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
|
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
|
||||||
|
|
||||||
property :project_id, as: 'projectId'
|
property :project_id, as: 'projectId'
|
||||||
|
@ -406,6 +413,9 @@ module Google
|
||||||
class CancelBuildRequest
|
class CancelBuildRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :project_id, as: 'projectId'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -415,6 +425,15 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class CreateBuildRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
||||||
|
|
||||||
|
property :project_id, as: 'projectId'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Empty
|
class Empty
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -595,6 +614,9 @@ module Google
|
||||||
class RetryBuildRequest
|
class RetryBuildRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :project_id, as: 'projectId'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -160,6 +160,9 @@ module Google
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# Required. ID of the project.
|
# Required. ID of the project.
|
||||||
# @param [Google::Apis::CloudbuildV1::Build] build_object
|
# @param [Google::Apis::CloudbuildV1::Build] build_object
|
||||||
|
# @param [String] parent
|
||||||
|
# The parent resource where this build will be created. Format: `projects/`
|
||||||
|
# project`/locations/`location``
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -177,13 +180,14 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def create_project_build(project_id, build_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
def create_project_build(project_id, build_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
|
command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
|
||||||
command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
|
command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||||
command.request_object = build_object
|
command.request_object = build_object
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
||||||
command.response_class = Google::Apis::CloudbuildV1::Operation
|
command.response_class = Google::Apis::CloudbuildV1::Operation
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.query['parent'] = parent unless parent.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
|
@ -196,6 +200,9 @@ module Google
|
||||||
# Required. ID of the project.
|
# Required. ID of the project.
|
||||||
# @param [String] id
|
# @param [String] id
|
||||||
# Required. ID of the build.
|
# Required. ID of the build.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the `Build` to retrieve. Format: `projects/`project`/locations/`
|
||||||
|
# location`/builds/`build``
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -213,12 +220,13 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_project_build(project_id, id, fields: nil, quota_user: nil, options: nil, &block)
|
def get_project_build(project_id, id, name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
|
command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||||
command.response_class = Google::Apis::CloudbuildV1::Build
|
command.response_class = Google::Apis::CloudbuildV1::Build
|
||||||
command.params['projectId'] = project_id unless project_id.nil?
|
command.params['projectId'] = project_id unless project_id.nil?
|
||||||
command.params['id'] = id unless id.nil?
|
command.params['id'] = id unless id.nil?
|
||||||
|
command.query['name'] = name unless name.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
|
@ -234,6 +242,9 @@ module Google
|
||||||
# Number of results to return in the list.
|
# Number of results to return in the list.
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# Token to provide to skip to a particular spot in the list.
|
# Token to provide to skip to a particular spot in the list.
|
||||||
|
# @param [String] parent
|
||||||
|
# The parent of the collection of `Builds`. Format: `projects/`project`/
|
||||||
|
# locations/location`
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -251,7 +262,7 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def list_project_builds(project_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
def list_project_builds(project_id, filter: nil, page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
|
command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
|
||||||
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
|
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
|
||||||
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
|
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
|
||||||
|
@ -259,6 +270,7 @@ module Google
|
||||||
command.query['filter'] = filter unless filter.nil?
|
command.query['filter'] = filter unless filter.nil?
|
||||||
command.query['pageSize'] = page_size unless page_size.nil?
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.nil?
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['parent'] = parent unless parent.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
|
@ -315,6 +327,208 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Cancels a build in progress.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the `Build` to retrieve. Format: `projects/`project`/locations/`
|
||||||
|
# location`/builds/`build``
|
||||||
|
# @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::Build]
|
||||||
|
#
|
||||||
|
# @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_build(name, cancel_build_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::CancelBuildRequest::Representation
|
||||||
|
command.request_object = cancel_build_request_object
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::Build
|
||||||
|
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
|
||||||
|
|
||||||
|
# Starts a build with the specified configuration. This method returns a long-
|
||||||
|
# running `Operation`, which includes the build ID. Pass the build ID to `
|
||||||
|
# GetBuild` to determine the build status (such as `SUCCESS` or `FAILURE`).
|
||||||
|
# @param [String] parent
|
||||||
|
# The parent resource where this build will be created. Format: `projects/`
|
||||||
|
# project`/locations/`location``
|
||||||
|
# @param [Google::Apis::CloudbuildV1::CreateBuildRequest] create_build_request_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::Operation]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def create_build(parent, create_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+parent}/builds', options)
|
||||||
|
command.request_representation = Google::Apis::CloudbuildV1::CreateBuildRequest::Representation
|
||||||
|
command.request_object = create_build_request_object
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::Operation
|
||||||
|
command.params['parent'] = parent unless parent.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Returns information about a previously requested build. The `Build` that is
|
||||||
|
# returned includes its status (such as `SUCCESS`, `FAILURE`, or `WORKING`), and
|
||||||
|
# timing information.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the `Build` to retrieve. Format: `projects/`project`/locations/`
|
||||||
|
# location`/builds/`build``
|
||||||
|
# @param [String] id
|
||||||
|
# Required. ID of the build.
|
||||||
|
# @param [String] project_id
|
||||||
|
# Required. ID of the 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::CloudbuildV1::Build] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::Build]
|
||||||
|
#
|
||||||
|
# @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_build(name, id: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::Build
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['id'] = id unless id.nil?
|
||||||
|
command.query['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Lists previously requested builds. Previously requested builds may still be in-
|
||||||
|
# progress, or may have finished successfully or unsuccessfully.
|
||||||
|
# @param [String] parent
|
||||||
|
# The parent of the collection of `Builds`. Format: `projects/`project`/
|
||||||
|
# locations/location`
|
||||||
|
# @param [String] filter
|
||||||
|
# The raw filter text to constrain the results.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Number of results to return in the list.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Token to provide to skip to a particular spot in the list.
|
||||||
|
# @param [String] project_id
|
||||||
|
# Required. ID of the 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::CloudbuildV1::ListBuildsResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::ListBuildsResponse]
|
||||||
|
#
|
||||||
|
# @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_builds(parent, filter: nil, page_size: nil, page_token: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+parent}/builds', options)
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
|
||||||
|
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['projectId'] = project_id unless project_id.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Creates a new build based on the specified build. This method creates a new
|
||||||
|
# build using the original build request, which may or may not result in an
|
||||||
|
# identical build. For triggered builds: * Triggered builds resolve to a precise
|
||||||
|
# revision; therefore a retry of a triggered build will result in a build that
|
||||||
|
# uses the same revision. For non-triggered builds that specify `RepoSource`: *
|
||||||
|
# If the original build built from the tip of a branch, the retried build will
|
||||||
|
# build from the tip of that branch, which may not be the same revision as the
|
||||||
|
# original build. * If the original build specified a commit sha or revision ID,
|
||||||
|
# the retried build will use the identical source. For builds that specify `
|
||||||
|
# StorageSource`: * If the original build pulled source from Google Cloud
|
||||||
|
# Storage without specifying the generation of the object, the new build will
|
||||||
|
# use the current object, which may be different from the original build source.
|
||||||
|
# * If the original build pulled source from Cloud Storage and specified the
|
||||||
|
# generation of the object, the new build will attempt to use the same object,
|
||||||
|
# which may or may not be available depending on the bucket's lifecycle
|
||||||
|
# management settings.
|
||||||
|
# @param [String] name
|
||||||
|
# The name of the `Build` to retry. Format: `projects/`project`/locations/`
|
||||||
|
# location`/builds/`build``
|
||||||
|
# @param [Google::Apis::CloudbuildV1::RetryBuildRequest] retry_build_request_object
|
||||||
|
# @param [String] fields
|
||||||
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
# @param [String] quota_user
|
||||||
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
|
# @param [Google::Apis::RequestOptions] options
|
||||||
|
# Request-specific options
|
||||||
|
#
|
||||||
|
# @yield [result, err] Result & error if block supplied
|
||||||
|
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudbuildV1::Operation]
|
||||||
|
#
|
||||||
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||||
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||||
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
|
def retry_project_location_build(name, retry_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+name}:retry', options)
|
||||||
|
command.request_representation = Google::Apis::CloudbuildV1::RetryBuildRequest::Representation
|
||||||
|
command.request_object = retry_build_request_object
|
||||||
|
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::CloudbuildV1::Operation
|
||||||
|
command.params['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
|
||||||
|
|
||||||
# Starts asynchronous cancellation on a long-running operation. The server makes
|
# 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
|
# 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`.
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/cloud-build/docs/
|
# @see https://cloud.google.com/cloud-build/docs/
|
||||||
module CloudbuildV1alpha1
|
module CloudbuildV1alpha1
|
||||||
VERSION = 'V1alpha1'
|
VERSION = 'V1alpha1'
|
||||||
REVISION = '20200824'
|
REVISION = '20200831'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -177,6 +177,13 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :logs_bucket
|
attr_accessor :logs_bucket
|
||||||
|
|
||||||
|
# Output only. The 'Build' name with format: `projects/`project`/locations/`
|
||||||
|
# location`/builds/`build``, where `build` is a unique identifier generated by
|
||||||
|
# the service.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
# Optional arguments to enable specific features of builds.
|
# Optional arguments to enable specific features of builds.
|
||||||
# Corresponds to the JSON property `options`
|
# Corresponds to the JSON property `options`
|
||||||
# @return [Google::Apis::CloudbuildV1alpha1::BuildOptions]
|
# @return [Google::Apis::CloudbuildV1alpha1::BuildOptions]
|
||||||
|
@ -283,6 +290,7 @@ module Google
|
||||||
@images = args[:images] if args.key?(:images)
|
@images = args[:images] if args.key?(:images)
|
||||||
@log_url = args[:log_url] if args.key?(:log_url)
|
@log_url = args[:log_url] if args.key?(:log_url)
|
||||||
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
|
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
@options = args[:options] if args.key?(:options)
|
@options = args[:options] if args.key?(:options)
|
||||||
@project_id = args[:project_id] if args.key?(:project_id)
|
@project_id = args[:project_id] if args.key?(:project_id)
|
||||||
@queue_ttl = args[:queue_ttl] if args.key?(:queue_ttl)
|
@queue_ttl = args[:queue_ttl] if args.key?(:queue_ttl)
|
||||||
|
|
|
@ -272,6 +272,7 @@ module Google
|
||||||
collection :images, as: 'images'
|
collection :images, as: 'images'
|
||||||
property :log_url, as: 'logUrl'
|
property :log_url, as: 'logUrl'
|
||||||
property :logs_bucket, as: 'logsBucket'
|
property :logs_bucket, as: 'logsBucket'
|
||||||
|
property :name, as: 'name'
|
||||||
property :options, as: 'options', class: Google::Apis::CloudbuildV1alpha1::BuildOptions, decorator: Google::Apis::CloudbuildV1alpha1::BuildOptions::Representation
|
property :options, as: 'options', class: Google::Apis::CloudbuildV1alpha1::BuildOptions, decorator: Google::Apis::CloudbuildV1alpha1::BuildOptions::Representation
|
||||||
|
|
||||||
property :project_id, as: 'projectId'
|
property :project_id, as: 'projectId'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/cloud-build/docs/
|
# @see https://cloud.google.com/cloud-build/docs/
|
||||||
module CloudbuildV1alpha2
|
module CloudbuildV1alpha2
|
||||||
VERSION = 'V1alpha2'
|
VERSION = 'V1alpha2'
|
||||||
REVISION = '20200824'
|
REVISION = '20200831'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -177,6 +177,13 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :logs_bucket
|
attr_accessor :logs_bucket
|
||||||
|
|
||||||
|
# Output only. The 'Build' name with format: `projects/`project`/locations/`
|
||||||
|
# location`/builds/`build``, where `build` is a unique identifier generated by
|
||||||
|
# the service.
|
||||||
|
# Corresponds to the JSON property `name`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :name
|
||||||
|
|
||||||
# Optional arguments to enable specific features of builds.
|
# Optional arguments to enable specific features of builds.
|
||||||
# Corresponds to the JSON property `options`
|
# Corresponds to the JSON property `options`
|
||||||
# @return [Google::Apis::CloudbuildV1alpha2::BuildOptions]
|
# @return [Google::Apis::CloudbuildV1alpha2::BuildOptions]
|
||||||
|
@ -283,6 +290,7 @@ module Google
|
||||||
@images = args[:images] if args.key?(:images)
|
@images = args[:images] if args.key?(:images)
|
||||||
@log_url = args[:log_url] if args.key?(:log_url)
|
@log_url = args[:log_url] if args.key?(:log_url)
|
||||||
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
|
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
|
||||||
|
@name = args[:name] if args.key?(:name)
|
||||||
@options = args[:options] if args.key?(:options)
|
@options = args[:options] if args.key?(:options)
|
||||||
@project_id = args[:project_id] if args.key?(:project_id)
|
@project_id = args[:project_id] if args.key?(:project_id)
|
||||||
@queue_ttl = args[:queue_ttl] if args.key?(:queue_ttl)
|
@queue_ttl = args[:queue_ttl] if args.key?(:queue_ttl)
|
||||||
|
|
|
@ -272,6 +272,7 @@ module Google
|
||||||
collection :images, as: 'images'
|
collection :images, as: 'images'
|
||||||
property :log_url, as: 'logUrl'
|
property :log_url, as: 'logUrl'
|
||||||
property :logs_bucket, as: 'logsBucket'
|
property :logs_bucket, as: 'logsBucket'
|
||||||
|
property :name, as: 'name'
|
||||||
property :options, as: 'options', class: Google::Apis::CloudbuildV1alpha2::BuildOptions, decorator: Google::Apis::CloudbuildV1alpha2::BuildOptions::Representation
|
property :options, as: 'options', class: Google::Apis::CloudbuildV1alpha2::BuildOptions, decorator: Google::Apis::CloudbuildV1alpha2::BuildOptions::Representation
|
||||||
|
|
||||||
property :project_id, as: 'projectId'
|
property :project_id, as: 'projectId'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/error-reporting/
|
# @see https://cloud.google.com/error-reporting/
|
||||||
module ClouderrorreportingV1beta1
|
module ClouderrorreportingV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20200806'
|
REVISION = '20200827'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -25,7 +25,10 @@ module Google
|
||||||
# @see https://cloud.google.com/identity/
|
# @see https://cloud.google.com/identity/
|
||||||
module CloudidentityV1
|
module CloudidentityV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200814'
|
REVISION = '20200908'
|
||||||
|
|
||||||
|
# See your device details
|
||||||
|
AUTH_CLOUD_IDENTITY_DEVICES_LOOKUP = 'https://www.googleapis.com/auth/cloud-identity.devices.lookup'
|
||||||
|
|
||||||
# See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group
|
# See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group
|
||||||
AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups'
|
AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups'
|
||||||
|
|
|
@ -97,6 +97,29 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Request message for approving the device to access user data.
|
||||||
|
class GoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the customer. If you're using this API for your own organization, use `
|
||||||
|
# customers/my_customer` If you're using this API to manage another organization,
|
||||||
|
# use `customers/`customer_id``, where customer_id is the customer to whom the
|
||||||
|
# device belongs.
|
||||||
|
# Corresponds to the JSON property `customer`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :customer
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@customer = args[:customer] if args.key?(:customer)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Response message for approving the device to access user data.
|
# Response message for approving the device to access user data.
|
||||||
class GoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse
|
class GoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -117,6 +140,29 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Request message for blocking account on device.
|
||||||
|
class GoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the customer. If you're using this API for your own organization, use `
|
||||||
|
# customers/my_customer` If you're using this API to manage another organization,
|
||||||
|
# use `customers/`customer_id``, where customer_id is the customer to whom the
|
||||||
|
# device belongs.
|
||||||
|
# Corresponds to the JSON property `customer`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :customer
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@customer = args[:customer] if args.key?(:customer)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Response message for blocking the device from accessing user data.
|
# Response message for blocking the device from accessing user data.
|
||||||
class GoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse
|
class GoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -137,6 +183,29 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Request message for cancelling an unfinished device wipe.
|
||||||
|
class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the customer. If you're using this API for your own organization, use `
|
||||||
|
# customers/my_customer` If you're using this API to manage another organization,
|
||||||
|
# use `customers/`customer_id``, where customer_id is the customer to whom the
|
||||||
|
# device belongs.
|
||||||
|
# Corresponds to the JSON property `customer`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :customer
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@customer = args[:customer] if args.key?(:customer)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Response message for cancelling an unfinished device wipe.
|
# Response message for cancelling an unfinished device wipe.
|
||||||
class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse
|
class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -158,6 +227,29 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Request message for cancelling an unfinished user account wipe.
|
||||||
|
class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the customer. If you're using this API for your own organization, use `
|
||||||
|
# customers/my_customer` If you're using this API to manage another organization,
|
||||||
|
# use `customers/`customer_id``, where customer_id is the customer to whom the
|
||||||
|
# device belongs.
|
||||||
|
# Corresponds to the JSON property `customer`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :customer
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@customer = args[:customer] if args.key?(:customer)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Response message for cancelling an unfinished user account wipe.
|
# Response message for cancelling an unfinished user account wipe.
|
||||||
class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse
|
class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -210,7 +302,10 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :etag
|
attr_accessor :etag
|
||||||
|
|
||||||
# The Health score of the resource
|
# The Health score of the resource. The Health score is the callers
|
||||||
|
# specification of the condition of the device from a usability point of view.
|
||||||
|
# For example, a third-party device management provider may specify a health
|
||||||
|
# score based on its compliance with organizational policies.
|
||||||
# Corresponds to the JSON property `healthScore`
|
# Corresponds to the JSON property `healthScore`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :health_score
|
attr_accessor :health_score
|
||||||
|
@ -235,7 +330,17 @@ module Google
|
||||||
# Output only. [Resource name](https://cloud.google.com/apis/design/
|
# Output only. [Resource name](https://cloud.google.com/apis/design/
|
||||||
# resource_names) of the ClientState in format: `devices/`device_id`/deviceUsers/
|
# resource_names) of the ClientState in format: `devices/`device_id`/deviceUsers/
|
||||||
# `device_user_id`/clientState/`partner_id``, where partner_id corresponds to
|
# `device_user_id`/clientState/`partner_id``, where partner_id corresponds to
|
||||||
# the partner storing the data.
|
# the partner storing the data. For partners belonging to the "BeyondCorp
|
||||||
|
# Alliance", this is the partner ID specified to you by Google. For all other
|
||||||
|
# callers, this is a string of the form: ``customer_id`-suffix`, where `
|
||||||
|
# customer_id` is your customer ID. The *suffix* is any string the caller
|
||||||
|
# specifies. This string will be displayed verbatim in the administration
|
||||||
|
# console. This suffix is used in setting up Custom Access Levels in Context-
|
||||||
|
# Aware Access. Your organization's customer ID can be obtained from the URL: `
|
||||||
|
# GET https://www.googleapis.com/admin/directory/v1/customers/my_customer` The `
|
||||||
|
# id` field in the response contains the customer ID starting with the letter 'C'
|
||||||
|
# . The customer ID to be used in this API is the string after the letter 'C' (
|
||||||
|
# not including 'C')
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
@ -572,6 +677,140 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Response message that is returned in ListClientStates.
|
||||||
|
class GoogleAppsCloudidentityDevicesV1ListClientStatesResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Client states meeting the list restrictions.
|
||||||
|
# Corresponds to the JSON property `clientStates`
|
||||||
|
# @return [Array<Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ClientState>]
|
||||||
|
attr_accessor :client_states
|
||||||
|
|
||||||
|
# Token to retrieve the next page of results. Empty if there are no more results.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@client_states = args[:client_states] if args.key?(:client_states)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response message that is returned from the ListDeviceUsers method.
|
||||||
|
class GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Devices meeting the list restrictions.
|
||||||
|
# Corresponds to the JSON property `deviceUsers`
|
||||||
|
# @return [Array<Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1DeviceUser>]
|
||||||
|
attr_accessor :device_users
|
||||||
|
|
||||||
|
# Token to retrieve the next page of results. Empty if there are no more results.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@device_users = args[:device_users] if args.key?(:device_users)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response message that is returned from the ListDevices method.
|
||||||
|
class GoogleAppsCloudidentityDevicesV1ListDevicesResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Devices meeting the list restrictions.
|
||||||
|
# Corresponds to the JSON property `devices`
|
||||||
|
# @return [Array<Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1Device>]
|
||||||
|
attr_accessor :devices
|
||||||
|
|
||||||
|
# Token to retrieve the next page of results. Empty if there are no more results.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@devices = args[:devices] if args.key?(:devices)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Response containing resource names of the DeviceUsers associated with the
|
||||||
|
# caller's credentials.
|
||||||
|
class GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The obfuscated customer Id that may be passed back to other Devices API
|
||||||
|
# methods such as List, Get, etc.
|
||||||
|
# Corresponds to the JSON property `customer`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :customer
|
||||||
|
|
||||||
|
# [Resource names](https://cloud.google.com/apis/design/resource_names) of the
|
||||||
|
# DeviceUsers in the format: `devices/`device_id`/deviceUsers/`user_resource_id``
|
||||||
|
# , where device_id is the unique ID assigned to a Device and user_resource_id
|
||||||
|
# is the unique user ID
|
||||||
|
# Corresponds to the JSON property `names`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :names
|
||||||
|
|
||||||
|
# Token to retrieve the next page of results. Empty if there are no more results.
|
||||||
|
# Corresponds to the JSON property `nextPageToken`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :next_page_token
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@customer = args[:customer] if args.key?(:customer)
|
||||||
|
@names = args[:names] if args.key?(:names)
|
||||||
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Request message for wiping all data on the device.
|
||||||
|
class GoogleAppsCloudidentityDevicesV1WipeDeviceRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the customer. If you're using this API for your own organization, use `
|
||||||
|
# customers/my_customer` If you're using this API to manage another organization,
|
||||||
|
# use `customers/`customer_id``, where customer_id is the customer to whom the
|
||||||
|
# device belongs.
|
||||||
|
# Corresponds to the JSON property `customer`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :customer
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@customer = args[:customer] if args.key?(:customer)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Response message for wiping all data on the device.
|
# Response message for wiping all data on the device.
|
||||||
class GoogleAppsCloudidentityDevicesV1WipeDeviceResponse
|
class GoogleAppsCloudidentityDevicesV1WipeDeviceResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -593,6 +832,29 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Request message for starting an account wipe on device.
|
||||||
|
class GoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the customer. If you're using this API for your own organization, use `
|
||||||
|
# customers/my_customer` If you're using this API to manage another organization,
|
||||||
|
# use `customers/`customer_id``, where customer_id is the customer to whom the
|
||||||
|
# device belongs.
|
||||||
|
# Corresponds to the JSON property `customer`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :customer
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@customer = args[:customer] if args.key?(:customer)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Response message for wiping the user's account from the device.
|
# Response message for wiping the user's account from the device.
|
||||||
class GoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse
|
class GoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -812,6 +1074,11 @@ module Google
|
||||||
# @return [Array<Google::Apis::CloudidentityV1::MembershipRole>]
|
# @return [Array<Google::Apis::CloudidentityV1::MembershipRole>]
|
||||||
attr_accessor :roles
|
attr_accessor :roles
|
||||||
|
|
||||||
|
# Output only. The type of the membership.
|
||||||
|
# Corresponds to the JSON property `type`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :type
|
||||||
|
|
||||||
# Output only. Last updated timestamp of the Membership. Output only.
|
# Output only. Last updated timestamp of the Membership. Output only.
|
||||||
# Corresponds to the JSON property `updateTime`
|
# Corresponds to the JSON property `updateTime`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -827,6 +1094,7 @@ module Google
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
@preferred_member_key = args[:preferred_member_key] if args.key?(:preferred_member_key)
|
@preferred_member_key = args[:preferred_member_key] if args.key?(:preferred_member_key)
|
||||||
@roles = args[:roles] if args.key?(:roles)
|
@roles = args[:roles] if args.key?(:roles)
|
||||||
|
@type = args[:type] if args.key?(:type)
|
||||||
@update_time = args[:update_time] if args.key?(:update_time)
|
@update_time = args[:update_time] if args.key?(:update_time)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -34,24 +34,48 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class GoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse
|
class GoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class GoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse
|
class GoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse
|
class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse
|
class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -82,12 +106,48 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleAppsCloudidentityDevicesV1ListClientStatesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleAppsCloudidentityDevicesV1ListDevicesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleAppsCloudidentityDevicesV1WipeDeviceRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class GoogleAppsCloudidentityDevicesV1WipeDeviceResponse
|
class GoogleAppsCloudidentityDevicesV1WipeDeviceResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class GoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse
|
class GoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -172,6 +232,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :customer, as: 'customer'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class GoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse
|
class GoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -180,6 +247,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :customer, as: 'customer'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class GoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse
|
class GoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -188,6 +262,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :customer, as: 'customer'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse
|
class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -196,6 +277,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :customer, as: 'customer'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse
|
class GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -283,6 +371,49 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleAppsCloudidentityDevicesV1ListClientStatesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :client_states, as: 'clientStates', class: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ClientState, decorator: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ClientState::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :device_users, as: 'deviceUsers', class: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1DeviceUser, decorator: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1DeviceUser::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleAppsCloudidentityDevicesV1ListDevicesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :devices, as: 'devices', class: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1Device, decorator: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1Device::Representation
|
||||||
|
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :customer, as: 'customer'
|
||||||
|
collection :names, as: 'names'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class GoogleAppsCloudidentityDevicesV1WipeDeviceRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :customer, as: 'customer'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class GoogleAppsCloudidentityDevicesV1WipeDeviceResponse
|
class GoogleAppsCloudidentityDevicesV1WipeDeviceResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -291,6 +422,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class GoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :customer, as: 'customer'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class GoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse
|
class GoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -355,6 +493,7 @@ module Google
|
||||||
|
|
||||||
collection :roles, as: 'roles', class: Google::Apis::CloudidentityV1::MembershipRole, decorator: Google::Apis::CloudidentityV1::MembershipRole::Representation
|
collection :roles, as: 'roles', class: Google::Apis::CloudidentityV1::MembershipRole, decorator: Google::Apis::CloudidentityV1::MembershipRole::Representation
|
||||||
|
|
||||||
|
property :type, as: 'type'
|
||||||
property :update_time, as: 'updateTime'
|
property :update_time, as: 'updateTime'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -47,6 +47,765 @@ module Google
|
||||||
@batch_path = 'batch'
|
@batch_path = 'batch'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Cancels an unfinished device wipe. This operation can be used to cancel device
|
||||||
|
# wipe in the gap between the wipe operation returning success and the device
|
||||||
|
# being wiped. This operation is possible when the device is in a "pending wipe"
|
||||||
|
# state. The device enters the "pending wipe" state when a wipe device command
|
||||||
|
# is issued, but has not yet been sent to the device. The cancel wipe will fail
|
||||||
|
# if the wipe command has already been issued to the device.
|
||||||
|
# @param [String] name
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the Device in format: `devices/`device_id``, where device_id is the unique
|
||||||
|
# ID assigned to the Device, and device_user_id is the unique ID assigned to the
|
||||||
|
# User.
|
||||||
|
# @param [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest] google_apps_cloudidentity_devices_v1_cancel_wipe_device_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::CloudidentityV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudidentityV1::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 cancel_device_wipe(name, google_apps_cloudidentity_devices_v1_cancel_wipe_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+name}:cancelWipe', options)
|
||||||
|
command.request_representation = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest::Representation
|
||||||
|
command.request_object = google_apps_cloudidentity_devices_v1_cancel_wipe_device_request_object
|
||||||
|
command.response_representation = Google::Apis::CloudidentityV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::CloudidentityV1::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
|
||||||
|
|
||||||
|
# Creates a device. Only company-owned device may be created.
|
||||||
|
# @param [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1Device] google_apps_cloudidentity_devices_v1_device_object
|
||||||
|
# @param [String] customer
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the customer. If you're using this API for your own organization, use `
|
||||||
|
# customers/my_customer` If you're using this API to manage another organization,
|
||||||
|
# use `customers/`customer_id``, where customer_id is the customer to whom the
|
||||||
|
# device belongs.
|
||||||
|
# @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::CloudidentityV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudidentityV1::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_device(google_apps_cloudidentity_devices_v1_device_object = nil, customer: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/devices', options)
|
||||||
|
command.request_representation = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1Device::Representation
|
||||||
|
command.request_object = google_apps_cloudidentity_devices_v1_device_object
|
||||||
|
command.response_representation = Google::Apis::CloudidentityV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::CloudidentityV1::Operation
|
||||||
|
command.query['customer'] = customer unless customer.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 the specified device.
|
||||||
|
# @param [String] name
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the Device in format: `devices/`device_id``, where device_id is the unique
|
||||||
|
# ID assigned to the Device.
|
||||||
|
# @param [String] customer
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the customer. If you're using this API for your own organization, use `
|
||||||
|
# customers/my_customer` If you're using this API to manage another organization,
|
||||||
|
# use `customers/`customer_id``, where customer_id is the customer to whom the
|
||||||
|
# device belongs.
|
||||||
|
# @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::CloudidentityV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudidentityV1::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_device(name, customer: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudidentityV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::CloudidentityV1::Operation
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['customer'] = customer unless customer.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Retrieves the specified device.
|
||||||
|
# @param [String] name
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the Device in the format: `devices/`device_id``, where device_id is the
|
||||||
|
# unique ID assigned to the Device.
|
||||||
|
# @param [String] customer
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the Customer in the format: `customers/`customer_id``, where customer_id is
|
||||||
|
# the customer to whom the device belongs. If you're using this API for your own
|
||||||
|
# organization, use `customers/my_customer`. If you're using this API to manage
|
||||||
|
# another organization, use `customers/`customer_id``, where customer_id is the
|
||||||
|
# customer to whom the device belongs.
|
||||||
|
# @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::CloudidentityV1::GoogleAppsCloudidentityDevicesV1Device] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1Device]
|
||||||
|
#
|
||||||
|
# @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_device(name, customer: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1Device::Representation
|
||||||
|
command.response_class = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1Device
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['customer'] = customer unless customer.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/Searches devices.
|
||||||
|
# @param [String] customer
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the customer in the format: `customers/`customer_id``, where customer_id is
|
||||||
|
# the customer to whom the device belongs. If you're using this API for your own
|
||||||
|
# organization, use `customers/my_customer`. If you're using this API to manage
|
||||||
|
# another organization, use `customers/`customer_id``, where customer_id is the
|
||||||
|
# customer to whom the device belongs.
|
||||||
|
# @param [String] filter
|
||||||
|
# Optional. Additional restrictions when fetching list of devices. [Help Center
|
||||||
|
# article link](https://support.google.com/a/answer/7549103)
|
||||||
|
# @param [String] order_by
|
||||||
|
# Optional. Order specification for devices in the response. Only one of the
|
||||||
|
# following field names may be used to specify the order: `create_time`, `
|
||||||
|
# last_sync_time`, `model`, `os_version`, `device_type` and `serial_number`. `
|
||||||
|
# desc` may be specified optionally at the end to specify results to be sorted
|
||||||
|
# in descending order. Default order is ascending.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Optional. The maximum number of Devices to return. If unspecified, at most 20
|
||||||
|
# Devices will be returned. The maximum value is 100; values above 100 will be
|
||||||
|
# coerced to 100.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Optional. A page token, received from a previous `ListDevices` call. Provide
|
||||||
|
# this to retrieve the subsequent page. When paginating, all other parameters
|
||||||
|
# provided to `ListDevices` must match the call that provided the page token.
|
||||||
|
# @param [String] view
|
||||||
|
# Optional. The view to use for the List request.
|
||||||
|
# @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::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ListDevicesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ListDevicesResponse]
|
||||||
|
#
|
||||||
|
# @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_devices(customer: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/devices', options)
|
||||||
|
command.response_representation = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ListDevicesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ListDevicesResponse
|
||||||
|
command.query['customer'] = customer unless customer.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['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
|
||||||
|
|
||||||
|
# Wipes all data on the specified device.
|
||||||
|
# @param [String] name
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the Device in format: `devices/`device_id`/deviceUsers/`device_user_id``,
|
||||||
|
# where device_id is the unique ID assigned to the Device, and device_user_id is
|
||||||
|
# the unique ID assigned to the User.
|
||||||
|
# @param [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1WipeDeviceRequest] google_apps_cloudidentity_devices_v1_wipe_device_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::CloudidentityV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudidentityV1::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 wipe_device(name, google_apps_cloudidentity_devices_v1_wipe_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+name}:wipe', options)
|
||||||
|
command.request_representation = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1WipeDeviceRequest::Representation
|
||||||
|
command.request_object = google_apps_cloudidentity_devices_v1_wipe_device_request_object
|
||||||
|
command.response_representation = Google::Apis::CloudidentityV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::CloudidentityV1::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
|
||||||
|
|
||||||
|
# Approves device to access user data.
|
||||||
|
# @param [String] name
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the Device in format: `devices/`device_id`/deviceUsers/`device_user_id``,
|
||||||
|
# where device_id is the unique ID assigned to the Device, and device_user_id is
|
||||||
|
# the unique ID assigned to the User.
|
||||||
|
# @param [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest] google_apps_cloudidentity_devices_v1_approve_device_user_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::CloudidentityV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudidentityV1::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 approve_device_device_user(name, google_apps_cloudidentity_devices_v1_approve_device_user_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+name}:approve', options)
|
||||||
|
command.request_representation = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest::Representation
|
||||||
|
command.request_object = google_apps_cloudidentity_devices_v1_approve_device_user_request_object
|
||||||
|
command.response_representation = Google::Apis::CloudidentityV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::CloudidentityV1::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
|
||||||
|
|
||||||
|
# Blocks device from accessing user data
|
||||||
|
# @param [String] name
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the Device in format: `devices/`device_id`/deviceUsers/`device_user_id``,
|
||||||
|
# where device_id is the unique ID assigned to the Device, and device_user_id is
|
||||||
|
# the unique ID assigned to the User.
|
||||||
|
# @param [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest] google_apps_cloudidentity_devices_v1_block_device_user_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::CloudidentityV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudidentityV1::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 block_device_device_user(name, google_apps_cloudidentity_devices_v1_block_device_user_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+name}:block', options)
|
||||||
|
command.request_representation = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest::Representation
|
||||||
|
command.request_object = google_apps_cloudidentity_devices_v1_block_device_user_request_object
|
||||||
|
command.response_representation = Google::Apis::CloudidentityV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::CloudidentityV1::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
|
||||||
|
|
||||||
|
# Cancels an unfinished user account wipe. This operation can be used to cancel
|
||||||
|
# device wipe in the gap between the wipe operation returning success and the
|
||||||
|
# device being wiped.
|
||||||
|
# @param [String] name
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the Device in format: `devices/`device_id`/deviceUsers/`device_user_id``,
|
||||||
|
# where device_id is the unique ID assigned to the Device, and device_user_id is
|
||||||
|
# the unique ID assigned to the User.
|
||||||
|
# @param [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest] google_apps_cloudidentity_devices_v1_cancel_wipe_device_user_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::CloudidentityV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudidentityV1::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 cancel_device_device_user_wipe(name, google_apps_cloudidentity_devices_v1_cancel_wipe_device_user_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+name}:cancelWipe', options)
|
||||||
|
command.request_representation = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest::Representation
|
||||||
|
command.request_object = google_apps_cloudidentity_devices_v1_cancel_wipe_device_user_request_object
|
||||||
|
command.response_representation = Google::Apis::CloudidentityV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::CloudidentityV1::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
|
||||||
|
|
||||||
|
# Deletes the specified DeviceUser. This also revokes the user's access to
|
||||||
|
# device data.
|
||||||
|
# @param [String] name
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the Device in format: `devices/`device_id`/deviceUsers/`device_user_id``,
|
||||||
|
# where device_id is the unique ID assigned to the Device, and device_user_id is
|
||||||
|
# the unique ID assigned to the User.
|
||||||
|
# @param [String] customer
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the customer. If you're using this API for your own organization, use `
|
||||||
|
# customers/my_customer` If you're using this API to manage another organization,
|
||||||
|
# use `customers/`customer_id``, where customer_id is the customer to whom the
|
||||||
|
# device belongs.
|
||||||
|
# @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::CloudidentityV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudidentityV1::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_device_device_user(name, customer: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudidentityV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::CloudidentityV1::Operation
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['customer'] = customer unless customer.nil?
|
||||||
|
command.query['fields'] = fields unless fields.nil?
|
||||||
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
|
execute_or_queue_command(command, &block)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Retrieves the specified DeviceUser
|
||||||
|
# @param [String] name
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the Device in format: `devices/`device_id`/deviceUsers/`device_user_id``,
|
||||||
|
# where device_id is the unique ID assigned to the Device, and device_user_id is
|
||||||
|
# the unique ID assigned to the User.
|
||||||
|
# @param [String] customer
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the customer. If you're using this API for your own organization, use `
|
||||||
|
# customers/my_customer` If you're using this API to manage another organization,
|
||||||
|
# use `customers/`customer_id``, where customer_id is the customer to whom the
|
||||||
|
# device belongs.
|
||||||
|
# @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::CloudidentityV1::GoogleAppsCloudidentityDevicesV1DeviceUser] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1DeviceUser]
|
||||||
|
#
|
||||||
|
# @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_device_device_user(name, customer: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1DeviceUser::Representation
|
||||||
|
command.response_class = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1DeviceUser
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['customer'] = customer unless customer.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/Searches DeviceUsers.
|
||||||
|
# @param [String] parent
|
||||||
|
# Required. To list all DeviceUsers, set this to "devices/-". To list all
|
||||||
|
# DeviceUsers owned by a device, set this to the resource name of the device.
|
||||||
|
# Format: devices/`device`
|
||||||
|
# @param [String] customer
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the customer. If you're using this API for your own organization, use `
|
||||||
|
# customers/my_customer` If you're using this API to manage another organization,
|
||||||
|
# use `customers/`customer_id``, where customer_id is the customer to whom the
|
||||||
|
# device belongs.
|
||||||
|
# @param [String] filter
|
||||||
|
# Optional. Additional restrictions when fetching list of devices. [HC article](
|
||||||
|
# https://support.google.com/a/answer/7549103)
|
||||||
|
# @param [String] order_by
|
||||||
|
# Optional. Order specification for devices in the response.
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# Optional. The maximum number of DeviceUsers to return. If unspecified, at most
|
||||||
|
# 5 DeviceUsers will be returned. The maximum value is 20; values above 20 will
|
||||||
|
# be coerced to 20.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Optional. A page token, received from a previous `ListDeviceUsers` call.
|
||||||
|
# Provide this to retrieve the subsequent page. When paginating, all other
|
||||||
|
# parameters provided to `ListBooks` must match the call that provided the 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::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse]
|
||||||
|
#
|
||||||
|
# @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_device_device_users(parent, customer: nil, 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}/deviceUsers', options)
|
||||||
|
command.response_representation = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse
|
||||||
|
command.params['parent'] = parent unless parent.nil?
|
||||||
|
command.query['customer'] = customer unless customer.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
|
||||||
|
|
||||||
|
# Looks up resource names of the DeviceUsers associated with the caller's
|
||||||
|
# credentials, as well as the properties provided in the request. This method
|
||||||
|
# must be called with end-user credentials with the scope: https://www.
|
||||||
|
# googleapis.com/auth/cloud-identity.devices.lookup If multiple properties are
|
||||||
|
# provided, only DeviceUsers having all of these properties are considered as
|
||||||
|
# matches - i.e. the query behaves like an AND. Different platforms require
|
||||||
|
# different amounts of information from the caller to ensure that the DeviceUser
|
||||||
|
# is uniquely identified. - iOS: No properties need to be passed, the caller's
|
||||||
|
# credentials are sufficient to identify the corresponding DeviceUser. - Android:
|
||||||
|
# Specifying the 'android_id' field is required. - Desktop: Specifying the '
|
||||||
|
# raw_resource_id' field is required.
|
||||||
|
# @param [String] parent
|
||||||
|
# Must be set to "devices/-/deviceUsers" to search across all DeviceUser
|
||||||
|
# belonging to the user.
|
||||||
|
# @param [String] android_id
|
||||||
|
# Android Id returned by [Settings.Secure#ANDROID_ID](https://developer.android.
|
||||||
|
# com/reference/android/provider/Settings.Secure.html#ANDROID_ID).
|
||||||
|
# @param [Fixnum] page_size
|
||||||
|
# The maximum number of DeviceUsers to return. If unspecified, at most 20
|
||||||
|
# DeviceUsers will be returned. The maximum value is 20; values above 20 will be
|
||||||
|
# coerced to 20.
|
||||||
|
# @param [String] page_token
|
||||||
|
# A page token, received from a previous `LookupDeviceUsers` call. Provide this
|
||||||
|
# to retrieve the subsequent page. When paginating, all other parameters
|
||||||
|
# provided to `LookupDeviceUsers` must match the call that provided the page
|
||||||
|
# token.
|
||||||
|
# @param [String] raw_resource_id
|
||||||
|
# Raw Resource Id used by Google Endpoint Verification. If the user is enrolled
|
||||||
|
# into Google Endpoint Verification, this id will be saved as the '
|
||||||
|
# device_resource_id' field in the following platform dependent files. Mac: ~/.
|
||||||
|
# secureConnect/context_aware_config.json Windows: C:\Users\%USERPROFILE%\.
|
||||||
|
# secureConnect\context_aware_config.json Linux: ~/.secureConnect/
|
||||||
|
# context_aware_config.json
|
||||||
|
# @param [String] user_id
|
||||||
|
# The user whose DeviceUser's resource name will be fetched. Must be set to 'me'
|
||||||
|
# to fetch the DeviceUser's resource name for the calling user.
|
||||||
|
# @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::CloudidentityV1::GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse]
|
||||||
|
#
|
||||||
|
# @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 lookup_device_device_user(parent, android_id: nil, page_size: nil, page_token: nil, raw_resource_id: nil, user_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+parent}:lookup', options)
|
||||||
|
command.response_representation = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse
|
||||||
|
command.params['parent'] = parent unless parent.nil?
|
||||||
|
command.query['androidId'] = android_id unless android_id.nil?
|
||||||
|
command.query['pageSize'] = page_size unless page_size.nil?
|
||||||
|
command.query['pageToken'] = page_token unless page_token.nil?
|
||||||
|
command.query['rawResourceId'] = raw_resource_id unless raw_resource_id.nil?
|
||||||
|
command.query['userId'] = user_id unless user_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
|
||||||
|
|
||||||
|
# Wipes the user's account on a device. Other data on the device that is not
|
||||||
|
# associated with the user's work account is not affected. For example, if a
|
||||||
|
# Gmail app is installed on a device that is used for personal and work purposes,
|
||||||
|
# and the user is logged in to the Gmail app with their personal account as
|
||||||
|
# well as their work account, wiping the "deviceUser" by their work
|
||||||
|
# administrator will not affect their personal account within Gmail or other
|
||||||
|
# apps such as Photos.
|
||||||
|
# @param [String] name
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the Device in format: `devices/`device_id`/deviceUsers/`device_user_id``,
|
||||||
|
# where device_id is the unique ID assigned to the Device, and device_user_id is
|
||||||
|
# the unique ID assigned to the User.
|
||||||
|
# @param [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest] google_apps_cloudidentity_devices_v1_wipe_device_user_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::CloudidentityV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudidentityV1::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 wipe_device_device_user(name, google_apps_cloudidentity_devices_v1_wipe_device_user_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, 'v1/{+name}:wipe', options)
|
||||||
|
command.request_representation = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest::Representation
|
||||||
|
command.request_object = google_apps_cloudidentity_devices_v1_wipe_device_user_request_object
|
||||||
|
command.response_representation = Google::Apis::CloudidentityV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::CloudidentityV1::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 client state for the device user
|
||||||
|
# @param [String] name
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the ClientState in format: `devices/`device_id`/deviceUsers/`device_user_id`
|
||||||
|
# /clientStates/`partner_id``, where device_id is the unique ID assigned to the
|
||||||
|
# Device, device_user_id is the unique ID assigned to the User and partner_id
|
||||||
|
# identifies the partner storing the data.
|
||||||
|
# @param [String] customer
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the customer. If you're using this API for your own organization, use `
|
||||||
|
# customers/my_customer` If you're using this API to manage another organization,
|
||||||
|
# use `customers/`customer_id``, where customer_id is the customer to whom the
|
||||||
|
# device belongs.
|
||||||
|
# @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::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ClientState] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ClientState]
|
||||||
|
#
|
||||||
|
# @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_device_device_user_client_state(name, customer: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
||||||
|
command.response_representation = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ClientState::Representation
|
||||||
|
command.response_class = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ClientState
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['customer'] = customer unless customer.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 the client states for the given search query.
|
||||||
|
# @param [String] parent
|
||||||
|
# Required. To list all ClientStates, set this to "devices/-/deviceUsers/-". To
|
||||||
|
# list all ClientStates owned by a DeviceUser, set this to the resource name of
|
||||||
|
# the DeviceUser. Format: devices/`device`/deviceUsers/`deviceUser`
|
||||||
|
# @param [String] customer
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the customer. If you're using this API for your own organization, use `
|
||||||
|
# customers/my_customer` If you're using this API to manage another organization,
|
||||||
|
# use `customers/`customer_id``, where customer_id is the customer to whom the
|
||||||
|
# device belongs.
|
||||||
|
# @param [String] filter
|
||||||
|
# Optional. Additional restrictions when fetching list of client states.
|
||||||
|
# @param [String] order_by
|
||||||
|
# Optional. Order specification for client states in the response.
|
||||||
|
# @param [String] page_token
|
||||||
|
# Optional. A page token, received from a previous `ListClientStates` call.
|
||||||
|
# Provide this to retrieve the subsequent page. When paginating, all other
|
||||||
|
# parameters provided to `ListClientStates` must match the call that provided
|
||||||
|
# the 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::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ListClientStatesResponse] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ListClientStatesResponse]
|
||||||
|
#
|
||||||
|
# @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_device_device_user_client_states(parent, customer: nil, filter: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:get, 'v1/{+parent}/clientStates', options)
|
||||||
|
command.response_representation = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ListClientStatesResponse::Representation
|
||||||
|
command.response_class = Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ListClientStatesResponse
|
||||||
|
command.params['parent'] = parent unless parent.nil?
|
||||||
|
command.query['customer'] = customer unless customer.nil?
|
||||||
|
command.query['filter'] = filter unless filter.nil?
|
||||||
|
command.query['orderBy'] = order_by unless order_by.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 client state for the device user
|
||||||
|
# @param [String] name
|
||||||
|
# Output only. [Resource name](https://cloud.google.com/apis/design/
|
||||||
|
# resource_names) of the ClientState in format: `devices/`device_id`/deviceUsers/
|
||||||
|
# `device_user_id`/clientState/`partner_id``, where partner_id corresponds to
|
||||||
|
# the partner storing the data. For partners belonging to the "BeyondCorp
|
||||||
|
# Alliance", this is the partner ID specified to you by Google. For all other
|
||||||
|
# callers, this is a string of the form: ``customer_id`-suffix`, where `
|
||||||
|
# customer_id` is your customer ID. The *suffix* is any string the caller
|
||||||
|
# specifies. This string will be displayed verbatim in the administration
|
||||||
|
# console. This suffix is used in setting up Custom Access Levels in Context-
|
||||||
|
# Aware Access. Your organization's customer ID can be obtained from the URL: `
|
||||||
|
# GET https://www.googleapis.com/admin/directory/v1/customers/my_customer` The `
|
||||||
|
# id` field in the response contains the customer ID starting with the letter 'C'
|
||||||
|
# . The customer ID to be used in this API is the string after the letter 'C' (
|
||||||
|
# not including 'C')
|
||||||
|
# @param [Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ClientState] google_apps_cloudidentity_devices_v1_client_state_object
|
||||||
|
# @param [String] customer
|
||||||
|
# Required. [Resource name](https://cloud.google.com/apis/design/resource_names)
|
||||||
|
# of the customer. If you're using this API for your own organization, use `
|
||||||
|
# customers/my_customer` If you're using this API to manage another organization,
|
||||||
|
# use `customers/`customer_id``, where customer_id is the customer to whom the
|
||||||
|
# device belongs.
|
||||||
|
# @param [String] update_mask
|
||||||
|
# Optional. Comma-separated list of fully qualified names of fields to be
|
||||||
|
# updated. If not specified, all updatable fields in ClientState are updated.
|
||||||
|
# @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::CloudidentityV1::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::CloudidentityV1::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_device_device_user_client_state(name, google_apps_cloudidentity_devices_v1_client_state_object = nil, customer: 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::CloudidentityV1::GoogleAppsCloudidentityDevicesV1ClientState::Representation
|
||||||
|
command.request_object = google_apps_cloudidentity_devices_v1_client_state_object
|
||||||
|
command.response_representation = Google::Apis::CloudidentityV1::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::CloudidentityV1::Operation
|
||||||
|
command.params['name'] = name unless name.nil?
|
||||||
|
command.query['customer'] = customer unless customer.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
|
||||||
|
|
||||||
# Creates a Group.
|
# Creates a Group.
|
||||||
# @param [Google::Apis::CloudidentityV1::Group] group_object
|
# @param [Google::Apis::CloudidentityV1::Group] group_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/identity/
|
# @see https://cloud.google.com/identity/
|
||||||
module CloudidentityV1beta1
|
module CloudidentityV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20200814'
|
REVISION = '20200908'
|
||||||
|
|
||||||
# See your device details
|
# See your device details
|
||||||
AUTH_CLOUD_IDENTITY_DEVICES_LOOKUP = 'https://www.googleapis.com/auth/cloud-identity.devices.lookup'
|
AUTH_CLOUD_IDENTITY_DEVICES_LOOKUP = 'https://www.googleapis.com/auth/cloud-identity.devices.lookup'
|
||||||
|
|
|
@ -985,7 +985,10 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :etag
|
attr_accessor :etag
|
||||||
|
|
||||||
# The Health score of the resource
|
# The Health score of the resource. The Health score is the callers
|
||||||
|
# specification of the condition of the device from a usability point of view.
|
||||||
|
# For example, a third-party device management provider may specify a health
|
||||||
|
# score based on its compliance with organizational policies.
|
||||||
# Corresponds to the JSON property `healthScore`
|
# Corresponds to the JSON property `healthScore`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :health_score
|
attr_accessor :health_score
|
||||||
|
@ -1010,7 +1013,17 @@ module Google
|
||||||
# Output only. [Resource name](https://cloud.google.com/apis/design/
|
# Output only. [Resource name](https://cloud.google.com/apis/design/
|
||||||
# resource_names) of the ClientState in format: `devices/`device_id`/deviceUsers/
|
# resource_names) of the ClientState in format: `devices/`device_id`/deviceUsers/
|
||||||
# `device_user_id`/clientState/`partner_id``, where partner_id corresponds to
|
# `device_user_id`/clientState/`partner_id``, where partner_id corresponds to
|
||||||
# the partner storing the data.
|
# the partner storing the data. For partners belonging to the "BeyondCorp
|
||||||
|
# Alliance", this is the partner ID specified to you by Google. For all other
|
||||||
|
# callers, this is a string of the form: ``customer_id`-suffix`, where `
|
||||||
|
# customer_id` is your customer ID. The *suffix* is any string the caller
|
||||||
|
# specifies. This string will be displayed verbatim in the administration
|
||||||
|
# console. This suffix is used in setting up Custom Access Levels in Context-
|
||||||
|
# Aware Access. Your organization's customer ID can be obtained from the URL: `
|
||||||
|
# GET https://www.googleapis.com/admin/directory/v1/customers/my_customer` The `
|
||||||
|
# id` field in the response contains the customer ID starting with the letter 'C'
|
||||||
|
# . The customer ID to be used in this API is the string after the letter 'C' (
|
||||||
|
# not including 'C')
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
@ -1430,13 +1443,13 @@ module Google
|
||||||
|
|
||||||
# Required. One or more label entries that apply to the Group. Currently
|
# Required. One or more label entries that apply to the Group. Currently
|
||||||
# supported labels contain a key with an empty value. Google Groups are the
|
# supported labels contain a key with an empty value. Google Groups are the
|
||||||
# default type of group and have a label with a key of 'cloudidentity.googleapis.
|
# default type of group and have a label with a key of `cloudidentity.googleapis.
|
||||||
# com/groups.discussion_forum' and an empty value. Existing Google Groups can
|
# com/groups.discussion_forum` and an empty value. Existing Google Groups can
|
||||||
# have an additional label with a key of 'cloudidentity.googleapis.com/groups.
|
# have an additional label with a key of `cloudidentity.googleapis.com/groups.
|
||||||
# security' and an empty value added to them. **This is an immutable change and
|
# security` and an empty value added to them. **This is an immutable change and
|
||||||
# the security label cannot be removed once added.** Dynamic groups have a label
|
# the security label cannot be removed once added.** Dynamic groups have a label
|
||||||
# with a key of `cloudidentity.googleapis.com/groups.dynamic`. Identity-mapped
|
# with a key of `cloudidentity.googleapis.com/groups.dynamic`. Identity-mapped
|
||||||
# groups for Cloud Search have a label with a key of 'system/groups/external'
|
# groups for Cloud Search have a label with a key of `system/groups/external`
|
||||||
# and an empty value. Examples: `"cloudidentity.googleapis.com/groups.
|
# and an empty value. Examples: `"cloudidentity.googleapis.com/groups.
|
||||||
# discussion_forum": ""` or `"system/groups/external": ""`.
|
# discussion_forum": ""` or `"system/groups/external": ""`.
|
||||||
# Corresponds to the JSON property `labels`
|
# Corresponds to the JSON property `labels`
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/iot
|
# @see https://cloud.google.com/iot
|
||||||
module CloudiotV1
|
module CloudiotV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200804'
|
REVISION = '20200901'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -67,6 +67,12 @@ module Google
|
||||||
class Binding
|
class Binding
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A client-specified ID for this binding. Expected to be globally unique to
|
||||||
|
# support the internal bindings-by-ID API.
|
||||||
|
# Corresponds to the JSON property `bindingId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :binding_id
|
||||||
|
|
||||||
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
||||||
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
||||||
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
||||||
|
@ -128,6 +134,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@binding_id = args[:binding_id] if args.key?(:binding_id)
|
||||||
@condition = args[:condition] if args.key?(:condition)
|
@condition = args[:condition] if args.key?(:condition)
|
||||||
@members = args[:members] if args.key?(:members)
|
@members = args[:members] if args.key?(:members)
|
||||||
@role = args[:role] if args.key?(:role)
|
@role = args[:role] if args.key?(:role)
|
||||||
|
|
|
@ -249,6 +249,7 @@ module Google
|
||||||
class Binding
|
class Binding
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :binding_id, as: 'bindingId'
|
||||||
property :condition, as: 'condition', class: Google::Apis::CloudiotV1::Expr, decorator: Google::Apis::CloudiotV1::Expr::Representation
|
property :condition, as: 'condition', class: Google::Apis::CloudiotV1::Expr, decorator: Google::Apis::CloudiotV1::Expr::Representation
|
||||||
|
|
||||||
collection :members, as: 'members'
|
collection :members, as: 'members'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/resource-manager
|
# @see https://cloud.google.com/resource-manager
|
||||||
module CloudresourcemanagerV1
|
module CloudresourcemanagerV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200810'
|
REVISION = '20200907'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -119,6 +119,12 @@ module Google
|
||||||
class Binding
|
class Binding
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A client-specified ID for this binding. Expected to be globally unique to
|
||||||
|
# support the internal bindings-by-ID API.
|
||||||
|
# Corresponds to the JSON property `bindingId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :binding_id
|
||||||
|
|
||||||
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
||||||
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
||||||
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
||||||
|
@ -180,6 +186,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@binding_id = args[:binding_id] if args.key?(:binding_id)
|
||||||
@condition = args[:condition] if args.key?(:condition)
|
@condition = args[:condition] if args.key?(:condition)
|
||||||
@members = args[:members] if args.key?(:members)
|
@members = args[:members] if args.key?(:members)
|
||||||
@role = args[:role] if args.key?(:role)
|
@role = args[:role] if args.key?(:role)
|
||||||
|
@ -1312,7 +1319,7 @@ module Google
|
||||||
# The optional user-assigned display name of the Project. When present it must
|
# The optional user-assigned display name of the Project. When present it must
|
||||||
# be between 4 to 30 characters. Allowed characters are: lowercase and uppercase
|
# be between 4 to 30 characters. Allowed characters are: lowercase and uppercase
|
||||||
# letters, numbers, hyphen, single-quote, double-quote, space, and exclamation
|
# letters, numbers, hyphen, single-quote, double-quote, space, and exclamation
|
||||||
# point. Example: My Project Read-write.
|
# point. Example: `My Project` Read-write.
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
@ -1327,12 +1334,12 @@ module Google
|
||||||
|
|
||||||
# The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase
|
# The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase
|
||||||
# letters, digits, or hyphens. It must start with a letter. Trailing hyphens are
|
# letters, digits, or hyphens. It must start with a letter. Trailing hyphens are
|
||||||
# prohibited. Example: tokyo-rain-123 Read-only after creation.
|
# prohibited. Example: `tokyo-rain-123` Read-only after creation.
|
||||||
# Corresponds to the JSON property `projectId`
|
# Corresponds to the JSON property `projectId`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :project_id
|
attr_accessor :project_id
|
||||||
|
|
||||||
# The number uniquely identifying the project. Example: 415104041262 Read-only.
|
# The number uniquely identifying the project. Example: `415104041262` Read-only.
|
||||||
# Corresponds to the JSON property `projectNumber`
|
# Corresponds to the JSON property `projectNumber`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :project_number
|
attr_accessor :project_number
|
||||||
|
@ -1396,14 +1403,14 @@ module Google
|
||||||
class ResourceId
|
class ResourceId
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Required field for the type-specific id. This should correspond to the id used
|
# The type-specific id. This should correspond to the id used in the type-
|
||||||
# in the type-specific API's.
|
# specific API's.
|
||||||
# Corresponds to the JSON property `id`
|
# Corresponds to the JSON property `id`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :id
|
attr_accessor :id
|
||||||
|
|
||||||
# Required field representing the resource type this id is for. At present, the
|
# The resource type this id is for. At present, the valid types are: "
|
||||||
# valid types are: "organization", "folder", and "project".
|
# organization", "folder", and "project".
|
||||||
# Corresponds to the JSON property `type`
|
# Corresponds to the JSON property `type`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :type
|
attr_accessor :type
|
||||||
|
|
|
@ -314,6 +314,7 @@ module Google
|
||||||
class Binding
|
class Binding
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :binding_id, as: 'bindingId'
|
||||||
property :condition, as: 'condition', class: Google::Apis::CloudresourcemanagerV1::Expr, decorator: Google::Apis::CloudresourcemanagerV1::Expr::Representation
|
property :condition, as: 'condition', class: Google::Apis::CloudresourcemanagerV1::Expr, decorator: Google::Apis::CloudresourcemanagerV1::Expr::Representation
|
||||||
|
|
||||||
collection :members, as: 'members'
|
collection :members, as: 'members'
|
||||||
|
|
|
@ -928,7 +928,7 @@ module Google
|
||||||
# Retrieves the Project identified by the specified `project_id` (for example, `
|
# Retrieves the Project identified by the specified `project_id` (for example, `
|
||||||
# my-project-123`). The caller must have read permissions for this Project.
|
# my-project-123`). The caller must have read permissions for this Project.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The Project ID (for example, `my-project-123`). Required.
|
# Required. The Project ID (for example, `my-project-123`).
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -960,7 +960,7 @@ module Google
|
||||||
# by the specified `project_id` (for example, `my-project-123`). The caller must
|
# by the specified `project_id` (for example, `my-project-123`). The caller must
|
||||||
# have read permissions for this Project.
|
# have read permissions for this Project.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The Project ID (for example, `my-project-123`). Required.
|
# Required. The Project ID (for example, `my-project-123`).
|
||||||
# @param [Google::Apis::CloudresourcemanagerV1::GetAncestryRequest] get_ancestry_request_object
|
# @param [Google::Apis::CloudresourcemanagerV1::GetAncestryRequest] get_ancestry_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -1032,8 +1032,8 @@ module Google
|
||||||
# denied if the policy or the resource does not exist. Authorization requires
|
# denied if the policy or the resource does not exist. Authorization requires
|
||||||
# the Google IAM permission `resourcemanager.projects.getIamPolicy` on the
|
# the Google IAM permission `resourcemanager.projects.getIamPolicy` on the
|
||||||
# project. For additional information about `resource` (e.g. my-project-id)
|
# project. For additional information about `resource` (e.g. my-project-id)
|
||||||
# structure and identification, see [Resource Names](/apis/design/resource_names)
|
# structure and identification, see [Resource Names](https://cloud.google.com/
|
||||||
# .
|
# apis/design/resource_names).
|
||||||
# @param [String] resource
|
# @param [String] resource
|
||||||
# REQUIRED: The resource for which the policy is being requested. See the
|
# REQUIRED: The resource for which the policy is being requested. See the
|
||||||
# operation documentation for the appropriate value for this field.
|
# operation documentation for the appropriate value for this field.
|
||||||
|
@ -1115,32 +1115,34 @@ module Google
|
||||||
# results. In future versions of this API, this List method will be split into
|
# results. In future versions of this API, this List method will be split into
|
||||||
# List and Search to properly capture the behavioral difference.
|
# List and Search to properly capture the behavioral difference.
|
||||||
# @param [String] filter
|
# @param [String] filter
|
||||||
# An expression for filtering the results of the request. Filter rules are case
|
# Optional. An expression for filtering the results of the request. Filter rules
|
||||||
# insensitive. Some eligible fields for filtering are: + `name` + `id` + `labels.
|
# are case insensitive. If multiple fields are included in a filter query, the
|
||||||
# ` (where *key* is the name of a label) + `parent.type` + `parent.id` + `
|
# query will return results that match any of the fields. Some eligible fields
|
||||||
# lifecycleState` Some examples of filter strings: | Filter | Description | |----
|
# for filtering are: + `name` + `id` + `labels.` (where *key* is the name of a
|
||||||
# --------------|-----------------------------------------------------| | name:
|
# label) + `parent.type` + `parent.id` + `lifecycleState` Some examples of
|
||||||
# how* | The project's name starts with "how". | | name:Howl | The project's
|
# filter strings: | Filter | Description | |------------------|------------------
|
||||||
# name is `Howl` or `howl`. | | name:HOWL | Equivalent to above. | | NAME:howl |
|
# -----------------------------------| | name:how* | The project's name starts
|
||||||
# Equivalent to above. | | labels.color:* | The project has the label `color`. |
|
# with "how". | | name:Howl | The project's name is `Howl` or `howl`. | | name:
|
||||||
# | labels.color:red | The project's label `color` has the value `red`. | |
|
# HOWL | Equivalent to above. | | NAME:howl | Equivalent to above. | | labels.
|
||||||
# labels.color:red labels.size:big | The project's label `color` | : : has the
|
# color:* | The project has the label `color`. | | labels.color:red | The
|
||||||
# value `red` and its : : : label`size` has the value : : : `big`. : |
|
# project's label `color` has the value `red`. | | labels.color:red labels.size:
|
||||||
# lifecycleState:DELETE_REQUESTED | Only show projects that are | : : pending
|
# big | The project's label `color` | : : has the value `red` and its : : :
|
||||||
# deletion. : If no filter is specified, the call will return projects for which
|
# label`size` has the value : : : `big`. : | lifecycleState:DELETE_REQUESTED |
|
||||||
# the user has the `resourcemanager.projects.get` permission. NOTE: To perform a
|
# Only show projects that are | : : pending deletion. : If no filter is
|
||||||
# by-parent query (eg., what projects are directly in a Folder), the caller must
|
# specified, the call will return projects for which the user has the `
|
||||||
# have the `resourcemanager.projects.list` permission on the parent and the
|
# resourcemanager.projects.get` permission. NOTE: To perform a by-parent query (
|
||||||
# filter must contain both a `parent.type` and a `parent.id` restriction (
|
# eg., what projects are directly in a Folder), the caller must have the `
|
||||||
# example: "parent.type:folder parent.id:123"). In this case an alternate search
|
# resourcemanager.projects.list` permission on the parent and the filter must
|
||||||
# index is used which provides more consistent results. Optional.
|
# contain both a `parent.type` and a `parent.id` restriction (example: "parent.
|
||||||
|
# type:folder parent.id:123"). In this case an alternate search index is used
|
||||||
|
# which provides more consistent results.
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# The maximum number of Projects to return in the response. The server can
|
# Optional. The maximum number of Projects to return in the response. The server
|
||||||
# return fewer Projects than requested. If unspecified, server picks an
|
# can return fewer Projects than requested. If unspecified, server picks an
|
||||||
# appropriate default. Optional.
|
# appropriate default.
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# A pagination token returned from a previous call to ListProjects that
|
# Optional. A pagination token returned from a previous call to ListProjects
|
||||||
# indicates from where listing should continue. Optional.
|
# that indicates from where listing should continue.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -1242,32 +1244,32 @@ module Google
|
||||||
# changing their roles can render services completely inoperable. It is
|
# changing their roles can render services completely inoperable. It is
|
||||||
# important to understand how the service account is being used before removing
|
# important to understand how the service account is being used before removing
|
||||||
# or updating its roles. For additional information about `resource` (e.g. my-
|
# or updating its roles. For additional information about `resource` (e.g. my-
|
||||||
# project-id) structure and identification, see [Resource Names](/apis/design/
|
# project-id) structure and identification, see [Resource Names](https://cloud.
|
||||||
# resource_names). The following constraints apply when using `setIamPolicy()`: +
|
# google.com/apis/design/resource_names). The following constraints apply when
|
||||||
# Project does not support `allUsers` and `allAuthenticatedUsers` as `members`
|
# using `setIamPolicy()`: + Project does not support `allUsers` and `
|
||||||
# in a `Binding` of a `Policy`. + The owner role can be granted to a `user`, `
|
# allAuthenticatedUsers` as `members` in a `Binding` of a `Policy`. + The owner
|
||||||
# serviceAccount`, or a group that is part of an organization. For example,
|
# role can be granted to a `user`, `serviceAccount`, or a group that is part of
|
||||||
# group@myownpersonaldomain.com could be added as an owner to a project in the
|
# an organization. For example, group@myownpersonaldomain.com could be added as
|
||||||
# myownpersonaldomain.com organization, but not the examplepetstore.com
|
# an owner to a project in the myownpersonaldomain.com organization, but not the
|
||||||
# organization. + Service accounts can be made owners of a project directly
|
# examplepetstore.com organization. + Service accounts can be made owners of a
|
||||||
# without any restrictions. However, to be added as an owner, a user must be
|
# project directly without any restrictions. However, to be added as an owner, a
|
||||||
# invited via Cloud Platform console and must accept the invitation. + A user
|
# user must be invited via Cloud Platform console and must accept the invitation.
|
||||||
# cannot be granted the owner role using `setIamPolicy()`. The user must be
|
# + A user cannot be granted the owner role using `setIamPolicy()`. The user
|
||||||
# granted the owner role using the Cloud Platform Console and must explicitly
|
# must be granted the owner role using the Cloud Platform Console and must
|
||||||
# accept the invitation. + You can only grant ownership of a project to a member
|
# explicitly accept the invitation. + You can only grant ownership of a project
|
||||||
# by using the GCP Console. Inviting a member will deliver an invitation email
|
# to a member by using the GCP Console. Inviting a member will deliver an
|
||||||
# that they must accept. An invitation email is not generated if you are
|
# invitation email that they must accept. An invitation email is not generated
|
||||||
# granting a role other than owner, or if both the member you are inviting and
|
# if you are granting a role other than owner, or if both the member you are
|
||||||
# the project are part of your organization. + Membership changes that leave the
|
# inviting and the project are part of your organization. + Membership changes
|
||||||
# project without any owners that have accepted the Terms of Service (ToS) will
|
# that leave the project without any owners that have accepted the Terms of
|
||||||
# be rejected. + If the project is not part of an organization, there must be at
|
# Service (ToS) will be rejected. + If the project is not part of an
|
||||||
# least one owner who has accepted the Terms of Service (ToS) agreement in the
|
# organization, there must be at least one owner who has accepted the Terms of
|
||||||
# policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner from
|
# Service (ToS) agreement in the policy. Calling `setIamPolicy()` to remove the
|
||||||
# the policy will fail. This restriction also applies to legacy projects that no
|
# last ToS-accepted owner from the policy will fail. This restriction also
|
||||||
# longer have owners who have accepted the ToS. Edits to IAM policies will be
|
# applies to legacy projects that no longer have owners who have accepted the
|
||||||
# rejected until the lack of a ToS-accepting owner is rectified. Authorization
|
# ToS. Edits to IAM policies will be rejected until the lack of a ToS-accepting
|
||||||
# requires the Google IAM permission `resourcemanager.projects.setIamPolicy` on
|
# owner is rectified. Authorization requires the Google IAM permission `
|
||||||
# the project
|
# resourcemanager.projects.setIamPolicy` on the project
|
||||||
# @param [String] resource
|
# @param [String] resource
|
||||||
# REQUIRED: The resource for which the policy is being specified. See the
|
# REQUIRED: The resource for which the policy is being specified. See the
|
||||||
# operation documentation for the appropriate value for this field.
|
# operation documentation for the appropriate value for this field.
|
||||||
|
@ -1339,8 +1341,8 @@ module Google
|
||||||
|
|
||||||
# Returns permissions that a caller has on the specified Project. For additional
|
# Returns permissions that a caller has on the specified Project. For additional
|
||||||
# information about `resource` (e.g. my-project-id) structure and identification,
|
# information about `resource` (e.g. my-project-id) structure and identification,
|
||||||
# see [Resource Names](/apis/design/resource_names). There are no permissions
|
# see [Resource Names](https://cloud.google.com/apis/design/resource_names).
|
||||||
# required for making this API call.
|
# There are no permissions required for making this API call.
|
||||||
# @param [String] resource
|
# @param [String] resource
|
||||||
# REQUIRED: The resource for which the policy detail is being requested. See the
|
# REQUIRED: The resource for which the policy detail is being requested. See the
|
||||||
# operation documentation for the appropriate value for this field.
|
# operation documentation for the appropriate value for this field.
|
||||||
|
@ -1379,7 +1381,7 @@ module Google
|
||||||
# lifecycle state of DELETE_REQUESTED. After deletion starts, the Project cannot
|
# lifecycle state of DELETE_REQUESTED. After deletion starts, the Project cannot
|
||||||
# be restored. The caller must have modify permissions for this Project.
|
# be restored. The caller must have modify permissions for this Project.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The project ID (for example, `foo-bar-123`). Required.
|
# Required. The project ID (for example, `foo-bar-123`).
|
||||||
# @param [Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest] undelete_project_request_object
|
# @param [Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest] undelete_project_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/resource-manager
|
# @see https://cloud.google.com/resource-manager
|
||||||
module CloudresourcemanagerV1beta1
|
module CloudresourcemanagerV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20200810'
|
REVISION = '20200907'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -119,6 +119,12 @@ module Google
|
||||||
class Binding
|
class Binding
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A client-specified ID for this binding. Expected to be globally unique to
|
||||||
|
# support the internal bindings-by-ID API.
|
||||||
|
# Corresponds to the JSON property `bindingId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :binding_id
|
||||||
|
|
||||||
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
||||||
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
||||||
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
||||||
|
@ -180,6 +186,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@binding_id = args[:binding_id] if args.key?(:binding_id)
|
||||||
@condition = args[:condition] if args.key?(:condition)
|
@condition = args[:condition] if args.key?(:condition)
|
||||||
@members = args[:members] if args.key?(:members)
|
@members = args[:members] if args.key?(:members)
|
||||||
@role = args[:role] if args.key?(:role)
|
@role = args[:role] if args.key?(:role)
|
||||||
|
@ -641,7 +648,7 @@ module Google
|
||||||
# the regular expression [a-z0-9_-]`0,63`. A label value can be empty. No more
|
# the regular expression [a-z0-9_-]`0,63`. A label value can be empty. No more
|
||||||
# than 256 labels can be associated with a given resource. Clients should store
|
# than 256 labels can be associated with a given resource. Clients should store
|
||||||
# labels in a representation such as JSON that does not depend on specific
|
# labels in a representation such as JSON that does not depend on specific
|
||||||
# characters being disallowed. Example: "environment" : "dev" Read-write.
|
# characters being disallowed. Example: `"environment" : "dev"` Read-write.
|
||||||
# Corresponds to the JSON property `labels`
|
# Corresponds to the JSON property `labels`
|
||||||
# @return [Hash<String,String>]
|
# @return [Hash<String,String>]
|
||||||
attr_accessor :labels
|
attr_accessor :labels
|
||||||
|
@ -654,7 +661,7 @@ module Google
|
||||||
# The optional user-assigned display name of the Project. When present it must
|
# The optional user-assigned display name of the Project. When present it must
|
||||||
# be between 4 to 30 characters. Allowed characters are: lowercase and uppercase
|
# be between 4 to 30 characters. Allowed characters are: lowercase and uppercase
|
||||||
# letters, numbers, hyphen, single-quote, double-quote, space, and exclamation
|
# letters, numbers, hyphen, single-quote, double-quote, space, and exclamation
|
||||||
# point. Example: My Project Read-write.
|
# point. Example: `My Project` Read-write.
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
@ -669,12 +676,12 @@ module Google
|
||||||
|
|
||||||
# The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase
|
# The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase
|
||||||
# letters, digits, or hyphens. It must start with a letter. Trailing hyphens are
|
# letters, digits, or hyphens. It must start with a letter. Trailing hyphens are
|
||||||
# prohibited. Example: tokyo-rain-123 Read-only after creation.
|
# prohibited. Example: `tokyo-rain-123` Read-only after creation.
|
||||||
# Corresponds to the JSON property `projectId`
|
# Corresponds to the JSON property `projectId`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :project_id
|
attr_accessor :project_id
|
||||||
|
|
||||||
# The number uniquely identifying the project. Example: 415104041262 Read-only.
|
# The number uniquely identifying the project. Example: `415104041262` Read-only.
|
||||||
# Corresponds to the JSON property `projectNumber`
|
# Corresponds to the JSON property `projectNumber`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :project_number
|
attr_accessor :project_number
|
||||||
|
|
|
@ -194,6 +194,7 @@ module Google
|
||||||
class Binding
|
class Binding
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :binding_id, as: 'bindingId'
|
||||||
property :condition, as: 'condition', class: Google::Apis::CloudresourcemanagerV1beta1::Expr, decorator: Google::Apis::CloudresourcemanagerV1beta1::Expr::Representation
|
property :condition, as: 'condition', class: Google::Apis::CloudresourcemanagerV1beta1::Expr, decorator: Google::Apis::CloudresourcemanagerV1beta1::Expr::Representation
|
||||||
|
|
||||||
collection :members, as: 'members'
|
collection :members, as: 'members'
|
||||||
|
|
|
@ -325,7 +325,7 @@ module Google
|
||||||
# retrievable by the GetProject and ListProjects methods. The caller must have
|
# retrievable by the GetProject and ListProjects methods. The caller must have
|
||||||
# modify permissions for this Project.
|
# modify permissions for this Project.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The Project ID (for example, `foo-bar-123`). Required.
|
# The Project ID (for example, `foo-bar-123`).
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -356,7 +356,7 @@ module Google
|
||||||
# Retrieves the Project identified by the specified `project_id` (for example, `
|
# Retrieves the Project identified by the specified `project_id` (for example, `
|
||||||
# my-project-123`). The caller must have read permissions for this Project.
|
# my-project-123`). The caller must have read permissions for this Project.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The Project ID (for example, `my-project-123`). Required.
|
# Required. The Project ID (for example, `my-project-123`).
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
|
@ -388,7 +388,7 @@ module Google
|
||||||
# by the specified `project_id` (for example, `my-project-123`). The caller must
|
# by the specified `project_id` (for example, `my-project-123`). The caller must
|
||||||
# have read permissions for this Project.
|
# have read permissions for this Project.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The Project ID (for example, `my-project-123`). Required.
|
# Required. The Project ID (for example, `my-project-123`).
|
||||||
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object
|
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -469,23 +469,24 @@ module Google
|
||||||
# List and Search to properly capture the behavioral difference.
|
# List and Search to properly capture the behavioral difference.
|
||||||
# @param [String] filter
|
# @param [String] filter
|
||||||
# An expression for filtering the results of the request. Filter rules are case
|
# An expression for filtering the results of the request. Filter rules are case
|
||||||
# insensitive. The fields eligible for filtering are: + `name` + `id` + `labels.`
|
# insensitive. If multiple fields are included in a filter query, the query will
|
||||||
# (where *key* is the name of a label) + `parent.type` + `parent.id` Some
|
# return results that match any of the fields. Some eligible fields for
|
||||||
# examples of using labels as filters: | Filter | Description | |----------------
|
# filtering are: + `name` + `id` + `labels.` (where *key* is the name of a label)
|
||||||
# --|-----------------------------------------------------| | name:how* | The
|
# + `parent.type` + `parent.id` Some examples of using labels as filters: |
|
||||||
# project's name starts with "how". | | name:Howl | The project's name is `Howl`
|
# Filter | Description | |------------------|------------------------------------
|
||||||
# or `howl`. | | name:HOWL | Equivalent to above. | | NAME:howl | Equivalent to
|
# -----------------| | name:how* | The project's name starts with "how". | |
|
||||||
# above. | | labels.color:* | The project has the label `color`. | | labels.
|
# name:Howl | The project's name is `Howl` or `howl`. | | name:HOWL | Equivalent
|
||||||
# color:red | The project's label `color` has the value `red`. | | labels.color:
|
# to above. | | NAME:howl | Equivalent to above. | | labels.color:* | The
|
||||||
# red labels.size:big |The project's label `color` has the value `red` and its
|
# project has the label `color`. | | labels.color:red | The project's label `
|
||||||
# label `size` has the value `big`. | If no filter is specified, the call will
|
# color` has the value `red`. | | labels.color:red labels.size:big |The project'
|
||||||
# return projects for which the user has the `resourcemanager.projects.get`
|
# s label `color` has the value `red` and its label `size` has the value `big`. |
|
||||||
# permission. NOTE: To perform a by-parent query (eg., what projects are
|
# If no filter is specified, the call will return projects for which the user
|
||||||
# directly in a Folder), the caller must have the `resourcemanager.projects.list`
|
# has the `resourcemanager.projects.get` permission. NOTE: To perform a by-
|
||||||
# permission on the parent and the filter must contain both a `parent.type` and
|
# parent query (eg., what projects are directly in a Folder), the caller must
|
||||||
# a `parent.id` restriction (example: "parent.type:folder parent.id:123"). In
|
# have the `resourcemanager.projects.list` permission on the parent and the
|
||||||
# this case an alternate search index is used which provides more consistent
|
# filter must contain both a `parent.type` and a `parent.id` restriction (
|
||||||
# results. Optional.
|
# example: "parent.type:folder parent.id:123"). In this case an alternate search
|
||||||
|
# index is used which provides more consistent results. Optional.
|
||||||
# @param [Fixnum] page_size
|
# @param [Fixnum] page_size
|
||||||
# The maximum number of Projects to return in the response. The server can
|
# The maximum number of Projects to return in the response. The server can
|
||||||
# return fewer Projects than requested. If unspecified, server picks an
|
# return fewer Projects than requested. If unspecified, server picks an
|
||||||
|
@ -621,7 +622,7 @@ module Google
|
||||||
# lifecycle state of DELETE_REQUESTED. After deletion starts, the Project cannot
|
# lifecycle state of DELETE_REQUESTED. After deletion starts, the Project cannot
|
||||||
# be restored. The caller must have modify permissions for this Project.
|
# be restored. The caller must have modify permissions for this Project.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The project ID (for example, `foo-bar-123`). Required.
|
# Required. The project ID (for example, `foo-bar-123`).
|
||||||
# @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
|
# @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
@ -656,7 +657,7 @@ module Google
|
||||||
# (for example, `my-project-123`). The caller must have modify permissions for
|
# (for example, `my-project-123`). The caller must have modify permissions for
|
||||||
# this Project.
|
# this Project.
|
||||||
# @param [String] project_id
|
# @param [String] project_id
|
||||||
# The project ID (for example, `my-project-123`). Required.
|
# The project ID (for example, `my-project-123`).
|
||||||
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
|
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/resource-manager
|
# @see https://cloud.google.com/resource-manager
|
||||||
module CloudresourcemanagerV2
|
module CloudresourcemanagerV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20200810'
|
REVISION = '20200831'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -97,6 +97,12 @@ module Google
|
||||||
class Binding
|
class Binding
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A client-specified ID for this binding. Expected to be globally unique to
|
||||||
|
# support the internal bindings-by-ID API.
|
||||||
|
# Corresponds to the JSON property `bindingId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :binding_id
|
||||||
|
|
||||||
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
||||||
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
||||||
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
||||||
|
@ -158,6 +164,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@binding_id = args[:binding_id] if args.key?(:binding_id)
|
||||||
@condition = args[:condition] if args.key?(:condition)
|
@condition = args[:condition] if args.key?(:condition)
|
||||||
@members = args[:members] if args.key?(:members)
|
@members = args[:members] if args.key?(:members)
|
||||||
@role = args[:role] if args.key?(:role)
|
@role = args[:role] if args.key?(:role)
|
||||||
|
|
|
@ -168,6 +168,7 @@ module Google
|
||||||
class Binding
|
class Binding
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :binding_id, as: 'bindingId'
|
||||||
property :condition, as: 'condition', class: Google::Apis::CloudresourcemanagerV2::Expr, decorator: Google::Apis::CloudresourcemanagerV2::Expr::Representation
|
property :condition, as: 'condition', class: Google::Apis::CloudresourcemanagerV2::Expr, decorator: Google::Apis::CloudresourcemanagerV2::Expr::Representation
|
||||||
|
|
||||||
collection :members, as: 'members'
|
collection :members, as: 'members'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/resource-manager
|
# @see https://cloud.google.com/resource-manager
|
||||||
module CloudresourcemanagerV2beta1
|
module CloudresourcemanagerV2beta1
|
||||||
VERSION = 'V2beta1'
|
VERSION = 'V2beta1'
|
||||||
REVISION = '20200810'
|
REVISION = '20200831'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -97,6 +97,12 @@ module Google
|
||||||
class Binding
|
class Binding
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A client-specified ID for this binding. Expected to be globally unique to
|
||||||
|
# support the internal bindings-by-ID API.
|
||||||
|
# Corresponds to the JSON property `bindingId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :binding_id
|
||||||
|
|
||||||
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
||||||
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
||||||
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
||||||
|
@ -158,6 +164,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@binding_id = args[:binding_id] if args.key?(:binding_id)
|
||||||
@condition = args[:condition] if args.key?(:condition)
|
@condition = args[:condition] if args.key?(:condition)
|
||||||
@members = args[:members] if args.key?(:members)
|
@members = args[:members] if args.key?(:members)
|
||||||
@role = args[:role] if args.key?(:role)
|
@role = args[:role] if args.key?(:role)
|
||||||
|
|
|
@ -168,6 +168,7 @@ module Google
|
||||||
class Binding
|
class Binding
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :binding_id, as: 'bindingId'
|
||||||
property :condition, as: 'condition', class: Google::Apis::CloudresourcemanagerV2beta1::Expr, decorator: Google::Apis::CloudresourcemanagerV2beta1::Expr::Representation
|
property :condition, as: 'condition', class: Google::Apis::CloudresourcemanagerV2beta1::Expr, decorator: Google::Apis::CloudresourcemanagerV2beta1::Expr::Representation
|
||||||
|
|
||||||
collection :members, as: 'members'
|
collection :members, as: 'members'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://developers.google.com/cloud-search/docs/guides/
|
# @see https://developers.google.com/cloud-search/docs/guides/
|
||||||
module CloudsearchV1
|
module CloudsearchV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200819'
|
REVISION = '20200901'
|
||||||
|
|
||||||
# Index and serve your organization's data with Cloud Search
|
# Index and serve your organization's data with Cloud Search
|
||||||
AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search'
|
AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search'
|
||||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
||||||
# @see https://cloud.google.com/tasks/
|
# @see https://cloud.google.com/tasks/
|
||||||
module CloudtasksV2beta3
|
module CloudtasksV2beta3
|
||||||
VERSION = 'V2beta3'
|
VERSION = 'V2beta3'
|
||||||
REVISION = '20200804'
|
REVISION = '20200825'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -992,24 +992,24 @@ module Google
|
||||||
class RateLimits
|
class RateLimits
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Output only. The max burst size. Max burst size limits how fast tasks in queue
|
# The max burst size. Max burst size limits how fast tasks in queue are
|
||||||
# are processed when many tasks are in the queue and the rate is high. This
|
# processed when many tasks are in the queue and the rate is high. This field
|
||||||
# field allows the queue to have a high rate so processing starts shortly after
|
# allows the queue to have a high rate so processing starts shortly after a task
|
||||||
# a task is enqueued, but still limits resource usage when many tasks are
|
# is enqueued, but still limits resource usage when many tasks are enqueued in a
|
||||||
# enqueued in a short period of time. The [token bucket](https://wikipedia.org/
|
# short period of time. The [token bucket](https://wikipedia.org/wiki/
|
||||||
# wiki/Token_Bucket) algorithm is used to control the rate of task dispatches.
|
# Token_Bucket) algorithm is used to control the rate of task dispatches. Each
|
||||||
# Each queue has a token bucket that holds tokens, up to the maximum specified
|
# queue has a token bucket that holds tokens, up to the maximum specified by `
|
||||||
# by `max_burst_size`. Each time a task is dispatched, a token is removed from
|
# max_burst_size`. Each time a task is dispatched, a token is removed from the
|
||||||
# the bucket. Tasks will be dispatched until the queue's bucket runs out of
|
# bucket. Tasks will be dispatched until the queue's bucket runs out of tokens.
|
||||||
# tokens. The bucket will be continuously refilled with new tokens based on
|
# The bucket will be continuously refilled with new tokens based on
|
||||||
# max_dispatches_per_second. Cloud Tasks will pick the value of `max_burst_size`
|
# max_dispatches_per_second. The default value of `max_burst_size` is picked by
|
||||||
# based on the value of max_dispatches_per_second. For App Engine queues that
|
# Cloud Tasks based on the value of max_dispatches_per_second. The maximum value
|
||||||
# were created or updated using `queue.yaml/xml`, `max_burst_size` is equal to [
|
# of `max_burst_size` is 500. For App Engine queues that were created or updated
|
||||||
# bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/
|
# using `queue.yaml/xml`, `max_burst_size` is equal to [bucket_size](https://
|
||||||
# queueref#bucket_size). Since `max_burst_size` is output only, if UpdateQueue
|
# cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
|
||||||
# is called on a queue created by `queue.yaml/xml`, `max_burst_size` will be
|
# If UpdateQueue is called on a queue without explicitly setting a value for `
|
||||||
# reset based on the value of max_dispatches_per_second, regardless of whether
|
# max_burst_size`, `max_burst_size` value will get updated if UpdateQueue is
|
||||||
# max_dispatches_per_second is updated.
|
# updating max_dispatches_per_second.
|
||||||
# Corresponds to the JSON property `maxBurstSize`
|
# Corresponds to the JSON property `maxBurstSize`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :max_burst_size
|
attr_accessor :max_burst_size
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/container-engine/
|
# @see https://cloud.google.com/container-engine/
|
||||||
module ContainerV1
|
module ContainerV1
|
||||||
VERSION = 'V1'
|
VERSION = 'V1'
|
||||||
REVISION = '20200805'
|
REVISION = '20200828'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -171,12 +171,44 @@ module Google
|
||||||
class AutoprovisioningNodePoolDefaults
|
class AutoprovisioningNodePoolDefaults
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The Customer Managed Encryption Key used to encrypt the boot disk attached to
|
||||||
|
# each node in the node pool. This should be of the form projects/[
|
||||||
|
# KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]
|
||||||
|
# . For more information about protecting resources with Cloud KMS Keys please
|
||||||
|
# see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption
|
||||||
|
# Corresponds to the JSON property `bootDiskKmsKey`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :boot_disk_kms_key
|
||||||
|
|
||||||
|
# Size of the disk attached to each node, specified in GB. The smallest allowed
|
||||||
|
# disk size is 10GB. If unspecified, the default disk size is 100GB.
|
||||||
|
# Corresponds to the JSON property `diskSizeGb`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :disk_size_gb
|
||||||
|
|
||||||
|
# Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') If
|
||||||
|
# unspecified, the default disk type is 'pd-standard'
|
||||||
|
# Corresponds to the JSON property `diskType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :disk_type
|
||||||
|
|
||||||
# NodeManagement defines the set of node management services turned on for the
|
# NodeManagement defines the set of node management services turned on for the
|
||||||
# node pool.
|
# node pool.
|
||||||
# Corresponds to the JSON property `management`
|
# Corresponds to the JSON property `management`
|
||||||
# @return [Google::Apis::ContainerV1::NodeManagement]
|
# @return [Google::Apis::ContainerV1::NodeManagement]
|
||||||
attr_accessor :management
|
attr_accessor :management
|
||||||
|
|
||||||
|
# Minimum CPU platform to be used for NAP created node pools. The instance may
|
||||||
|
# be scheduled on the specified or newer CPU platform. Applicable values are the
|
||||||
|
# friendly names of CPU platforms, such as minCpuPlatform: Intel Haswell or
|
||||||
|
# minCpuPlatform: Intel Sandy Bridge. For more information, read [how to specify
|
||||||
|
# min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-
|
||||||
|
# cpu-platform) To unset the min cpu platform field pass "automatic" as field
|
||||||
|
# value.
|
||||||
|
# Corresponds to the JSON property `minCpuPlatform`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :min_cpu_platform
|
||||||
|
|
||||||
# Scopes that are used by NAP when creating node pools.
|
# Scopes that are used by NAP when creating node pools.
|
||||||
# Corresponds to the JSON property `oauthScopes`
|
# Corresponds to the JSON property `oauthScopes`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
|
@ -187,6 +219,11 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :service_account
|
attr_accessor :service_account
|
||||||
|
|
||||||
|
# A set of Shielded Instance options.
|
||||||
|
# Corresponds to the JSON property `shieldedInstanceConfig`
|
||||||
|
# @return [Google::Apis::ContainerV1::ShieldedInstanceConfig]
|
||||||
|
attr_accessor :shielded_instance_config
|
||||||
|
|
||||||
# These upgrade settings control the level of parallelism and the level of
|
# These upgrade settings control the level of parallelism and the level of
|
||||||
# disruption caused by an upgrade. maxUnavailable controls the number of nodes
|
# disruption caused by an upgrade. maxUnavailable controls the number of nodes
|
||||||
# that can be simultaneously unavailable. maxSurge controls the number of
|
# that can be simultaneously unavailable. maxSurge controls the number of
|
||||||
|
@ -211,9 +248,14 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@boot_disk_kms_key = args[:boot_disk_kms_key] if args.key?(:boot_disk_kms_key)
|
||||||
|
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
||||||
|
@disk_type = args[:disk_type] if args.key?(:disk_type)
|
||||||
@management = args[:management] if args.key?(:management)
|
@management = args[:management] if args.key?(:management)
|
||||||
|
@min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
|
||||||
@oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes)
|
@oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes)
|
||||||
@service_account = args[:service_account] if args.key?(:service_account)
|
@service_account = args[:service_account] if args.key?(:service_account)
|
||||||
|
@shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
|
||||||
@upgrade_settings = args[:upgrade_settings] if args.key?(:upgrade_settings)
|
@upgrade_settings = args[:upgrade_settings] if args.key?(:upgrade_settings)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -356,6 +398,11 @@ module Google
|
||||||
attr_accessor :disabled
|
attr_accessor :disabled
|
||||||
alias_method :disabled?, :disabled
|
alias_method :disabled?, :disabled
|
||||||
|
|
||||||
|
# Which load balancer type is installed for Cloud Run.
|
||||||
|
# Corresponds to the JSON property `loadBalancerType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :load_balancer_type
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -363,6 +410,7 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@disabled = args[:disabled] if args.key?(:disabled)
|
@disabled = args[:disabled] if args.key?(:disabled)
|
||||||
|
@load_balancer_type = args[:load_balancer_type] if args.key?(:load_balancer_type)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1907,14 +1955,21 @@ module Google
|
||||||
# The password to use for HTTP basic authentication to the master endpoint.
|
# The password to use for HTTP basic authentication to the master endpoint.
|
||||||
# Because the master endpoint is open to the Internet, you should create a
|
# Because the master endpoint is open to the Internet, you should create a
|
||||||
# strong password. If a password is provided for cluster creation, username must
|
# strong password. If a password is provided for cluster creation, username must
|
||||||
# be non-empty.
|
# be non-empty. Warning: basic authentication is deprecated, and will be removed
|
||||||
|
# in GKE control plane versions 1.19 and newer. For a list of recommended
|
||||||
|
# authentication methods, see: https://cloud.google.com/kubernetes-engine/docs/
|
||||||
|
# how-to/api-server-authentication
|
||||||
# Corresponds to the JSON property `password`
|
# Corresponds to the JSON property `password`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :password
|
attr_accessor :password
|
||||||
|
|
||||||
# The username to use for HTTP basic authentication to the master endpoint. For
|
# The username to use for HTTP basic authentication to the master endpoint. For
|
||||||
# clusters v1.6.0 and later, basic authentication can be disabled by leaving
|
# clusters v1.6.0 and later, basic authentication can be disabled by leaving
|
||||||
# username unspecified (or setting it to the empty string).
|
# username unspecified (or setting it to the empty string). Warning: basic
|
||||||
|
# authentication is deprecated, and will be removed in GKE control plane
|
||||||
|
# versions 1.19 and newer. For a list of recommended authentication methods, see:
|
||||||
|
# https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-
|
||||||
|
# authentication
|
||||||
# Corresponds to the JSON property `username`
|
# Corresponds to the JSON property `username`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :username
|
attr_accessor :username
|
||||||
|
|
|
@ -621,10 +621,16 @@ module Google
|
||||||
class AutoprovisioningNodePoolDefaults
|
class AutoprovisioningNodePoolDefaults
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :boot_disk_kms_key, as: 'bootDiskKmsKey'
|
||||||
|
property :disk_size_gb, as: 'diskSizeGb'
|
||||||
|
property :disk_type, as: 'diskType'
|
||||||
property :management, as: 'management', class: Google::Apis::ContainerV1::NodeManagement, decorator: Google::Apis::ContainerV1::NodeManagement::Representation
|
property :management, as: 'management', class: Google::Apis::ContainerV1::NodeManagement, decorator: Google::Apis::ContainerV1::NodeManagement::Representation
|
||||||
|
|
||||||
|
property :min_cpu_platform, as: 'minCpuPlatform'
|
||||||
collection :oauth_scopes, as: 'oauthScopes'
|
collection :oauth_scopes, as: 'oauthScopes'
|
||||||
property :service_account, as: 'serviceAccount'
|
property :service_account, as: 'serviceAccount'
|
||||||
|
property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::ContainerV1::ShieldedInstanceConfig, decorator: Google::Apis::ContainerV1::ShieldedInstanceConfig::Representation
|
||||||
|
|
||||||
property :upgrade_settings, as: 'upgradeSettings', class: Google::Apis::ContainerV1::UpgradeSettings, decorator: Google::Apis::ContainerV1::UpgradeSettings::Representation
|
property :upgrade_settings, as: 'upgradeSettings', class: Google::Apis::ContainerV1::UpgradeSettings, decorator: Google::Apis::ContainerV1::UpgradeSettings::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -673,6 +679,7 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :disabled, as: 'disabled'
|
property :disabled, as: 'disabled'
|
||||||
|
property :load_balancer_type, as: 'loadBalancerType'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/container-engine/
|
# @see https://cloud.google.com/container-engine/
|
||||||
module ContainerV1beta1
|
module ContainerV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20200805'
|
REVISION = '20200828'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -190,6 +190,27 @@ module Google
|
||||||
class AutoprovisioningNodePoolDefaults
|
class AutoprovisioningNodePoolDefaults
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# The Customer Managed Encryption Key used to encrypt the boot disk attached to
|
||||||
|
# each node in the node pool. This should be of the form projects/[
|
||||||
|
# KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]
|
||||||
|
# . For more information about protecting resources with Cloud KMS Keys please
|
||||||
|
# see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption
|
||||||
|
# Corresponds to the JSON property `bootDiskKmsKey`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :boot_disk_kms_key
|
||||||
|
|
||||||
|
# Size of the disk attached to each node, specified in GB. The smallest allowed
|
||||||
|
# disk size is 10GB. If unspecified, the default disk size is 100GB.
|
||||||
|
# Corresponds to the JSON property `diskSizeGb`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :disk_size_gb
|
||||||
|
|
||||||
|
# Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') If
|
||||||
|
# unspecified, the default disk type is 'pd-standard'
|
||||||
|
# Corresponds to the JSON property `diskType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :disk_type
|
||||||
|
|
||||||
# NodeManagement defines the set of node management services turned on for the
|
# NodeManagement defines the set of node management services turned on for the
|
||||||
# node pool.
|
# node pool.
|
||||||
# Corresponds to the JSON property `management`
|
# Corresponds to the JSON property `management`
|
||||||
|
@ -227,6 +248,11 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :service_account
|
attr_accessor :service_account
|
||||||
|
|
||||||
|
# A set of Shielded Instance options.
|
||||||
|
# Corresponds to the JSON property `shieldedInstanceConfig`
|
||||||
|
# @return [Google::Apis::ContainerV1beta1::ShieldedInstanceConfig]
|
||||||
|
attr_accessor :shielded_instance_config
|
||||||
|
|
||||||
# These upgrade settings control the level of parallelism and the level of
|
# These upgrade settings control the level of parallelism and the level of
|
||||||
# disruption caused by an upgrade. maxUnavailable controls the number of nodes
|
# disruption caused by an upgrade. maxUnavailable controls the number of nodes
|
||||||
# that can be simultaneously unavailable. maxSurge controls the number of
|
# that can be simultaneously unavailable. maxSurge controls the number of
|
||||||
|
@ -251,10 +277,14 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@boot_disk_kms_key = args[:boot_disk_kms_key] if args.key?(:boot_disk_kms_key)
|
||||||
|
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
||||||
|
@disk_type = args[:disk_type] if args.key?(:disk_type)
|
||||||
@management = args[:management] if args.key?(:management)
|
@management = args[:management] if args.key?(:management)
|
||||||
@min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
|
@min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
|
||||||
@oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes)
|
@oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes)
|
||||||
@service_account = args[:service_account] if args.key?(:service_account)
|
@service_account = args[:service_account] if args.key?(:service_account)
|
||||||
|
@shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
|
||||||
@upgrade_settings = args[:upgrade_settings] if args.key?(:upgrade_settings)
|
@upgrade_settings = args[:upgrade_settings] if args.key?(:upgrade_settings)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -422,6 +452,11 @@ module Google
|
||||||
attr_accessor :disabled
|
attr_accessor :disabled
|
||||||
alias_method :disabled?, :disabled
|
alias_method :disabled?, :disabled
|
||||||
|
|
||||||
|
# Which load balancer type is installed for Cloud Run.
|
||||||
|
# Corresponds to the JSON property `loadBalancerType`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :load_balancer_type
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -429,6 +464,7 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@disabled = args[:disabled] if args.key?(:disabled)
|
@disabled = args[:disabled] if args.key?(:disabled)
|
||||||
|
@load_balancer_type = args[:load_balancer_type] if args.key?(:load_balancer_type)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -2265,14 +2301,21 @@ module Google
|
||||||
# The password to use for HTTP basic authentication to the master endpoint.
|
# The password to use for HTTP basic authentication to the master endpoint.
|
||||||
# Because the master endpoint is open to the Internet, you should create a
|
# Because the master endpoint is open to the Internet, you should create a
|
||||||
# strong password. If a password is provided for cluster creation, username must
|
# strong password. If a password is provided for cluster creation, username must
|
||||||
# be non-empty.
|
# be non-empty. Warning: basic authentication is deprecated, and will be removed
|
||||||
|
# in GKE control plane versions 1.19 and newer. For a list of recommended
|
||||||
|
# authentication methods, see: https://cloud.google.com/kubernetes-engine/docs/
|
||||||
|
# how-to/api-server-authentication
|
||||||
# Corresponds to the JSON property `password`
|
# Corresponds to the JSON property `password`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :password
|
attr_accessor :password
|
||||||
|
|
||||||
# The username to use for HTTP basic authentication to the master endpoint. For
|
# The username to use for HTTP basic authentication to the master endpoint. For
|
||||||
# clusters v1.6.0 and later, basic authentication can be disabled by leaving
|
# clusters v1.6.0 and later, basic authentication can be disabled by leaving
|
||||||
# username unspecified (or setting it to the empty string).
|
# username unspecified (or setting it to the empty string). Warning: basic
|
||||||
|
# authentication is deprecated, and will be removed in GKE control plane
|
||||||
|
# versions 1.19 and newer. For a list of recommended authentication methods, see:
|
||||||
|
# https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-
|
||||||
|
# authentication
|
||||||
# Corresponds to the JSON property `username`
|
# Corresponds to the JSON property `username`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :username
|
attr_accessor :username
|
||||||
|
@ -2687,11 +2730,11 @@ module Google
|
||||||
class NodeKubeletConfig
|
class NodeKubeletConfig
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Enable CPU CFS quota enforcement for containers that specify CPU limits. If
|
# Enable CPU CFS quota enforcement for containers that specify CPU limits. This
|
||||||
# this option is enabled, kubelet uses CFS quota (https://www.kernel.org/doc/
|
# option is enabled by default which makes kubelet use CFS quota (https://www.
|
||||||
# Documentation/scheduler/sched-bwc.txt) to enforce container CPU limits.
|
# kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to enforce container CPU
|
||||||
# Otherwise, CPU limits will not be enforced at all. Disable this option to
|
# limits. Otherwise, CPU limits will not be enforced at all. Disable this option
|
||||||
# mitigate CPU throttling problems while still having your pods to be in
|
# to mitigate CPU throttling problems while still having your pods to be in
|
||||||
# Guaranteed QoS class by specifying the CPU limits. The default value is 'true'
|
# Guaranteed QoS class by specifying the CPU limits. The default value is 'true'
|
||||||
# if unspecified.
|
# if unspecified.
|
||||||
# Corresponds to the JSON property `cpuCfsQuota`
|
# Corresponds to the JSON property `cpuCfsQuota`
|
||||||
|
@ -2711,7 +2754,8 @@ module Google
|
||||||
# tasks/administer-cluster/cpu-management-policies/ The following values are
|
# tasks/administer-cluster/cpu-management-policies/ The following values are
|
||||||
# allowed. - "none": the default, which represents the existing scheduling
|
# allowed. - "none": the default, which represents the existing scheduling
|
||||||
# behavior. - "static": allows pods with certain resource characteristics to be
|
# behavior. - "static": allows pods with certain resource characteristics to be
|
||||||
# granted increased CPU affinity and exclusivity on the node.
|
# granted increased CPU affinity and exclusivity on the node. The default value
|
||||||
|
# is 'none' if unspecified.
|
||||||
# Corresponds to the JSON property `cpuManagerPolicy`
|
# Corresponds to the JSON property `cpuManagerPolicy`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :cpu_manager_policy
|
attr_accessor :cpu_manager_policy
|
||||||
|
|
|
@ -717,11 +717,16 @@ module Google
|
||||||
class AutoprovisioningNodePoolDefaults
|
class AutoprovisioningNodePoolDefaults
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :boot_disk_kms_key, as: 'bootDiskKmsKey'
|
||||||
|
property :disk_size_gb, as: 'diskSizeGb'
|
||||||
|
property :disk_type, as: 'diskType'
|
||||||
property :management, as: 'management', class: Google::Apis::ContainerV1beta1::NodeManagement, decorator: Google::Apis::ContainerV1beta1::NodeManagement::Representation
|
property :management, as: 'management', class: Google::Apis::ContainerV1beta1::NodeManagement, decorator: Google::Apis::ContainerV1beta1::NodeManagement::Representation
|
||||||
|
|
||||||
property :min_cpu_platform, as: 'minCpuPlatform'
|
property :min_cpu_platform, as: 'minCpuPlatform'
|
||||||
collection :oauth_scopes, as: 'oauthScopes'
|
collection :oauth_scopes, as: 'oauthScopes'
|
||||||
property :service_account, as: 'serviceAccount'
|
property :service_account, as: 'serviceAccount'
|
||||||
|
property :shielded_instance_config, as: 'shieldedInstanceConfig', class: Google::Apis::ContainerV1beta1::ShieldedInstanceConfig, decorator: Google::Apis::ContainerV1beta1::ShieldedInstanceConfig::Representation
|
||||||
|
|
||||||
property :upgrade_settings, as: 'upgradeSettings', class: Google::Apis::ContainerV1beta1::UpgradeSettings, decorator: Google::Apis::ContainerV1beta1::UpgradeSettings::Representation
|
property :upgrade_settings, as: 'upgradeSettings', class: Google::Apis::ContainerV1beta1::UpgradeSettings, decorator: Google::Apis::ContainerV1beta1::UpgradeSettings::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -778,6 +783,7 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :disabled, as: 'disabled'
|
property :disabled, as: 'disabled'
|
||||||
|
property :load_balancer_type, as: 'loadBalancerType'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/container-analysis/api/reference/rest/
|
# @see https://cloud.google.com/container-analysis/api/reference/rest/
|
||||||
module ContaineranalysisV1alpha1
|
module ContaineranalysisV1alpha1
|
||||||
VERSION = 'V1alpha1'
|
VERSION = 'V1alpha1'
|
||||||
REVISION = '20200807'
|
REVISION = '20200828'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -188,6 +188,12 @@ module Google
|
||||||
class Binding
|
class Binding
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A client-specified ID for this binding. Expected to be globally unique to
|
||||||
|
# support the internal bindings-by-ID API.
|
||||||
|
# Corresponds to the JSON property `bindingId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :binding_id
|
||||||
|
|
||||||
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
||||||
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
||||||
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
||||||
|
@ -249,6 +255,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@binding_id = args[:binding_id] if args.key?(:binding_id)
|
||||||
@condition = args[:condition] if args.key?(:condition)
|
@condition = args[:condition] if args.key?(:condition)
|
||||||
@members = args[:members] if args.key?(:members)
|
@members = args[:members] if args.key?(:members)
|
||||||
@role = args[:role] if args.key?(:role)
|
@role = args[:role] if args.key?(:role)
|
||||||
|
|
|
@ -475,6 +475,7 @@ module Google
|
||||||
class Binding
|
class Binding
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :binding_id, as: 'bindingId'
|
||||||
property :condition, as: 'condition', class: Google::Apis::ContaineranalysisV1alpha1::Expr, decorator: Google::Apis::ContaineranalysisV1alpha1::Expr::Representation
|
property :condition, as: 'condition', class: Google::Apis::ContaineranalysisV1alpha1::Expr, decorator: Google::Apis::ContaineranalysisV1alpha1::Expr::Representation
|
||||||
|
|
||||||
collection :members, as: 'members'
|
collection :members, as: 'members'
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/container-analysis/api/reference/rest/
|
# @see https://cloud.google.com/container-analysis/api/reference/rest/
|
||||||
module ContaineranalysisV1beta1
|
module ContaineranalysisV1beta1
|
||||||
VERSION = 'V1beta1'
|
VERSION = 'V1beta1'
|
||||||
REVISION = '20200807'
|
REVISION = '20200828'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -297,6 +297,12 @@ module Google
|
||||||
class Binding
|
class Binding
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# A client-specified ID for this binding. Expected to be globally unique to
|
||||||
|
# support the internal bindings-by-ID API.
|
||||||
|
# Corresponds to the JSON property `bindingId`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :binding_id
|
||||||
|
|
||||||
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
||||||
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
||||||
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
||||||
|
@ -358,6 +364,7 @@ module Google
|
||||||
|
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
|
@binding_id = args[:binding_id] if args.key?(:binding_id)
|
||||||
@condition = args[:condition] if args.key?(:condition)
|
@condition = args[:condition] if args.key?(:condition)
|
||||||
@members = args[:members] if args.key?(:members)
|
@members = args[:members] if args.key?(:members)
|
||||||
@role = args[:role] if args.key?(:role)
|
@role = args[:role] if args.key?(:role)
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue