Autogenerated update (2020-04-13)

Delete:
- cloudprivatecatalog_v1beta1
- cloudprivatecatalogproducer_v1beta1
- mirror_v1
- oauth2_v1
- proximitybeacon_v1beta1

Update:
- accesscontextmanager_v1
- accesscontextmanager_v1beta
- adexchangebuyer2_v2beta1
- admin_directory_v1
- adsense_v1_4
- adsensehost_v4_1
- alertcenter_v1beta1
- androiddeviceprovisioning_v1
- androidenterprise_v1
- androidmanagement_v1
- androidpublisher_v2
- androidpublisher_v3
- appengine_v1
- appengine_v1alpha
- appengine_v1beta
- bigquery_v2
- bigquerydatatransfer_v1
- bigqueryreservation_v1
- bigqueryreservation_v1beta1
- bigtableadmin_v1
- bigtableadmin_v2
- billingbudgets_v1beta1
- blogger_v2
- blogger_v3
- calendar_v3
- chat_v1
- cloudasset_v1
- cloudbuild_v1
- cloudbuild_v1alpha1
- cloudbuild_v1alpha2
- clouddebugger_v2
- cloudidentity_v1
- cloudidentity_v1beta1
- cloudresourcemanager_v1
- cloudsearch_v1
- cloudshell_v1
- cloudshell_v1alpha1
- cloudtasks_v2beta2
- cloudtrace_v1
- cloudtrace_v2
- cloudtrace_v2beta1
- composer_v1
- composer_v1beta1
- compute_alpha
- compute_beta
- compute_v1
- container_v1
- container_v1beta1
- content_v2
- content_v2_1
- customsearch_v1
- datacatalog_v1beta1
- dataflow_v1b3
- datafusion_v1beta1
- dataproc_v1
- dataproc_v1beta2
- dfareporting_v3_3
- dfareporting_v3_4
- dialogflow_v2
- dialogflow_v2beta1
- dlp_v2
- doubleclickbidmanager_v1_1
- doubleclicksearch_v2
- drive_v2
- drive_v3
- file_v1
- file_v1beta1
- firebase_v1beta1
- firebasehosting_v1beta1
- firestore_v1
- firestore_v1beta1
- games_configuration_v1configuration
- games_management_v1management
- games_v1
- genomics_v2alpha1
- gmail_v1
- healthcare_v1beta1
- homegraph_v1
- iap_v1
- jobs_v2
- language_v1
- language_v1beta1
- language_v1beta2
- logging_v2
- managedidentities_v1
- managedidentities_v1alpha1
- managedidentities_v1beta1
- manufacturers_v1
- ml_v1
- monitoring_v1
- monitoring_v3
- oauth2_v2
- osconfig_v1beta
- people_v1
- prod_tt_sasportal_v1alpha1
- pubsub_v1
- pubsub_v1beta2
- recommender_v1beta1
- redis_v1
- redis_v1beta1
- remotebuildexecution_v1
- remotebuildexecution_v1alpha
- remotebuildexecution_v2
- run_v1
- sasportal_v1alpha1
- secretmanager_v1
- secretmanager_v1beta1
- securitycenter_v1
- securitycenter_v1beta1
- securitycenter_v1p1alpha1
- securitycenter_v1p1beta1
- serviceconsumermanagement_v1
- servicecontrol_v1
- servicemanagement_v1
- servicenetworking_v1
- servicenetworking_v1beta
- serviceusage_v1
- serviceusage_v1beta1
- sheets_v4
- spanner_v1
- speech_v1
- speech_v1p1beta1
- speech_v2beta1
- sql_v1beta4
- storage_v1
- storagetransfer_v1
- toolresults_v1beta3
- vault_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:
Google APIs 2020-04-13 16:49:10 +00:00
parent f2726f4627
commit bc980737e8
432 changed files with 64991 additions and 23025 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/access-context-manager/docs/reference/rest/
module AccesscontextmanagerV1
VERSION = 'V1'
REVISION = '20200229'
REVISION = '20200405'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -33,11 +33,6 @@ module Google
# @return [Google::Apis::AccesscontextmanagerV1::BasicLevel]
attr_accessor :basic
# Output only. Time the `AccessLevel` was created in UTC.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# `CustomLevel` is an `AccessLevel` using the Cloud Common Expression Language
# to represent the necessary conditions for the level to apply to a request.
# See CEL spec at: https://github.com/google/cel-spec
@ -63,11 +58,6 @@ module Google
# @return [String]
attr_accessor :title
# Output only. Time the `AccessLevel` was updated in UTC.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
@ -75,12 +65,10 @@ module Google
# Update properties of this object
def update!(**args)
@basic = args[:basic] if args.key?(:basic)
@create_time = args[:create_time] if args.key?(:create_time)
@custom = args[:custom] if args.key?(:custom)
@description = args[:description] if args.key?(:description)
@name = args[:name] if args.key?(:name)
@title = args[:title] if args.key?(:title)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
@ -92,11 +80,6 @@ module Google
class AccessPolicy
include Google::Apis::Core::Hashable
# Output only. Time the `AccessPolicy` was created in UTC.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. An opaque identifier for the current version of the
# `AccessPolicy`. This will always be a strongly validated etag, meaning that
# two Access Polices will be identical if and only if their etags are
@ -123,23 +106,16 @@ module Google
# @return [String]
attr_accessor :title
# Output only. Time the `AccessPolicy` was updated in UTC.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@etag = args[:etag] if args.key?(:etag)
@name = args[:name] if args.key?(:name)
@parent = args[:parent] if args.key?(:parent)
@title = args[:title] if args.key?(:title)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
@ -821,11 +797,6 @@ module Google
class ServicePerimeter
include Google::Apis::Core::Hashable
# Output only. Time the `ServicePerimeter` was created in UTC.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Description of the `ServicePerimeter` and its use. Does not affect
# behavior.
# Corresponds to the JSON property `description`
@ -866,11 +837,6 @@ module Google
# @return [String]
attr_accessor :title
# Output only. Time the `ServicePerimeter` was updated in UTC.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly
# exists for all Service Perimeters, and that spec is identical to the
# status for those Service Perimeters. When this flag is set, it inhibits the
@ -892,14 +858,12 @@ module Google
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description)
@name = args[:name] if args.key?(:name)
@perimeter_type = args[:perimeter_type] if args.key?(:perimeter_type)
@spec = args[:spec] if args.key?(:spec)
@status = args[:status] if args.key?(:status)
@title = args[:title] if args.key?(:title)
@update_time = args[:update_time] if args.key?(:update_time)
@use_explicit_dry_run_spec = args[:use_explicit_dry_run_spec] if args.key?(:use_explicit_dry_run_spec)
end
end

View File

@ -177,25 +177,21 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :basic, as: 'basic', class: Google::Apis::AccesscontextmanagerV1::BasicLevel, decorator: Google::Apis::AccesscontextmanagerV1::BasicLevel::Representation
property :create_time, as: 'createTime'
property :custom, as: 'custom', class: Google::Apis::AccesscontextmanagerV1::CustomLevel, decorator: Google::Apis::AccesscontextmanagerV1::CustomLevel::Representation
property :description, as: 'description'
property :name, as: 'name'
property :title, as: 'title'
property :update_time, as: 'updateTime'
end
end
class AccessPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :etag, as: 'etag'
property :name, as: 'name'
property :parent, as: 'parent'
property :title, as: 'title'
property :update_time, as: 'updateTime'
end
end
@ -373,7 +369,6 @@ module Google
class ServicePerimeter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :description, as: 'description'
property :name, as: 'name'
property :perimeter_type, as: 'perimeterType'
@ -382,7 +377,6 @@ module Google
property :status, as: 'status', class: Google::Apis::AccesscontextmanagerV1::ServicePerimeterConfig, decorator: Google::Apis::AccesscontextmanagerV1::ServicePerimeterConfig::Representation
property :title, as: 'title'
property :update_time, as: 'updateTime'
property :use_explicit_dry_run_spec, as: 'useExplicitDryRunSpec'
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/access-context-manager/docs/reference/rest/
module AccesscontextmanagerV1beta
VERSION = 'V1beta'
REVISION = '20200229'
REVISION = '20200405'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -33,11 +33,6 @@ module Google
# @return [Google::Apis::AccesscontextmanagerV1beta::BasicLevel]
attr_accessor :basic
# Output only. Time the `AccessLevel` was created in UTC.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# `CustomLevel` is an `AccessLevel` using the Cloud Common Expression Language
# to represent the necessary conditions for the level to apply to a request.
# See CEL spec at: https://github.com/google/cel-spec
@ -63,11 +58,6 @@ module Google
# @return [String]
attr_accessor :title
# Output only. Time the `AccessLevel` was updated in UTC.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
@ -75,12 +65,10 @@ module Google
# Update properties of this object
def update!(**args)
@basic = args[:basic] if args.key?(:basic)
@create_time = args[:create_time] if args.key?(:create_time)
@custom = args[:custom] if args.key?(:custom)
@description = args[:description] if args.key?(:description)
@name = args[:name] if args.key?(:name)
@title = args[:title] if args.key?(:title)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
@ -92,11 +80,6 @@ module Google
class AccessPolicy
include Google::Apis::Core::Hashable
# Output only. Time the `AccessPolicy` was created in UTC.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. Resource name of the `AccessPolicy`. Format:
# `accessPolicies/`policy_id``
# Corresponds to the JSON property `name`
@ -115,22 +98,15 @@ module Google
# @return [String]
attr_accessor :title
# Output only. Time the `AccessPolicy` was updated in UTC.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@name = args[:name] if args.key?(:name)
@parent = args[:parent] if args.key?(:parent)
@title = args[:title] if args.key?(:title)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
@ -603,11 +579,6 @@ module Google
class ServicePerimeter
include Google::Apis::Core::Hashable
# Output only. Time the `ServicePerimeter` was created in UTC.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Description of the `ServicePerimeter` and its use. Does not affect
# behavior.
# Corresponds to the JSON property `description`
@ -642,24 +613,17 @@ module Google
# @return [String]
attr_accessor :title
# Output only. Time the `ServicePerimeter` was updated in UTC.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description)
@name = args[:name] if args.key?(:name)
@perimeter_type = args[:perimeter_type] if args.key?(:perimeter_type)
@status = args[:status] if args.key?(:status)
@title = args[:title] if args.key?(:title)
@update_time = args[:update_time] if args.key?(:update_time)
end
end

View File

@ -123,24 +123,20 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :basic, as: 'basic', class: Google::Apis::AccesscontextmanagerV1beta::BasicLevel, decorator: Google::Apis::AccesscontextmanagerV1beta::BasicLevel::Representation
property :create_time, as: 'createTime'
property :custom, as: 'custom', class: Google::Apis::AccesscontextmanagerV1beta::CustomLevel, decorator: Google::Apis::AccesscontextmanagerV1beta::CustomLevel::Representation
property :description, as: 'description'
property :name, as: 'name'
property :title, as: 'title'
property :update_time, as: 'updateTime'
end
end
class AccessPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :name, as: 'name'
property :parent, as: 'parent'
property :title, as: 'title'
property :update_time, as: 'updateTime'
end
end
@ -248,14 +244,12 @@ module Google
class ServicePerimeter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :description, as: 'description'
property :name, as: 'name'
property :perimeter_type, as: 'perimeterType'
property :status, as: 'status', class: Google::Apis::AccesscontextmanagerV1beta::ServicePerimeterConfig, decorator: Google::Apis::AccesscontextmanagerV1beta::ServicePerimeterConfig::Representation
property :title, as: 'title'
property :update_time, as: 'updateTime'
end
end

View File

@ -27,7 +27,7 @@ module Google
# @see https://developers.google.com/authorized-buyers/apis/reference/rest/
module Adexchangebuyer2V2beta1
VERSION = 'V2beta1'
REVISION = '20200215'
REVISION = '20200402'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'

View File

@ -1634,9 +1634,15 @@ module Google
# @return [String]
attr_accessor :environment
# The list of formats on which to filter; may be empty. The filters
# represented by multiple formats are ORed together (i.e., if non-empty,
# results must match any one of the formats).
# Creative format bidded on or allowed to bid on, can be empty.
# Corresponds to the JSON property `format`
# @return [String]
attr_accessor :format
# Creative formats bidded on or allowed to bid on, can be empty. Although
# this field is a list, it can only be populated with a single item. A
# HTTP 400 bad request error will be returned in the response if you specify
# multiple items.
# Corresponds to the JSON property `formats`
# @return [Array<String>]
attr_accessor :formats
@ -1713,6 +1719,7 @@ module Google
@creative_id = args[:creative_id] if args.key?(:creative_id)
@deal_id = args[:deal_id] if args.key?(:deal_id)
@environment = args[:environment] if args.key?(:environment)
@format = args[:format] if args.key?(:format)
@formats = args[:formats] if args.key?(:formats)
@name = args[:name] if args.key?(:name)
@platforms = args[:platforms] if args.key?(:platforms)

View File

@ -1067,6 +1067,7 @@ module Google
property :creative_id, as: 'creativeId'
property :deal_id, :numeric_string => true, as: 'dealId'
property :environment, as: 'environment'
property :format, as: 'format'
collection :formats, as: 'formats'
property :name, as: 'name'
collection :platforms, as: 'platforms'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/admin-sdk/directory/
module AdminDirectoryV1
VERSION = 'DirectoryV1'
REVISION = '20191003'
REVISION = '20200204'
# View and manage customer related information
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'

View File

@ -96,73 +96,6 @@ module Google
end
end
# JSON template for App Access Collections Resource object in Directory API.
class AppAccessCollections
include Google::Apis::Core::Hashable
# List of blocked api access buckets.
# Corresponds to the JSON property `blockedApiAccessBuckets`
# @return [Array<String>]
attr_accessor :blocked_api_access_buckets
# Boolean to indicate whether to enforce app access settings on Android Drive or
# not.
# Corresponds to the JSON property `enforceSettingsForAndroidDrive`
# @return [Boolean]
attr_accessor :enforce_settings_for_android_drive
alias_method :enforce_settings_for_android_drive?, :enforce_settings_for_android_drive
# Error message provided by the Admin that will be shown to the user when an app
# is blocked.
# Corresponds to the JSON property `errorMessage`
# @return [String]
attr_accessor :error_message
# ETag of the resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# Identifies the resource as an app access collection. Value: admin#directory#
# appaccesscollection
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Unique ID of app access collection. (Readonly)
# Corresponds to the JSON property `resourceId`
# @return [Fixnum]
attr_accessor :resource_id
# Resource name given by the customer while creating/updating. Should be unique
# under given customer.
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
# Boolean that indicates whether to trust domain owned apps.
# Corresponds to the JSON property `trustDomainOwnedApps`
# @return [Boolean]
attr_accessor :trust_domain_owned_apps
alias_method :trust_domain_owned_apps?, :trust_domain_owned_apps
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@blocked_api_access_buckets = args[:blocked_api_access_buckets] if args.key?(:blocked_api_access_buckets)
@enforce_settings_for_android_drive = args[:enforce_settings_for_android_drive] if args.key?(:enforce_settings_for_android_drive)
@error_message = args[:error_message] if args.key?(:error_message)
@etag = args[:etag] if args.key?(:etag)
@kind = args[:kind] if args.key?(:kind)
@resource_id = args[:resource_id] if args.key?(:resource_id)
@resource_name = args[:resource_name] if args.key?(:resource_name)
@trust_domain_owned_apps = args[:trust_domain_owned_apps] if args.key?(:trust_domain_owned_apps)
end
end
# The template that returns individual ASP (Access Code) data.
class Asp
include Google::Apis::Core::Hashable
@ -3060,86 +2993,6 @@ module Google
end
end
# JSON template for Trusted App Ids Resource object in Directory API.
class TrustedAppId
include Google::Apis::Core::Hashable
# Android package name.
# Corresponds to the JSON property `androidPackageName`
# @return [String]
attr_accessor :android_package_name
# SHA1 signature of the app certificate.
# Corresponds to the JSON property `certificateHashSHA1`
# @return [String]
attr_accessor :certificate_hash_sha1
# SHA256 signature of the app certificate.
# Corresponds to the JSON property `certificateHashSHA256`
# @return [String]
attr_accessor :certificate_hash_sha256
#
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# Identifies the resource as a trusted AppId.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@android_package_name = args[:android_package_name] if args.key?(:android_package_name)
@certificate_hash_sha1 = args[:certificate_hash_sha1] if args.key?(:certificate_hash_sha1)
@certificate_hash_sha256 = args[:certificate_hash_sha256] if args.key?(:certificate_hash_sha256)
@etag = args[:etag] if args.key?(:etag)
@kind = args[:kind] if args.key?(:kind)
end
end
# JSON template for Trusted Apps response object of a user in Directory API.
class TrustedApps
include Google::Apis::Core::Hashable
# ETag of the resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# Identifies the resource as trusted apps response.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
#
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Trusted Apps list.
# Corresponds to the JSON property `trustedApps`
# @return [Array<Google::Apis::AdminDirectoryV1::TrustedAppId>]
attr_accessor :trusted_apps
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@trusted_apps = args[:trusted_apps] if args.key?(:trusted_apps)
end
end
# JSON template for User object in Directory API.
class User
include Google::Apis::Core::Hashable

View File

@ -34,12 +34,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AppAccessCollections
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Asp
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -388,18 +382,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TrustedAppId
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TrustedApps
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class User
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -558,20 +540,6 @@ module Google
end
end
class AppAccessCollections
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :blocked_api_access_buckets, as: 'blockedApiAccessBuckets'
property :enforce_settings_for_android_drive, as: 'enforceSettingsForAndroidDrive'
property :error_message, as: 'errorMessage'
property :etag, as: 'etag'
property :kind, as: 'kind'
property :resource_id, :numeric_string => true, as: 'resourceId'
property :resource_name, as: 'resourceName'
property :trust_domain_owned_apps, as: 'trustDomainOwnedApps'
end
end
class Asp
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1309,28 +1277,6 @@ module Google
end
end
class TrustedAppId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :android_package_name, as: 'androidPackageName'
property :certificate_hash_sha1, as: 'certificateHashSHA1'
property :certificate_hash_sha256, as: 'certificateHashSHA256'
property :etag, as: 'etag'
property :kind, as: 'kind'
end
end
class TrustedApps
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :trusted_apps, as: 'trustedApps', class: Google::Apis::AdminDirectoryV1::TrustedAppId, decorator: Google::Apis::AdminDirectoryV1::TrustedAppId::Representation
end
end
class User
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -2047,66 +2047,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves resolved app access settings of the logged in user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdminDirectoryV1::AppAccessCollections] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdminDirectoryV1::AppAccessCollections]
#
# @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_resolved_app_access_setting_settings(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'resolvedappaccesssettings', options)
command.response_representation = Google::Apis::AdminDirectoryV1::AppAccessCollections::Representation
command.response_class = Google::Apis::AdminDirectoryV1::AppAccessCollections
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the list of apps trusted by the admin of the logged in user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AdminDirectoryV1::TrustedApps] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdminDirectoryV1::TrustedApps]
#
# @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_resolved_app_access_setting_trusted_apps(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'trustedapps', options)
command.response_representation = Google::Apis::AdminDirectoryV1::TrustedApps::Representation
command.response_class = Google::Apis::AdminDirectoryV1::TrustedApps
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes a building.
# @param [String] customer
# The unique ID for the customer's G Suite account. As an account administrator,

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/adsense/management/
module AdsenseV1_4
VERSION = 'V1_4'
REVISION = '20180807'
REVISION = '20200311'
# View and manage your AdSense data
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/adsense/host/
module AdsensehostV4_1
VERSION = 'V4_1'
REVISION = '20180807'
REVISION = '20200311'
# View and manage your AdSense host data and associated accounts
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'

View File

@ -626,6 +626,9 @@ module Google
# Products to associate with the user.
# @param [String] website_url
# The URL of the user's hosted website.
# @param [String] callback_url
# The URL to redirect the user to once association is completed. It receives a
# token parameter that can then be used to retrieve the associated account.
# @param [String] user_locale
# The preferred locale of the user.
# @param [String] website_locale
@ -649,10 +652,11 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def start_association_session(product_code, website_url, user_locale: nil, website_locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def start_association_session(product_code, website_url, callback_url: nil, user_locale: nil, website_locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'associationsessions/start', options)
command.response_representation = Google::Apis::AdsensehostV4_1::AssociationSession::Representation
command.response_class = Google::Apis::AdsensehostV4_1::AssociationSession
command.query['callbackUrl'] = callback_url unless callback_url.nil?
command.query['productCode'] = product_code unless product_code.nil?
command.query['userLocale'] = user_locale unless user_locale.nil?
command.query['websiteLocale'] = website_locale unless website_locale.nil?

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/admin-sdk/alertcenter/
module AlertcenterV1beta1
VERSION = 'V1beta1'
REVISION = '20200307'
REVISION = '20200404'
# See and delete your domain's G Suite alerts, and send alert feedback
AUTH_APPS_ALERTS = 'https://www.googleapis.com/auth/apps.alerts'

View File

@ -81,7 +81,7 @@ module Google
# @return [String]
attr_accessor :query
# List of alert ids superseded by this alert. It is used to indicate that
# List of alert IDs superseded by this alert. It is used to indicate that
# this alert is essentially extension of superseded alerts and we found the
# relationship after creating these alerts.
# Corresponds to the JSON property `supersededAlerts`

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/zero-touch/
module AndroiddeviceprovisioningV1
VERSION = 'V1'
REVISION = '20200215'
REVISION = '20200311'
end
end
end

View File

@ -1113,7 +1113,7 @@ module Google
# @return [Google::Apis::AndroiddeviceprovisioningV1::PartnerUnclaim]
attr_accessor :unclaim
# Identifies metdata updates to one device.
# Identifies metadata updates to one device.
# Corresponds to the JSON property `updateMetadata`
# @return [Google::Apis::AndroiddeviceprovisioningV1::UpdateMetadataArguments]
attr_accessor :update_metadata
@ -1397,7 +1397,7 @@ module Google
end
end
# Identifies metdata updates to one device.
# Identifies metadata updates to one device.
class UpdateMetadataArguments
include Google::Apis::Core::Hashable

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1
VERSION = 'V1'
REVISION = '20200129'
REVISION = '20200315'
# Manage corporate Android devices
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'

View File

@ -244,7 +244,7 @@ module Google
class AppRestrictionsSchema
include Google::Apis::Core::Hashable
#
# Deprecated.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -2649,7 +2649,7 @@ module Google
# @return [String]
attr_accessor :completion_token
#
# Deprecated.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/android/management
module AndroidmanagementV1
VERSION = 'V1'
REVISION = '20200221'
REVISION = '20200330'
# Manage Android devices and apps for your customers
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'

View File

@ -197,8 +197,8 @@ module Google
# @param [Array<String>, String] wipe_data_flags
# Optional flags that control the device wiping behavior.
# @param [String] wipe_reason_message
# Optional short message displayed to the user before wiping the work profile on
# personal devices. This has no effect on company owned devices. The maximum
# Optional. A short message displayed to the user before wiping the work profile
# on personal devices. This has no effect on company owned devices. The maximum
# message length is 200 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android-publisher
module AndroidpublisherV2
VERSION = 'V2'
REVISION = '20200115'
REVISION = '20200331'
# View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'

View File

@ -777,8 +777,8 @@ module Google
# Grace period of the subscription, specified in ISO 8601 format. It will allow
# developers to give their subscribers a grace period when the payment for the
# new recurrence period is declined. Acceptable values = "P3D" (three days) and "
# P7D" (seven days)
# new recurrence period is declined. Acceptable values = "P3D" (three days), "
# P7D" (seven days), "P14D" (fourteen days), and "P30D" (thirty days)
# Corresponds to the JSON property `gracePeriod`
# @return [String]
attr_accessor :grace_period

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android-publisher
module AndroidpublisherV3
VERSION = 'V3'
REVISION = '20200223'
REVISION = '20200331'
# View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'

View File

@ -820,8 +820,8 @@ module Google
# Grace period of the subscription, specified in ISO 8601 format. It will allow
# developers to give their subscribers a grace period when the payment for the
# new recurrence period is declined. Acceptable values = "P3D" (three days) and "
# P7D" (seven days)
# new recurrence period is declined. Acceptable values = "P3D" (three days), "
# P7D" (seven days), "P14D" (fourteen days), and "P30D" (thirty days)
# Corresponds to the JSON property `gracePeriod`
# @return [String]
attr_accessor :grace_period

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1
VERSION = 'V1'
REVISION = '20200215'
REVISION = '20200329'
# View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1alpha
VERSION = 'V1alpha'
REVISION = '20200215'
REVISION = '20200329'
# View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1beta
VERSION = 'V1beta'
REVISION = '20200215'
REVISION = '20200329'
# View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigqueryV2
VERSION = 'V2'
REVISION = '20191211'
REVISION = '20200324'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -1541,6 +1541,12 @@ module Google
# @return [Google::Apis::BigqueryV2::MultiClassClassificationMetrics]
attr_accessor :multi_class_classification_metrics
# Evaluation metrics used by weighted-ALS models specified by
# feedback_type=implicit.
# Corresponds to the JSON property `rankingMetrics`
# @return [Google::Apis::BigqueryV2::RankingMetrics]
attr_accessor :ranking_metrics
# Evaluation metrics for regression and explicit feedback type matrix
# factorization models.
# Corresponds to the JSON property `regressionMetrics`
@ -1556,6 +1562,7 @@ module Google
@binary_classification_metrics = args[:binary_classification_metrics] if args.key?(:binary_classification_metrics)
@clustering_metrics = args[:clustering_metrics] if args.key?(:clustering_metrics)
@multi_class_classification_metrics = args[:multi_class_classification_metrics] if args.key?(:multi_class_classification_metrics)
@ranking_metrics = args[:ranking_metrics] if args.key?(:ranking_metrics)
@regression_metrics = args[:regression_metrics] if args.key?(:regression_metrics)
end
end
@ -2355,14 +2362,16 @@ module Google
# [Optional] The compression type to use for exported files. Possible values
# include GZIP, DEFLATE, SNAPPY, and NONE. The default value is NONE. DEFLATE
# and SNAPPY are only supported for Avro.
# and SNAPPY are only supported for Avro. Not applicable when extracting models.
# Corresponds to the JSON property `compression`
# @return [String]
attr_accessor :compression
# [Optional] The exported file format. Possible values include CSV,
# NEWLINE_DELIMITED_JSON and AVRO. The default value is CSV. Tables with nested
# or repeated fields cannot be exported as CSV.
# NEWLINE_DELIMITED_JSON or AVRO for tables and ML_TF_SAVED_MODEL or
# ML_XGBOOST_BOOSTER for models. The default value for tables is CSV. Tables
# with nested or repeated fields cannot be exported as CSV. The default value
# for models is ML_TF_SAVED_MODEL.
# Corresponds to the JSON property `destinationFormat`
# @return [String]
attr_accessor :destination_format
@ -2381,11 +2390,13 @@ module Google
attr_accessor :destination_uris
# [Optional] Delimiter to use between fields in the exported data. Default is ','
# . Not applicable when extracting models.
# Corresponds to the JSON property `fieldDelimiter`
# @return [String]
attr_accessor :field_delimiter
# [Optional] Whether to print out a header row in the results. Default is true.
# Not applicable when extracting models.
# Corresponds to the JSON property `printHeader`
# @return [Boolean]
attr_accessor :print_header
@ -2404,7 +2415,7 @@ module Google
# [Optional] If destinationFormat is set to "AVRO", this flag indicates whether
# to enable extracting applicable column types (such as TIMESTAMP) to their
# corresponding AVRO logical types (timestamp-micros), instead of only using
# their raw types (avro-long).
# their raw types (avro-long). Not applicable when extracting models.
# Corresponds to the JSON property `useAvroLogicalTypes`
# @return [Boolean]
attr_accessor :use_avro_logical_types
@ -2715,6 +2726,11 @@ module Google
# @return [Google::Apis::BigqueryV2::Clustering]
attr_accessor :clustering
# Connection properties.
# Corresponds to the JSON property `connectionProperties`
# @return [Array<Object>]
attr_accessor :connection_properties
# [Optional] Specifies whether the job is allowed to create new tables. The
# following values are supported: CREATE_IF_NEEDED: If the table does not exist,
# BigQuery creates the table. CREATE_NEVER: The table must already exist. If it
@ -2872,6 +2888,7 @@ module Google
def update!(**args)
@allow_large_results = args[:allow_large_results] if args.key?(:allow_large_results)
@clustering = args[:clustering] if args.key?(:clustering)
@connection_properties = args[:connection_properties] if args.key?(:connection_properties)
@create_disposition = args[:create_disposition] if args.key?(:create_disposition)
@default_dataset = args[:default_dataset] if args.key?(:default_dataset)
@destination_encryption_configuration = args[:destination_encryption_configuration] if args.key?(:destination_encryption_configuration)
@ -3160,6 +3177,12 @@ module Google
# @return [String]
attr_accessor :reservation_id
# [Output-only] [Preview] Statistics for row-level security. Present only for
# query and extract jobs.
# Corresponds to the JSON property `rowLevelSecurityStatistics`
# @return [Google::Apis::BigqueryV2::RowLevelSecurityStatistics]
attr_accessor :row_level_security_statistics
# [Output-only] Statistics for a child job of a script.
# Corresponds to the JSON property `scriptStatistics`
# @return [Google::Apis::BigqueryV2::ScriptStatistics]
@ -3200,6 +3223,7 @@ module Google
@quota_deferments = args[:quota_deferments] if args.key?(:quota_deferments)
@reservation_usage = args[:reservation_usage] if args.key?(:reservation_usage)
@reservation_id = args[:reservation_id] if args.key?(:reservation_id)
@row_level_security_statistics = args[:row_level_security_statistics] if args.key?(:row_level_security_statistics)
@script_statistics = args[:script_statistics] if args.key?(:script_statistics)
@start_time = args[:start_time] if args.key?(:start_time)
@total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
@ -3247,6 +3271,12 @@ module Google
attr_accessor :cache_hit
alias_method :cache_hit?, :cache_hit
# [Output-only] [Preview] The number of row access policies affected by a DDL
# statement. Present only for DROP ALL ROW ACCESS POLICIES queries.
# Corresponds to the JSON property `ddlAffectedRowAccessPolicyCount`
# @return [Fixnum]
attr_accessor :ddl_affected_row_access_policy_count
# The DDL operation performed, possibly dependent on the pre-existence of the
# DDL target. Possible values (new values might be added in the future): "CREATE"
# : The query created the DDL target. "SKIP": No-op. Example cases: the query is
@ -3264,7 +3294,14 @@ module Google
# @return [Google::Apis::BigqueryV2::RoutineReference]
attr_accessor :ddl_target_routine
# The DDL target table. Present only for CREATE/DROP TABLE/VIEW queries.
# [Output-only] [Preview] The DDL target row access policy. Present only for
# CREATE/DROP ROW ACCESS POLICY queries.
# Corresponds to the JSON property `ddlTargetRowAccessPolicy`
# @return [Google::Apis::BigqueryV2::RowAccessPolicyReference]
attr_accessor :ddl_target_row_access_policy
# [Output-only] The DDL target table. Present only for CREATE/DROP TABLE/VIEW
# and DROP ALL ROW ACCESS POLICIES queries.
# Corresponds to the JSON property `ddlTargetTable`
# @return [Google::Apis::BigqueryV2::TableReference]
attr_accessor :ddl_target_table
@ -3392,8 +3429,10 @@ module Google
def update!(**args)
@billing_tier = args[:billing_tier] if args.key?(:billing_tier)
@cache_hit = args[:cache_hit] if args.key?(:cache_hit)
@ddl_affected_row_access_policy_count = args[:ddl_affected_row_access_policy_count] if args.key?(:ddl_affected_row_access_policy_count)
@ddl_operation_performed = args[:ddl_operation_performed] if args.key?(:ddl_operation_performed)
@ddl_target_routine = args[:ddl_target_routine] if args.key?(:ddl_target_routine)
@ddl_target_row_access_policy = args[:ddl_target_row_access_policy] if args.key?(:ddl_target_row_access_policy)
@ddl_target_table = args[:ddl_target_table] if args.key?(:ddl_target_table)
@estimated_bytes_processed = args[:estimated_bytes_processed] if args.key?(:estimated_bytes_processed)
@model_training = args[:model_training] if args.key?(:model_training)
@ -4145,6 +4184,11 @@ module Google
class QueryRequest
include Google::Apis::Core::Hashable
# Connection properties.
# Corresponds to the JSON property `connectionProperties`
# @return [Array<Object>]
attr_accessor :connection_properties
# [Optional] Specifies the default datasetId and projectId to assume for any
# unqualified table names in the query. If not set, all table names in the query
# string must be qualified in the format 'datasetId.tableId'.
@ -4239,6 +4283,7 @@ module Google
# Update properties of this object
def update!(**args)
@connection_properties = args[:connection_properties] if args.key?(:connection_properties)
@default_dataset = args[:default_dataset] if args.key?(:default_dataset)
@dry_run = args[:dry_run] if args.key?(:dry_run)
@kind = args[:kind] if args.key?(:kind)
@ -4451,6 +4496,51 @@ module Google
end
end
# Evaluation metrics used by weighted-ALS models specified by
# feedback_type=implicit.
class RankingMetrics
include Google::Apis::Core::Hashable
# Determines the goodness of a ranking by computing the percentile rank
# from the predicted confidence and dividing it by the original rank.
# Corresponds to the JSON property `averageRank`
# @return [Float]
attr_accessor :average_rank
# Calculates a precision per user for all the items by ranking them and
# then averages all the precisions across all the users.
# Corresponds to the JSON property `meanAveragePrecision`
# @return [Float]
attr_accessor :mean_average_precision
# Similar to the mean squared error computed in regression and explicit
# recommendation models except instead of computing the rating directly,
# the output from evaluate is computed against a preference which is 1 or 0
# depending on if the rating exists or not.
# Corresponds to the JSON property `meanSquaredError`
# @return [Float]
attr_accessor :mean_squared_error
# A metric to determine the goodness of a ranking calculated from the
# predicted confidence by comparing it to an ideal rank measured by the
# original ratings.
# Corresponds to the JSON property `normalizedDiscountedCumulativeGain`
# @return [Float]
attr_accessor :normalized_discounted_cumulative_gain
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@average_rank = args[:average_rank] if args.key?(:average_rank)
@mean_average_precision = args[:mean_average_precision] if args.key?(:mean_average_precision)
@mean_squared_error = args[:mean_squared_error] if args.key?(:mean_squared_error)
@normalized_discounted_cumulative_gain = args[:normalized_discounted_cumulative_gain] if args.key?(:normalized_discounted_cumulative_gain)
end
end
# Evaluation metrics for regression and explicit feedback type matrix
# factorization models.
class RegressionMetrics
@ -4656,6 +4746,66 @@ module Google
end
end
#
class RowAccessPolicyReference
include Google::Apis::Core::Hashable
# [Required] The ID of the dataset containing this row access policy.
# Corresponds to the JSON property `datasetId`
# @return [String]
attr_accessor :dataset_id
# [Required] The ID of the row access policy. The ID must contain only letters (
# a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256
# characters.
# Corresponds to the JSON property `policyId`
# @return [String]
attr_accessor :policy_id
# [Required] The ID of the project containing this row access policy.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
# [Required] The ID of the table containing this row access policy.
# Corresponds to the JSON property `tableId`
# @return [String]
attr_accessor :table_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dataset_id = args[:dataset_id] if args.key?(:dataset_id)
@policy_id = args[:policy_id] if args.key?(:policy_id)
@project_id = args[:project_id] if args.key?(:project_id)
@table_id = args[:table_id] if args.key?(:table_id)
end
end
#
class RowLevelSecurityStatistics
include Google::Apis::Core::Hashable
# [Output-only] [Preview] Whether any accessed data was protected by row access
# policies.
# Corresponds to the JSON property `rowLevelSecurityApplied`
# @return [Boolean]
attr_accessor :row_level_security_applied
alias_method :row_level_security_applied?, :row_level_security_applied
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@row_level_security_applied = args[:row_level_security_applied] if args.key?(:row_level_security_applied)
end
end
#
class ScriptStackFrame
include Google::Apis::Core::Hashable
@ -5652,6 +5802,11 @@ module Google
class TrainingOptions
include Google::Apis::Core::Hashable
# Batch size for dnn models.
# Corresponds to the JSON property `batchSize`
# @return [Fixnum]
attr_accessor :batch_size
# The column to split data with. This column won't be used as a
# feature.
# 1. When data_split_method is CUSTOM, the corresponding column should
@ -5685,6 +5840,11 @@ module Google
# @return [String]
attr_accessor :distance_type
# Dropout probability for dnn models.
# Corresponds to the JSON property `dropout`
# @return [Float]
attr_accessor :dropout
# Whether to stop early when the loss doesn't improve significantly
# any more (compared to min_relative_progress). Used only for iterative
# training algorithms.
@ -5693,6 +5853,17 @@ module Google
attr_accessor :early_stop
alias_method :early_stop?, :early_stop
# Feedback type that specifies which algorithm to run for matrix
# factorization.
# Corresponds to the JSON property `feedbackType`
# @return [String]
attr_accessor :feedback_type
# Hidden units for dnn models.
# Corresponds to the JSON property `hiddenUnits`
# @return [Array<Fixnum>]
attr_accessor :hidden_units
# Specifies the initial learning rate for the line search learn rate
# strategy.
# Corresponds to the JSON property `initialLearnRate`
@ -5704,6 +5875,11 @@ module Google
# @return [Array<String>]
attr_accessor :input_label_columns
# Item column specified for matrix factorization models.
# Corresponds to the JSON property `itemColumn`
# @return [String]
attr_accessor :item_column
# The column used to provide the initial centroids for kmeans algorithm
# when kmeans_initialization_method is CUSTOM.
# Corresponds to the JSON property `kmeansInitializationColumn`
@ -5752,6 +5928,11 @@ module Google
# @return [Fixnum]
attr_accessor :max_iterations
# Maximum depth of a tree for boosted tree models.
# Corresponds to the JSON property `maxTreeDepth`
# @return [Fixnum]
attr_accessor :max_tree_depth
# When early_stop is true, stops training when accuracy improvement is
# less than 'min_relative_progress'. Used only for iterative training
# algorithms.
@ -5759,6 +5940,11 @@ module Google
# @return [Float]
attr_accessor :min_relative_progress
# Minimum split loss for boosted tree models.
# Corresponds to the JSON property `minSplitLoss`
# @return [Float]
attr_accessor :min_split_loss
# [Beta] Google Cloud Storage URI from which the model was imported. Only
# applicable for imported models.
# Corresponds to the JSON property `modelUri`
@ -5770,11 +5956,33 @@ module Google
# @return [Fixnum]
attr_accessor :num_clusters
# Num factors specified for matrix factorization models.
# Corresponds to the JSON property `numFactors`
# @return [Fixnum]
attr_accessor :num_factors
# Optimization strategy for training linear regression models.
# Corresponds to the JSON property `optimizationStrategy`
# @return [String]
attr_accessor :optimization_strategy
# Subsample fraction of the training data to grow tree to prevent
# overfitting for boosted tree models.
# Corresponds to the JSON property `subsample`
# @return [Float]
attr_accessor :subsample
# User column specified for matrix factorization models.
# Corresponds to the JSON property `userColumn`
# @return [String]
attr_accessor :user_column
# Hyperparameter for matrix factoration when implicit feedback type is
# specified.
# Corresponds to the JSON property `walsAlpha`
# @return [Float]
attr_accessor :wals_alpha
# Whether to train a model from the last checkpoint.
# Corresponds to the JSON property `warmStart`
# @return [Boolean]
@ -5787,13 +5995,18 @@ module Google
# Update properties of this object
def update!(**args)
@batch_size = args[:batch_size] if args.key?(:batch_size)
@data_split_column = args[:data_split_column] if args.key?(:data_split_column)
@data_split_eval_fraction = args[:data_split_eval_fraction] if args.key?(:data_split_eval_fraction)
@data_split_method = args[:data_split_method] if args.key?(:data_split_method)
@distance_type = args[:distance_type] if args.key?(:distance_type)
@dropout = args[:dropout] if args.key?(:dropout)
@early_stop = args[:early_stop] if args.key?(:early_stop)
@feedback_type = args[:feedback_type] if args.key?(:feedback_type)
@hidden_units = args[:hidden_units] if args.key?(:hidden_units)
@initial_learn_rate = args[:initial_learn_rate] if args.key?(:initial_learn_rate)
@input_label_columns = args[:input_label_columns] if args.key?(:input_label_columns)
@item_column = args[:item_column] if args.key?(:item_column)
@kmeans_initialization_column = args[:kmeans_initialization_column] if args.key?(:kmeans_initialization_column)
@kmeans_initialization_method = args[:kmeans_initialization_method] if args.key?(:kmeans_initialization_method)
@l1_regularization = args[:l1_regularization] if args.key?(:l1_regularization)
@ -5803,10 +6016,16 @@ module Google
@learn_rate_strategy = args[:learn_rate_strategy] if args.key?(:learn_rate_strategy)
@loss_type = args[:loss_type] if args.key?(:loss_type)
@max_iterations = args[:max_iterations] if args.key?(:max_iterations)
@max_tree_depth = args[:max_tree_depth] if args.key?(:max_tree_depth)
@min_relative_progress = args[:min_relative_progress] if args.key?(:min_relative_progress)
@min_split_loss = args[:min_split_loss] if args.key?(:min_split_loss)
@model_uri = args[:model_uri] if args.key?(:model_uri)
@num_clusters = args[:num_clusters] if args.key?(:num_clusters)
@num_factors = args[:num_factors] if args.key?(:num_factors)
@optimization_strategy = args[:optimization_strategy] if args.key?(:optimization_strategy)
@subsample = args[:subsample] if args.key?(:subsample)
@user_column = args[:user_column] if args.key?(:user_column)
@wals_alpha = args[:wals_alpha] if args.key?(:wals_alpha)
@warm_start = args[:warm_start] if args.key?(:warm_start)
end
end

View File

@ -514,6 +514,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RankingMetrics
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RegressionMetrics
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -538,6 +544,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RowAccessPolicyReference
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RowLevelSecurityStatistics
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ScriptStackFrame
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1076,6 +1094,8 @@ module Google
property :multi_class_classification_metrics, as: 'multiClassClassificationMetrics', class: Google::Apis::BigqueryV2::MultiClassClassificationMetrics, decorator: Google::Apis::BigqueryV2::MultiClassClassificationMetrics::Representation
property :ranking_metrics, as: 'rankingMetrics', class: Google::Apis::BigqueryV2::RankingMetrics, decorator: Google::Apis::BigqueryV2::RankingMetrics::Representation
property :regression_metrics, as: 'regressionMetrics', class: Google::Apis::BigqueryV2::RegressionMetrics, decorator: Google::Apis::BigqueryV2::RegressionMetrics::Representation
end
@ -1331,6 +1351,7 @@ module Google
property :allow_large_results, as: 'allowLargeResults'
property :clustering, as: 'clustering', class: Google::Apis::BigqueryV2::Clustering, decorator: Google::Apis::BigqueryV2::Clustering::Representation
collection :connection_properties, as: 'connectionProperties'
property :create_disposition, as: 'createDisposition'
property :default_dataset, as: 'defaultDataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
@ -1436,6 +1457,8 @@ module Google
collection :reservation_usage, as: 'reservationUsage', class: Google::Apis::BigqueryV2::JobStatistics::ReservationUsage, decorator: Google::Apis::BigqueryV2::JobStatistics::ReservationUsage::Representation
property :reservation_id, as: 'reservation_id'
property :row_level_security_statistics, as: 'rowLevelSecurityStatistics', class: Google::Apis::BigqueryV2::RowLevelSecurityStatistics, decorator: Google::Apis::BigqueryV2::RowLevelSecurityStatistics::Representation
property :script_statistics, as: 'scriptStatistics', class: Google::Apis::BigqueryV2::ScriptStatistics, decorator: Google::Apis::BigqueryV2::ScriptStatistics::Representation
property :start_time, :numeric_string => true, as: 'startTime'
@ -1457,9 +1480,12 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :billing_tier, as: 'billingTier'
property :cache_hit, as: 'cacheHit'
property :ddl_affected_row_access_policy_count, :numeric_string => true, as: 'ddlAffectedRowAccessPolicyCount'
property :ddl_operation_performed, as: 'ddlOperationPerformed'
property :ddl_target_routine, as: 'ddlTargetRoutine', class: Google::Apis::BigqueryV2::RoutineReference, decorator: Google::Apis::BigqueryV2::RoutineReference::Representation
property :ddl_target_row_access_policy, as: 'ddlTargetRowAccessPolicy', class: Google::Apis::BigqueryV2::RowAccessPolicyReference, decorator: Google::Apis::BigqueryV2::RowAccessPolicyReference::Representation
property :ddl_target_table, as: 'ddlTargetTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
property :estimated_bytes_processed, :numeric_string => true, as: 'estimatedBytesProcessed'
@ -1704,6 +1730,7 @@ module Google
class QueryRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :connection_properties, as: 'connectionProperties'
property :default_dataset, as: 'defaultDataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
property :dry_run, as: 'dryRun'
@ -1771,6 +1798,16 @@ module Google
end
end
class RankingMetrics
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :average_rank, as: 'averageRank'
property :mean_average_precision, as: 'meanAveragePrecision'
property :mean_squared_error, as: 'meanSquaredError'
property :normalized_discounted_cumulative_gain, as: 'normalizedDiscountedCumulativeGain'
end
end
class RegressionMetrics
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1820,6 +1857,23 @@ module Google
end
end
class RowAccessPolicyReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dataset_id, as: 'datasetId'
property :policy_id, as: 'policyId'
property :project_id, as: 'projectId'
property :table_id, as: 'tableId'
end
end
class RowLevelSecurityStatistics
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :row_level_security_applied, as: 'rowLevelSecurityApplied'
end
end
class ScriptStackFrame
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2090,13 +2144,18 @@ module Google
class TrainingOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :batch_size, :numeric_string => true, as: 'batchSize'
property :data_split_column, as: 'dataSplitColumn'
property :data_split_eval_fraction, as: 'dataSplitEvalFraction'
property :data_split_method, as: 'dataSplitMethod'
property :distance_type, as: 'distanceType'
property :dropout, as: 'dropout'
property :early_stop, as: 'earlyStop'
property :feedback_type, as: 'feedbackType'
collection :hidden_units, as: 'hiddenUnits'
property :initial_learn_rate, as: 'initialLearnRate'
collection :input_label_columns, as: 'inputLabelColumns'
property :item_column, as: 'itemColumn'
property :kmeans_initialization_column, as: 'kmeansInitializationColumn'
property :kmeans_initialization_method, as: 'kmeansInitializationMethod'
property :l1_regularization, as: 'l1Regularization'
@ -2106,10 +2165,16 @@ module Google
property :learn_rate_strategy, as: 'learnRateStrategy'
property :loss_type, as: 'lossType'
property :max_iterations, :numeric_string => true, as: 'maxIterations'
property :max_tree_depth, :numeric_string => true, as: 'maxTreeDepth'
property :min_relative_progress, as: 'minRelativeProgress'
property :min_split_loss, as: 'minSplitLoss'
property :model_uri, as: 'modelUri'
property :num_clusters, :numeric_string => true, as: 'numClusters'
property :num_factors, :numeric_string => true, as: 'numFactors'
property :optimization_strategy, as: 'optimizationStrategy'
property :subsample, as: 'subsample'
property :user_column, as: 'userColumn'
property :wals_alpha, as: 'walsAlpha'
property :warm_start, as: 'warmStart'
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigquerydatatransferV1
VERSION = 'V1'
REVISION = '20200226'
REVISION = '20200313'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigqueryreservationV1
VERSION = 'V1'
REVISION = '20200220'
REVISION = '20200403'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -22,6 +22,171 @@ module Google
module Apis
module BigqueryreservationV1
# A Assignment allows a project to submit jobs
# of a certain type using slots from the specified reservation.
class Assignment
include Google::Apis::Core::Hashable
# The resource which will use the reservation. E.g.
# projects/myproject, folders/123, organizations/456.
# Corresponds to the JSON property `assignee`
# @return [String]
attr_accessor :assignee
# Which type of jobs will use the reservation.
# Corresponds to the JSON property `jobType`
# @return [String]
attr_accessor :job_type
# Output only. Name of the resource. E.g.:
# projects/myproject/locations/US/reservations/team1-prod/assignments/123.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. State of the assignment.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@assignee = args[:assignee] if args.key?(:assignee)
@job_type = args[:job_type] if args.key?(:job_type)
@name = args[:name] if args.key?(:name)
@state = args[:state] if args.key?(:state)
end
end
# Represents a BI Reservation.
class BiReservation
include Google::Apis::Core::Hashable
# The resource name of the singleton BI reservation.
# Reservation names have the form
# `projects/`project_id`/locations/`location_id`/bireservation`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Size of a reservation, in bytes.
# Corresponds to the JSON property `size`
# @return [Fixnum]
attr_accessor :size
# Output only. The last update timestamp of a reservation.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@size = args[:size] if args.key?(:size)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# Capacity commitment is a way to purchase compute capacity for BigQuery jobs
# (in the form of slots) with some committed period of usage. Monthly and
# annual commitments renew by default. Only flex commitments can be removed. In
# order to remove monthly or annual commitments, their plan needs to be changed
# to flex first.
# A capacity commitment resource exists as a child resource of the admin
# project.
class CapacityCommitment
include Google::Apis::Core::Hashable
# Output only. The end of the current commitment period. It is applicable only
# for ACTIVE
# capacity commitments.
# Corresponds to the JSON property `commitmentEndTime`
# @return [String]
attr_accessor :commitment_end_time
# 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 `failureStatus`
# @return [Google::Apis::BigqueryreservationV1::Status]
attr_accessor :failure_status
# Output only. The resource name of the capacity commitment, e.g.,
# projects/myproject/locations/US/capacityCommitments/123
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Capacity commitment commitment plan.
# Corresponds to the JSON property `plan`
# @return [String]
attr_accessor :plan
# The plan this capacity commitment is converted to after commitment_end_time
# passes. Once the plan is changed, committed period is extended according to
# commitment plan. Only applicable for ANNUAL commitments.
# Corresponds to the JSON property `renewalPlan`
# @return [String]
attr_accessor :renewal_plan
# Number of slots in this commitment.
# Corresponds to the JSON property `slotCount`
# @return [Fixnum]
attr_accessor :slot_count
# Output only. State of the commitment.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@commitment_end_time = args[:commitment_end_time] if args.key?(:commitment_end_time)
@failure_status = args[:failure_status] if args.key?(:failure_status)
@name = args[:name] if args.key?(:name)
@plan = args[:plan] if args.key?(:plan)
@renewal_plan = args[:renewal_plan] if args.key?(:renewal_plan)
@slot_count = args[:slot_count] if args.key?(:slot_count)
@state = args[:state] if args.key?(:state)
end
end
# The metadata for operation returned from
# ReservationService.CreateSlotPool.
class CreateSlotPoolMetadata
include Google::Apis::Core::Hashable
# Resource name of the slot pool that is being created. E.g.,
# projects/myproject/locations/us-central1/reservations/foo/slotPools/123
# Corresponds to the JSON property `slotPool`
# @return [String]
attr_accessor :slot_pool
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@slot_pool = args[:slot_pool] if args.key?(:slot_pool)
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:
@ -41,6 +206,58 @@ module Google
end
end
# The response for ReservationService.ListAssignments.
class ListAssignmentsResponse
include Google::Apis::Core::Hashable
# List of assignments visible to the user.
# Corresponds to the JSON property `assignments`
# @return [Array<Google::Apis::BigqueryreservationV1::Assignment>]
attr_accessor :assignments
# Token to retrieve the next page of results, or empty if there are no
# more results in the list.
# 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)
@assignments = args[:assignments] if args.key?(:assignments)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# The response for ReservationService.ListCapacityCommitments.
class ListCapacityCommitmentsResponse
include Google::Apis::Core::Hashable
# List of capacity commitments visible to the user.
# Corresponds to the JSON property `capacityCommitments`
# @return [Array<Google::Apis::BigqueryreservationV1::CapacityCommitment>]
attr_accessor :capacity_commitments
# Token to retrieve the next page of results, or empty if there are no
# more results in the list.
# 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)
@capacity_commitments = args[:capacity_commitments] if args.key?(:capacity_commitments)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# The response message for Operations.ListOperations.
class ListOperationsResponse
include Google::Apis::Core::Hashable
@ -66,6 +283,78 @@ module Google
end
end
# The response for ReservationService.ListReservations.
class ListReservationsResponse
include Google::Apis::Core::Hashable
# Token to retrieve the next page of results, or empty if there are no
# more results in the list.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# List of reservations visible to the user.
# Corresponds to the JSON property `reservations`
# @return [Array<Google::Apis::BigqueryreservationV1::Reservation>]
attr_accessor :reservations
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)
@reservations = args[:reservations] if args.key?(:reservations)
end
end
# The request for ReservationService.MergeCapacityCommitments.
class MergeCapacityCommitmentsRequest
include Google::Apis::Core::Hashable
# Ids of capacity commitments to merge.
# These capacity commitments must exist under admin project and location
# specified in the parent.
# Corresponds to the JSON property `capacityCommitmentIds`
# @return [Array<String>]
attr_accessor :capacity_commitment_ids
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@capacity_commitment_ids = args[:capacity_commitment_ids] if args.key?(:capacity_commitment_ids)
end
end
# The request for
# ReservationService.MoveAssignment.
# Note: "bigquery.reservationAssignments.create" permission is required on the
# destination_id. Note: "bigquery.reservationAssignments.create" and
# "bigquery.reservationAssignments.delete" permission is required on the
# related assignee.
class MoveAssignmentRequest
include Google::Apis::Core::Hashable
# The new reservation ID, e.g.:
# projects/myotherproject/locations/US/reservations/team2-prod
# Corresponds to the JSON property `destinationId`
# @return [String]
attr_accessor :destination_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@destination_id = args[:destination_id] if args.key?(:destination_id)
end
end
# This resource represents a long-running operation that is the result of a
# network API call.
class Operation
@ -130,6 +419,130 @@ module Google
end
end
# A reservation is a mechanism used to guarantee slots to users.
class Reservation
include Google::Apis::Core::Hashable
# If false, any query using this reservation will use idle slots from other
# reservations within the same admin project. If true, a query using this
# reservation will execute with the slot capacity specified above at most.
# Corresponds to the JSON property `ignoreIdleSlots`
# @return [Boolean]
attr_accessor :ignore_idle_slots
alias_method :ignore_idle_slots?, :ignore_idle_slots
# The resource name of the reservation, e.g.,
# "projects/*/locations/*/reservations/team1-prod".
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Minimum slots available to this reservation. A slot is a unit of
# computational power in BigQuery, and serves as the unit of parallelism.
# Queries using this reservation might use more slots during runtime if
# ignore_idle_slots is set to false.
# If the new reservation's slot capacity exceed the parent's slot capacity or
# if total slot capacity of the new reservation and its siblings exceeds the
# parent's slot capacity, the request will fail with
# `google.rpc.Code.RESOURCE_EXHAUSTED`.
# Corresponds to the JSON property `slotCapacity`
# @return [Fixnum]
attr_accessor :slot_capacity
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ignore_idle_slots = args[:ignore_idle_slots] if args.key?(:ignore_idle_slots)
@name = args[:name] if args.key?(:name)
@slot_capacity = args[:slot_capacity] if args.key?(:slot_capacity)
end
end
# The response for ReservationService.SearchAssignments.
class SearchAssignmentsResponse
include Google::Apis::Core::Hashable
# List of assignments visible to the user.
# Corresponds to the JSON property `assignments`
# @return [Array<Google::Apis::BigqueryreservationV1::Assignment>]
attr_accessor :assignments
# Token to retrieve the next page of results, or empty if there are no
# more results in the list.
# 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)
@assignments = args[:assignments] if args.key?(:assignments)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# The request for ReservationService.SplitCapacityCommitment.
class SplitCapacityCommitmentRequest
include Google::Apis::Core::Hashable
# Number of slots in the capacity commitment after the split.
# Corresponds to the JSON property `slotCount`
# @return [Fixnum]
attr_accessor :slot_count
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@slot_count = args[:slot_count] if args.key?(:slot_count)
end
end
# The response for ReservationService.SplitCapacityCommitment.
class SplitCapacityCommitmentResponse
include Google::Apis::Core::Hashable
# Capacity commitment is a way to purchase compute capacity for BigQuery jobs
# (in the form of slots) with some committed period of usage. Monthly and
# annual commitments renew by default. Only flex commitments can be removed. In
# order to remove monthly or annual commitments, their plan needs to be changed
# to flex first.
# A capacity commitment resource exists as a child resource of the admin
# project.
# Corresponds to the JSON property `first`
# @return [Google::Apis::BigqueryreservationV1::CapacityCommitment]
attr_accessor :first
# Capacity commitment is a way to purchase compute capacity for BigQuery jobs
# (in the form of slots) with some committed period of usage. Monthly and
# annual commitments renew by default. Only flex commitments can be removed. In
# order to remove monthly or annual commitments, their plan needs to be changed
# to flex first.
# A capacity commitment resource exists as a child resource of the admin
# project.
# Corresponds to the JSON property `second`
# @return [Google::Apis::BigqueryreservationV1::CapacityCommitment]
attr_accessor :second
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@first = args[:first] if args.key?(:first)
@second = args[:second] if args.key?(:second)
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

View File

@ -22,36 +22,172 @@ module Google
module Apis
module BigqueryreservationV1
class Assignment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BiReservation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CapacityCommitment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CreateSlotPoolMetadata
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 ListAssignmentsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListCapacityCommitmentsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListReservationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MergeCapacityCommitmentsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MoveAssignmentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Reservation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchAssignmentsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SplitCapacityCommitmentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SplitCapacityCommitmentResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Assignment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :assignee, as: 'assignee'
property :job_type, as: 'jobType'
property :name, as: 'name'
property :state, as: 'state'
end
end
class BiReservation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :size, :numeric_string => true, as: 'size'
property :update_time, as: 'updateTime'
end
end
class CapacityCommitment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :commitment_end_time, as: 'commitmentEndTime'
property :failure_status, as: 'failureStatus', class: Google::Apis::BigqueryreservationV1::Status, decorator: Google::Apis::BigqueryreservationV1::Status::Representation
property :name, as: 'name'
property :plan, as: 'plan'
property :renewal_plan, as: 'renewalPlan'
property :slot_count, :numeric_string => true, as: 'slotCount'
property :state, as: 'state'
end
end
class CreateSlotPoolMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :slot_pool, as: 'slotPool'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ListAssignmentsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :assignments, as: 'assignments', class: Google::Apis::BigqueryreservationV1::Assignment, decorator: Google::Apis::BigqueryreservationV1::Assignment::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListCapacityCommitmentsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :capacity_commitments, as: 'capacityCommitments', class: Google::Apis::BigqueryreservationV1::CapacityCommitment, decorator: Google::Apis::BigqueryreservationV1::CapacityCommitment::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -61,6 +197,29 @@ module Google
end
end
class ListReservationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :reservations, as: 'reservations', class: Google::Apis::BigqueryreservationV1::Reservation, decorator: Google::Apis::BigqueryreservationV1::Reservation::Representation
end
end
class MergeCapacityCommitmentsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :capacity_commitment_ids, as: 'capacityCommitmentIds'
end
end
class MoveAssignmentRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :destination_id, as: 'destinationId'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -73,6 +232,41 @@ module Google
end
end
class Reservation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ignore_idle_slots, as: 'ignoreIdleSlots'
property :name, as: 'name'
property :slot_capacity, :numeric_string => true, as: 'slotCapacity'
end
end
class SearchAssignmentsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :assignments, as: 'assignments', class: Google::Apis::BigqueryreservationV1::Assignment, decorator: Google::Apis::BigqueryreservationV1::Assignment::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class SplitCapacityCommitmentRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :slot_count, :numeric_string => true, as: 'slotCount'
end
end
class SplitCapacityCommitmentResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :first, as: 'first', class: Google::Apis::BigqueryreservationV1::CapacityCommitment, decorator: Google::Apis::BigqueryreservationV1::CapacityCommitment::Representation
property :second, as: 'second', class: Google::Apis::BigqueryreservationV1::CapacityCommitment, decorator: Google::Apis::BigqueryreservationV1::CapacityCommitment::Representation
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -126,6 +126,751 @@ module Google
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Retrieves a BI reservation.
# @param [String] name
# Required. Name of the requested reservation, for example:
# `projects/`project_id`/locations/`location_id`/bireservation`
# @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::BigqueryreservationV1::BiReservation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1::BiReservation]
#
# @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_bi_reservation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::BigqueryreservationV1::BiReservation::Representation
command.response_class = Google::Apis::BigqueryreservationV1::BiReservation
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
# Looks up assignments for a specified resource for a particular region.
# If the request is about a project:
# 1) Assignments created on the project will be returned if they exist.
# 2) Otherwise assignments created on the closest ancestor will be
# returned. 3) Assignments for different JobTypes will all be returned.
# Same logic applies if the request is about a folder.
# If the request is about an organization, then assignments created on the
# organization will be returned (organization doesn't have ancestors).
# Comparing to ListAssignments, there are some behavior
# differences:
# 1) permission on the assignee will be verified in this API.
# 2) Hierarchy lookup (project->folder->organization) happens in this API.
# 3) Parent here is projects/*/locations/*, instead of
# projects/*/locations/*reservations/*.
# Note "-" cannot be used for projects
# nor locations.
# @param [String] parent
# Required. The resource name of the admin project(containing project and
# location),
# e.g.:
# "projects/myproject/locations/US".
# @param [Fixnum] page_size
# The maximum number of items to return.
# @param [String] page_token
# The next_page_token value returned from a previous List request, if any.
# @param [String] query
# Please specify resource name as assignee in the query.
# e.g., "assignee=projects/myproject"
# "assignee=folders/123"
# "assignee=organizations/456"
# @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::BigqueryreservationV1::SearchAssignmentsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1::SearchAssignmentsResponse]
#
# @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 search_project_location_assignments(parent, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}:searchAssignments', options)
command.response_representation = Google::Apis::BigqueryreservationV1::SearchAssignmentsResponse::Representation
command.response_class = Google::Apis::BigqueryreservationV1::SearchAssignmentsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['query'] = query unless query.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates a BI reservation.
# Only fields specified in the field_mask are updated.
# Singleton BI reservation always exists with default size 0.
# In order to reserve BI capacity it needs to be updated to an amount
# greater than 0. In order to release BI capacity reservation size
# must be set to 0.
# @param [String] name
# The resource name of the singleton BI reservation.
# Reservation names have the form
# `projects/`project_id`/locations/`location_id`/bireservation`.
# @param [Google::Apis::BigqueryreservationV1::BiReservation] bi_reservation_object
# @param [String] update_mask
# A list of fields to be updated in this 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::BigqueryreservationV1::BiReservation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1::BiReservation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_project_location_bi_reservation(name, bi_reservation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::BigqueryreservationV1::BiReservation::Representation
command.request_object = bi_reservation_object
command.response_representation = Google::Apis::BigqueryreservationV1::BiReservation::Representation
command.response_class = Google::Apis::BigqueryreservationV1::BiReservation
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new capacity commitment resource.
# @param [String] parent
# Required. Resource name of the parent reservation. E.g.,
# projects/myproject/locations/US
# @param [Google::Apis::BigqueryreservationV1::CapacityCommitment] capacity_commitment_object
# @param [Boolean] enforce_single_admin_project_per_org
# If true, fail the request if another project in the organization has a
# capacity commitment.
# @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::BigqueryreservationV1::CapacityCommitment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1::CapacityCommitment]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_capacity_commitment(parent, capacity_commitment_object = nil, enforce_single_admin_project_per_org: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/capacityCommitments', options)
command.request_representation = Google::Apis::BigqueryreservationV1::CapacityCommitment::Representation
command.request_object = capacity_commitment_object
command.response_representation = Google::Apis::BigqueryreservationV1::CapacityCommitment::Representation
command.response_class = Google::Apis::BigqueryreservationV1::CapacityCommitment
command.params['parent'] = parent unless parent.nil?
command.query['enforceSingleAdminProjectPerOrg'] = enforce_single_admin_project_per_org unless enforce_single_admin_project_per_org.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 capacity commitment. Attempting to delete capacity commitment
# before its commitment_end_time will fail with the error code
# `google.rpc.Code.FAILED_PRECONDITION`.
# @param [String] name
# Required. Resource name of the capacity commitment to delete. E.g.,
# projects/myproject/locations/US/capacityCommitments/123
# @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::BigqueryreservationV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1::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_capacity_commitment(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::BigqueryreservationV1::Empty::Representation
command.response_class = Google::Apis::BigqueryreservationV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns information about the capacity commitment.
# @param [String] name
# Required. Resource name of the capacity commitment to retrieve. E.g.,
# projects/myproject/locations/US/capacityCommitments/123
# @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::BigqueryreservationV1::CapacityCommitment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1::CapacityCommitment]
#
# @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_capacity_commitment(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::BigqueryreservationV1::CapacityCommitment::Representation
command.response_class = Google::Apis::BigqueryreservationV1::CapacityCommitment
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 all the capacity commitments for the admin project.
# @param [String] parent
# Required. Resource name of the parent reservation. E.g.,
# projects/myproject/locations/US
# @param [Fixnum] page_size
# The maximum number of items to return.
# @param [String] page_token
# The next_page_token value returned from a previous List request, if any.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BigqueryreservationV1::ListCapacityCommitmentsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1::ListCapacityCommitmentsResponse]
#
# @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_capacity_commitments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/capacityCommitments', options)
command.response_representation = Google::Apis::BigqueryreservationV1::ListCapacityCommitmentsResponse::Representation
command.response_class = Google::Apis::BigqueryreservationV1::ListCapacityCommitmentsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Merges capacity commitments of the same plan into one. Resulting capacity
# commitment has the longer commitment_end_time out of the two. Attempting to
# merge capacity commitments of different plan will fail with the error code
# `google.rpc.Code.FAILED_PRECONDITION`.
# @param [String] parent
# Parent resource that identifies admin project and location e.g.,
# projects/myproject/locations/us
# @param [Google::Apis::BigqueryreservationV1::MergeCapacityCommitmentsRequest] merge_capacity_commitments_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::BigqueryreservationV1::CapacityCommitment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1::CapacityCommitment]
#
# @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 merge_capacity_commitments(parent, merge_capacity_commitments_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/capacityCommitments:merge', options)
command.request_representation = Google::Apis::BigqueryreservationV1::MergeCapacityCommitmentsRequest::Representation
command.request_object = merge_capacity_commitments_request_object
command.response_representation = Google::Apis::BigqueryreservationV1::CapacityCommitment::Representation
command.response_class = Google::Apis::BigqueryreservationV1::CapacityCommitment
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
# Updates an existing capacity commitment.
# Only plan and renewal_plan fields can be updated.
# Plan can only be changed to a plan of a longer commitment period.
# Attempting to change to a plan with shorter commitment period will fail
# with the error code `google.rpc.Code.FAILED_PRECONDITION`.
# @param [String] name
# Output only. The resource name of the capacity commitment, e.g.,
# projects/myproject/locations/US/capacityCommitments/123
# @param [Google::Apis::BigqueryreservationV1::CapacityCommitment] capacity_commitment_object
# @param [String] update_mask
# Standard field mask for the set of fields to be 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::BigqueryreservationV1::CapacityCommitment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1::CapacityCommitment]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_location_capacity_commitment(name, capacity_commitment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::BigqueryreservationV1::CapacityCommitment::Representation
command.request_object = capacity_commitment_object
command.response_representation = Google::Apis::BigqueryreservationV1::CapacityCommitment::Representation
command.response_class = Google::Apis::BigqueryreservationV1::CapacityCommitment
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Splits capacity commitment to two commitments of the same plan and
# commitment_end_time. A common use case to do that is to perform a downgrade
# e.g., in order to downgrade from 10000 slots to 8000, one might split 10000
# capacity commitment to 2000 and 8000, change the plan of the first one to
# flex and then delete it.
# @param [String] name
# Required. The resource name e.g.,:
# projects/myproject/locations/US/capacityCommitments/123
# @param [Google::Apis::BigqueryreservationV1::SplitCapacityCommitmentRequest] split_capacity_commitment_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::BigqueryreservationV1::SplitCapacityCommitmentResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1::SplitCapacityCommitmentResponse]
#
# @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 split_capacity_commitment(name, split_capacity_commitment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:split', options)
command.request_representation = Google::Apis::BigqueryreservationV1::SplitCapacityCommitmentRequest::Representation
command.request_object = split_capacity_commitment_request_object
command.response_representation = Google::Apis::BigqueryreservationV1::SplitCapacityCommitmentResponse::Representation
command.response_class = Google::Apis::BigqueryreservationV1::SplitCapacityCommitmentResponse
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 new reservation resource.
# @param [String] parent
# Required. Project, location. E.g.,
# projects/myproject/locations/US
# @param [Google::Apis::BigqueryreservationV1::Reservation] reservation_object
# @param [String] reservation_id
# The reservation ID. This field must only contain lower case alphanumeric
# characters or dash. Max length is 64 characters.
# @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::BigqueryreservationV1::Reservation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1::Reservation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_reservation(parent, reservation_object = nil, reservation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/reservations', options)
command.request_representation = Google::Apis::BigqueryreservationV1::Reservation::Representation
command.request_object = reservation_object
command.response_representation = Google::Apis::BigqueryreservationV1::Reservation::Representation
command.response_class = Google::Apis::BigqueryreservationV1::Reservation
command.params['parent'] = parent unless parent.nil?
command.query['reservationId'] = reservation_id unless reservation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a reservation.
# Returns `google.rpc.Code.FAILED_PRECONDITION` when reservation has
# assignments.
# @param [String] name
# Required. Resource name of the reservation to retrieve. E.g.,
# projects/myproject/locations/US/reservations/team1-prod
# @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::BigqueryreservationV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1::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_reservation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::BigqueryreservationV1::Empty::Representation
command.response_class = Google::Apis::BigqueryreservationV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns information about the reservation.
# @param [String] name
# Required. Resource name of the reservation to retrieve. E.g.,
# projects/myproject/locations/US/reservations/team1-prod
# @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::BigqueryreservationV1::Reservation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1::Reservation]
#
# @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_reservation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::BigqueryreservationV1::Reservation::Representation
command.response_class = Google::Apis::BigqueryreservationV1::Reservation
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 all the reservations for the project in the specified location.
# @param [String] parent
# Required. The parent resource name containing project and location, e.g.:
# "projects/myproject/locations/US"
# @param [Fixnum] page_size
# The maximum number of items to return.
# @param [String] page_token
# The next_page_token value returned from a previous List request, if any.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BigqueryreservationV1::ListReservationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1::ListReservationsResponse]
#
# @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_reservations(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/reservations', options)
command.response_representation = Google::Apis::BigqueryreservationV1::ListReservationsResponse::Representation
command.response_class = Google::Apis::BigqueryreservationV1::ListReservationsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates an existing reservation resource.
# @param [String] name
# The resource name of the reservation, e.g.,
# "projects/*/locations/*/reservations/team1-prod".
# @param [Google::Apis::BigqueryreservationV1::Reservation] reservation_object
# @param [String] update_mask
# Standard field mask for the set of fields to be 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::BigqueryreservationV1::Reservation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1::Reservation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_location_reservation(name, reservation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::BigqueryreservationV1::Reservation::Representation
command.request_object = reservation_object
command.response_representation = Google::Apis::BigqueryreservationV1::Reservation::Representation
command.response_class = Google::Apis::BigqueryreservationV1::Reservation
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates an object which allows the given project to submit jobs
# of a certain type using slots from the specified reservation. Currently a
# resource (project, folder, organization) can only have one assignment per
# `job_type, location`, and that reservation will be used for all jobs of the
# matching type. Within the organization, different assignments can be
# created on projects, folders or organization level. During query execution,
# the assignment is looked up at the project, folder and organization levels
# in that order. The first assignment found is applied to the query. When
# creating assignments, it does not matter if other assignments exist at
# higher levels. E.g: organizationA contains project1, project2. Assignments
# for organizationA, project1 and project2 could all be created, mapping to
# the same or different reservations.
# Returns `google.rpc.Code.PERMISSION_DENIED` if user does not have
# 'bigquery.admin' permissions on the project using the reservation
# and the project that owns this reservation.
# Returns `google.rpc.Code.INVALID_ARGUMENT` when location of the assignment
# does not match location of the reservation.
# @param [String] parent
# Required. The parent resource name of the assignment
# E.g.: projects/myproject/locations/US/reservations/team1-prod
# @param [Google::Apis::BigqueryreservationV1::Assignment] assignment_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::BigqueryreservationV1::Assignment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1::Assignment]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_reservation_assignment(parent, assignment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/assignments', options)
command.request_representation = Google::Apis::BigqueryreservationV1::Assignment::Representation
command.request_object = assignment_object
command.response_representation = Google::Apis::BigqueryreservationV1::Assignment::Representation
command.response_class = Google::Apis::BigqueryreservationV1::Assignment
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a assignment. No expansion will happen.
# E.g:
# organizationA contains project1 and project2. Reservation res1 exists.
# CreateAssignment was invoked previously and following assignments were
# created explicitly:
# <organizationA, res1>
# <project1, res1>
# Then deletion of <organizationA, res1> won't affect <project1, res1>. After
# deletion of <organizationA, res1>, queries from project1 will still use
# res1, while queries from project2 will use on-demand mode.
# @param [String] name
# Required. Name of the resource, e.g.:
# projects/myproject/locations/US/reservations/team1-prod/assignments/123
# @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::BigqueryreservationV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1::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_reservation_assignment(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::BigqueryreservationV1::Empty::Representation
command.response_class = Google::Apis::BigqueryreservationV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists assignments.
# Only explicitly created assignments will be returned. E.g:
# organizationA contains project1 and project2. Reservation res1 exists.
# CreateAssignment was invoked previously and following assignments were
# created explicitly:
# <organizationA, res1>
# <project1, res1>
# Then this API will just return the above two assignments for reservation
# res1, and no expansion/merge will happen. Wildcard "-" can be used for
# reservations in the request. In that case all assignments belongs to the
# specified project and location will be listed. Note
# "-" cannot be used for projects nor locations.
# @param [String] parent
# Required. The parent resource name e.g.:
# projects/myproject/locations/US/reservations/team1-prod
# Or:
# projects/myproject/locations/US/reservations/-
# @param [Fixnum] page_size
# The maximum number of items to return.
# @param [String] page_token
# The next_page_token value returned from a previous List request, if any.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BigqueryreservationV1::ListAssignmentsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1::ListAssignmentsResponse]
#
# @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_reservation_assignments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/assignments', options)
command.response_representation = Google::Apis::BigqueryreservationV1::ListAssignmentsResponse::Representation
command.response_class = Google::Apis::BigqueryreservationV1::ListAssignmentsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Moves a assignment under a new reservation. Customers can do this by
# deleting the existing assignment followed by creating another assignment
# under the new reservation, but this method provides a transactional way to
# do so, to make sure the assignee always has an associated reservation.
# Without the method customers might see some queries run on-demand which
# might be unexpected.
# @param [String] name
# Required. The resource name of the assignment,
# e.g.:
# projects/myproject/locations/US/reservations/team1-prod/assignments/123
# @param [Google::Apis::BigqueryreservationV1::MoveAssignmentRequest] move_assignment_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::BigqueryreservationV1::Assignment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1::Assignment]
#
# @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 move_assignment(name, move_assignment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:move', options)
command.request_representation = Google::Apis::BigqueryreservationV1::MoveAssignmentRequest::Representation
command.request_object = move_assignment_request_object
command.response_representation = Google::Apis::BigqueryreservationV1::Assignment::Representation
command.response_class = Google::Apis::BigqueryreservationV1::Assignment
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigqueryreservationV1beta1
VERSION = 'V1beta1'
REVISION = '20200229'
REVISION = '20200403'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -62,6 +62,40 @@ module Google
end
end
# Auto scaling settings and current situation.
# System will create a dedicated FLEX capacity commitment to hold the slots
# for auto-scale. Users won't be able to manage it,to avoid conflicts.
# Scale-up will happen, if there are always pending tasks for the past 10
# minutes.
# Scale-down will happen, if the system knows that scale-up won't be
# triggered again.
# Note this is an alpha feature.
class Autoscale
include Google::Apis::Core::Hashable
# Output only. The slot capacity added to this reservation when autoscale
# happens. Will
# be between [0, max_slots].
# Corresponds to the JSON property `currentSlots`
# @return [Fixnum]
attr_accessor :current_slots
# Number of slots to be scaled when needed.
# Corresponds to the JSON property `maxSlots`
# @return [Fixnum]
attr_accessor :max_slots
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@current_slots = args[:current_slots] if args.key?(:current_slots)
@max_slots = args[:max_slots] if args.key?(:max_slots)
end
end
# Represents a BI Reservation.
class BiReservation
include Google::Apis::Core::Hashable
@ -135,7 +169,7 @@ module Google
# The plan this capacity commitment is converted to after commitment_end_time
# passes. Once the plan is changed, committed period is extended according to
# commitment plan. Only applicable for MONTHLY and ANNUAL commitments.
# commitment plan. Only applicable for ANNUAL commitments.
# Corresponds to the JSON property `renewalPlan`
# @return [String]
attr_accessor :renewal_plan
@ -166,6 +200,27 @@ module Google
end
end
# The metadata for operation returned from
# ReservationService.CreateSlotPool.
class CreateSlotPoolMetadata
include Google::Apis::Core::Hashable
# Resource name of the slot pool that is being created. E.g.,
# projects/myproject/locations/us-central1/reservations/foo/slotPools/123
# Corresponds to the JSON property `slotPool`
# @return [String]
attr_accessor :slot_pool
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@slot_pool = args[:slot_pool] if args.key?(:slot_pool)
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:
@ -313,6 +368,18 @@ module Google
class Reservation
include Google::Apis::Core::Hashable
# Auto scaling settings and current situation.
# System will create a dedicated FLEX capacity commitment to hold the slots
# for auto-scale. Users won't be able to manage it,to avoid conflicts.
# Scale-up will happen, if there are always pending tasks for the past 10
# minutes.
# Scale-down will happen, if the system knows that scale-up won't be
# triggered again.
# Note this is an alpha feature.
# Corresponds to the JSON property `autoscale`
# @return [Google::Apis::BigqueryreservationV1beta1::Autoscale]
attr_accessor :autoscale
# If false, any query using this reservation will use idle slots from other
# reservations within the same admin project. If true, a query using this
# reservation will execute with the slot capacity specified above at most.
@ -345,6 +412,7 @@ module Google
# Update properties of this object
def update!(**args)
@autoscale = args[:autoscale] if args.key?(:autoscale)
@ignore_idle_slots = args[:ignore_idle_slots] if args.key?(:ignore_idle_slots)
@name = args[:name] if args.key?(:name)
@slot_capacity = args[:slot_capacity] if args.key?(:slot_capacity)
@ -471,25 +539,6 @@ module Google
@message = args[:message] if args.key?(:message)
end
end
# The request for ReservationService.UpgradeCapacityCommitmentPlan.
class UpgradeCapacityCommitmentPlanRequest
include Google::Apis::Core::Hashable
# New capacity commitment plan.
# Corresponds to the JSON property `plan`
# @return [String]
attr_accessor :plan
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@plan = args[:plan] if args.key?(:plan)
end
end
end
end
end

View File

@ -28,6 +28,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Autoscale
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BiReservation
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -40,6 +46,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CreateSlotPoolMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -106,12 +118,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UpgradeCapacityCommitmentPlanRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Assignment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -122,6 +128,14 @@ module Google
end
end
class Autoscale
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :current_slots, :numeric_string => true, as: 'currentSlots'
property :max_slots, :numeric_string => true, as: 'maxSlots'
end
end
class BiReservation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -145,6 +159,13 @@ module Google
end
end
class CreateSlotPoolMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :slot_pool, as: 'slotPool'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -195,6 +216,8 @@ module Google
class Reservation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :autoscale, as: 'autoscale', class: Google::Apis::BigqueryreservationV1beta1::Autoscale, decorator: Google::Apis::BigqueryreservationV1beta1::Autoscale::Representation
property :ignore_idle_slots, as: 'ignoreIdleSlots'
property :name, as: 'name'
property :slot_capacity, :numeric_string => true, as: 'slotCapacity'
@ -235,13 +258,6 @@ module Google
property :message, as: 'message'
end
end
class UpgradeCapacityCommitmentPlanRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :plan, as: 'plan'
end
end
end
end
end

View File

@ -358,7 +358,10 @@ module Google
end
# Updates an existing capacity commitment.
# Only renewal_plan field can be updated.
# Only plan and renewal_plan fields can be updated.
# Plan can only be changed to a plan of a longer commitment period.
# Attempting to change to a plan with shorter commitment period will fail
# with the error code `google.rpc.Code.FAILED_PRECONDITION`.
# @param [String] name
# Output only. The resource name of the capacity commitment, e.g.,
# projects/myproject/locations/US/capacityCommitments/123
@ -433,44 +436,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Replaces an existing commitment with a new commitment of a different plan.
# Plan can only be changed to a plan of a longer commitment period. New
# commitment start is set to a current time. Attempting to change to a plan
# with shorter commitment period will fail with the error code
# `google.rpc.Code.FAILED_PRECONDITION`.
# @param [String] capacity_commitment
# Required. The resource name e.g.,:
# projects/myproject/locations/US/capacityCommitments/123
# @param [Google::Apis::BigqueryreservationV1beta1::UpgradeCapacityCommitmentPlanRequest] upgrade_capacity_commitment_plan_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::BigqueryreservationV1beta1::CapacityCommitment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment]
#
# @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 upgrade_capacity_commitment_plan(capacity_commitment, upgrade_capacity_commitment_plan_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+capacityCommitment}:upgradeCapacityCommitmentPlan', options)
command.request_representation = Google::Apis::BigqueryreservationV1beta1::UpgradeCapacityCommitmentPlanRequest::Representation
command.request_object = upgrade_capacity_commitment_plan_request_object
command.response_representation = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment::Representation
command.response_class = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment
command.params['capacityCommitment'] = capacity_commitment unless capacity_commitment.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 reservation resource.
# @param [String] parent
# Required. Project, location. E.g.,

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigtable/
module BigtableadminV1
VERSION = 'V1'
REVISION = '20191022'
REVISION = '20200211'
end
end
end

View File

@ -39,19 +39,20 @@ module Google
# The location where this cluster's nodes and storage reside. For best
# performance, clients should be located as close as possible to this
# cluster. Currently only zones are supported, so values should be of the
# form `projects/<project>/locations/<zone>`.
# form `projects/`project`/locations/`zone``.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# (`OutputOnly`)
# Required. (`OutputOnly`)
# The unique name of the cluster. Values are of the form
# `projects/<project>/instances/<instance>/clusters/a-z*`.
# `projects/`project`/instances/`instance`/clusters/a-z*`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The number of nodes allocated to this cluster. More nodes enable higher
# Required. The number of nodes allocated to this cluster. More nodes enable
# higher
# throughput and more consistent performance.
# Corresponds to the JSON property `serveNodes`
# @return [Fixnum]
@ -131,16 +132,17 @@ module Google
# @return [Google::Apis::BigtableadminV1::Cluster]
attr_accessor :cluster
# The ID to be used when referring to the new cluster within its instance,
# Required. The ID to be used when referring to the new cluster within its
# instance,
# e.g., just `mycluster` rather than
# `projects/myproject/instances/myinstance/clusters/mycluster`.
# Corresponds to the JSON property `clusterId`
# @return [String]
attr_accessor :cluster_id
# 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
# `projects/<project>/instances/<instance>`.
# `projects/`project`/instances/`instance``.
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
@ -192,7 +194,7 @@ module Google
class CreateInstanceRequest
include Google::Apis::Core::Hashable
# 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
# `projects/myproject/instances/myinstance/clusters/mycluster`.
# Fields marked `OutputOnly` must be left blank.
@ -209,15 +211,16 @@ module Google
# @return [Google::Apis::BigtableadminV1::Instance]
attr_accessor :instance
# The ID to be used when referring to the new instance within its project,
# Required. The ID to be used when referring to the new instance within its
# project,
# e.g., just `myinstance` rather than
# `projects/myproject/instances/myinstance`.
# Corresponds to the JSON property `instanceId`
# @return [String]
attr_accessor :instance_id
# The unique name of the project in which to create the new instance.
# Values are of the form `projects/<project>`.
# Required. The unique name of the project in which to create the new instance.
# Values are of the form `projects/`project``.
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
@ -242,14 +245,14 @@ module Google
class Instance
include Google::Apis::Core::Hashable
# 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 changed at any time, but should be kept globally unique
# to avoid confusion.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# 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
# deployment strategies. They can be used to filter resources and aggregate
# metrics.
@ -263,9 +266,9 @@ module Google
# @return [Hash<String,String>]
attr_accessor :labels
# (`OutputOnly`)
# Required. (`OutputOnly`)
# The unique name of the instance. Values are of the form
# `projects/<project>/instances/a-z+[a-z0-9]`.
# `projects/`project`/instances/a-z+[a-z0-9]`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -276,7 +279,7 @@ module Google
# @return [String]
attr_accessor :state
# The type of the instance. Defaults to `PRODUCTION`.
# Required. The type of the instance. Defaults to `PRODUCTION`.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -307,7 +310,7 @@ module Google
# @return [Google::Apis::BigtableadminV1::Instance]
attr_accessor :instance
# The subset of Instance fields which should be replaced.
# Required. The subset of Instance fields which should be replaced.
# Must be explicitly set.
# Corresponds to the JSON property `updateMask`
# @return [String]

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigtable/
module BigtableadminV2
VERSION = 'V2'
REVISION = '20200204'
REVISION = '20200211'
# Administer your Cloud Bigtable tables and clusters
AUTH_BIGTABLE_ADMIN = 'https://www.googleapis.com/auth/bigtable.admin'

View File

@ -285,7 +285,7 @@ module Google
class CheckConsistencyRequest
include Google::Apis::Core::Hashable
# The token created using GenerateConsistencyToken for the Table.
# Required. The token created using GenerateConsistencyToken for the Table.
# Corresponds to the JSON property `consistencyToken`
# @return [String]
attr_accessor :consistency_token
@ -339,19 +339,20 @@ module Google
# The location where this cluster's nodes and storage reside. For best
# performance, clients should be located as close as possible to this
# cluster. Currently only zones are supported, so values should be of the
# form `projects/<project>/locations/<zone>`.
# form `projects/`project`/locations/`zone``.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# (`OutputOnly`)
# Required. (`OutputOnly`)
# The unique name of the cluster. Values are of the form
# `projects/<project>/instances/<instance>/clusters/a-z*`.
# `projects/`project`/instances/`instance`/clusters/a-z*`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The number of nodes allocated to this cluster. More nodes enable higher
# Required. The number of nodes allocated to this cluster. More nodes enable
# higher
# throughput and more consistent performance.
# Corresponds to the JSON property `serveNodes`
# @return [Fixnum]
@ -469,16 +470,17 @@ module Google
# @return [Google::Apis::BigtableadminV2::Cluster]
attr_accessor :cluster
# The ID to be used when referring to the new cluster within its instance,
# Required. The ID to be used when referring to the new cluster within its
# instance,
# e.g., just `mycluster` rather than
# `projects/myproject/instances/myinstance/clusters/mycluster`.
# Corresponds to the JSON property `clusterId`
# @return [String]
attr_accessor :cluster_id
# 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
# `projects/<project>/instances/<instance>`.
# `projects/`project`/instances/`instance``.
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
@ -530,7 +532,7 @@ module Google
class CreateInstanceRequest
include Google::Apis::Core::Hashable
# 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
# `projects/myproject/instances/myinstance/clusters/mycluster`.
# Fields marked `OutputOnly` must be left blank.
@ -547,15 +549,16 @@ module Google
# @return [Google::Apis::BigtableadminV2::Instance]
attr_accessor :instance
# The ID to be used when referring to the new instance within its project,
# Required. The ID to be used when referring to the new instance within its
# project,
# e.g., just `myinstance` rather than
# `projects/myproject/instances/myinstance`.
# Corresponds to the JSON property `instanceId`
# @return [String]
attr_accessor :instance_id
# The unique name of the project in which to create the new instance.
# Values are of the form `projects/<project>`.
# Required. The unique name of the project in which to create the new instance.
# Values are of the form `projects/`project``.
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
@ -602,8 +605,9 @@ module Google
# @return [Google::Apis::BigtableadminV2::Table]
attr_accessor :table
# The name by which the new table should be referred to within the parent
# instance, e.g., `foobar` rather than `<parent>/tables/foobar`.
# Required. The name by which the new table should be referred to within the
# parent
# instance, e.g., `foobar` rather than ``parent`/tables/foobar`.
# Maximum 50 characters.
# Corresponds to the JSON property `tableId`
# @return [String]
@ -855,14 +859,14 @@ module Google
class Instance
include Google::Apis::Core::Hashable
# 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 changed at any time, but should be kept globally unique
# to avoid confusion.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# 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
# deployment strategies. They can be used to filter resources and aggregate
# metrics.
@ -876,9 +880,9 @@ module Google
# @return [Hash<String,String>]
attr_accessor :labels
# (`OutputOnly`)
# Required. (`OutputOnly`)
# The unique name of the instance. Values are of the form
# `projects/<project>/instances/a-z+[a-z0-9]`.
# `projects/`project`/instances/a-z+[a-z0-9]`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -889,7 +893,7 @@ module Google
# @return [String]
attr_accessor :state
# The type of the instance. Defaults to `PRODUCTION`.
# Required. The type of the instance. Defaults to `PRODUCTION`.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -1203,7 +1207,8 @@ module Google
class ModifyColumnFamiliesRequest
include Google::Apis::Core::Hashable
# Modifications to be atomically applied to the specified table's families.
# Required. Modifications to be atomically applied to the specified table's
# families.
# Entries are applied in order, meaning that earlier modifications can be
# masked by later ones (in the case of repeated updates to the same family,
# for example).
@ -1314,7 +1319,7 @@ module Google
# @return [Google::Apis::BigtableadminV2::Instance]
attr_accessor :instance
# The subset of Instance fields which should be replaced.
# Required. The subset of Instance fields which should be replaced.
# Must be explicitly set.
# Corresponds to the JSON property `updateMask`
# @return [String]

View File

@ -200,8 +200,8 @@ module Google
# Create an instance within a project.
# @param [String] parent
# The unique name of the project in which to create the new instance.
# Values are of the form `projects/<project>`.
# Required. The unique name of the project in which to create the new instance.
# Values are of the form `projects/`project``.
# @param [Google::Apis::BigtableadminV2::CreateInstanceRequest] create_instance_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -234,8 +234,8 @@ module Google
# Delete an instance from a project.
# @param [String] name
# The unique name of the instance to be deleted.
# Values are of the form `projects/<project>/instances/<instance>`.
# Required. The unique name of the instance to be deleted.
# Values are of the form `projects/`project`/instances/`instance``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -265,8 +265,8 @@ module Google
# Gets information about an instance.
# @param [String] name
# The unique name of the requested instance. Values are of the form
# `projects/<project>/instances/<instance>`.
# Required. The unique name of the requested instance. Values are of the form
# `projects/`project`/instances/`instance``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -331,8 +331,9 @@ module Google
# Lists information about instances in a project.
# @param [String] parent
# The unique name of the project for which a list of instances is requested.
# Values are of the form `projects/<project>`.
# Required. The unique name of the project for which a list of instances is
# requested.
# Values are of the form `projects/`project``.
# @param [String] page_token
# DEPRECATED: This field is unused and ignored.
# @param [String] fields
@ -366,12 +367,12 @@ module Google
# 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.
# @param [String] name
# (`OutputOnly`)
# Required. (`OutputOnly`)
# The unique name of the instance. Values are of the form
# `projects/<project>/instances/a-z+[a-z0-9]`.
# `projects/`project`/instances/a-z+[a-z0-9]`.
# @param [Google::Apis::BigtableadminV2::Instance] instance_object
# @param [String] update_mask
# The subset of Instance fields which should be replaced.
# Required. The subset of Instance fields which should be replaced.
# Must be explicitly set.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -476,9 +477,9 @@ module Google
# name and type for an Instance. To update other Instance properties, such as
# labels, use PartialUpdateInstance.
# @param [String] name
# (`OutputOnly`)
# Required. (`OutputOnly`)
# The unique name of the instance. Values are of the form
# `projects/<project>/instances/a-z+[a-z0-9]`.
# `projects/`project`/instances/a-z+[a-z0-9]`.
# @param [Google::Apis::BigtableadminV2::Instance] instance_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -511,12 +512,13 @@ module Google
# Creates an app profile within an instance.
# @param [String] parent
# The unique name of the instance in which to create the new app profile.
# Required. The unique name of the instance in which to create the new app
# profile.
# Values are of the form
# `projects/<project>/instances/<instance>`.
# `projects/`project`/instances/`instance``.
# @param [Google::Apis::BigtableadminV2::AppProfile] app_profile_object
# @param [String] app_profile_id
# 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
# `projects/myproject/instances/myinstance/appProfiles/myprofile`.
# @param [Boolean] ignore_warnings
@ -554,10 +556,11 @@ module Google
# Deletes an app profile from an instance.
# @param [String] name
# The unique name of the app profile to be deleted. Values are of the form
# `projects/<project>/instances/<instance>/appProfiles/<app_profile>`.
# Required. The unique name of the app profile to be deleted. Values are of the
# form
# `projects/`project`/instances/`instance`/appProfiles/`app_profile``.
# @param [Boolean] ignore_warnings
# If true, ignore safety checks when deleting the app profile.
# Required. If true, ignore safety checks when deleting the app profile.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -588,8 +591,8 @@ module Google
# Gets information about an app profile.
# @param [String] name
# The unique name of the requested app profile. Values are of the form
# `projects/<project>/instances/<instance>/appProfiles/<app_profile>`.
# Required. The unique name of the requested app profile. Values are of the form
# `projects/`project`/instances/`instance`/appProfiles/`app_profile``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -619,10 +622,10 @@ module Google
# Lists information about app profiles in an instance.
# @param [String] parent
# 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
# `projects/<project>/instances/<instance>`.
# Use `<instance> = '-'` to list AppProfiles for all Instances in a project,
# `projects/`project`/instances/`instance``.
# Use ``instance` = '-'` to list AppProfiles for all Instances in a project,
# e.g., `projects/myproject/instances/-`.
# @param [Fixnum] page_size
# Maximum number of results per page.
@ -672,7 +675,7 @@ module Google
# @param [Boolean] ignore_warnings
# If true, ignore safety checks when updating the app profile.
# @param [String] update_mask
# The subset of app profile fields which should be replaced.
# Required. The subset of app profile fields which should be replaced.
# If unset, all fields will be replaced.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -707,12 +710,13 @@ module Google
# Creates a cluster within an instance.
# @param [String] parent
# 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
# `projects/<project>/instances/<instance>`.
# `projects/`project`/instances/`instance``.
# @param [Google::Apis::BigtableadminV2::Cluster] cluster_object
# @param [String] cluster_id
# The ID to be used when referring to the new cluster within its instance,
# Required. The ID to be used when referring to the new cluster within its
# instance,
# e.g., just `mycluster` rather than
# `projects/myproject/instances/myinstance/clusters/mycluster`.
# @param [String] fields
@ -747,8 +751,8 @@ module Google
# Deletes a cluster from an instance.
# @param [String] name
# The unique name of the cluster to be deleted. Values are of the form
# `projects/<project>/instances/<instance>/clusters/<cluster>`.
# Required. The unique name of the cluster to be deleted. Values are of the form
# `projects/`project`/instances/`instance`/clusters/`cluster``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -778,8 +782,8 @@ module Google
# Gets information about a cluster.
# @param [String] name
# The unique name of the requested cluster. Values are of the form
# `projects/<project>/instances/<instance>/clusters/<cluster>`.
# Required. The unique name of the requested cluster. Values are of the form
# `projects/`project`/instances/`instance`/clusters/`cluster``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -809,9 +813,10 @@ module Google
# Lists information about clusters in an instance.
# @param [String] parent
# The unique name of the instance for which a list of clusters is requested.
# Values are of the form `projects/<project>/instances/<instance>`.
# Use `<instance> = '-'` to list Clusters for all Instances in a project,
# Required. The unique name of the instance for which a list of clusters is
# requested.
# Values are of the form `projects/`project`/instances/`instance``.
# Use ``instance` = '-'` to list Clusters for all Instances in a project,
# e.g., `projects/myproject/instances/-`.
# @param [String] page_token
# DEPRECATED: This field is unused and ignored.
@ -845,9 +850,9 @@ module Google
# Updates a cluster within an instance.
# @param [String] name
# (`OutputOnly`)
# Required. (`OutputOnly`)
# The unique name of the cluster. Values are of the form
# `projects/<project>/instances/<instance>/clusters/a-z*`.
# `projects/`project`/instances/`instance`/clusters/a-z*`.
# @param [Google::Apis::BigtableadminV2::Cluster] cluster_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -949,13 +954,48 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns permissions that the caller has on the specified table resource.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::BigtableadminV2::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BigtableadminV2::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigtableadminV2::TestIamPermissionsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def test_backup_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::BigtableadminV2::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::BigtableadminV2::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::BigtableadminV2::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Checks replication consistency based on a consistency token, that is, if
# replication has caught up based on the conditions specified in the token
# and the check request.
# @param [String] name
# The unique name of the Table for which to check replication consistency.
# Required. The unique name of the Table for which to check replication
# consistency.
# Values are of the form
# `projects/<project>/instances/<instance>/tables/<table>`.
# `projects/`project`/instances/`instance`/tables/`table``.
# @param [Google::Apis::BigtableadminV2::CheckConsistencyRequest] check_consistency_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -990,8 +1030,8 @@ module Google
# The table can be created with a full set of initial column families,
# specified in the request.
# @param [String] parent
# The unique name of the instance in which to create the table.
# Values are of the form `projects/<project>/instances/<instance>`.
# Required. The unique name of the instance in which to create the table.
# Values are of the form `projects/`project`/instances/`instance``.
# @param [Google::Apis::BigtableadminV2::CreateTableRequest] create_table_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1024,9 +1064,9 @@ module Google
# Permanently deletes a specified table and all of its data.
# @param [String] name
# The unique name of the table to be deleted.
# Required. The unique name of the table to be deleted.
# Values are of the form
# `projects/<project>/instances/<instance>/tables/<table>`.
# `projects/`project`/instances/`instance`/tables/`table``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1058,9 +1098,9 @@ module Google
# specify whether to delete all rows in a table, or only those that match a
# particular prefix.
# @param [String] name
# 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
# `projects/<project>/instances/<instance>/tables/<table>`.
# `projects/`project`/instances/`instance`/tables/`table``.
# @param [Google::Apis::BigtableadminV2::DropRowRangeRequest] drop_row_range_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1096,9 +1136,9 @@ module Google
# before this call started have been replicated. The tokens will be available
# for 90 days.
# @param [String] name
# 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
# `projects/<project>/instances/<instance>/tables/<table>`.
# `projects/`project`/instances/`instance`/tables/`table``.
# @param [Google::Apis::BigtableadminV2::GenerateConsistencyTokenRequest] generate_consistency_token_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1131,9 +1171,9 @@ module Google
# Gets metadata information about the specified table.
# @param [String] name
# The unique name of the requested table.
# Required. The unique name of the requested table.
# Values are of the form
# `projects/<project>/instances/<instance>/tables/<table>`.
# `projects/`project`/instances/`instance`/tables/`table``.
# @param [String] view
# The view to be applied to the returned table's fields.
# Defaults to `SCHEMA_VIEW` if unspecified.
@ -1203,8 +1243,8 @@ module Google
# Lists all tables served from a specified instance.
# @param [String] parent
# The unique name of the instance for which tables should be listed.
# Values are of the form `projects/<project>/instances/<instance>`.
# Required. The unique name of the instance for which tables should be listed.
# Values are of the form `projects/`project`/instances/`instance``.
# @param [Fixnum] page_size
# Maximum number of results per page.
# A page_size of zero lets the server choose the number of items to return.
@ -1253,9 +1293,9 @@ module Google
# returns, but data requests received prior to that point may see a table
# where only some modifications have taken effect.
# @param [String] name
# 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
# `projects/<project>/instances/<instance>/tables/<table>`.
# `projects/`project`/instances/`instance`/tables/`table``.
# @param [Google::Apis::BigtableadminV2::ModifyColumnFamiliesRequest] modify_column_families_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/billing/docs/how-to/budget-api-overview
module BillingbudgetsV1beta1
VERSION = 'V1beta1'
REVISION = '20200308'
REVISION = '20200315'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -117,7 +117,7 @@ module Google
# Returns a budget.
# WARNING: There are some fields exposed on the Google Cloud Console that
# arent available on this API. When reading from the API, you will not
# aren't available on this API. When reading from the API, you will not
# see these fields in the return value, though they may have been set
# in the Cloud Console.
# @param [String] name
@ -152,7 +152,7 @@ module Google
# Returns a list of budgets for a billing account.
# WARNING: There are some fields exposed on the Google Cloud Console that
# arent available on this API. When reading from the API, you will not
# aren't available on this API. When reading from the API, you will not
# see these fields in the return value, though they may have been set
# in the Cloud Console.
# @param [String] parent
@ -196,7 +196,7 @@ module Google
# Updates a budget and returns the updated budget.
# WARNING: There are some fields exposed on the Google Cloud Console that
# arent available on this API. Budget fields that are not exposed in
# aren't available on this API. Budget fields that are not exposed in
# this API will not be changed by this method.
# @param [String] name
# Output only. Resource name of the budget.

View File

@ -18,14 +18,15 @@ require 'google/apis/blogger_v2/representations.rb'
module Google
module Apis
# Blogger API
# Blogger API v3
#
# API for access to the data within Blogger.
# The Blogger API provides access to posts, comments and pages of a
# Blogger blog.
#
# @see https://developers.google.com/blogger/docs/2.0/json/getting_started
# @see https://developers.google.com/blogger/docs/3.0/getting_started
module BloggerV2
VERSION = 'V2'
REVISION = '20150422'
REVISION = '20200405'
# Manage your Blogger account
AUTH_BLOGGER = 'https://www.googleapis.com/auth/blogger'

View File

@ -26,6 +26,11 @@ module Google
class Blog
include Google::Apis::Core::Hashable
# The JSON custom meta-data for the Blog.
# Corresponds to the JSON property `customMetaData`
# @return [String]
attr_accessor :custom_meta_data
# The description of this blog. This is displayed underneath the title.
# Corresponds to the JSON property `description`
# @return [String]
@ -33,10 +38,10 @@ module Google
# The identifier for this resource.
# Corresponds to the JSON property `id`
# @return [Fixnum]
# @return [String]
attr_accessor :id
# The kind of this entry. Always blogger#blog
# The kind of this entry. Always blogger#blog.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -63,7 +68,7 @@ module Google
# RFC 3339 date-time when this blog was published.
# Corresponds to the JSON property `published`
# @return [DateTime]
# @return [String]
attr_accessor :published
# The API REST URL to fetch this resource from.
@ -71,9 +76,14 @@ module Google
# @return [String]
attr_accessor :self_link
# The status of the blog.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# RFC 3339 date-time when this blog was last updated.
# Corresponds to the JSON property `updated`
# @return [DateTime]
# @return [String]
attr_accessor :updated
# The URL where this blog is published.
@ -87,6 +97,7 @@ module Google
# Update properties of this object
def update!(**args)
@custom_meta_data = args[:custom_meta_data] if args.key?(:custom_meta_data)
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@ -96,6 +107,7 @@ module Google
@posts = args[:posts] if args.key?(:posts)
@published = args[:published] if args.key?(:published)
@self_link = args[:self_link] if args.key?(:self_link)
@status = args[:status] if args.key?(:status)
@updated = args[:updated] if args.key?(:updated)
@url = args[:url] if args.key?(:url)
end
@ -160,6 +172,11 @@ module Google
class Posts
include Google::Apis::Core::Hashable
# The List of Posts for this Blog.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::BloggerV2::Post>]
attr_accessor :items
# The URL of the container for posts in this blog.
# Corresponds to the JSON property `selfLink`
# @return [String]
@ -176,6 +193,7 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] if args.key?(:items)
@self_link = args[:self_link] if args.key?(:self_link)
@total_items = args[:total_items] if args.key?(:total_items)
end
@ -186,12 +204,17 @@ module Google
class BlogList
include Google::Apis::Core::Hashable
# Admin level list of blog per-user information.
# Corresponds to the JSON property `blogUserInfos`
# @return [Array<Google::Apis::BloggerV2::BlogUserInfo>]
attr_accessor :blog_user_infos
# The list of Blogs this user has Authorship or Admin rights over.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::BloggerV2::Blog>]
attr_accessor :items
# The kind of this entity. Always blogger#blogList
# The kind of this entity. Always blogger#blogList.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -202,11 +225,94 @@ module Google
# Update properties of this object
def update!(**args)
@blog_user_infos = args[:blog_user_infos] if args.key?(:blog_user_infos)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class BlogPerUserInfo
include Google::Apis::Core::Hashable
# ID of the Blog resource.
# Corresponds to the JSON property `blogId`
# @return [String]
attr_accessor :blog_id
# True if the user has Admin level access to the blog.
# Corresponds to the JSON property `hasAdminAccess`
# @return [Boolean]
attr_accessor :has_admin_access
alias_method :has_admin_access?, :has_admin_access
# The kind of this entity. Always blogger#blogPerUserInfo.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The Photo Album Key for the user when adding photos to the blog.
# Corresponds to the JSON property `photosAlbumKey`
# @return [String]
attr_accessor :photos_album_key
# Access permissions that the user has for the blog (ADMIN, AUTHOR, or
# READER).
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role
# ID of the User.
# Corresponds to the JSON property `userId`
# @return [String]
attr_accessor :user_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@blog_id = args[:blog_id] if args.key?(:blog_id)
@has_admin_access = args[:has_admin_access] if args.key?(:has_admin_access)
@kind = args[:kind] if args.key?(:kind)
@photos_album_key = args[:photos_album_key] if args.key?(:photos_album_key)
@role = args[:role] if args.key?(:role)
@user_id = args[:user_id] if args.key?(:user_id)
end
end
#
class BlogUserInfo
include Google::Apis::Core::Hashable
# The Blog resource.
# Corresponds to the JSON property `blog`
# @return [Google::Apis::BloggerV2::Blog]
attr_accessor :blog
# Information about a User for the Blog.
# Corresponds to the JSON property `blog_user_info`
# @return [Google::Apis::BloggerV2::BlogPerUserInfo]
attr_accessor :blog_user_info
# The kind of this entity. Always blogger#blogUserInfo.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@blog = args[:blog] if args.key?(:blog)
@blog_user_info = args[:blog_user_info] if args.key?(:blog_user_info)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class Comment
include Google::Apis::Core::Hashable
@ -228,7 +334,7 @@ module Google
# The identifier for this resource.
# Corresponds to the JSON property `id`
# @return [Fixnum]
# @return [String]
attr_accessor :id
# Data about the comment this is in reply to.
@ -236,7 +342,7 @@ module Google
# @return [Google::Apis::BloggerV2::Comment::InReplyTo]
attr_accessor :in_reply_to
# The kind of this entry. Always blogger#comment
# The kind of this entry. Always blogger#comment.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -248,7 +354,7 @@ module Google
# RFC 3339 date-time when this comment was published.
# Corresponds to the JSON property `published`
# @return [DateTime]
# @return [String]
attr_accessor :published
# The API REST URL to fetch this resource from.
@ -256,9 +362,14 @@ module Google
# @return [String]
attr_accessor :self_link
# The status of the comment (only populated for admin users).
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# RFC 3339 date-time when this comment was last updated.
# Corresponds to the JSON property `updated`
# @return [DateTime]
# @return [String]
attr_accessor :updated
def initialize(**args)
@ -276,6 +387,7 @@ module Google
@post = args[:post] if args.key?(:post)
@published = args[:published] if args.key?(:published)
@self_link = args[:self_link] if args.key?(:self_link)
@status = args[:status] if args.key?(:status)
@updated = args[:updated] if args.key?(:updated)
end
@ -288,17 +400,17 @@ module Google
# @return [String]
attr_accessor :display_name
# The identifier of the Comment creator.
# The identifier of the creator.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The comment creator's avatar.
# The creator's avatar.
# Corresponds to the JSON property `image`
# @return [Google::Apis::BloggerV2::Comment::Author::Image]
attr_accessor :image
# The URL of the Comment creator's Profile page.
# The URL of the creator's Profile page.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
@ -315,11 +427,11 @@ module Google
@url = args[:url] if args.key?(:url)
end
# The comment creator's avatar.
# The creator's avatar.
class Image
include Google::Apis::Core::Hashable
# The comment creator's avatar URL.
# The creator's avatar URL.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
@ -341,7 +453,7 @@ module Google
# The identifier of the blog containing this comment.
# Corresponds to the JSON property `id`
# @return [Fixnum]
# @return [String]
attr_accessor :id
def initialize(**args)
@ -360,7 +472,7 @@ module Google
# The identified of the parent of this comment.
# Corresponds to the JSON property `id`
# @return [Fixnum]
# @return [String]
attr_accessor :id
def initialize(**args)
@ -379,7 +491,7 @@ module Google
# The identifier of the post containing this comment.
# Corresponds to the JSON property `id`
# @return [Fixnum]
# @return [String]
attr_accessor :id
def initialize(**args)
@ -397,12 +509,17 @@ module Google
class CommentList
include Google::Apis::Core::Hashable
# Etag of the response.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# The List of Comments for a Post.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::BloggerV2::Comment>]
attr_accessor :items
# The kind of this entry. Always blogger#commentList
# The kind of this entry. Always blogger#commentList.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -423,6 +540,7 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@ -449,19 +567,24 @@ module Google
# @return [String]
attr_accessor :content
# Etag of the resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# The identifier for this resource.
# Corresponds to the JSON property `id`
# @return [Fixnum]
# @return [String]
attr_accessor :id
# The kind of this entity. Always blogger#page
# The kind of this entity. Always blogger#page.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# RFC 3339 date-time when this Page was published.
# Corresponds to the JSON property `published`
# @return [DateTime]
# @return [String]
attr_accessor :published
# The API REST URL to fetch this resource from.
@ -469,6 +592,11 @@ module Google
# @return [String]
attr_accessor :self_link
# The status of the page for admin resources (either LIVE or DRAFT).
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# The title of this entity. This is the name displayed in the Admin user
# interface.
# Corresponds to the JSON property `title`
@ -477,7 +605,7 @@ module Google
# RFC 3339 date-time when this Page was last updated.
# Corresponds to the JSON property `updated`
# @return [DateTime]
# @return [String]
attr_accessor :updated
# The URL that this Page is displayed at.
@ -494,10 +622,12 @@ module Google
@author = args[:author] if args.key?(:author)
@blog = args[:blog] if args.key?(:blog)
@content = args[:content] if args.key?(:content)
@etag = args[:etag] if args.key?(:etag)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@published = args[:published] if args.key?(:published)
@self_link = args[:self_link] if args.key?(:self_link)
@status = args[:status] if args.key?(:status)
@title = args[:title] if args.key?(:title)
@updated = args[:updated] if args.key?(:updated)
@url = args[:url] if args.key?(:url)
@ -512,17 +642,17 @@ module Google
# @return [String]
attr_accessor :display_name
# The identifier of the Page creator.
# The identifier of the creator.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The page author's avatar.
# The creator's avatar.
# Corresponds to the JSON property `image`
# @return [Google::Apis::BloggerV2::Page::Author::Image]
attr_accessor :image
# The URL of the Page creator's Profile page.
# The URL of the creator's Profile page.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
@ -539,11 +669,11 @@ module Google
@url = args[:url] if args.key?(:url)
end
# The page author's avatar.
# The creator's avatar.
class Image
include Google::Apis::Core::Hashable
# The page author's avatar URL.
# The creator's avatar URL.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
@ -565,7 +695,7 @@ module Google
# The identifier of the blog containing this page.
# Corresponds to the JSON property `id`
# @return [Fixnum]
# @return [String]
attr_accessor :id
def initialize(**args)
@ -583,24 +713,36 @@ module Google
class PageList
include Google::Apis::Core::Hashable
# Etag of the response.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# The list of Pages for a Blog.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::BloggerV2::Page>]
attr_accessor :items
# The kind of this entity. Always blogger#pageList
# The kind of this entity. Always blogger#pageList.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Pagination token to fetch the next page, if one exists.
# 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)
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
@ -623,12 +765,27 @@ module Google
# @return [String]
attr_accessor :content
# The JSON meta-data for the Post.
# Corresponds to the JSON property `customMetaData`
# @return [String]
attr_accessor :custom_meta_data
# Etag of the resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# The identifier of this Post.
# Corresponds to the JSON property `id`
# @return [Fixnum]
# @return [String]
attr_accessor :id
# The kind of this entity. Always blogger#post
# Display image for the Post.
# Corresponds to the JSON property `images`
# @return [Array<Google::Apis::BloggerV2::Post::Image>]
attr_accessor :images
# The kind of this entity. Always blogger#post.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -638,11 +795,21 @@ module Google
# @return [Array<String>]
attr_accessor :labels
# The location for geotagged posts.
# Corresponds to the JSON property `location`
# @return [Google::Apis::BloggerV2::Post::Location]
attr_accessor :location
# RFC 3339 date-time when this Post was published.
# Corresponds to the JSON property `published`
# @return [DateTime]
# @return [String]
attr_accessor :published
# Comment control and display setting for readers of this post.
# Corresponds to the JSON property `readerComments`
# @return [String]
attr_accessor :reader_comments
# The container of comments on this Post.
# Corresponds to the JSON property `replies`
# @return [Google::Apis::BloggerV2::Post::Replies]
@ -653,14 +820,24 @@ module Google
# @return [String]
attr_accessor :self_link
# Status of the post. Only set for admin-level requests.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# The title of the Post.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
# The title link URL, similar to atom's related link.
# Corresponds to the JSON property `titleLink`
# @return [String]
attr_accessor :title_link
# RFC 3339 date-time when this Post was last updated.
# Corresponds to the JSON property `updated`
# @return [DateTime]
# @return [String]
attr_accessor :updated
# The URL where this Post is displayed.
@ -677,13 +854,20 @@ module Google
@author = args[:author] if args.key?(:author)
@blog = args[:blog] if args.key?(:blog)
@content = args[:content] if args.key?(:content)
@custom_meta_data = args[:custom_meta_data] if args.key?(:custom_meta_data)
@etag = args[:etag] if args.key?(:etag)
@id = args[:id] if args.key?(:id)
@images = args[:images] if args.key?(:images)
@kind = args[:kind] if args.key?(:kind)
@labels = args[:labels] if args.key?(:labels)
@location = args[:location] if args.key?(:location)
@published = args[:published] if args.key?(:published)
@reader_comments = args[:reader_comments] if args.key?(:reader_comments)
@replies = args[:replies] if args.key?(:replies)
@self_link = args[:self_link] if args.key?(:self_link)
@status = args[:status] if args.key?(:status)
@title = args[:title] if args.key?(:title)
@title_link = args[:title_link] if args.key?(:title_link)
@updated = args[:updated] if args.key?(:updated)
@url = args[:url] if args.key?(:url)
end
@ -697,17 +881,17 @@ module Google
# @return [String]
attr_accessor :display_name
# The identifier of the Post creator.
# The identifier of the creator.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The Post author's avatar.
# The creator's avatar.
# Corresponds to the JSON property `image`
# @return [Google::Apis::BloggerV2::Post::Author::Image]
attr_accessor :image
# The URL of the Post creator's Profile page.
# The URL of the creator's Profile page.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
@ -724,11 +908,11 @@ module Google
@url = args[:url] if args.key?(:url)
end
# The Post author's avatar.
# The creator's avatar.
class Image
include Google::Apis::Core::Hashable
# The Post author's avatar URL.
# The creator's avatar URL.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
@ -750,7 +934,7 @@ module Google
# The identifier of the Blog that contains this Post.
# Corresponds to the JSON property `id`
# @return [Fixnum]
# @return [String]
attr_accessor :id
def initialize(**args)
@ -763,10 +947,71 @@ module Google
end
end
#
class Image
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@url = args[:url] if args.key?(:url)
end
end
# The location for geotagged posts.
class Location
include Google::Apis::Core::Hashable
# Location's latitude.
# Corresponds to the JSON property `lat`
# @return [Float]
attr_accessor :lat
# Location's longitude.
# Corresponds to the JSON property `lng`
# @return [Float]
attr_accessor :lng
# Location name.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Location's viewport span. Can be used when rendering a map preview.
# Corresponds to the JSON property `span`
# @return [String]
attr_accessor :span
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@lat = args[:lat] if args.key?(:lat)
@lng = args[:lng] if args.key?(:lng)
@name = args[:name] if args.key?(:name)
@span = args[:span] if args.key?(:span)
end
end
# The container of comments on this Post.
class Replies
include Google::Apis::Core::Hashable
# The List of Comments for this Post.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::BloggerV2::Comment>]
attr_accessor :items
# The URL of the comments on this post.
# Corresponds to the JSON property `selfLink`
# @return [String]
@ -783,6 +1028,7 @@ module Google
# Update properties of this object
def update!(**args)
@items = args[:items] if args.key?(:items)
@self_link = args[:self_link] if args.key?(:self_link)
@total_items = args[:total_items] if args.key?(:total_items)
end
@ -793,12 +1039,17 @@ module Google
class PostList
include Google::Apis::Core::Hashable
# Etag of the response.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# The list of Posts for this Blog.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::BloggerV2::Post>]
attr_accessor :items
# The kind of this entity. Always blogger#postList
# The kind of this entity. Always blogger#postList.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -819,6 +1070,7 @@ module Google
# Update properties of this object
def update!(**args)
@etag = args[:etag] if args.key?(:etag)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@ -842,7 +1094,7 @@ module Google
# The timestamp of when this profile was created, in seconds since epoch.
# Corresponds to the JSON property `created`
# @return [DateTime]
# @return [String]
attr_accessor :created
# The display name.
@ -855,7 +1107,7 @@ module Google
# @return [String]
attr_accessor :id
# The kind of this entity. Always blogger#user
# The kind of this entity. Always blogger#user.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -915,17 +1167,17 @@ module Google
class Locale
include Google::Apis::Core::Hashable
# The user's country setting.
# The country this blog's locale is set to.
# Corresponds to the JSON property `country`
# @return [String]
attr_accessor :country
# The user's language setting.
# The language this blog is authored in.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
# The user's language variant setting.
# The language variant this blog is authored in.
# Corresponds to the JSON property `variant`
# @return [String]
attr_accessor :variant

View File

@ -52,6 +52,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BlogPerUserInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BlogUserInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Comment
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -145,6 +157,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Image
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Location
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Replies
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -181,8 +205,9 @@ module Google
class Blog
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :custom_meta_data, as: 'customMetaData'
property :description, as: 'description'
property :id, :numeric_string => true, as: 'id'
property :id, as: 'id'
property :kind, as: 'kind'
property :locale, as: 'locale', class: Google::Apis::BloggerV2::Blog::Locale, decorator: Google::Apis::BloggerV2::Blog::Locale::Representation
@ -191,11 +216,10 @@ module Google
property :posts, as: 'posts', class: Google::Apis::BloggerV2::Blog::Posts, decorator: Google::Apis::BloggerV2::Blog::Posts::Representation
property :published, as: 'published', type: DateTime
property :published, as: 'published'
property :self_link, as: 'selfLink'
property :updated, as: 'updated', type: DateTime
property :status, as: 'status'
property :updated, as: 'updated'
property :url, as: 'url'
end
@ -219,6 +243,8 @@ module Google
class Posts
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::BloggerV2::Post, decorator: Google::Apis::BloggerV2::Post::Representation
property :self_link, as: 'selfLink'
property :total_items, as: 'totalItems'
end
@ -228,12 +254,37 @@ module Google
class BlogList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :blog_user_infos, as: 'blogUserInfos', class: Google::Apis::BloggerV2::BlogUserInfo, decorator: Google::Apis::BloggerV2::BlogUserInfo::Representation
collection :items, as: 'items', class: Google::Apis::BloggerV2::Blog, decorator: Google::Apis::BloggerV2::Blog::Representation
property :kind, as: 'kind'
end
end
class BlogPerUserInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :blog_id, as: 'blogId'
property :has_admin_access, as: 'hasAdminAccess'
property :kind, as: 'kind'
property :photos_album_key, as: 'photosAlbumKey'
property :role, as: 'role'
property :user_id, as: 'userId'
end
end
class BlogUserInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :blog, as: 'blog', class: Google::Apis::BloggerV2::Blog, decorator: Google::Apis::BloggerV2::Blog::Representation
property :blog_user_info, as: 'blog_user_info', class: Google::Apis::BloggerV2::BlogPerUserInfo, decorator: Google::Apis::BloggerV2::BlogPerUserInfo::Representation
property :kind, as: 'kind'
end
end
class Comment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -242,17 +293,16 @@ module Google
property :blog, as: 'blog', class: Google::Apis::BloggerV2::Comment::Blog, decorator: Google::Apis::BloggerV2::Comment::Blog::Representation
property :content, as: 'content'
property :id, :numeric_string => true, as: 'id'
property :id, as: 'id'
property :in_reply_to, as: 'inReplyTo', class: Google::Apis::BloggerV2::Comment::InReplyTo, decorator: Google::Apis::BloggerV2::Comment::InReplyTo::Representation
property :kind, as: 'kind'
property :post, as: 'post', class: Google::Apis::BloggerV2::Comment::Post, decorator: Google::Apis::BloggerV2::Comment::Post::Representation
property :published, as: 'published', type: DateTime
property :published, as: 'published'
property :self_link, as: 'selfLink'
property :updated, as: 'updated', type: DateTime
property :status, as: 'status'
property :updated, as: 'updated'
end
class Author
@ -276,21 +326,21 @@ module Google
class Blog
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, :numeric_string => true, as: 'id'
property :id, as: 'id'
end
end
class InReplyTo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, :numeric_string => true, as: 'id'
property :id, as: 'id'
end
end
class Post
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, :numeric_string => true, as: 'id'
property :id, as: 'id'
end
end
end
@ -298,6 +348,7 @@ module Google
class CommentList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
collection :items, as: 'items', class: Google::Apis::BloggerV2::Comment, decorator: Google::Apis::BloggerV2::Comment::Representation
property :kind, as: 'kind'
@ -314,14 +365,14 @@ module Google
property :blog, as: 'blog', class: Google::Apis::BloggerV2::Page::Blog, decorator: Google::Apis::BloggerV2::Page::Blog::Representation
property :content, as: 'content'
property :id, :numeric_string => true, as: 'id'
property :etag, as: 'etag'
property :id, as: 'id'
property :kind, as: 'kind'
property :published, as: 'published', type: DateTime
property :published, as: 'published'
property :self_link, as: 'selfLink'
property :status, as: 'status'
property :title, as: 'title'
property :updated, as: 'updated', type: DateTime
property :updated, as: 'updated'
property :url, as: 'url'
end
@ -346,7 +397,7 @@ module Google
class Blog
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, :numeric_string => true, as: 'id'
property :id, as: 'id'
end
end
end
@ -354,9 +405,11 @@ module Google
class PageList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
collection :items, as: 'items', class: Google::Apis::BloggerV2::Page, decorator: Google::Apis::BloggerV2::Page::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
@ -368,17 +421,24 @@ module Google
property :blog, as: 'blog', class: Google::Apis::BloggerV2::Post::Blog, decorator: Google::Apis::BloggerV2::Post::Blog::Representation
property :content, as: 'content'
property :id, :numeric_string => true, as: 'id'
property :custom_meta_data, as: 'customMetaData'
property :etag, as: 'etag'
property :id, as: 'id'
collection :images, as: 'images', class: Google::Apis::BloggerV2::Post::Image, decorator: Google::Apis::BloggerV2::Post::Image::Representation
property :kind, as: 'kind'
collection :labels, as: 'labels'
property :published, as: 'published', type: DateTime
property :location, as: 'location', class: Google::Apis::BloggerV2::Post::Location, decorator: Google::Apis::BloggerV2::Post::Location::Representation
property :published, as: 'published'
property :reader_comments, as: 'readerComments'
property :replies, as: 'replies', class: Google::Apis::BloggerV2::Post::Replies, decorator: Google::Apis::BloggerV2::Post::Replies::Representation
property :self_link, as: 'selfLink'
property :status, as: 'status'
property :title, as: 'title'
property :updated, as: 'updated', type: DateTime
property :title_link, as: 'titleLink'
property :updated, as: 'updated'
property :url, as: 'url'
end
@ -403,13 +463,32 @@ module Google
class Blog
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, :numeric_string => true, as: 'id'
property :id, as: 'id'
end
end
class Image
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :url, as: 'url'
end
end
class Location
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :lat, as: 'lat'
property :lng, as: 'lng'
property :name, as: 'name'
property :span, as: 'span'
end
end
class Replies
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::BloggerV2::Comment, decorator: Google::Apis::BloggerV2::Comment::Representation
property :self_link, as: 'selfLink'
property :total_items, :numeric_string => true, as: 'totalItems'
end
@ -419,6 +498,7 @@ module Google
class PostList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
collection :items, as: 'items', class: Google::Apis::BloggerV2::Post, decorator: Google::Apis::BloggerV2::Post::Representation
property :kind, as: 'kind'
@ -433,8 +513,7 @@ module Google
property :about, as: 'about'
property :blogs, as: 'blogs', class: Google::Apis::BloggerV2::User::Blogs, decorator: Google::Apis::BloggerV2::User::Blogs::Representation
property :created, as: 'created', type: DateTime
property :created, as: 'created'
property :display_name, as: 'displayName'
property :id, as: 'id'
property :kind, as: 'kind'

View File

@ -20,9 +20,10 @@ require 'google/apis/errors'
module Google
module Apis
module BloggerV2
# Blogger API
# Blogger API v3
#
# API for access to the data within Blogger.
# The Blogger API provides access to posts, comments and pages of a
# Blogger blog.
#
# @example
# require 'google/apis/blogger_v2'
@ -30,7 +31,7 @@ module Google
# Blogger = Google::Apis::BloggerV2 # Alias the module
# service = Blogger::BloggerService.new
#
# @see https://developers.google.com/blogger/docs/2.0/json/getting_started
# @see https://developers.google.com/blogger/docs/3.0/getting_started
class BloggerService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
@ -38,29 +39,22 @@ module Google
attr_accessor :key
# @return [String]
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# 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
# @return [String]
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'blogger/v2/')
@batch_path = 'batch/blogger/v2'
super('https://blogger.googleapis.com/', '')
@batch_path = 'batch'
end
# Gets one blog by id.
# Gets a blog by id.
# @param [String] blog_id
# The ID of the blog to get.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -73,301 +67,23 @@ module Google
# @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_blog(blog_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'blogs/{blogId}', options)
def get_blog(blog_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/blogs/{blogId}', options)
command.response_representation = Google::Apis::BloggerV2::Blog::Representation
command.response_class = Google::Apis::BloggerV2::Blog
command.params['blogId'] = blog_id unless blog_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Gets one comment by id.
# @param [String] blog_id
# ID of the blog to containing the comment.
# @param [String] post_id
# ID of the post to fetch posts from.
# @param [String] comment_id
# The ID of the comment to get.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BloggerV2::Comment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BloggerV2::Comment]
#
# @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_comment(blog_id, post_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'blogs/{blogId}/posts/{postId}/comments/{commentId}', options)
command.response_representation = Google::Apis::BloggerV2::Comment::Representation
command.response_class = Google::Apis::BloggerV2::Comment
command.params['blogId'] = blog_id unless blog_id.nil?
command.params['postId'] = post_id unless post_id.nil?
command.params['commentId'] = comment_id unless comment_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the comments for a blog, possibly filtered.
# @param [String] blog_id
# ID of the blog to fetch comments from.
# @param [String] post_id
# ID of the post to fetch posts from.
# @param [Boolean] fetch_bodies
# Whether the body content of the comments is included.
# @param [Fixnum] max_results
# Maximum number of comments to include in the result.
# @param [String] page_token
# Continuation token if request is paged.
# @param [DateTime] start_date
# Earliest date of comment to fetch, a date-time with RFC 3339 formatting.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BloggerV2::CommentList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BloggerV2::CommentList]
#
# @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_comments(blog_id, post_id, fetch_bodies: nil, max_results: nil, page_token: nil, start_date: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'blogs/{blogId}/posts/{postId}/comments', options)
command.response_representation = Google::Apis::BloggerV2::CommentList::Representation
command.response_class = Google::Apis::BloggerV2::CommentList
command.params['blogId'] = blog_id unless blog_id.nil?
command.params['postId'] = post_id unless post_id.nil?
command.query['fetchBodies'] = fetch_bodies unless fetch_bodies.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['startDate'] = start_date unless start_date.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Gets one blog page by id.
# @param [String] blog_id
# ID of the blog containing the page.
# @param [String] page_id
# The ID of the page to get.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BloggerV2::Page] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BloggerV2::Page]
#
# @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_page(blog_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'blogs/{blogId}/pages/{pageId}', options)
command.response_representation = Google::Apis::BloggerV2::Page::Representation
command.response_class = Google::Apis::BloggerV2::Page
command.params['blogId'] = blog_id unless blog_id.nil?
command.params['pageId'] = page_id unless page_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves pages for a blog, possibly filtered.
# @param [String] blog_id
# ID of the blog to fetch pages from.
# @param [Boolean] fetch_bodies
# Whether to retrieve the Page bodies.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BloggerV2::PageList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BloggerV2::PageList]
#
# @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_pages(blog_id, fetch_bodies: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'blogs/{blogId}/pages', options)
command.response_representation = Google::Apis::BloggerV2::PageList::Representation
command.response_class = Google::Apis::BloggerV2::PageList
command.params['blogId'] = blog_id unless blog_id.nil?
command.query['fetchBodies'] = fetch_bodies unless fetch_bodies.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Get a post by id.
# @param [String] blog_id
# ID of the blog to fetch the post from.
# @param [String] post_id
# The ID of the post
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BloggerV2::Post] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BloggerV2::Post]
#
# @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_post(blog_id, post_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'blogs/{blogId}/posts/{postId}', options)
command.response_representation = Google::Apis::BloggerV2::Post::Representation
command.response_class = Google::Apis::BloggerV2::Post
command.params['blogId'] = blog_id unless blog_id.nil?
command.params['postId'] = post_id unless post_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves a list of posts, possibly filtered.
# @param [String] blog_id
# ID of the blog to fetch posts from.
# @param [Boolean] fetch_bodies
# Whether the body content of posts is included.
# @param [Fixnum] max_results
# Maximum number of posts to fetch.
# @param [String] page_token
# Continuation token if the request is paged.
# @param [DateTime] start_date
# Earliest post date to fetch, a date-time with RFC 3339 formatting.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BloggerV2::PostList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BloggerV2::PostList]
#
# @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_posts(blog_id, fetch_bodies: nil, max_results: nil, page_token: nil, start_date: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'blogs/{blogId}/posts', options)
command.response_representation = Google::Apis::BloggerV2::PostList::Representation
command.response_class = Google::Apis::BloggerV2::PostList
command.params['blogId'] = blog_id unless blog_id.nil?
command.query['fetchBodies'] = fetch_bodies unless fetch_bodies.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['startDate'] = start_date unless start_date.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Gets one user by id.
# Lists blogs by user id, possibly filtered.
# @param [String] user_id
# The ID of the user to get.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BloggerV2::User] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BloggerV2::User]
#
# @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_user(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'users/{userId}', options)
command.response_representation = Google::Apis::BloggerV2::User::Representation
command.response_class = Google::Apis::BloggerV2::User
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves a list of blogs, possibly filtered.
# @param [String] user_id
# ID of the user whose blogs are to be fetched. Either the word 'self' (sans
# quote marks) or the user's profile identifier.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -380,14 +96,244 @@ module Google
# @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_user_blogs(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'users/{userId}/blogs', options)
def list_blogs(user_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/users/{userId}/blogs', options)
command.response_representation = Google::Apis::BloggerV2::BlogList::Representation
command.response_class = Google::Apis::BloggerV2::BlogList
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Gets a comment by blog id, post id and comment id.
# @param [String] blog_id
# @param [String] post_id
# @param [String] comment_id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BloggerV2::Comment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BloggerV2::Comment]
#
# @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_comment(blog_id, post_id, comment_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/blogs/{blogId}/posts/{postId}/comments/{commentId}', options)
command.response_representation = Google::Apis::BloggerV2::Comment::Representation
command.response_class = Google::Apis::BloggerV2::Comment
command.params['blogId'] = blog_id unless blog_id.nil?
command.params['postId'] = post_id unless post_id.nil?
command.params['commentId'] = comment_id unless comment_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 comments.
# @param [String] blog_id
# @param [String] post_id
# @param [Boolean] fetch_bodies
# @param [Fixnum] max_results
# @param [String] page_token
# @param [String] start_date
# @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::BloggerV2::CommentList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BloggerV2::CommentList]
#
# @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_comments(blog_id, post_id, fetch_bodies: nil, max_results: nil, page_token: nil, start_date: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/blogs/{blogId}/posts/{postId}/comments', options)
command.response_representation = Google::Apis::BloggerV2::CommentList::Representation
command.response_class = Google::Apis::BloggerV2::CommentList
command.params['blogId'] = blog_id unless blog_id.nil?
command.params['postId'] = post_id unless post_id.nil?
command.query['fetchBodies'] = fetch_bodies unless fetch_bodies.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['startDate'] = start_date unless start_date.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets a page by blog id and page id.
# @param [String] blog_id
# @param [String] page_id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BloggerV2::Page] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BloggerV2::Page]
#
# @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_page(blog_id, page_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/blogs/{blogId}/pages/{pageId}', options)
command.response_representation = Google::Apis::BloggerV2::Page::Representation
command.response_class = Google::Apis::BloggerV2::Page
command.params['blogId'] = blog_id unless blog_id.nil?
command.params['pageId'] = page_id unless page_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 pages.
# @param [String] blog_id
# @param [Boolean] fetch_bodies
# @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::BloggerV2::PageList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BloggerV2::PageList]
#
# @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_pages(blog_id, fetch_bodies: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/blogs/{blogId}/pages', options)
command.response_representation = Google::Apis::BloggerV2::PageList::Representation
command.response_class = Google::Apis::BloggerV2::PageList
command.params['blogId'] = blog_id unless blog_id.nil?
command.query['fetchBodies'] = fetch_bodies unless fetch_bodies.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets a post by blog id and post id
# @param [String] blog_id
# @param [String] post_id
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BloggerV2::Post] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BloggerV2::Post]
#
# @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_post(blog_id, post_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/blogs/{blogId}/posts/{postId}', options)
command.response_representation = Google::Apis::BloggerV2::Post::Representation
command.response_class = Google::Apis::BloggerV2::Post
command.params['blogId'] = blog_id unless blog_id.nil?
command.params['postId'] = post_id unless post_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 posts.
# @param [String] blog_id
# @param [Boolean] fetch_bodies
# @param [Fixnum] max_results
# @param [String] page_token
# @param [String] start_date
# @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::BloggerV2::PostList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BloggerV2::PostList]
#
# @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_posts(blog_id, fetch_bodies: nil, max_results: nil, page_token: nil, start_date: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/blogs/{blogId}/posts', options)
command.response_representation = Google::Apis::BloggerV2::PostList::Representation
command.response_class = Google::Apis::BloggerV2::PostList
command.params['blogId'] = blog_id unless blog_id.nil?
command.query['fetchBodies'] = fetch_bodies unless fetch_bodies.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['startDate'] = start_date unless start_date.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets a user by user id.
# @param [String] 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 [Google::Apis::BloggerV2::User] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BloggerV2::User]
#
# @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_user(user_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/users/{userId}', options)
command.response_representation = Google::Apis::BloggerV2::User::Representation
command.response_class = Google::Apis::BloggerV2::User
command.params['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
@ -396,7 +342,6 @@ module Google
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end

View File

@ -18,14 +18,15 @@ require 'google/apis/blogger_v3/representations.rb'
module Google
module Apis
# Blogger API
# Blogger API v3
#
# API for access to the data within Blogger.
# The Blogger API provides access to posts, comments and pages of a
# Blogger blog.
#
# @see https://developers.google.com/blogger/docs/3.0/getting_started
module BloggerV3
VERSION = 'V3'
REVISION = '20190917'
REVISION = '20200409'
# Manage your Blogger account
AUTH_BLOGGER = 'https://www.googleapis.com/auth/blogger'

View File

@ -26,7 +26,7 @@ module Google
class Blog
include Google::Apis::Core::Hashable
# The JSON custom meta-data for the Blog
# The JSON custom meta-data for the Blog.
# Corresponds to the JSON property `customMetaData`
# @return [String]
attr_accessor :custom_meta_data
@ -41,7 +41,7 @@ module Google
# @return [String]
attr_accessor :id
# The kind of this entry. Always blogger#blog
# The kind of this entry. Always blogger#blog.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -68,7 +68,7 @@ module Google
# RFC 3339 date-time when this blog was published.
# Corresponds to the JSON property `published`
# @return [DateTime]
# @return [String]
attr_accessor :published
# The API REST URL to fetch this resource from.
@ -83,7 +83,7 @@ module Google
# RFC 3339 date-time when this blog was last updated.
# Corresponds to the JSON property `updated`
# @return [DateTime]
# @return [String]
attr_accessor :updated
# The URL where this blog is published.
@ -204,7 +204,7 @@ module Google
class BlogList
include Google::Apis::Core::Hashable
# Admin level list of blog per-user information
# Admin level list of blog per-user information.
# Corresponds to the JSON property `blogUserInfos`
# @return [Array<Google::Apis::BloggerV3::BlogUserInfo>]
attr_accessor :blog_user_infos
@ -214,7 +214,7 @@ module Google
# @return [Array<Google::Apis::BloggerV3::Blog>]
attr_accessor :items
# The kind of this entity. Always blogger#blogList
# The kind of this entity. Always blogger#blogList.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -235,7 +235,7 @@ module Google
class BlogPerUserInfo
include Google::Apis::Core::Hashable
# ID of the Blog resource
# ID of the Blog resource.
# Corresponds to the JSON property `blogId`
# @return [String]
attr_accessor :blog_id
@ -246,22 +246,23 @@ module Google
attr_accessor :has_admin_access
alias_method :has_admin_access?, :has_admin_access
# The kind of this entity. Always blogger#blogPerUserInfo
# The kind of this entity. Always blogger#blogPerUserInfo.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The Photo Album Key for the user when adding photos to the blog
# The Photo Album Key for the user when adding photos to the blog.
# Corresponds to the JSON property `photosAlbumKey`
# @return [String]
attr_accessor :photos_album_key
# Access permissions that the user has for the blog (ADMIN, AUTHOR, or READER).
# Access permissions that the user has for the blog (ADMIN, AUTHOR, or
# READER).
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role
# ID of the User
# ID of the User.
# Corresponds to the JSON property `userId`
# @return [String]
attr_accessor :user_id
@ -295,7 +296,7 @@ module Google
# @return [Google::Apis::BloggerV3::BlogPerUserInfo]
attr_accessor :blog_user_info
# The kind of this entity. Always blogger#blogUserInfo
# The kind of this entity. Always blogger#blogUserInfo.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -341,7 +342,7 @@ module Google
# @return [Google::Apis::BloggerV3::Comment::InReplyTo]
attr_accessor :in_reply_to
# The kind of this entry. Always blogger#comment
# The kind of this entry. Always blogger#comment.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -353,7 +354,7 @@ module Google
# RFC 3339 date-time when this comment was published.
# Corresponds to the JSON property `published`
# @return [DateTime]
# @return [String]
attr_accessor :published
# The API REST URL to fetch this resource from.
@ -361,14 +362,14 @@ module Google
# @return [String]
attr_accessor :self_link
# The status of the comment (only populated for admin users)
# The status of the comment (only populated for admin users).
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# RFC 3339 date-time when this comment was last updated.
# Corresponds to the JSON property `updated`
# @return [DateTime]
# @return [String]
attr_accessor :updated
def initialize(**args)
@ -399,17 +400,17 @@ module Google
# @return [String]
attr_accessor :display_name
# The identifier of the Comment creator.
# The identifier of the creator.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The comment creator's avatar.
# The creator's avatar.
# Corresponds to the JSON property `image`
# @return [Google::Apis::BloggerV3::Comment::Author::Image]
attr_accessor :image
# The URL of the Comment creator's Profile page.
# The URL of the creator's Profile page.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
@ -426,11 +427,11 @@ module Google
@url = args[:url] if args.key?(:url)
end
# The comment creator's avatar.
# The creator's avatar.
class Image
include Google::Apis::Core::Hashable
# The comment creator's avatar URL.
# The creator's avatar URL.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
@ -518,7 +519,7 @@ module Google
# @return [Array<Google::Apis::BloggerV3::Comment>]
attr_accessor :items
# The kind of this entry. Always blogger#commentList
# The kind of this entry. Always blogger#commentList.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -576,14 +577,14 @@ module Google
# @return [String]
attr_accessor :id
# The kind of this entity. Always blogger#page
# The kind of this entity. Always blogger#page.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# RFC 3339 date-time when this Page was published.
# Corresponds to the JSON property `published`
# @return [DateTime]
# @return [String]
attr_accessor :published
# The API REST URL to fetch this resource from.
@ -604,7 +605,7 @@ module Google
# RFC 3339 date-time when this Page was last updated.
# Corresponds to the JSON property `updated`
# @return [DateTime]
# @return [String]
attr_accessor :updated
# The URL that this Page is displayed at.
@ -641,17 +642,17 @@ module Google
# @return [String]
attr_accessor :display_name
# The identifier of the Page creator.
# The identifier of the creator.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The page author's avatar.
# The creator's avatar.
# Corresponds to the JSON property `image`
# @return [Google::Apis::BloggerV3::Page::Author::Image]
attr_accessor :image
# The URL of the Page creator's Profile page.
# The URL of the creator's Profile page.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
@ -668,11 +669,11 @@ module Google
@url = args[:url] if args.key?(:url)
end
# The page author's avatar.
# The creator's avatar.
class Image
include Google::Apis::Core::Hashable
# The page author's avatar URL.
# The creator's avatar URL.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
@ -722,7 +723,7 @@ module Google
# @return [Array<Google::Apis::BloggerV3::Page>]
attr_accessor :items
# The kind of this entity. Always blogger#pageList
# The kind of this entity. Always blogger#pageList.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -749,7 +750,7 @@ module Google
class Pageviews
include Google::Apis::Core::Hashable
# Blog Id
# Blog Id.
# Corresponds to the JSON property `blogId`
# @return [String]
attr_accessor :blog_id
@ -759,7 +760,7 @@ module Google
# @return [Array<Google::Apis::BloggerV3::Pageviews::Count>]
attr_accessor :counts
# The kind of this entry. Always blogger#page_views
# The kind of this entry. Always blogger#page_views.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -779,12 +780,12 @@ module Google
class Count
include Google::Apis::Core::Hashable
# Count of page views for the given time range
# Count of page views for the given time range.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
# Time range the given count applies to
# Time range the given count applies to.
# Corresponds to the JSON property `timeRange`
# @return [String]
attr_accessor :time_range
@ -840,7 +841,7 @@ module Google
# @return [Array<Google::Apis::BloggerV3::Post::Image>]
attr_accessor :images
# The kind of this entity. Always blogger#post
# The kind of this entity. Always blogger#post.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -857,7 +858,7 @@ module Google
# RFC 3339 date-time when this Post was published.
# Corresponds to the JSON property `published`
# @return [DateTime]
# @return [String]
attr_accessor :published
# Comment control and display setting for readers of this post.
@ -875,7 +876,7 @@ module Google
# @return [String]
attr_accessor :self_link
# Status of the post. Only set for admin-level requests
# Status of the post. Only set for admin-level requests.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
@ -892,7 +893,7 @@ module Google
# RFC 3339 date-time when this Post was last updated.
# Corresponds to the JSON property `updated`
# @return [DateTime]
# @return [String]
attr_accessor :updated
# The URL where this Post is displayed.
@ -936,17 +937,17 @@ module Google
# @return [String]
attr_accessor :display_name
# The identifier of the Post creator.
# The identifier of the creator.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The Post author's avatar.
# The creator's avatar.
# Corresponds to the JSON property `image`
# @return [Google::Apis::BloggerV3::Post::Author::Image]
attr_accessor :image
# The URL of the Post creator's Profile page.
# The URL of the creator's Profile page.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
@ -963,11 +964,11 @@ module Google
@url = args[:url] if args.key?(:url)
end
# The Post author's avatar.
# The creator's avatar.
class Image
include Google::Apis::Core::Hashable
# The Post author's avatar URL.
# The creator's avatar URL.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
@ -1104,7 +1105,7 @@ module Google
# @return [Array<Google::Apis::BloggerV3::Post>]
attr_accessor :items
# The kind of this entity. Always blogger#postList
# The kind of this entity. Always blogger#postList.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -1114,6 +1115,11 @@ module Google
# @return [String]
attr_accessor :next_page_token
# Pagination token to fetch the previous page, if one exists.
# Corresponds to the JSON property `prevPageToken`
# @return [String]
attr_accessor :prev_page_token
def initialize(**args)
update!(**args)
end
@ -1124,6 +1130,7 @@ module Google
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token)
end
end
@ -1142,7 +1149,7 @@ module Google
attr_accessor :has_edit_access
alias_method :has_edit_access?, :has_edit_access
# The kind of this entity. Always blogger#postPerUserInfo
# The kind of this entity. Always blogger#postPerUserInfo.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -1175,7 +1182,7 @@ module Google
class PostUserInfo
include Google::Apis::Core::Hashable
# The kind of this entity. Always blogger#postUserInfo
# The kind of this entity. Always blogger#postUserInfo.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -1211,7 +1218,7 @@ module Google
# @return [Array<Google::Apis::BloggerV3::PostUserInfo>]
attr_accessor :items
# The kind of this entity. Always blogger#postList
# The kind of this entity. Always blogger#postList.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -1249,7 +1256,7 @@ module Google
# The timestamp of when this profile was created, in seconds since epoch.
# Corresponds to the JSON property `created`
# @return [DateTime]
# @return [String]
attr_accessor :created
# The display name.
@ -1262,7 +1269,7 @@ module Google
# @return [String]
attr_accessor :id
# The kind of this entity. Always blogger#user
# The kind of this entity. Always blogger#user.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
@ -1322,17 +1329,17 @@ module Google
class Locale
include Google::Apis::Core::Hashable
# The user's country setting.
# The country this blog's locale is set to.
# Corresponds to the JSON property `country`
# @return [String]
attr_accessor :country
# The user's language setting.
# The language this blog is authored in.
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
# The user's language variant setting.
# The language variant this blog is authored in.
# Corresponds to the JSON property `variant`
# @return [String]
attr_accessor :variant

View File

@ -246,12 +246,10 @@ module Google
property :posts, as: 'posts', class: Google::Apis::BloggerV3::Blog::Posts, decorator: Google::Apis::BloggerV3::Blog::Posts::Representation
property :published, as: 'published', type: DateTime
property :published, as: 'published'
property :self_link, as: 'selfLink'
property :status, as: 'status'
property :updated, as: 'updated', type: DateTime
property :updated, as: 'updated'
property :url, as: 'url'
end
@ -331,12 +329,10 @@ module Google
property :kind, as: 'kind'
property :post, as: 'post', class: Google::Apis::BloggerV3::Comment::Post, decorator: Google::Apis::BloggerV3::Comment::Post::Representation
property :published, as: 'published', type: DateTime
property :published, as: 'published'
property :self_link, as: 'selfLink'
property :status, as: 'status'
property :updated, as: 'updated', type: DateTime
property :updated, as: 'updated'
end
class Author
@ -402,13 +398,11 @@ module Google
property :etag, as: 'etag'
property :id, as: 'id'
property :kind, as: 'kind'
property :published, as: 'published', type: DateTime
property :published, as: 'published'
property :self_link, as: 'selfLink'
property :status, as: 'status'
property :title, as: 'title'
property :updated, as: 'updated', type: DateTime
property :updated, as: 'updated'
property :url, as: 'url'
end
@ -484,8 +478,7 @@ module Google
collection :labels, as: 'labels'
property :location, as: 'location', class: Google::Apis::BloggerV3::Post::Location, decorator: Google::Apis::BloggerV3::Post::Location::Representation
property :published, as: 'published', type: DateTime
property :published, as: 'published'
property :reader_comments, as: 'readerComments'
property :replies, as: 'replies', class: Google::Apis::BloggerV3::Post::Replies, decorator: Google::Apis::BloggerV3::Post::Replies::Representation
@ -493,8 +486,7 @@ module Google
property :status, as: 'status'
property :title, as: 'title'
property :title_link, as: 'titleLink'
property :updated, as: 'updated', type: DateTime
property :updated, as: 'updated'
property :url, as: 'url'
end
@ -559,6 +551,7 @@ module Google
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :prev_page_token, as: 'prevPageToken'
end
end
@ -600,8 +593,7 @@ module Google
property :about, as: 'about'
property :blogs, as: 'blogs', class: Google::Apis::BloggerV3::User::Blogs, decorator: Google::Apis::BloggerV3::User::Blogs::Representation
property :created, as: 'created', type: DateTime
property :created, as: 'created'
property :display_name, as: 'displayName'
property :id, as: 'id'
property :kind, as: 'kind'

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/calendar/firstapp
module CalendarV3
VERSION = 'V3'
REVISION = '20191117'
REVISION = '20200315'
# See, edit, share, and permanently delete all the calendars you can access using Google Calendar
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'

View File

@ -438,15 +438,8 @@ module Google
class CalendarNotification
include Google::Apis::Core::Hashable
# The method used to deliver the notification. Possible values are:
# The method used to deliver the notification. The possible value is:
# - "email" - Notifications are sent via email.
# - "sms" - Deprecated. Once this feature is shutdown, the API will no longer
# return notifications using this method. Any newly added SMS notifications will
# be ignored. See Google Calendar SMS notifications to be removed for more
# information.
# Notifications are sent via SMS. This value is read-only and is ignored on
# inserts and updates. SMS notifications are only available for G Suite
# customers.
# Required when adding a notification.
# Corresponds to the JSON property `method`
# @return [String]
@ -1782,12 +1775,6 @@ module Google
# The method used by this reminder. Possible values are:
# - "email" - Reminders are sent via email.
# - "sms" - Deprecated. Once this feature is shutdown, the API will no longer
# return reminders using this method. Any newly added SMS reminders will be
# ignored. See Google Calendar SMS notifications to be removed for more
# information.
# Reminders are sent via SMS. These are only available for G Suite customers.
# Requests to set SMS reminders for other account types are ignored.
# - "popup" - Reminders are sent via a UI popup.
# Required when adding a reminder.
# Corresponds to the JSON property `method`

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/hangouts/chat
module ChatV1
VERSION = 'V1'
REVISION = '20200304'
REVISION = '20200405'
end
end
end

View File

@ -395,7 +395,7 @@ module Google
# The aspect ratio of this image (width/height). This field allows clients
# to reserve the right height for the image while waiting for it to load.
# It's not meant to override the native aspect ratio of the image.
# If unset, server will fill it by prefetching the image.
# If unset, the server fills it by prefetching the image.
# Corresponds to the JSON property `aspectRatio`
# @return [Float]
attr_accessor :aspect_ratio

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1
VERSION = 'V1'
REVISION = '20200221'
REVISION = '20200403'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,8 +22,12 @@ module Google
module Apis
module CloudassetV1
# Cloud asset. This includes all Google Cloud Platform resources,
# Cloud IAM policies, and other non-GCP assets.
# An asset in Google Cloud. An asset can be any resource in the Google Cloud
# [resource
# hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-
# resource-hierarchy),
# a resource outside the Google Cloud resource hierarchy (such as Google
# Kubernetes Engine clusters and objects), or a Cloud IAM policy.
class Asset
include Google::Apis::Core::Hashable
@ -43,16 +47,22 @@ module Google
# @return [Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1AccessPolicy]
attr_accessor :access_policy
# Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
# represented as a list of relative resource names. Ancestry path starts with
# the closest CRM ancestor and ends at root. If the asset is a CRM
# project/folder/organization, this starts from the asset itself.
# Example: ["projects/123456789", "folders/5432", "organizations/1234"]
# The ancestry path of an asset in Google Cloud [resource
# hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-
# resource-hierarchy),
# represented as a list of relative resource names. An ancestry path starts
# with the closest ancestor in the hierarchy and ends at root. If the asset
# is a project, folder, or organization, the ancestry path starts from the
# asset itself.
# For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
# Corresponds to the JSON property `ancestors`
# @return [Array<String>]
attr_accessor :ancestors
# Type of the asset. Example: "compute.googleapis.com/Disk".
# The type of the asset. For example: "compute.googleapis.com/Disk"
# See [Supported asset
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
# for more information.
# Corresponds to the JSON property `assetType`
# @return [String]
attr_accessor :asset_type
@ -118,23 +128,25 @@ module Google
attr_accessor :iam_policy
# The full name of the asset. For example:
# `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
# instance1`.
# "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
# instance1"
# See [Resource
# Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
# names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
# for more information.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Representation of the Cloud Organization Policy set on an asset. For each
# asset, there could be multiple Organization policies with different
# constraints.
# A representation of an [organization
# policy](https://cloud.google.com/resource-manager/docs/organization-policy/
# overview#organization_policy).
# There can be more than one organization policy with different constraints
# set on a given resource.
# Corresponds to the JSON property `orgPolicy`
# @return [Array<Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1Policy>]
attr_accessor :org_policy
# Representation of a cloud resource.
# A representation of a Google Cloud resource.
# Corresponds to the JSON property `resource`
# @return [Google::Apis::CloudassetV1::Resource]
attr_accessor :resource
@ -313,15 +325,15 @@ module Google
# Required. The BigQuery dataset in format
# "projects/projectId/datasets/datasetId", to which the snapshot result
# should be exported. If this dataset does not exist, the export call returns
# an error.
# an INVALID_ARGUMENT error.
# Corresponds to the JSON property `dataset`
# @return [String]
attr_accessor :dataset
# If the destination table already exists and this flag is `TRUE`, the
# table will be overwritten by the contents of assets snapshot. If the flag
# is not set and the destination table already exists, the export call
# returns an error.
# is `FALSE` or unset and the destination table already exists, the export
# call returns an INVALID_ARGUMEMT error.
# Corresponds to the JSON property `force`
# @return [Boolean]
attr_accessor :force
@ -437,7 +449,7 @@ module Google
# An asset feed filter controls what updates are exported.
# The asset feed must be created within a project, organization, or
# folder. Supported destinations are:
# Cloud Pub/Sub topics.
# Pub/Sub topics.
# Corresponds to the JSON property `feed`
# @return [Google::Apis::CloudassetV1::Feed]
attr_accessor :feed
@ -503,10 +515,10 @@ module Google
attr_accessor :output_config
# Timestamp to take an asset snapshot. This can only be set to a timestamp
# between 2018-10-02 UTC (inclusive) and the current time. If not specified,
# the current time will be used. Due to delays in resource data collection
# and indexing, there is a volatile window during which running the same
# query may get different results.
# between the current time and the current time minus 35 days (inclusive).
# If not specified, the current time will be used. Due to delays in resource
# data collection and indexing, there is a volatile window during which
# running the same query may get different results.
# Corresponds to the JSON property `readTime`
# @return [String]
attr_accessor :read_time
@ -591,7 +603,7 @@ module Google
# An asset feed filter controls what updates are exported.
# The asset feed must be created within a project, organization, or
# folder. Supported destinations are:
# Cloud Pub/Sub topics.
# Pub/Sub topics.
class Feed
include Google::Apis::Core::Hashable
@ -658,7 +670,7 @@ module Google
class FeedOutputConfig
include Google::Apis::Core::Hashable
# A Cloud Pubsub destination.
# A Pub/Sub destination.
# Corresponds to the JSON property `pubsubDestination`
# @return [Google::Apis::CloudassetV1::PubsubDestination]
attr_accessor :pubsub_destination
@ -1058,11 +1070,6 @@ module Google
# @return [Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1BasicLevel]
attr_accessor :basic
# Output only. Time the `AccessLevel` was created in UTC.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# `CustomLevel` is an `AccessLevel` using the Cloud Common Expression Language
# to represent the necessary conditions for the level to apply to a request.
# See CEL spec at: https://github.com/google/cel-spec
@ -1077,7 +1084,8 @@ module Google
# Required. Resource name for the Access Level. The `short_name` component
# must begin with a letter and only include alphanumeric and '_'. Format:
# `accessPolicies/`policy_id`/accessLevels/`short_name``
# `accessPolicies/`policy_id`/accessLevels/`short_name``. The maximum length
# of the `short_name` component is 50 characters.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -1087,11 +1095,6 @@ module Google
# @return [String]
attr_accessor :title
# Output only. Time the `AccessLevel` was updated in UTC.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
@ -1099,12 +1102,10 @@ module Google
# Update properties of this object
def update!(**args)
@basic = args[:basic] if args.key?(:basic)
@create_time = args[:create_time] if args.key?(:create_time)
@custom = args[:custom] if args.key?(:custom)
@description = args[:description] if args.key?(:description)
@name = args[:name] if args.key?(:name)
@title = args[:title] if args.key?(:title)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
@ -1116,10 +1117,13 @@ module Google
class GoogleIdentityAccesscontextmanagerV1AccessPolicy
include Google::Apis::Core::Hashable
# Output only. Time the `AccessPolicy` was created in UTC.
# Corresponds to the JSON property `createTime`
# Output only. An opaque identifier for the current version of the
# `AccessPolicy`. This will always be a strongly validated etag, meaning that
# two Access Polices will be identical if and only if their etags are
# identical. Clients should not expect this to be in any specific format.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :create_time
attr_accessor :etag
# Output only. Resource name of the `AccessPolicy`. Format:
# `accessPolicies/`policy_id``
@ -1139,22 +1143,16 @@ module Google
# @return [String]
attr_accessor :title
# Output only. Time the `AccessPolicy` was updated in UTC.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@etag = args[:etag] if args.key?(:etag)
@name = args[:name] if args.key?(:name)
@parent = args[:parent] if args.key?(:parent)
@title = args[:title] if args.key?(:title)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
@ -1422,11 +1420,6 @@ module Google
class GoogleIdentityAccesscontextmanagerV1ServicePerimeter
include Google::Apis::Core::Hashable
# Output only. Time the `ServicePerimeter` was created in UTC.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Description of the `ServicePerimeter` and its use. Does not affect
# behavior.
# Corresponds to the JSON property `description`
@ -1467,11 +1460,6 @@ module Google
# @return [String]
attr_accessor :title
# Output only. Time the `ServicePerimeter` was updated in UTC.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly
# exists for all Service Perimeters, and that spec is identical to the
# status for those Service Perimeters. When this flag is set, it inhibits the
@ -1493,14 +1481,12 @@ module Google
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description)
@name = args[:name] if args.key?(:name)
@perimeter_type = args[:perimeter_type] if args.key?(:perimeter_type)
@spec = args[:spec] if args.key?(:spec)
@status = args[:status] if args.key?(:status)
@title = args[:title] if args.key?(:title)
@update_time = args[:update_time] if args.key?(:update_time)
@use_explicit_dry_run_spec = args[:use_explicit_dry_run_spec] if args.key?(:use_explicit_dry_run_spec)
end
end
@ -1812,11 +1798,11 @@ module Google
end
end
# A Cloud Pubsub destination.
# A Pub/Sub destination.
class PubsubDestination
include Google::Apis::Core::Hashable
# The name of the Cloud Pub/Sub topic to publish to.
# The name of the Pub/Sub topic to publish to.
# For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
# Corresponds to the JSON property `topic`
# @return [String]
@ -1832,28 +1818,29 @@ module Google
end
end
# Representation of a cloud resource.
# A representation of a Google Cloud resource.
class Resource
include Google::Apis::Core::Hashable
# The content of the resource, in which some sensitive fields are scrubbed
# away and may not be present.
# The content of the resource, in which some sensitive fields are removed
# and may not be present.
# Corresponds to the JSON property `data`
# @return [Hash<String,Object>]
attr_accessor :data
# The URL of the discovery document containing the resource's JSON schema.
# For example:
# `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`.
# It will be left unspecified for resources without a discovery-based API,
# such as Cloud Bigtable.
# "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"
# This value is unspecified for resources that do not have an API based on a
# discovery document, such as Cloud Bigtable.
# Corresponds to the JSON property `discoveryDocumentUri`
# @return [String]
attr_accessor :discovery_document_uri
# The JSON schema name listed in the discovery document.
# Example: "Project". It will be left unspecified for resources (such as
# Cloud Bigtable) without a discovery-based API.
# The JSON schema name listed in the discovery document. For example:
# "Project"
# This value is unspecified for resources that do not have an API based on a
# discovery document, such as Cloud Bigtable.
# Corresponds to the JSON property `discoveryName`
# @return [String]
attr_accessor :discovery_name
@ -1862,25 +1849,25 @@ module Google
# [Resource
# Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
# for more information.
# For GCP assets, it is the parent resource defined in the [Cloud IAM policy
# For Google Cloud assets, this value is the parent resource defined in the
# [Cloud IAM policy
# hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
# For example:
# `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`.
# For third-party assets, it is up to the users to define.
# "//cloudresourcemanager.googleapis.com/projects/my_project_123"
# For third-party assets, this field may be set differently.
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
# The REST URL for accessing the resource. An HTTP GET operation using this
# URL returns the resource itself.
# Example:
# `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`.
# It will be left unspecified for resources without a REST API.
# The REST URL for accessing the resource. An HTTP `GET` request using this
# URL returns the resource itself. For example:
# "https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123"
# This value is unspecified for resources without a REST API.
# Corresponds to the JSON property `resourceUrl`
# @return [String]
attr_accessor :resource_url
# The API version. Example: "v1".
# The API version. For example: "v1"
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
@ -1939,24 +1926,28 @@ module Google
end
end
# Temporal asset. In addition to the asset, the temporal asset includes the
# status of the asset and valid from and to time of it.
# An asset in Google Cloud and its temporal metadata, including the time window
# when it was observed and its status during that window.
class TemporalAsset
include Google::Apis::Core::Hashable
# Cloud asset. This includes all Google Cloud Platform resources,
# Cloud IAM policies, and other non-GCP assets.
# An asset in Google Cloud. An asset can be any resource in the Google Cloud
# [resource
# hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-
# resource-hierarchy),
# a resource outside the Google Cloud resource hierarchy (such as Google
# Kubernetes Engine clusters and objects), or a Cloud IAM policy.
# Corresponds to the JSON property `asset`
# @return [Google::Apis::CloudassetV1::Asset]
attr_accessor :asset
# If the asset is deleted or not.
# Whether the asset has been deleted or not.
# Corresponds to the JSON property `deleted`
# @return [Boolean]
attr_accessor :deleted
alias_method :deleted?, :deleted
# A time window of (start_time, end_time].
# A time window specified by its "start_time" and "end_time".
# Corresponds to the JSON property `window`
# @return [Google::Apis::CloudassetV1::TimeWindow]
attr_accessor :window
@ -1973,12 +1964,12 @@ module Google
end
end
# A time window of (start_time, end_time].
# A time window specified by its "start_time" and "end_time".
class TimeWindow
include Google::Apis::Core::Hashable
# End time of the time window (inclusive).
# Current timestamp if not specified.
# End time of the time window (inclusive). If not specified, the current
# timestamp is used instead.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
@ -2007,7 +1998,7 @@ module Google
# An asset feed filter controls what updates are exported.
# The asset feed must be created within a project, organization, or
# folder. Supported destinations are:
# Cloud Pub/Sub topics.
# Pub/Sub topics.
# Corresponds to the JSON property `feed`
# @return [Google::Apis::CloudassetV1::Feed]
attr_accessor :feed

View File

@ -418,24 +418,21 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :basic, as: 'basic', class: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1BasicLevel, decorator: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1BasicLevel::Representation
property :create_time, as: 'createTime'
property :custom, as: 'custom', class: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1CustomLevel, decorator: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1CustomLevel::Representation
property :description, as: 'description'
property :name, as: 'name'
property :title, as: 'title'
property :update_time, as: 'updateTime'
end
end
class GoogleIdentityAccesscontextmanagerV1AccessPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :etag, as: 'etag'
property :name, as: 'name'
property :parent, as: 'parent'
property :title, as: 'title'
property :update_time, as: 'updateTime'
end
end
@ -494,7 +491,6 @@ module Google
class GoogleIdentityAccesscontextmanagerV1ServicePerimeter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :description, as: 'description'
property :name, as: 'name'
property :perimeter_type, as: 'perimeterType'
@ -503,7 +499,6 @@ module Google
property :status, as: 'status', class: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig, decorator: Google::Apis::CloudassetV1::GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig::Representation
property :title, as: 'title'
property :update_time, as: 'updateTime'
property :use_explicit_dry_run_spec, as: 'useExplicitDryRunSpec'
end
end

View File

@ -278,8 +278,8 @@ module Google
# @param [String] content_type
# Optional. The content type.
# @param [String] read_time_window_end_time
# End time of the time window (inclusive).
# Current timestamp if not specified.
# End time of the time window (inclusive). If not specified, the current
# timestamp is used instead.
# @param [String] read_time_window_start_time
# Start time of the time window (exclusive).
# @param [String] fields

View File

@ -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/cloudasset_v1p1beta1/service.rb'
require 'google/apis/cloudasset_v1p1beta1/classes.rb'
require 'google/apis/cloudasset_v1p1beta1/representations.rb'
module Google
module Apis
# Cloud Asset API
#
# The cloud asset API manages the history and inventory of cloud resources.
#
# @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1p1beta1
VERSION = 'V1p1beta1'
REVISION = '20200403'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end

View File

@ -0,0 +1,669 @@
# 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 CloudassetV1p1beta1
# 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 AuditConfig
include Google::Apis::Core::Hashable
# The configuration for logging of each type of permission.
# Corresponds to the JSON property `auditLogConfigs`
# @return [Array<Google::Apis::CloudassetV1p1beta1::AuditLogConfig>]
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 AuditLogConfig
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 Binding
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::CloudassetV1p1beta1::Expr]
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
# Explanation about the IAM policy search result.
class Explanation
include Google::Apis::Core::Hashable
# The map from roles to their included permission matching the permission
# query (e.g. containing `policy.role.permissions:`). A sample role string:
# "roles/compute.instanceAdmin". The roles can also be found in the
# returned `policy` bindings. Note that the map is populated only if
# requesting with a permission query.
# Corresponds to the JSON property `matchedPermissions`
# @return [Hash<String,Google::Apis::CloudassetV1p1beta1::Permissions>]
attr_accessor :matched_permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@matched_permissions = args[:matched_permissions] if args.key?(:matched_permissions)
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 Expr
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 result for a IAM Policy search.
class IamPolicySearchResult
include Google::Apis::Core::Hashable
# Explanation about the IAM policy search result.
# Corresponds to the JSON property `explanation`
# @return [Google::Apis::CloudassetV1p1beta1::Explanation]
attr_accessor :explanation
# 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.
# Optionally, a `binding` can 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.
# **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::CloudassetV1p1beta1::Policy]
attr_accessor :policy
# The project that the associated GCP resource belongs to, in the form of
# `projects/`project_number``. If an IAM policy is set on a resource (like VM
# instance, Cloud Storage bucket), the project field will indicate the
# project that contains the resource. If an IAM policy is set on a folder or
# orgnization, the project field will be empty.
# Corresponds to the JSON property `project`
# @return [String]
attr_accessor :project
# The [full resource
# name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
# of the resource associated with this IAM policy.
# Corresponds to the JSON property `resource`
# @return [String]
attr_accessor :resource
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@explanation = args[:explanation] if args.key?(:explanation)
@policy = args[:policy] if args.key?(:policy)
@project = args[:project] if args.key?(:project)
@resource = args[:resource] if args.key?(:resource)
end
end
# IAM permissions
class Permissions
include Google::Apis::Core::Hashable
# A list of permissions. A sample permission string: "compute.disk.get".
# 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
# 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.
# Optionally, a `binding` can 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.
# **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 Policy
include Google::Apis::Core::Hashable
# Specifies cloud audit logging configuration for this policy.
# Corresponds to the JSON property `auditConfigs`
# @return [Array<Google::Apis::CloudassetV1p1beta1::AuditConfig>]
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::CloudassetV1p1beta1::Binding>]
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.
# 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
# Search all IAM policies response.
class SearchAllIamPoliciesResponse
include Google::Apis::Core::Hashable
# Set if there are more results than those appearing in this response; to get
# the next set of results, call this method again, using this value as the
# `page_token`.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# A list of IamPolicy that match the search query. Related information such
# as the associated resource is returned along with the policy.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::CloudassetV1p1beta1::IamPolicySearchResult>]
attr_accessor :results
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)
@results = args[:results] if args.key?(:results)
end
end
# Search all resources response.
class SearchAllResourcesResponse
include Google::Apis::Core::Hashable
# If there are more results than those appearing in this response, then
# `next_page_token` is included. To get the next set of results, call this
# method again using the value of `next_page_token` as `page_token`.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# A list of resource that match the search query.
# Corresponds to the JSON property `results`
# @return [Array<Google::Apis::CloudassetV1p1beta1::StandardResourceMetadata>]
attr_accessor :results
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)
@results = args[:results] if args.key?(:results)
end
end
# The standard metadata of a cloud resource.
class StandardResourceMetadata
include Google::Apis::Core::Hashable
# Additional searchable attributes of this resource.
# Informational only. The exact set of attributes is subject to change.
# For example: project id, DNS name etc.
# Corresponds to the JSON property `additionalAttributes`
# @return [Array<String>]
attr_accessor :additional_attributes
# The type of this resource.
# For example: "compute.googleapis.com/Disk".
# Corresponds to the JSON property `assetType`
# @return [String]
attr_accessor :asset_type
# One or more paragraphs of text description of this resource. Maximum length
# could be up to 1M bytes.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# The display name of this resource.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Location can be "global", regional like "us-east1", or zonal like
# "us-west1-b".
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# The full resource name. For example:
# `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
# instance1`.
# See [Resource
# Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
# for more information.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The project that this resource belongs to, in the form of
# `projects/`project_number``.
# Corresponds to the JSON property `project`
# @return [String]
attr_accessor :project
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@additional_attributes = args[:additional_attributes] if args.key?(:additional_attributes)
@asset_type = args[:asset_type] if args.key?(:asset_type)
@description = args[:description] if args.key?(:description)
@display_name = args[:display_name] if args.key?(:display_name)
@location = args[:location] if args.key?(:location)
@name = args[:name] if args.key?(:name)
@project = args[:project] if args.key?(:project)
end
end
end
end
end

View File

@ -0,0 +1,199 @@
# 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 CloudassetV1p1beta1
class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Explanation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class IamPolicySearchResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Permissions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchAllIamPoliciesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchAllResourcesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StandardResourceMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudassetV1p1beta1::AuditLogConfig, decorator: Google::Apis::CloudassetV1p1beta1::AuditLogConfig::Representation
property :service, as: 'service'
end
end
class AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::CloudassetV1p1beta1::Expr, decorator: Google::Apis::CloudassetV1p1beta1::Expr::Representation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class Explanation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :matched_permissions, as: 'matchedPermissions', class: Google::Apis::CloudassetV1p1beta1::Permissions, decorator: Google::Apis::CloudassetV1p1beta1::Permissions::Representation
end
end
class Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :expression, as: 'expression'
property :location, as: 'location'
property :title, as: 'title'
end
end
class IamPolicySearchResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :explanation, as: 'explanation', class: Google::Apis::CloudassetV1p1beta1::Explanation, decorator: Google::Apis::CloudassetV1p1beta1::Explanation::Representation
property :policy, as: 'policy', class: Google::Apis::CloudassetV1p1beta1::Policy, decorator: Google::Apis::CloudassetV1p1beta1::Policy::Representation
property :project, as: 'project'
property :resource, as: 'resource'
end
end
class Permissions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudassetV1p1beta1::AuditConfig, decorator: Google::Apis::CloudassetV1p1beta1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::CloudassetV1p1beta1::Binding, decorator: Google::Apis::CloudassetV1p1beta1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
end
end
class SearchAllIamPoliciesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :results, as: 'results', class: Google::Apis::CloudassetV1p1beta1::IamPolicySearchResult, decorator: Google::Apis::CloudassetV1p1beta1::IamPolicySearchResult::Representation
end
end
class SearchAllResourcesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :results, as: 'results', class: Google::Apis::CloudassetV1p1beta1::StandardResourceMetadata, decorator: Google::Apis::CloudassetV1p1beta1::StandardResourceMetadata::Representation
end
end
class StandardResourceMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :additional_attributes, as: 'additionalAttributes'
property :asset_type, as: 'assetType'
property :description, as: 'description'
property :display_name, as: 'displayName'
property :location, as: 'location'
property :name, as: 'name'
property :project, as: 'project'
end
end
end
end
end

View File

@ -0,0 +1,187 @@
# 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 CloudassetV1p1beta1
# Cloud Asset API
#
# The cloud asset API manages the history and inventory of cloud resources.
#
# @example
# require 'google/apis/cloudasset_v1p1beta1'
#
# Cloudasset = Google::Apis::CloudassetV1p1beta1 # Alias the module
# service = Cloudasset::CloudAssetService.new
#
# @see https://cloud.google.com/asset-inventory/docs/quickstart
class CloudAssetService < 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://cloudasset.googleapis.com/', '')
@batch_path = 'batch'
end
# Searches all the IAM policies under a given accessible CRM scope
# (project/folder/organization). This RPC gives callers
# especially admins the ability to search all the IAM policies under a scope,
# even if they don't have .getIamPolicy permission of all the IAM policies.
# Callers should have cloud.assets.SearchAllIamPolicies permission on the
# requested scope, otherwise it will be rejected.
# @param [String] scope
# Required. The relative name of an asset. The search is limited to the
# resources
# within the `scope`. The allowed value must be:
# * Organization number (such as "organizations/123")
# * Folder number(such as "folders/1234")
# * Project number (such as "projects/12345")
# @param [Fixnum] page_size
# Optional. The page size for search result pagination. Page size is capped at
# 500 even
# if a larger value is given. If set to zero, server will pick an appropriate
# default. Returned results may be fewer than requested. When this happens,
# there could be more results as long as `next_page_token` is returned.
# @param [String] page_token
# Optional. If present, retrieve the next batch of results from the preceding
# call to
# this method. `page_token` must be the value of `next_page_token` from the
# previous response. The values of all other method parameters must be
# identical to those in the previous call.
# @param [String] query
# Optional. The query statement.
# Examples:
# * "policy:myuser@mydomain.com"
# * "policy:(myuser@mydomain.com viewer)"
# @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::CloudassetV1p1beta1::SearchAllIamPoliciesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudassetV1p1beta1::SearchAllIamPoliciesResponse]
#
# @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 search_iam_policy_all(scope, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1p1beta1/{+scope}/iamPolicies:searchAll', options)
command.response_representation = Google::Apis::CloudassetV1p1beta1::SearchAllIamPoliciesResponse::Representation
command.response_class = Google::Apis::CloudassetV1p1beta1::SearchAllIamPoliciesResponse
command.params['scope'] = scope unless scope.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['query'] = query unless query.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Searches all the resources under a given accessible CRM scope
# (project/folder/organization). This RPC gives callers
# especially admins the ability to search all the resources under a scope,
# even if they don't have .get permission of all the resources. Callers
# should have cloud.assets.SearchAllResources permission on the requested
# scope, otherwise it will be rejected.
# @param [String] scope
# Required. The relative name of an asset. The search is limited to the
# resources
# within the `scope`. The allowed value must be:
# * Organization number (such as "organizations/123")
# * Folder number(such as "folders/1234")
# * Project number (such as "projects/12345")
# @param [Array<String>, String] asset_types
# Optional. A list of asset types that this request searches for. If empty, it
# will
# search all the supported asset types.
# @param [String] order_by
# Optional. A comma separated list of fields specifying the sorting order of the
# results. The default order is ascending. Add " desc" after the field name
# to indicate descending order. Redundant space characters are ignored. For
# example, " foo , bar desc ".
# @param [Fixnum] page_size
# Optional. The page size for search result pagination. Page size is capped at
# 500 even
# if a larger value is given. If set to zero, server will pick an appropriate
# default. Returned results may be fewer than requested. When this happens,
# there could be more results as long as `next_page_token` is returned.
# @param [String] page_token
# Optional. If present, then retrieve the next batch of results from the
# preceding call
# to this method. `page_token` must be the value of `next_page_token` from
# the previous response. The values of all other method parameters, must be
# identical to those in the previous call.
# @param [String] query
# Optional. The query statement.
# @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::CloudassetV1p1beta1::SearchAllResourcesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudassetV1p1beta1::SearchAllResourcesResponse]
#
# @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 search_resource_all(scope, asset_types: nil, order_by: nil, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1p1beta1/{+scope}/resources:searchAll', options)
command.response_representation = Google::Apis::CloudassetV1p1beta1::SearchAllResourcesResponse::Representation
command.response_class = Google::Apis::CloudassetV1p1beta1::SearchAllResourcesResponse
command.params['scope'] = scope unless scope.nil?
command.query['assetTypes'] = asset_types unless asset_types.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['query'] = query unless query.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

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/cloud-build/docs/
module CloudbuildV1
VERSION = 'V1'
REVISION = '20200308'
REVISION = '20200317'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -200,6 +200,14 @@ module Google
# @return [String]
attr_accessor :project_id
# TTL in queue for this build. If provided and the build is enqueued longer
# than this value, the build will expire and the build status will be
# `EXPIRED`.
# The TTL starts ticking from create_time.
# Corresponds to the JSON property `queueTtl`
# @return [String]
attr_accessor :queue_ttl
# Artifacts created by the build pipeline.
# Corresponds to the JSON property `results`
# @return [Google::Apis::CloudbuildV1::Results]
@ -286,6 +294,7 @@ module Google
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
@options = args[:options] if args.key?(:options)
@project_id = args[:project_id] if args.key?(:project_id)
@queue_ttl = args[:queue_ttl] if args.key?(:queue_ttl)
@results = args[:results] if args.key?(:results)
@secrets = args[:secrets] if args.key?(:secrets)
@source = args[:source] if args.key?(:source)
@ -658,7 +667,9 @@ module Google
# @return [String]
attr_accessor :name
# Substitutions data for Build resource.
# Substitutions for Build resource. The keys must match the following
# regular expression: `^_[A-Z0-9_]+$`.The keys cannot conflict with the
# keys in bindings.
# Corresponds to the JSON property `substitutions`
# @return [Hash<String,String>]
attr_accessor :substitutions

View File

@ -251,6 +251,7 @@ module Google
property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
property :project_id, as: 'projectId'
property :queue_ttl, as: 'queueTtl'
property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
collection :secrets, as: 'secrets', class: Google::Apis::CloudbuildV1::Secret, decorator: Google::Apis::CloudbuildV1::Secret::Representation

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/cloud-build/docs/
module CloudbuildV1alpha1
VERSION = 'V1alpha1'
REVISION = '20200308'
REVISION = '20200317'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -200,6 +200,14 @@ module Google
# @return [String]
attr_accessor :project_id
# TTL in queue for this build. If provided and the build is enqueued longer
# than this value, the build will expire and the build status will be
# `EXPIRED`.
# The TTL starts ticking from create_time.
# Corresponds to the JSON property `queueTtl`
# @return [String]
attr_accessor :queue_ttl
# Artifacts created by the build pipeline.
# Corresponds to the JSON property `results`
# @return [Google::Apis::CloudbuildV1alpha1::Results]
@ -286,6 +294,7 @@ module Google
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
@options = args[:options] if args.key?(:options)
@project_id = args[:project_id] if args.key?(:project_id)
@queue_ttl = args[:queue_ttl] if args.key?(:queue_ttl)
@results = args[:results] if args.key?(:results)
@secrets = args[:secrets] if args.key?(:secrets)
@source = args[:source] if args.key?(:source)

View File

@ -203,6 +203,7 @@ module Google
property :options, as: 'options', class: Google::Apis::CloudbuildV1alpha1::BuildOptions, decorator: Google::Apis::CloudbuildV1alpha1::BuildOptions::Representation
property :project_id, as: 'projectId'
property :queue_ttl, as: 'queueTtl'
property :results, as: 'results', class: Google::Apis::CloudbuildV1alpha1::Results, decorator: Google::Apis::CloudbuildV1alpha1::Results::Representation
collection :secrets, as: 'secrets', class: Google::Apis::CloudbuildV1alpha1::Secret, decorator: Google::Apis::CloudbuildV1alpha1::Secret::Representation

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/cloud-build/docs/
module CloudbuildV1alpha2
VERSION = 'V1alpha2'
REVISION = '20200308'
REVISION = '20200317'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -200,6 +200,14 @@ module Google
# @return [String]
attr_accessor :project_id
# TTL in queue for this build. If provided and the build is enqueued longer
# than this value, the build will expire and the build status will be
# `EXPIRED`.
# The TTL starts ticking from create_time.
# Corresponds to the JSON property `queueTtl`
# @return [String]
attr_accessor :queue_ttl
# Artifacts created by the build pipeline.
# Corresponds to the JSON property `results`
# @return [Google::Apis::CloudbuildV1alpha2::Results]
@ -286,6 +294,7 @@ module Google
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
@options = args[:options] if args.key?(:options)
@project_id = args[:project_id] if args.key?(:project_id)
@queue_ttl = args[:queue_ttl] if args.key?(:queue_ttl)
@results = args[:results] if args.key?(:results)
@secrets = args[:secrets] if args.key?(:secrets)
@source = args[:source] if args.key?(:source)

View File

@ -203,6 +203,7 @@ module Google
property :options, as: 'options', class: Google::Apis::CloudbuildV1alpha2::BuildOptions, decorator: Google::Apis::CloudbuildV1alpha2::BuildOptions::Representation
property :project_id, as: 'projectId'
property :queue_ttl, as: 'queueTtl'
property :results, as: 'results', class: Google::Apis::CloudbuildV1alpha2::Results, decorator: Google::Apis::CloudbuildV1alpha2::Results::Representation
collection :secrets, as: 'secrets', class: Google::Apis::CloudbuildV1alpha2::Secret, decorator: Google::Apis::CloudbuildV1alpha2::Secret::Representation

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/debugger
module ClouddebuggerV2
VERSION = 'V2'
REVISION = '20200228'
REVISION = '20200313'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -47,6 +47,8 @@ module Google
end
end
# ------------------------------------------------------------------------------
# ## Breakpoint (the resource)
# Represents the breakpoint specification, status and results.
class Breakpoint
include Google::Apis::Core::Hashable
@ -517,6 +519,8 @@ module Google
class GetBreakpointResponse
include Google::Apis::Core::Hashable
# ------------------------------------------------------------------------------
# ## Breakpoint (the resource)
# Represents the breakpoint specification, status and results.
# Corresponds to the JSON property `breakpoint`
# @return [Google::Apis::ClouddebuggerV2::Breakpoint]
@ -748,6 +752,8 @@ module Google
class SetBreakpointResponse
include Google::Apis::Core::Hashable
# ------------------------------------------------------------------------------
# ## Breakpoint (the resource)
# Represents the breakpoint specification, status and results.
# Corresponds to the JSON property `breakpoint`
# @return [Google::Apis::ClouddebuggerV2::Breakpoint]
@ -915,6 +921,8 @@ module Google
class UpdateActiveBreakpointRequest
include Google::Apis::Core::Hashable
# ------------------------------------------------------------------------------
# ## Breakpoint (the resource)
# Represents the breakpoint specification, status and results.
# Corresponds to the JSON property `breakpoint`
# @return [Google::Apis::ClouddebuggerV2::Breakpoint]

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/identity/
module CloudidentityV1
VERSION = 'V1'
REVISION = '20200215'
REVISION = '20200401'
# 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'

View File

@ -22,450 +22,6 @@ module Google
module Apis
module CloudidentityV1
# Resource representing the Android specific attributes of a Device.
class AndroidAttributes
include Google::Apis::Core::Hashable
# Baseband version of Android device.
# Corresponds to the JSON property `basebandVersion`
# @return [String]
attr_accessor :baseband_version
# Device bootloader version. Example: 0.6.7.
# Corresponds to the JSON property `bootloaderVersion`
# @return [String]
attr_accessor :bootloader_version
# Build number of Android device.
# Corresponds to the JSON property `buildNumber`
# @return [String]
attr_accessor :build_number
# Whether developer options is enabled on device.
# Corresponds to the JSON property `enabledDeveloperOptions`
# @return [Boolean]
attr_accessor :enabled_developer_options
alias_method :enabled_developer_options?, :enabled_developer_options
# Whether applications from unknown sources can be installed on device.
# Corresponds to the JSON property `enabledUnknownSources`
# @return [Boolean]
attr_accessor :enabled_unknown_sources
alias_method :enabled_unknown_sources?, :enabled_unknown_sources
# Whether adb (USB debugging) is enabled on device.
# Corresponds to the JSON property `enabledUsbDebugging`
# @return [Boolean]
attr_accessor :enabled_usb_debugging
alias_method :enabled_usb_debugging?, :enabled_usb_debugging
# Device encryption state.
# Corresponds to the JSON property `encryptionState`
# @return [String]
attr_accessor :encryption_state
# Device hardware. Example: Sprout.
# Corresponds to the JSON property `hardware`
# @return [String]
attr_accessor :hardware
# Kernel version of Android device.
# Corresponds to the JSON property `kernelVersion`
# @return [String]
attr_accessor :kernel_version
# Domain name for Google accounts on device. Type for other accounts on
# device. Will only be populated if |ownership_privilege| is
# |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in
# to the device policy app if that account's domain has only one account.
# Examples: "com.example", "xyz.com".
# Corresponds to the JSON property `otherAccounts`
# @return [Array<String>]
attr_accessor :other_accounts
# Whether this account is on an owner/primary profile.
# For phones, only true for owner profiles. Android 4+ devices
# can have secondary or restricted user profiles.
# Corresponds to the JSON property `ownerProfileAccount`
# @return [Boolean]
attr_accessor :owner_profile_account
alias_method :owner_profile_account?, :owner_profile_account
# Ownership privileges on device.
# Corresponds to the JSON property `ownershipPrivilege`
# @return [String]
attr_accessor :ownership_privilege
# OS security patch update time on device.
# Corresponds to the JSON property `securityPatchTime`
# @return [String]
attr_accessor :security_patch_time
# Whether device supports Android work profiles. If false, this service
# will not block access to corp data even if an administrator turns on the
# "Enforce Work Profile" policy.
# Corresponds to the JSON property `supportsWorkProfile`
# @return [Boolean]
attr_accessor :supports_work_profile
alias_method :supports_work_profile?, :supports_work_profile
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@baseband_version = args[:baseband_version] if args.key?(:baseband_version)
@bootloader_version = args[:bootloader_version] if args.key?(:bootloader_version)
@build_number = args[:build_number] if args.key?(:build_number)
@enabled_developer_options = args[:enabled_developer_options] if args.key?(:enabled_developer_options)
@enabled_unknown_sources = args[:enabled_unknown_sources] if args.key?(:enabled_unknown_sources)
@enabled_usb_debugging = args[:enabled_usb_debugging] if args.key?(:enabled_usb_debugging)
@encryption_state = args[:encryption_state] if args.key?(:encryption_state)
@hardware = args[:hardware] if args.key?(:hardware)
@kernel_version = args[:kernel_version] if args.key?(:kernel_version)
@other_accounts = args[:other_accounts] if args.key?(:other_accounts)
@owner_profile_account = args[:owner_profile_account] if args.key?(:owner_profile_account)
@ownership_privilege = args[:ownership_privilege] if args.key?(:ownership_privilege)
@security_patch_time = args[:security_patch_time] if args.key?(:security_patch_time)
@supports_work_profile = args[:supports_work_profile] if args.key?(:supports_work_profile)
end
end
# Response message for approving the device to access user data.
class ApproveDeviceUserResponse
include Google::Apis::Core::Hashable
# A DeviceUser is a resource representing a user's use of a Device
# Corresponds to the JSON property `deviceUser`
# @return [Google::Apis::CloudidentityV1::DeviceUser]
attr_accessor :device_user
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_user = args[:device_user] if args.key?(:device_user)
end
end
# Response message for blocking the device from accessing user data.
class BlockDeviceUserResponse
include Google::Apis::Core::Hashable
# A DeviceUser is a resource representing a user's use of a Device
# Corresponds to the JSON property `deviceUser`
# @return [Google::Apis::CloudidentityV1::DeviceUser]
attr_accessor :device_user
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_user = args[:device_user] if args.key?(:device_user)
end
end
# Response message for cancelling an unfinished device wipe.
class CancelWipeDeviceResponse
include Google::Apis::Core::Hashable
# Represents a Device known to Google Cloud, independent of the device
# ownership, type, and whether it is assigned or in use by a user.
# Corresponds to the JSON property `device`
# @return [Google::Apis::CloudidentityV1::Device]
attr_accessor :device
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device = args[:device] if args.key?(:device)
end
end
# Response message for cancelling an unfinished user account wipe.
class CancelWipeDeviceUserResponse
include Google::Apis::Core::Hashable
# A DeviceUser is a resource representing a user's use of a Device
# Corresponds to the JSON property `deviceUser`
# @return [Google::Apis::CloudidentityV1::DeviceUser]
attr_accessor :device_user
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_user = args[:device_user] if args.key?(:device_user)
end
end
# Represents a Device known to Google Cloud, independent of the device
# ownership, type, and whether it is assigned or in use by a user.
class Device
include Google::Apis::Core::Hashable
# Resource representing the Android specific attributes of a Device.
# Corresponds to the JSON property `androidSpecificAttributes`
# @return [Google::Apis::CloudidentityV1::AndroidAttributes]
attr_accessor :android_specific_attributes
# Asset tag of the device.
# Corresponds to the JSON property `assetTag`
# @return [String]
attr_accessor :asset_tag
# Output only. Device brand. Example: Samsung.
# Corresponds to the JSON property `brand`
# @return [String]
attr_accessor :brand
# Output only. Represents whether the Device is compromised.
# Corresponds to the JSON property `compromisedState`
# @return [String]
attr_accessor :compromised_state
# Output only. When the Company-Owned device was imported. This field is empty
# for BYOD
# devices.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. Type of device.
# Corresponds to the JSON property `deviceType`
# @return [String]
attr_accessor :device_type
# Output only. IMEI number of device if GSM device; empty otherwise.
# Corresponds to the JSON property `imei`
# @return [String]
attr_accessor :imei
# Most recent time when device synced with this service.
# Corresponds to the JSON property `lastSyncTime`
# @return [String]
attr_accessor :last_sync_time
# Output only. Management state of the device
# Corresponds to the JSON property `managementState`
# @return [String]
attr_accessor :management_state
# Output only. Device manufacturer. Example: Motorola.
# Corresponds to the JSON property `manufacturer`
# @return [String]
attr_accessor :manufacturer
# Output only. MEID number of device if CDMA device; empty otherwise.
# Corresponds to the JSON property `meid`
# @return [String]
attr_accessor :meid
# Output only. Model name of device. Example: Pixel 3.
# Corresponds to the JSON property `model`
# @return [String]
attr_accessor :model
# Output only. [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.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. Mobile or network operator of device, if available.
# Corresponds to the JSON property `networkOperator`
# @return [String]
attr_accessor :network_operator
# Output only. OS version of the device. Example: Android 8.1.0.
# Corresponds to the JSON property `osVersion`
# @return [String]
attr_accessor :os_version
# Whether the device is owned by the company or an individual
# Corresponds to the JSON property `ownerType`
# @return [String]
attr_accessor :owner_type
# Output only. OS release version. Example: 6.0.
# Corresponds to the JSON property `releaseVersion`
# @return [String]
attr_accessor :release_version
# Serial Number of device. Example: HT82V1A01076.
# Corresponds to the JSON property `serialNumber`
# @return [String]
attr_accessor :serial_number
# WiFi MAC addresses of device.
# Corresponds to the JSON property `wifiMacAddresses`
# @return [Array<String>]
attr_accessor :wifi_mac_addresses
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@android_specific_attributes = args[:android_specific_attributes] if args.key?(:android_specific_attributes)
@asset_tag = args[:asset_tag] if args.key?(:asset_tag)
@brand = args[:brand] if args.key?(:brand)
@compromised_state = args[:compromised_state] if args.key?(:compromised_state)
@create_time = args[:create_time] if args.key?(:create_time)
@device_type = args[:device_type] if args.key?(:device_type)
@imei = args[:imei] if args.key?(:imei)
@last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time)
@management_state = args[:management_state] if args.key?(:management_state)
@manufacturer = args[:manufacturer] if args.key?(:manufacturer)
@meid = args[:meid] if args.key?(:meid)
@model = args[:model] if args.key?(:model)
@name = args[:name] if args.key?(:name)
@network_operator = args[:network_operator] if args.key?(:network_operator)
@os_version = args[:os_version] if args.key?(:os_version)
@owner_type = args[:owner_type] if args.key?(:owner_type)
@release_version = args[:release_version] if args.key?(:release_version)
@serial_number = args[:serial_number] if args.key?(:serial_number)
@wifi_mac_addresses = args[:wifi_mac_addresses] if args.key?(:wifi_mac_addresses)
end
end
# A DeviceUser is a resource representing a user's use of a Device
class DeviceUser
include Google::Apis::Core::Hashable
# Compromised State of the DeviceUser object
# Corresponds to the JSON property `compromisedState`
# @return [String]
attr_accessor :compromised_state
# Output only. Most recent time when user registered with this service.
# Corresponds to the JSON property `firstSyncTime`
# @return [String]
attr_accessor :first_sync_time
# Output only. Default locale used on device, in IETF BCP-47 format.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
# Output only. Last time when user synced with policies.
# Corresponds to the JSON property `lastSyncTime`
# @return [String]
attr_accessor :last_sync_time
# Output only. Management state of the user on the device.
# Corresponds to the JSON property `managementState`
# @return [String]
attr_accessor :management_state
# Output only. [Resource name](https://cloud.google.com/apis/design/
# resource_names) of
# the DeviceUser in format: `devices/`device_id`/deviceUsers/`user_id``,
# where user_id is the ID of the user associated with the user session.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Password state of the DeviceUser object
# Corresponds to the JSON property `passwordState`
# @return [String]
attr_accessor :password_state
# Output only. User agent on the device for this specific user
# Corresponds to the JSON property `userAgent`
# @return [String]
attr_accessor :user_agent
# Email address of the user registered on the device.
# Corresponds to the JSON property `userEmail`
# @return [String]
attr_accessor :user_email
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@compromised_state = args[:compromised_state] if args.key?(:compromised_state)
@first_sync_time = args[:first_sync_time] if args.key?(:first_sync_time)
@language_code = args[:language_code] if args.key?(:language_code)
@last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time)
@management_state = args[:management_state] if args.key?(:management_state)
@name = args[:name] if args.key?(:name)
@password_state = args[:password_state] if args.key?(:password_state)
@user_agent = args[:user_agent] if args.key?(:user_agent)
@user_email = args[:user_email] if args.key?(:user_email)
end
end
# An EndpointApp represents an app that is installed on a device
# Next ID to use: 7
class EndpointApp
include Google::Apis::Core::Hashable
# Output only. Name of the app displayed to the user
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Output only. [Resource name](https://cloud.google.com/apis/design/
# resource_names) of
# the EndpointApp in format:
# `devices/`device`/deviceUsers/`device_user`/endpointApps/`endpoint_app``,
# where client_app_id is the ID of the app associated with the Device.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. Full package name of the installed app
# Corresponds to the JSON property `packageName`
# @return [String]
attr_accessor :package_name
# Output only. Names of all permissions granted to the installed app
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
# Output only. Version code of the installed app
# Corresponds to the JSON property `versionCode`
# @return [Fixnum]
attr_accessor :version_code
# Output only. Version name of the installed app
# Corresponds to the JSON property `versionName`
# @return [String]
attr_accessor :version_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)
@name = args[:name] if args.key?(:name)
@package_name = args[:package_name] if args.key?(:package_name)
@permissions = args[:permissions] if args.key?(:permissions)
@version_code = args[:version_code] if args.key?(:version_code)
@version_name = args[:version_name] if args.key?(:version_name)
end
end
# An EntityKey uniquely identifies an Entity. Namespaces are used to provide
# isolation for IDs. A single ID can be reused across namespaces but the
# combination of a namespace and an ID must be unique.
@ -575,84 +131,6 @@ module Google
end
end
# Response message that is returned in LRO result of ListDeviceUsers Operation.
class ListDeviceUsersResponse
include Google::Apis::Core::Hashable
# Devices meeting the list restrictions.
# Corresponds to the JSON property `deviceUsers`
# @return [Array<Google::Apis::CloudidentityV1::DeviceUser>]
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 in LRO result of ListDevices Operation.
class ListDevicesResponse
include Google::Apis::Core::Hashable
# Devices meeting the list restrictions.
# Corresponds to the JSON property `devices`
# @return [Array<Google::Apis::CloudidentityV1::Device>]
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 message for listing all apps on the device.
class ListEndpointAppsResponse
include Google::Apis::Core::Hashable
# The list of matching EndpointApps found as a result of the request.
# Corresponds to the JSON property `endpointApps`
# @return [Array<Google::Apis::CloudidentityV1::EndpointApp>]
attr_accessor :endpoint_apps
# 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)
@endpoint_apps = args[:endpoint_apps] if args.key?(:endpoint_apps)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response message for ListGroups operation.
class ListGroupsResponse
include Google::Apis::Core::Hashable
@ -949,45 +427,6 @@ module Google
@message = args[:message] if args.key?(:message)
end
end
# Response message for wiping all data on the device.
class WipeDeviceResponse
include Google::Apis::Core::Hashable
# Represents a Device known to Google Cloud, independent of the device
# ownership, type, and whether it is assigned or in use by a user.
# Corresponds to the JSON property `device`
# @return [Google::Apis::CloudidentityV1::Device]
attr_accessor :device
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device = args[:device] if args.key?(:device)
end
end
# Response message for wiping the user's account from the device.
class WipeDeviceUserResponse
include Google::Apis::Core::Hashable
# A DeviceUser is a resource representing a user's use of a Device
# Corresponds to the JSON property `deviceUser`
# @return [Google::Apis::CloudidentityV1::DeviceUser]
attr_accessor :device_user
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_user = args[:device_user] if args.key?(:device_user)
end
end
end
end
end

View File

@ -22,54 +22,6 @@ module Google
module Apis
module CloudidentityV1
class AndroidAttributes
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApproveDeviceUserResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BlockDeviceUserResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelWipeDeviceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelWipeDeviceUserResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Device
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeviceUser
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EndpointApp
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EntityKey
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -82,24 +34,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListDeviceUsersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDevicesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListEndpointAppsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListGroupsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -154,123 +88,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class WipeDeviceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WipeDeviceUserResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AndroidAttributes
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :baseband_version, as: 'basebandVersion'
property :bootloader_version, as: 'bootloaderVersion'
property :build_number, as: 'buildNumber'
property :enabled_developer_options, as: 'enabledDeveloperOptions'
property :enabled_unknown_sources, as: 'enabledUnknownSources'
property :enabled_usb_debugging, as: 'enabledUsbDebugging'
property :encryption_state, as: 'encryptionState'
property :hardware, as: 'hardware'
property :kernel_version, as: 'kernelVersion'
collection :other_accounts, as: 'otherAccounts'
property :owner_profile_account, as: 'ownerProfileAccount'
property :ownership_privilege, as: 'ownershipPrivilege'
property :security_patch_time, as: 'securityPatchTime'
property :supports_work_profile, as: 'supportsWorkProfile'
end
end
class ApproveDeviceUserResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1::DeviceUser, decorator: Google::Apis::CloudidentityV1::DeviceUser::Representation
end
end
class BlockDeviceUserResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1::DeviceUser, decorator: Google::Apis::CloudidentityV1::DeviceUser::Representation
end
end
class CancelWipeDeviceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device, as: 'device', class: Google::Apis::CloudidentityV1::Device, decorator: Google::Apis::CloudidentityV1::Device::Representation
end
end
class CancelWipeDeviceUserResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1::DeviceUser, decorator: Google::Apis::CloudidentityV1::DeviceUser::Representation
end
end
class Device
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :android_specific_attributes, as: 'androidSpecificAttributes', class: Google::Apis::CloudidentityV1::AndroidAttributes, decorator: Google::Apis::CloudidentityV1::AndroidAttributes::Representation
property :asset_tag, as: 'assetTag'
property :brand, as: 'brand'
property :compromised_state, as: 'compromisedState'
property :create_time, as: 'createTime'
property :device_type, as: 'deviceType'
property :imei, as: 'imei'
property :last_sync_time, as: 'lastSyncTime'
property :management_state, as: 'managementState'
property :manufacturer, as: 'manufacturer'
property :meid, as: 'meid'
property :model, as: 'model'
property :name, as: 'name'
property :network_operator, as: 'networkOperator'
property :os_version, as: 'osVersion'
property :owner_type, as: 'ownerType'
property :release_version, as: 'releaseVersion'
property :serial_number, as: 'serialNumber'
collection :wifi_mac_addresses, as: 'wifiMacAddresses'
end
end
class DeviceUser
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :compromised_state, as: 'compromisedState'
property :first_sync_time, as: 'firstSyncTime'
property :language_code, as: 'languageCode'
property :last_sync_time, as: 'lastSyncTime'
property :management_state, as: 'managementState'
property :name, as: 'name'
property :password_state, as: 'passwordState'
property :user_agent, as: 'userAgent'
property :user_email, as: 'userEmail'
end
end
class EndpointApp
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :name, as: 'name'
property :package_name, as: 'packageName'
collection :permissions, as: 'permissions'
property :version_code, as: 'versionCode'
property :version_name, as: 'versionName'
end
end
class EntityKey
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -294,33 +111,6 @@ module Google
end
end
class ListDeviceUsersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :device_users, as: 'deviceUsers', class: Google::Apis::CloudidentityV1::DeviceUser, decorator: Google::Apis::CloudidentityV1::DeviceUser::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListDevicesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :devices, as: 'devices', class: Google::Apis::CloudidentityV1::Device, decorator: Google::Apis::CloudidentityV1::Device::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListEndpointAppsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :endpoint_apps, as: 'endpointApps', class: Google::Apis::CloudidentityV1::EndpointApp, decorator: Google::Apis::CloudidentityV1::EndpointApp::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListGroupsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -402,22 +192,6 @@ module Google
property :message, as: 'message'
end
end
class WipeDeviceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device, as: 'device', class: Google::Apis::CloudidentityV1::Device, decorator: Google::Apis::CloudidentityV1::Device::Representation
end
end
class WipeDeviceUserResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1::DeviceUser, decorator: Google::Apis::CloudidentityV1::DeviceUser::Representation
end
end
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/identity/
module CloudidentityV1beta1
VERSION = 'V1beta1'
REVISION = '20200303'
REVISION = '20200401'
# 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'

View File

@ -22,6 +22,449 @@ module Google
module Apis
module CloudidentityV1beta1
# Resource representing the Android specific attributes of a Device.
class AndroidAttributes
include Google::Apis::Core::Hashable
# Baseband version of Android device.
# Corresponds to the JSON property `basebandVersion`
# @return [String]
attr_accessor :baseband_version
# Device bootloader version. Example: 0.6.7.
# Corresponds to the JSON property `bootloaderVersion`
# @return [String]
attr_accessor :bootloader_version
# Build number of Android device.
# Corresponds to the JSON property `buildNumber`
# @return [String]
attr_accessor :build_number
# Whether developer options is enabled on device.
# Corresponds to the JSON property `enabledDeveloperOptions`
# @return [Boolean]
attr_accessor :enabled_developer_options
alias_method :enabled_developer_options?, :enabled_developer_options
# Whether applications from unknown sources can be installed on device.
# Corresponds to the JSON property `enabledUnknownSources`
# @return [Boolean]
attr_accessor :enabled_unknown_sources
alias_method :enabled_unknown_sources?, :enabled_unknown_sources
# Whether adb (USB debugging) is enabled on device.
# Corresponds to the JSON property `enabledUsbDebugging`
# @return [Boolean]
attr_accessor :enabled_usb_debugging
alias_method :enabled_usb_debugging?, :enabled_usb_debugging
# Device encryption state.
# Corresponds to the JSON property `encryptionState`
# @return [String]
attr_accessor :encryption_state
# Device hardware. Example: Sprout.
# Corresponds to the JSON property `hardware`
# @return [String]
attr_accessor :hardware
# Kernel version of Android device.
# Corresponds to the JSON property `kernelVersion`
# @return [String]
attr_accessor :kernel_version
# Domain name for Google accounts on device. Type for other accounts on
# device. Will only be populated if |ownership_privilege| is
# |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in
# to the device policy app if that account's domain has only one account.
# Examples: "com.example", "xyz.com".
# Corresponds to the JSON property `otherAccounts`
# @return [Array<String>]
attr_accessor :other_accounts
# Whether this account is on an owner/primary profile.
# For phones, only true for owner profiles. Android 4+ devices
# can have secondary or restricted user profiles.
# Corresponds to the JSON property `ownerProfileAccount`
# @return [Boolean]
attr_accessor :owner_profile_account
alias_method :owner_profile_account?, :owner_profile_account
# Ownership privileges on device.
# Corresponds to the JSON property `ownershipPrivilege`
# @return [String]
attr_accessor :ownership_privilege
# OS security patch update time on device.
# Corresponds to the JSON property `securityPatchTime`
# @return [String]
attr_accessor :security_patch_time
# Whether device supports Android work profiles. If false, this service
# will not block access to corp data even if an administrator turns on the
# "Enforce Work Profile" policy.
# Corresponds to the JSON property `supportsWorkProfile`
# @return [Boolean]
attr_accessor :supports_work_profile
alias_method :supports_work_profile?, :supports_work_profile
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@baseband_version = args[:baseband_version] if args.key?(:baseband_version)
@bootloader_version = args[:bootloader_version] if args.key?(:bootloader_version)
@build_number = args[:build_number] if args.key?(:build_number)
@enabled_developer_options = args[:enabled_developer_options] if args.key?(:enabled_developer_options)
@enabled_unknown_sources = args[:enabled_unknown_sources] if args.key?(:enabled_unknown_sources)
@enabled_usb_debugging = args[:enabled_usb_debugging] if args.key?(:enabled_usb_debugging)
@encryption_state = args[:encryption_state] if args.key?(:encryption_state)
@hardware = args[:hardware] if args.key?(:hardware)
@kernel_version = args[:kernel_version] if args.key?(:kernel_version)
@other_accounts = args[:other_accounts] if args.key?(:other_accounts)
@owner_profile_account = args[:owner_profile_account] if args.key?(:owner_profile_account)
@ownership_privilege = args[:ownership_privilege] if args.key?(:ownership_privilege)
@security_patch_time = args[:security_patch_time] if args.key?(:security_patch_time)
@supports_work_profile = args[:supports_work_profile] if args.key?(:supports_work_profile)
end
end
# Response message for approving the device to access user data.
class ApproveDeviceUserResponse
include Google::Apis::Core::Hashable
# A DeviceUser is a resource representing a user's use of a Device
# Corresponds to the JSON property `deviceUser`
# @return [Google::Apis::CloudidentityV1beta1::DeviceUser]
attr_accessor :device_user
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_user = args[:device_user] if args.key?(:device_user)
end
end
# Response message for blocking the device from accessing user data.
class BlockDeviceUserResponse
include Google::Apis::Core::Hashable
# A DeviceUser is a resource representing a user's use of a Device
# Corresponds to the JSON property `deviceUser`
# @return [Google::Apis::CloudidentityV1beta1::DeviceUser]
attr_accessor :device_user
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_user = args[:device_user] if args.key?(:device_user)
end
end
# Response message for cancelling an unfinished device wipe.
class CancelWipeDeviceResponse
include Google::Apis::Core::Hashable
# Represents a Device known to Google Cloud, independent of the device
# ownership, type, and whether it is assigned or in use by a user.
# Corresponds to the JSON property `device`
# @return [Google::Apis::CloudidentityV1beta1::Device]
attr_accessor :device
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device = args[:device] if args.key?(:device)
end
end
# Response message for cancelling an unfinished user account wipe.
class CancelWipeDeviceUserResponse
include Google::Apis::Core::Hashable
# A DeviceUser is a resource representing a user's use of a Device
# Corresponds to the JSON property `deviceUser`
# @return [Google::Apis::CloudidentityV1beta1::DeviceUser]
attr_accessor :device_user
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_user = args[:device_user] if args.key?(:device_user)
end
end
# Represents a Device known to Google Cloud, independent of the device
# ownership, type, and whether it is assigned or in use by a user.
class Device
include Google::Apis::Core::Hashable
# Resource representing the Android specific attributes of a Device.
# Corresponds to the JSON property `androidSpecificAttributes`
# @return [Google::Apis::CloudidentityV1beta1::AndroidAttributes]
attr_accessor :android_specific_attributes
# Asset tag of the device.
# Corresponds to the JSON property `assetTag`
# @return [String]
attr_accessor :asset_tag
# Output only. Device brand. Example: Samsung.
# Corresponds to the JSON property `brand`
# @return [String]
attr_accessor :brand
# Output only. Represents whether the Device is compromised.
# Corresponds to the JSON property `compromisedState`
# @return [String]
attr_accessor :compromised_state
# Output only. When the Company-Owned device was imported. This field is empty
# for BYOD
# devices.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. Type of device.
# Corresponds to the JSON property `deviceType`
# @return [String]
attr_accessor :device_type
# Output only. IMEI number of device if GSM device; empty otherwise.
# Corresponds to the JSON property `imei`
# @return [String]
attr_accessor :imei
# Most recent time when device synced with this service.
# Corresponds to the JSON property `lastSyncTime`
# @return [String]
attr_accessor :last_sync_time
# Output only. Management state of the device
# Corresponds to the JSON property `managementState`
# @return [String]
attr_accessor :management_state
# Output only. Device manufacturer. Example: Motorola.
# Corresponds to the JSON property `manufacturer`
# @return [String]
attr_accessor :manufacturer
# Output only. MEID number of device if CDMA device; empty otherwise.
# Corresponds to the JSON property `meid`
# @return [String]
attr_accessor :meid
# Output only. Model name of device. Example: Pixel 3.
# Corresponds to the JSON property `model`
# @return [String]
attr_accessor :model
# Output only. [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.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. Mobile or network operator of device, if available.
# Corresponds to the JSON property `networkOperator`
# @return [String]
attr_accessor :network_operator
# Output only. OS version of the device. Example: Android 8.1.0.
# Corresponds to the JSON property `osVersion`
# @return [String]
attr_accessor :os_version
# Whether the device is owned by the company or an individual
# Corresponds to the JSON property `ownerType`
# @return [String]
attr_accessor :owner_type
# Output only. OS release version. Example: 6.0.
# Corresponds to the JSON property `releaseVersion`
# @return [String]
attr_accessor :release_version
# Serial Number of device. Example: HT82V1A01076.
# Corresponds to the JSON property `serialNumber`
# @return [String]
attr_accessor :serial_number
# WiFi MAC addresses of device.
# Corresponds to the JSON property `wifiMacAddresses`
# @return [Array<String>]
attr_accessor :wifi_mac_addresses
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@android_specific_attributes = args[:android_specific_attributes] if args.key?(:android_specific_attributes)
@asset_tag = args[:asset_tag] if args.key?(:asset_tag)
@brand = args[:brand] if args.key?(:brand)
@compromised_state = args[:compromised_state] if args.key?(:compromised_state)
@create_time = args[:create_time] if args.key?(:create_time)
@device_type = args[:device_type] if args.key?(:device_type)
@imei = args[:imei] if args.key?(:imei)
@last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time)
@management_state = args[:management_state] if args.key?(:management_state)
@manufacturer = args[:manufacturer] if args.key?(:manufacturer)
@meid = args[:meid] if args.key?(:meid)
@model = args[:model] if args.key?(:model)
@name = args[:name] if args.key?(:name)
@network_operator = args[:network_operator] if args.key?(:network_operator)
@os_version = args[:os_version] if args.key?(:os_version)
@owner_type = args[:owner_type] if args.key?(:owner_type)
@release_version = args[:release_version] if args.key?(:release_version)
@serial_number = args[:serial_number] if args.key?(:serial_number)
@wifi_mac_addresses = args[:wifi_mac_addresses] if args.key?(:wifi_mac_addresses)
end
end
# A DeviceUser is a resource representing a user's use of a Device
class DeviceUser
include Google::Apis::Core::Hashable
# Compromised State of the DeviceUser object
# Corresponds to the JSON property `compromisedState`
# @return [String]
attr_accessor :compromised_state
# Output only. Most recent time when user registered with this service.
# Corresponds to the JSON property `firstSyncTime`
# @return [String]
attr_accessor :first_sync_time
# Output only. Default locale used on device, in IETF BCP-47 format.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
# Output only. Last time when user synced with policies.
# Corresponds to the JSON property `lastSyncTime`
# @return [String]
attr_accessor :last_sync_time
# Output only. Management state of the user on the device.
# Corresponds to the JSON property `managementState`
# @return [String]
attr_accessor :management_state
# Output only. [Resource name](https://cloud.google.com/apis/design/
# resource_names) of
# the DeviceUser in format: `devices/`device_id`/deviceUsers/`user_id``,
# where user_id is the ID of the user associated with the user session.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Password state of the DeviceUser object
# Corresponds to the JSON property `passwordState`
# @return [String]
attr_accessor :password_state
# Output only. User agent on the device for this specific user
# Corresponds to the JSON property `userAgent`
# @return [String]
attr_accessor :user_agent
# Email address of the user registered on the device.
# Corresponds to the JSON property `userEmail`
# @return [String]
attr_accessor :user_email
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@compromised_state = args[:compromised_state] if args.key?(:compromised_state)
@first_sync_time = args[:first_sync_time] if args.key?(:first_sync_time)
@language_code = args[:language_code] if args.key?(:language_code)
@last_sync_time = args[:last_sync_time] if args.key?(:last_sync_time)
@management_state = args[:management_state] if args.key?(:management_state)
@name = args[:name] if args.key?(:name)
@password_state = args[:password_state] if args.key?(:password_state)
@user_agent = args[:user_agent] if args.key?(:user_agent)
@user_email = args[:user_email] if args.key?(:user_email)
end
end
# An EndpointApp represents an app that is installed on a device
class EndpointApp
include Google::Apis::Core::Hashable
# Output only. Name of the app displayed to the user
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Output only. [Resource name](https://cloud.google.com/apis/design/
# resource_names) of
# the EndpointApp in format:
# `devices/`device`/deviceUsers/`device_user`/endpointApps/`endpoint_app``,
# where client_app_id is the ID of the app associated with the Device.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. Full package name of the installed app
# Corresponds to the JSON property `packageName`
# @return [String]
attr_accessor :package_name
# Output only. Names of all permissions granted to the installed app
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
# Output only. Version code of the installed app
# Corresponds to the JSON property `versionCode`
# @return [Fixnum]
attr_accessor :version_code
# Output only. Version name of the installed app
# Corresponds to the JSON property `versionName`
# @return [String]
attr_accessor :version_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)
@name = args[:name] if args.key?(:name)
@package_name = args[:package_name] if args.key?(:package_name)
@permissions = args[:permissions] if args.key?(:permissions)
@version_code = args[:version_code] if args.key?(:version_code)
@version_name = args[:version_name] if args.key?(:version_name)
end
end
# A unique identifier for an entity in the Cloud Identity Groups API.
# An entity can represent either a group with an optional `namespace` or a user
# without a `namespace`. The combination of `id` and `namespace` must be
@ -44,7 +487,7 @@ module Google
# as a Google user or a Google Group.
# If specified, the `EntityKey` represents an external-identity-mapped group.
# The namespace must correspond to an identity source created in Admin
# Console. Must be of the form `identitysources/`identity_source_id`.
# Console and must be in the form of `identitysources/`identity_source_id`.
# Corresponds to the JSON property `namespace`
# @return [String]
attr_accessor :namespace
@ -60,8 +503,35 @@ module Google
end
end
# The response message for MembershipsService.GetMembershipGraph.
class GetMembershipGraphResponse
include Google::Apis::Core::Hashable
# The membership graph's path information represented as an adjacency list.
# Corresponds to the JSON property `adjacencyList`
# @return [Array<Google::Apis::CloudidentityV1beta1::MembershipAdjacencyList>]
attr_accessor :adjacency_list
# The resources representing each group in the adjacency list. Each
# group in this list can be correlated to a 'group' of the
# MembershipAdjacencyList using the 'name' of the Group resource.
# Corresponds to the JSON property `groups`
# @return [Array<Google::Apis::CloudidentityV1beta1::Group>]
attr_accessor :groups
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@adjacency_list = args[:adjacency_list] if args.key?(:adjacency_list)
@groups = args[:groups] if args.key?(:groups)
end
end
# A group within the Cloud Identity Groups API.
# A `Group` is a collection of entities, where each entity is either a user or
# A `Group` is a collection of entities, where each entity is either a user,
# another group or a service account.
class Group
include Google::Apis::Core::Hashable
@ -144,6 +614,84 @@ module Google
end
end
# Response message that is returned in LRO result of ListDeviceUsers Operation.
class ListDeviceUsersResponse
include Google::Apis::Core::Hashable
# Devices meeting the list restrictions.
# Corresponds to the JSON property `deviceUsers`
# @return [Array<Google::Apis::CloudidentityV1beta1::DeviceUser>]
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 in LRO result of ListDevices Operation.
class ListDevicesResponse
include Google::Apis::Core::Hashable
# Devices meeting the list restrictions.
# Corresponds to the JSON property `devices`
# @return [Array<Google::Apis::CloudidentityV1beta1::Device>]
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 message for listing all apps on the device.
class ListEndpointAppsResponse
include Google::Apis::Core::Hashable
# The list of matching EndpointApps found as a result of the request.
# Corresponds to the JSON property `endpointApps`
# @return [Array<Google::Apis::CloudidentityV1beta1::EndpointApp>]
attr_accessor :endpoint_apps
# 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)
@endpoint_apps = args[:endpoint_apps] if args.key?(:endpoint_apps)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# The response message for GroupsService.ListGroups.
class ListGroupsResponse
include Google::Apis::Core::Hashable
@ -238,6 +786,44 @@ module Google
end
end
# Response containing resource names of the DeviceUsers associated with the
# caller's credentials.
class LookupSelfDeviceUsersResponse
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
# A membership within the Cloud Identity Groups API.
# A `Membership` defines a relationship between a `Group` and an entity
# belonging to that `Group`, referred to as a "member".
@ -300,6 +886,31 @@ module Google
end
end
# Membership graph's path information as an adjacency list.
class MembershipAdjacencyList
include Google::Apis::Core::Hashable
# Each edge contains information about the member that belongs to this group.
# Corresponds to the JSON property `edges`
# @return [Array<Google::Apis::CloudidentityV1beta1::Membership>]
attr_accessor :edges
# Resource name of the group that the members belong to.
# Corresponds to the JSON property `group`
# @return [String]
attr_accessor :group
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@edges = args[:edges] if args.key?(:edges)
@group = args[:group] if args.key?(:group)
end
end
# A membership role within the Cloud Identity Groups API.
# A `MembershipRole` defines the privileges granted to a `Membership`.
class MembershipRole
@ -540,6 +1151,45 @@ module Google
@membership_role = args[:membership_role] if args.key?(:membership_role)
end
end
# Response message for wiping all data on the device.
class WipeDeviceResponse
include Google::Apis::Core::Hashable
# Represents a Device known to Google Cloud, independent of the device
# ownership, type, and whether it is assigned or in use by a user.
# Corresponds to the JSON property `device`
# @return [Google::Apis::CloudidentityV1beta1::Device]
attr_accessor :device
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device = args[:device] if args.key?(:device)
end
end
# Response message for wiping the user's account from the device.
class WipeDeviceUserResponse
include Google::Apis::Core::Hashable
# A DeviceUser is a resource representing a user's use of a Device
# Corresponds to the JSON property `deviceUser`
# @return [Google::Apis::CloudidentityV1beta1::DeviceUser]
attr_accessor :device_user
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_user = args[:device_user] if args.key?(:device_user)
end
end
end
end
end

View File

@ -22,18 +22,90 @@ module Google
module Apis
module CloudidentityV1beta1
class AndroidAttributes
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApproveDeviceUserResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BlockDeviceUserResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelWipeDeviceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelWipeDeviceUserResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Device
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeviceUser
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EndpointApp
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EntityKey
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetMembershipGraphResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Group
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDeviceUsersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDevicesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListEndpointAppsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListGroupsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -58,12 +130,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class LookupSelfDeviceUsersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Membership
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MembershipAdjacencyList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MembershipRole
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -106,6 +190,123 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class WipeDeviceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WipeDeviceUserResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AndroidAttributes
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :baseband_version, as: 'basebandVersion'
property :bootloader_version, as: 'bootloaderVersion'
property :build_number, as: 'buildNumber'
property :enabled_developer_options, as: 'enabledDeveloperOptions'
property :enabled_unknown_sources, as: 'enabledUnknownSources'
property :enabled_usb_debugging, as: 'enabledUsbDebugging'
property :encryption_state, as: 'encryptionState'
property :hardware, as: 'hardware'
property :kernel_version, as: 'kernelVersion'
collection :other_accounts, as: 'otherAccounts'
property :owner_profile_account, as: 'ownerProfileAccount'
property :ownership_privilege, as: 'ownershipPrivilege'
property :security_patch_time, as: 'securityPatchTime'
property :supports_work_profile, as: 'supportsWorkProfile'
end
end
class ApproveDeviceUserResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1beta1::DeviceUser, decorator: Google::Apis::CloudidentityV1beta1::DeviceUser::Representation
end
end
class BlockDeviceUserResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1beta1::DeviceUser, decorator: Google::Apis::CloudidentityV1beta1::DeviceUser::Representation
end
end
class CancelWipeDeviceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device, as: 'device', class: Google::Apis::CloudidentityV1beta1::Device, decorator: Google::Apis::CloudidentityV1beta1::Device::Representation
end
end
class CancelWipeDeviceUserResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1beta1::DeviceUser, decorator: Google::Apis::CloudidentityV1beta1::DeviceUser::Representation
end
end
class Device
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :android_specific_attributes, as: 'androidSpecificAttributes', class: Google::Apis::CloudidentityV1beta1::AndroidAttributes, decorator: Google::Apis::CloudidentityV1beta1::AndroidAttributes::Representation
property :asset_tag, as: 'assetTag'
property :brand, as: 'brand'
property :compromised_state, as: 'compromisedState'
property :create_time, as: 'createTime'
property :device_type, as: 'deviceType'
property :imei, as: 'imei'
property :last_sync_time, as: 'lastSyncTime'
property :management_state, as: 'managementState'
property :manufacturer, as: 'manufacturer'
property :meid, as: 'meid'
property :model, as: 'model'
property :name, as: 'name'
property :network_operator, as: 'networkOperator'
property :os_version, as: 'osVersion'
property :owner_type, as: 'ownerType'
property :release_version, as: 'releaseVersion'
property :serial_number, as: 'serialNumber'
collection :wifi_mac_addresses, as: 'wifiMacAddresses'
end
end
class DeviceUser
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :compromised_state, as: 'compromisedState'
property :first_sync_time, as: 'firstSyncTime'
property :language_code, as: 'languageCode'
property :last_sync_time, as: 'lastSyncTime'
property :management_state, as: 'managementState'
property :name, as: 'name'
property :password_state, as: 'passwordState'
property :user_agent, as: 'userAgent'
property :user_email, as: 'userEmail'
end
end
class EndpointApp
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :name, as: 'name'
property :package_name, as: 'packageName'
collection :permissions, as: 'permissions'
property :version_code, as: 'versionCode'
property :version_name, as: 'versionName'
end
end
class EntityKey
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -114,6 +315,16 @@ module Google
end
end
class GetMembershipGraphResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :adjacency_list, as: 'adjacencyList', class: Google::Apis::CloudidentityV1beta1::MembershipAdjacencyList, decorator: Google::Apis::CloudidentityV1beta1::MembershipAdjacencyList::Representation
collection :groups, as: 'groups', class: Google::Apis::CloudidentityV1beta1::Group, decorator: Google::Apis::CloudidentityV1beta1::Group::Representation
end
end
class Group
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -131,6 +342,33 @@ module Google
end
end
class ListDeviceUsersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :device_users, as: 'deviceUsers', class: Google::Apis::CloudidentityV1beta1::DeviceUser, decorator: Google::Apis::CloudidentityV1beta1::DeviceUser::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListDevicesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :devices, as: 'devices', class: Google::Apis::CloudidentityV1beta1::Device, decorator: Google::Apis::CloudidentityV1beta1::Device::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListEndpointAppsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :endpoint_apps, as: 'endpointApps', class: Google::Apis::CloudidentityV1beta1::EndpointApp, decorator: Google::Apis::CloudidentityV1beta1::EndpointApp::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListGroupsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -163,6 +401,15 @@ module Google
end
end
class LookupSelfDeviceUsersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer, as: 'customer'
collection :names, as: 'names'
property :next_page_token, as: 'nextPageToken'
end
end
class Membership
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -178,6 +425,15 @@ module Google
end
end
class MembershipAdjacencyList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :edges, as: 'edges', class: Google::Apis::CloudidentityV1beta1::Membership, decorator: Google::Apis::CloudidentityV1beta1::Membership::Representation
property :group, as: 'group'
end
end
class MembershipRole
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -242,6 +498,22 @@ module Google
end
end
class WipeDeviceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device, as: 'device', class: Google::Apis::CloudidentityV1beta1::Device, decorator: Google::Apis::CloudidentityV1beta1::Device::Representation
end
end
class WipeDeviceUserResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1beta1::DeviceUser, decorator: Google::Apis::CloudidentityV1beta1::DeviceUser::Representation
end
end
end
end
end

View File

@ -210,7 +210,7 @@ module Google
# as a Google user or a Google Group.
# If specified, the `EntityKey` represents an external-identity-mapped group.
# The namespace must correspond to an identity source created in Admin
# Console. Must be of the form `identitysources/`identity_source_id`.
# Console and must be in the form of `identitysources/`identity_source_id`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -504,7 +504,7 @@ module Google
# as a Google user or a Google Group.
# If specified, the `EntityKey` represents an external-identity-mapped group.
# The namespace must correspond to an identity source created in Admin
# Console. Must be of the form `identitysources/`identity_source_id`.
# Console and must be in the form of `identitysources/`identity_source_id`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -1,358 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module CloudprivatecatalogV1beta1
# The readonly representation of a catalog computed with a given resource
# context.
class GoogleCloudPrivatecatalogV1beta1Catalog
include Google::Apis::Core::Hashable
# Output only. The time when the catalog was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. The description of the catalog.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Output only. The descriptive name of the catalog as it appears in UIs.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Output only. The resource name of the target catalog, in the format of
# `catalogs/`catalog_id`'.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. The time when the catalog was last updated.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description)
@display_name = args[:display_name] if args.key?(:display_name)
@name = args[:name] if args.key?(:name)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# The readonly representation of a product computed with a given resource
# context.
class GoogleCloudPrivatecatalogV1beta1Product
include Google::Apis::Core::Hashable
# Output only. The type of the product asset. It can be one of the
# following values:
# * `google.deploymentmanager.Template`
# * `google.cloudprivatecatalog.ListingOnly`
# Corresponds to the JSON property `assetType`
# @return [String]
attr_accessor :asset_type
# Output only. The time when the product was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. The display metadata to describe the product.
# The JSON schema of the metadata differs by Product.asset_type.
# When the type is `google.deploymentmanager.Template`, the schema is as
# follows:
# ```
# "$schema": http://json-schema.org/draft-04/schema#
# type: object
# properties:
# name:
# type: string
# minLength: 1
# maxLength: 64
# description:
# type: string
# minLength: 1
# maxLength: 2048
# tagline:
# type: string
# minLength: 1
# maxLength: 100
# support_info:
# type: string
# minLength: 1
# maxLength: 2048
# creator:
# type: string
# minLength: 1
# maxLength: 100
# documentation:
# type: array
# items:
# type: object
# properties:
# url:
# type: string
# pattern:
# "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"
# title:
# type: string
# minLength: 1
# maxLength: 64
# description:
# type: string
# minLength: 1
# maxLength: 2048
# required:
# - name
# - description
# additionalProperties: false
# ```
# When the asset type is `google.cloudprivatecatalog.ListingOnly`, the schema
# is as follows:
# ```
# "$schema": http://json-schema.org/draft-04/schema#
# type: object
# properties:
# name:
# type: string
# minLength: 1
# maxLength: 64
# description:
# type: string
# minLength: 1
# maxLength: 2048
# tagline:
# type: string
# minLength: 1
# maxLength: 100
# support_info:
# type: string
# minLength: 1
# maxLength: 2048
# creator:
# type: string
# minLength: 1
# maxLength: 100
# documentation:
# type: array
# items:
# type: object
# properties:
# url:
# type: string
# pattern:
# "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"
# title:
# type: string
# minLength: 1
# maxLength: 64
# description:
# type: string
# minLength: 1
# maxLength: 2048
# signup_url:
# type: string
# pattern:
# "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"
# required:
# - name
# - description
# - signup_url
# additionalProperties: false
# ```
# Corresponds to the JSON property `displayMetadata`
# @return [Hash<String,Object>]
attr_accessor :display_metadata
# Output only. The icon URI of the product.
# Corresponds to the JSON property `iconUri`
# @return [String]
attr_accessor :icon_uri
# Output only. The resource name of the target product, in the format of
# `products/a-z*[a-z0-9]'.
# A unique identifier for the product under a catalog.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. The time when the product was last updated.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@asset_type = args[:asset_type] if args.key?(:asset_type)
@create_time = args[:create_time] if args.key?(:create_time)
@display_metadata = args[:display_metadata] if args.key?(:display_metadata)
@icon_uri = args[:icon_uri] if args.key?(:icon_uri)
@name = args[:name] if args.key?(:name)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# Response message for PrivateCatalog.SearchCatalogs.
class GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse
include Google::Apis::Core::Hashable
# The `Catalog`s computed from the resource context.
# Corresponds to the JSON property `catalogs`
# @return [Array<Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1Catalog>]
attr_accessor :catalogs
# A pagination token returned from a previous call to SearchCatalogs that
# indicates from where listing should continue.
# This field is optional.
# 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)
@catalogs = args[:catalogs] if args.key?(:catalogs)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response message for PrivateCatalog.SearchProducts.
class GoogleCloudPrivatecatalogV1beta1SearchProductsResponse
include Google::Apis::Core::Hashable
# A pagination token returned from a previous call to SearchProducts that
# indicates from where listing should continue.
# This field is optional.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The `Product` resources computed from the resource context.
# Corresponds to the JSON property `products`
# @return [Array<Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1Product>]
attr_accessor :products
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)
@products = args[:products] if args.key?(:products)
end
end
# Response message for PrivateCatalog.SearchVersions.
class GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse
include Google::Apis::Core::Hashable
# A pagination token returned from a previous call to SearchVersions that
# indicates from where the listing should continue.
# This field is optional.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The `Version` resources computed from the resource context.
# Corresponds to the JSON property `versions`
# @return [Array<Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1Version>]
attr_accessor :versions
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)
@versions = args[:versions] if args.key?(:versions)
end
end
# The consumer representation of a version which is a child resource under a
# `Product` with asset data.
class GoogleCloudPrivatecatalogV1beta1Version
include Google::Apis::Core::Hashable
# Output only. The asset which has been validated and is ready to be
# provisioned. See
# google.cloud.privatecatalogproducer.v1beta.Version.asset for details.
# Corresponds to the JSON property `asset`
# @return [Hash<String,Object>]
attr_accessor :asset
# Output only. The time when the version was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. The user-supplied description of the version. Maximum of 256
# characters.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Output only. The resource name of the version, in the format
# `catalogs/`catalog_id`/products/`product_id`/versions/a-z*[a-z0-9]'.
# A unique identifier for the version under a product.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. The time when the version was last updated.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@asset = args[:asset] if args.key?(:asset)
@create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description)
@name = args[:name] if args.key?(:name)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
end
end
end

View File

@ -1,123 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module CloudprivatecatalogV1beta1
class GoogleCloudPrivatecatalogV1beta1Catalog
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPrivatecatalogV1beta1Product
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPrivatecatalogV1beta1SearchProductsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPrivatecatalogV1beta1Version
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPrivatecatalogV1beta1Catalog
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :description, as: 'description'
property :display_name, as: 'displayName'
property :name, as: 'name'
property :update_time, as: 'updateTime'
end
end
class GoogleCloudPrivatecatalogV1beta1Product
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :asset_type, as: 'assetType'
property :create_time, as: 'createTime'
hash :display_metadata, as: 'displayMetadata'
property :icon_uri, as: 'iconUri'
property :name, as: 'name'
property :update_time, as: 'updateTime'
end
end
class GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :catalogs, as: 'catalogs', class: Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1Catalog, decorator: Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1Catalog::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleCloudPrivatecatalogV1beta1SearchProductsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :products, as: 'products', class: Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1Product, decorator: Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1Product::Representation
end
end
class GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :versions, as: 'versions', class: Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1Version, decorator: Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1Version::Representation
end
end
class GoogleCloudPrivatecatalogV1beta1Version
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :asset, as: 'asset'
property :create_time, as: 'createTime'
property :description, as: 'description'
property :name, as: 'name'
property :update_time, as: 'updateTime'
end
end
end
end
end

View File

@ -1,486 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module CloudprivatecatalogV1beta1
# Cloud Private Catalog API
#
# Enable cloud users to discover enterprise catalogs and products in their
# organizations.
#
# @example
# require 'google/apis/cloudprivatecatalog_v1beta1'
#
# Cloudprivatecatalog = Google::Apis::CloudprivatecatalogV1beta1 # Alias the module
# service = Cloudprivatecatalog::CloudPrivateCatalogService.new
#
# @see https://cloud.google.com/private-catalog/
class CloudPrivateCatalogService < 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://cloudprivatecatalog.googleapis.com/', '')
@batch_path = 'batch'
end
# Search Catalog resources that consumers have access to, within the
# scope of the consumer cloud resource hierarchy context.
# @param [String] resource
# Required. The name of the resource context. It can be in following formats:
# * `projects/`project_id``
# * `folders/`folder_id``
# * `organizations/`organization_id``
# @param [Fixnum] page_size
# The maximum number of entries that are requested.
# @param [String] page_token
# A pagination token returned from a previous call to SearchCatalogs that
# indicates where this listing should continue from.
# This field is optional.
# @param [String] query
# The query to filter the catalogs. The supported queries are:
# * Get a single catalog: `name=catalogs/`catalog_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse]
#
# @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 search_folder_catalogs(resource, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+resource}/catalogs:search', options)
command.response_representation = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse::Representation
command.response_class = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse
command.params['resource'] = resource unless resource.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['query'] = query unless query.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Search Product resources that consumers have access to, within the
# scope of the consumer cloud resource hierarchy context.
# @param [String] resource
# Required. The name of the resource context. See
# SearchCatalogsRequest.resource for details.
# @param [Fixnum] page_size
# The maximum number of entries that are requested.
# @param [String] page_token
# A pagination token returned from a previous call to SearchProducts that
# indicates where this listing should continue from.
# This field is optional.
# @param [String] query
# The query to filter the products.
# The supported queries are:
# * List products of all catalogs: empty
# * List products under a catalog: `parent=catalogs/`catalog_id``
# * Get a product by name:
# `name=catalogs/`catalog_id`/products/`product_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse]
#
# @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 search_folder_products(resource, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+resource}/products:search', options)
command.response_representation = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse::Representation
command.response_class = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse
command.params['resource'] = resource unless resource.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['query'] = query unless query.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Search Version resources that consumers have access to, within the
# scope of the consumer cloud resource hierarchy context.
# @param [String] resource
# Required. The name of the resource context. See
# SearchCatalogsRequest.resource for details.
# @param [Fixnum] page_size
# The maximum number of entries that are requested.
# @param [String] page_token
# A pagination token returned from a previous call to SearchVersions
# that indicates where this listing should continue from.
# This field is optional.
# @param [String] query
# The query to filter the versions. Required.
# The supported queries are:
# * List versions under a product:
# `parent=catalogs/`catalog_id`/products/`product_id``
# * Get a version by name:
# `name=catalogs/`catalog_id`/products/`product_id`/versions/`version_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse]
#
# @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 search_folder_versions(resource, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+resource}/versions:search', options)
command.response_representation = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse::Representation
command.response_class = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['query'] = query unless query.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Search Catalog resources that consumers have access to, within the
# scope of the consumer cloud resource hierarchy context.
# @param [String] resource
# Required. The name of the resource context. It can be in following formats:
# * `projects/`project_id``
# * `folders/`folder_id``
# * `organizations/`organization_id``
# @param [Fixnum] page_size
# The maximum number of entries that are requested.
# @param [String] page_token
# A pagination token returned from a previous call to SearchCatalogs that
# indicates where this listing should continue from.
# This field is optional.
# @param [String] query
# The query to filter the catalogs. The supported queries are:
# * Get a single catalog: `name=catalogs/`catalog_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse]
#
# @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 search_organization_catalogs(resource, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+resource}/catalogs:search', options)
command.response_representation = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse::Representation
command.response_class = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse
command.params['resource'] = resource unless resource.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['query'] = query unless query.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Search Product resources that consumers have access to, within the
# scope of the consumer cloud resource hierarchy context.
# @param [String] resource
# Required. The name of the resource context. See
# SearchCatalogsRequest.resource for details.
# @param [Fixnum] page_size
# The maximum number of entries that are requested.
# @param [String] page_token
# A pagination token returned from a previous call to SearchProducts that
# indicates where this listing should continue from.
# This field is optional.
# @param [String] query
# The query to filter the products.
# The supported queries are:
# * List products of all catalogs: empty
# * List products under a catalog: `parent=catalogs/`catalog_id``
# * Get a product by name:
# `name=catalogs/`catalog_id`/products/`product_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse]
#
# @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 search_organization_products(resource, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+resource}/products:search', options)
command.response_representation = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse::Representation
command.response_class = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse
command.params['resource'] = resource unless resource.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['query'] = query unless query.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Search Version resources that consumers have access to, within the
# scope of the consumer cloud resource hierarchy context.
# @param [String] resource
# Required. The name of the resource context. See
# SearchCatalogsRequest.resource for details.
# @param [Fixnum] page_size
# The maximum number of entries that are requested.
# @param [String] page_token
# A pagination token returned from a previous call to SearchVersions
# that indicates where this listing should continue from.
# This field is optional.
# @param [String] query
# The query to filter the versions. Required.
# The supported queries are:
# * List versions under a product:
# `parent=catalogs/`catalog_id`/products/`product_id``
# * Get a version by name:
# `name=catalogs/`catalog_id`/products/`product_id`/versions/`version_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse]
#
# @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 search_organization_versions(resource, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+resource}/versions:search', options)
command.response_representation = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse::Representation
command.response_class = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['query'] = query unless query.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Search Catalog resources that consumers have access to, within the
# scope of the consumer cloud resource hierarchy context.
# @param [String] resource
# Required. The name of the resource context. It can be in following formats:
# * `projects/`project_id``
# * `folders/`folder_id``
# * `organizations/`organization_id``
# @param [Fixnum] page_size
# The maximum number of entries that are requested.
# @param [String] page_token
# A pagination token returned from a previous call to SearchCatalogs that
# indicates where this listing should continue from.
# This field is optional.
# @param [String] query
# The query to filter the catalogs. The supported queries are:
# * Get a single catalog: `name=catalogs/`catalog_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse]
#
# @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 search_project_catalogs(resource, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+resource}/catalogs:search', options)
command.response_representation = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse::Representation
command.response_class = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse
command.params['resource'] = resource unless resource.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['query'] = query unless query.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Search Product resources that consumers have access to, within the
# scope of the consumer cloud resource hierarchy context.
# @param [String] resource
# Required. The name of the resource context. See
# SearchCatalogsRequest.resource for details.
# @param [Fixnum] page_size
# The maximum number of entries that are requested.
# @param [String] page_token
# A pagination token returned from a previous call to SearchProducts that
# indicates where this listing should continue from.
# This field is optional.
# @param [String] query
# The query to filter the products.
# The supported queries are:
# * List products of all catalogs: empty
# * List products under a catalog: `parent=catalogs/`catalog_id``
# * Get a product by name:
# `name=catalogs/`catalog_id`/products/`product_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse]
#
# @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 search_project_products(resource, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+resource}/products:search', options)
command.response_representation = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse::Representation
command.response_class = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse
command.params['resource'] = resource unless resource.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['query'] = query unless query.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Search Version resources that consumers have access to, within the
# scope of the consumer cloud resource hierarchy context.
# @param [String] resource
# Required. The name of the resource context. See
# SearchCatalogsRequest.resource for details.
# @param [Fixnum] page_size
# The maximum number of entries that are requested.
# @param [String] page_token
# A pagination token returned from a previous call to SearchVersions
# that indicates where this listing should continue from.
# This field is optional.
# @param [String] query
# The query to filter the versions. Required.
# The supported queries are:
# * List versions under a product:
# `parent=catalogs/`catalog_id`/products/`product_id``
# * Get a version by name:
# `name=catalogs/`catalog_id`/products/`product_id`/versions/`version_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse]
#
# @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 search_project_versions(resource, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+resource}/versions:search', options)
command.response_representation = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse::Representation
command.response_class = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['query'] = query unless query.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

View File

@ -1,399 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module CloudprivatecatalogproducerV1beta1
class GoogleCloudPrivatecatalogproducerV1beta1Association
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPrivatecatalogproducerV1beta1Catalog
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPrivatecatalogproducerV1beta1Product
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPrivatecatalogproducerV1beta1Version
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1AuditLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIamV1TestIamPermissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleLongrunningCancelOperationRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleLongrunningListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleLongrunningOperation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleProtobufEmpty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleRpcStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleTypeExpr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudPrivatecatalogproducerV1beta1Association
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :name, as: 'name'
property :resource, as: 'resource'
end
end
class GoogleCloudPrivatecatalogproducerV1beta1Catalog
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :description, as: 'description'
property :display_name, as: 'displayName'
property :name, as: 'name'
property :parent, as: 'parent'
property :update_time, as: 'updateTime'
end
end
class GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :destination_product_name, as: 'destinationProductName'
end
end
class GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :association, as: 'association', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Association, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Association::Representation
end
end
class GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :associations, as: 'associations', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Association, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Association::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :catalogs, as: 'catalogs', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :products, as: 'products', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Product, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Product::Representation
end
end
class GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :versions, as: 'versions', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Version, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Version::Representation
end
end
class GoogleCloudPrivatecatalogproducerV1beta1Product
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :asset_type, as: 'assetType'
property :create_time, as: 'createTime'
hash :display_metadata, as: 'displayMetadata'
property :icon_uri, as: 'iconUri'
property :name, as: 'name'
property :update_time, as: 'updateTime'
end
end
class GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :icon, :base64 => true, as: 'icon'
end
end
class GoogleCloudPrivatecatalogproducerV1beta1Version
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :asset, as: 'asset'
property :create_time, as: 'createTime'
property :description, as: 'description'
property :name, as: 'name'
hash :original_asset, as: 'originalAsset'
property :update_time, as: 'updateTime'
end
end
class GoogleIamV1AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1AuditLogConfig, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1AuditLogConfig::Representation
property :service, as: 'service'
end
end
class GoogleIamV1AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
class GoogleIamV1Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleTypeExpr, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleTypeExpr::Representation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class GoogleIamV1Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1AuditConfig, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1Binding, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
end
end
class GoogleIamV1SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1Policy, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1Policy::Representation
property :update_mask, as: 'updateMask'
end
end
class GoogleIamV1TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class GoogleIamV1TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class GoogleLongrunningCancelOperationRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleLongrunningListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningOperation, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningOperation::Representation
end
end
class GoogleLongrunningOperation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleRpcStatus, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleRpcStatus::Representation
hash :metadata, as: 'metadata'
property :name, as: 'name'
hash :response, as: 'response'
end
end
class GoogleProtobufEmpty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleRpcStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :details, as: 'details'
property :message, as: 'message'
end
end
class GoogleTypeExpr
# @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
end
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1
VERSION = 'V1'
REVISION = '20200210'
REVISION = '20200311'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -369,6 +369,9 @@ module Google
# @param [String] parent
# Required. The name of the resource to list all attached Liens.
# For example, `projects/1234`.
# (google.api.field_policy).resource_type annotation is not set since the
# parent depends on the meta api implementation. This field could be a
# project or other sub project resources.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/cloud-search/docs/guides/
module CloudsearchV1
VERSION = 'V1'
REVISION = '20200212'
REVISION = '20200331'
# Index and serve your organization's data with Cloud Search
AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search'

View File

@ -31,9 +31,9 @@ module Google
# Indicates the operator name required in the query in order to isolate the
# boolean property. For example, if operatorName is *closed* and the
# property's name is *isClosed*, then queries like
# *closed:&lt;value&gt;* will show results only where the value of the
# *closed:&lt;value&gt;* show results only where the value of the
# property named *isClosed* matches *&lt;value&gt;*. By contrast, a
# search that uses the same *&lt;value&gt;* without an operator will return
# search that uses the same *&lt;value&gt;* without an operator returns
# all items where *&lt;value&gt;* matches the value of any
# String properties or text within the content field for the item.
# The operator name can only contain lowercase letters (a-z).
@ -435,7 +435,7 @@ module Google
# Indicates the operator name required in the query in order to isolate the
# date property using the greater-than operator. For example, if
# greaterThanOperatorName is *closedafter* and the property's name is
# *closeDate*, then queries like *closedafter:&lt;value&gt;* will
# *closeDate*, then queries like *closedafter:&lt;value&gt;*
# show results only where the value of the property named *closeDate* is
# later than *&lt;value&gt;*.
# The operator name can only contain lowercase letters (a-z).
@ -447,7 +447,7 @@ module Google
# Indicates the operator name required in the query in order to isolate the
# date property using the less-than operator. For example, if
# lessThanOperatorName is *closedbefore* and the property's name is
# *closeDate*, then queries like *closedbefore:&lt;value&gt;* will
# *closeDate*, then queries like *closedbefore:&lt;value&gt;*
# show results only where the value of the property named *closeDate* is
# earlier than *&lt;value&gt;*.
# The operator name can only contain lowercase letters (a-z).
@ -460,9 +460,9 @@ module Google
# date property. For example, suppose an issue tracking schema object
# has a property named *closeDate* that specifies an operator with an
# operatorName of *closedon*. For searches on that data, queries like
# *closedon:&lt;value&gt;* will show results only where the value of the
# *closedon:&lt;value&gt;* show results only where the value of the
# *closeDate* property matches *&lt;value&gt;*. By contrast, a
# search that uses the same *&lt;value&gt;* without an operator will return
# search that uses the same *&lt;value&gt;* without an operator returns
# all items where *&lt;value&gt;* matches the value of any String
# properties or text within the content field for the indexed datasource.
# The operator name can only contain lowercase letters (a-z).
@ -577,17 +577,17 @@ module Google
end
# A reference to a top-level property within the object that should be
# displayed in search results. The values of the chosen properties will be
# displayed in search results. The values of the chosen properties is
# displayed in the search results along with the
# dislpay label
# display label
# for that property if one is specified. If a display label is not specified,
# only the values will be shown.
# only the values is shown.
class DisplayedProperty
include Google::Apis::Core::Hashable
# The name of the top-level property as defined in a property definition
# for the object. If the name is not a defined property in the schema, an
# error will be given when attempting to update the schema.
# error is given when attempting to update the schema.
# Corresponds to the JSON property `propertyName`
# @return [String]
attr_accessor :property_name
@ -765,7 +765,7 @@ module Google
# optional. Search operators let users restrict the query to specific fields
# relevant to the type of item being searched. For example, if you provide no
# operator for a *priority* enum property with possible values *p0* and *p1*,
# a query that contains the term *p0* will return items that have *p0* as the
# a query that contains the term *p0* returns items that have *p0* as the
# value of the *priority* property, as well as any items that contain the
# string *p0* in other fields. If you provide an operator name for the enum,
# such as *priority*, then search users can use that operator to refine
@ -777,9 +777,9 @@ module Google
# Indicates the operator name required in the query in order to isolate the
# enum property. For example, if operatorName is *priority* and the
# property's name is *priorityVal*, then queries like
# *priority:&lt;value&gt;* will show results only where the value of the
# *priority:&lt;value&gt;* show results only where the value of the
# property named *priorityVal* matches *&lt;value&gt;*. By contrast, a
# search that uses the same *&lt;value&gt;* without an operator will return
# search that uses the same *&lt;value&gt;* without an operator returns
# all items where *&lt;value&gt;* matches the value of any String
# properties or text within the content field for the item.
# The operator name can only contain lowercase letters (a-z).
@ -813,7 +813,7 @@ module Google
# optional. Search operators let users restrict the query to specific fields
# relevant to the type of item being searched. For example, if you provide no
# operator for a *priority* enum property with possible values *p0* and *p1*,
# a query that contains the term *p0* will return items that have *p0* as the
# a query that contains the term *p0* returns items that have *p0* as the
# value of the *priority* property, as well as any items that contain the
# string *p0* in other fields. If you provide an operator name for the enum,
# such as *priority*, then search users can use that operator to refine
@ -1200,7 +1200,7 @@ module Google
# updateTime
# as the freshness indicator.
# The maximum length is 256 characters.
# When a property is used to calculate fresheness, the value defaults
# When a property is used to calculate freshness, the value defaults
# to 2 years from the current time.
# Corresponds to the JSON property `freshnessProperty`
# @return [String]
@ -1411,9 +1411,9 @@ module Google
# Indicates the operator name required in the query in order to isolate the
# html property. For example, if operatorName is *subject* and the
# property's name is *subjectLine*, then queries like
# *subject:&lt;value&gt;* will show results only where the value of the
# *subject:&lt;value&gt;* show results only where the value of the
# property named *subjectLine* matches *&lt;value&gt;*. By contrast, a
# search that uses the same *&lt;value&gt;* without an operator will return
# search that uses the same *&lt;value&gt;* without an operator return
# all items where *&lt;value&gt;* matches the value of any
# html properties or text within the content field for the item.
# The operator name can only contain lowercase letters (a-z).
@ -1554,7 +1554,7 @@ module Google
# Indicates the operator name required in the query in order to isolate the
# integer property using the greater-than operator. For example, if
# greaterThanOperatorName is *priorityabove* and the property's name is
# *priorityVal*, then queries like *priorityabove:&lt;value&gt;* will
# *priorityVal*, then queries like *priorityabove:&lt;value&gt;*
# show results only where the value of the property named *priorityVal* is
# greater than *&lt;value&gt;*.
# The operator name can only contain lowercase letters (a-z).
@ -1566,7 +1566,7 @@ module Google
# Indicates the operator name required in the query in order to isolate the
# integer property using the less-than operator. For example, if
# lessThanOperatorName is *prioritybelow* and the property's name is
# *priorityVal*, then queries like *prioritybelow:&lt;value&gt;* will
# *priorityVal*, then queries like *prioritybelow:&lt;value&gt;*
# show results only where the value of the property named *priorityVal* is
# less than *&lt;value&gt;*.
# The operator name can only contain lowercase letters (a-z).
@ -1578,9 +1578,9 @@ module Google
# Indicates the operator name required in the query in order to isolate the
# integer property. For example, if operatorName is *priority* and the
# property's name is *priorityVal*, then queries like
# *priority:&lt;value&gt;* will show results only where the value of the
# *priority:&lt;value&gt;* show results only where the value of the
# property named *priorityVal* matches *&lt;value&gt;*. By contrast, a
# search that uses the same *&lt;value&gt;* without an operator will return
# search that uses the same *&lt;value&gt;* without an operator returns
# all items where *&lt;value&gt;* matches the value of any String
# properties or text within the content field for the item.
# The operator name can only contain lowercase letters (a-z).
@ -2008,6 +2008,8 @@ module Google
# Link to the source repository serving the data. &#83;earch results apply
# this link to the title.
# Whitespace or special characters may cause Cloud &#83;earch result links to
# trigger a redirect notice; to avoid this, encode the URL.
# The maximum length is 2048 characters.
# Corresponds to the JSON property `sourceRepositoryUrl`
# @return [String]
@ -2374,7 +2376,7 @@ module Google
class Metaline
include Google::Apis::Core::Hashable
# The list of displayed properties for the metaline. The maxiumum number of
# The list of displayed properties for the metaline. The maximum number of
# properties is 5.
# Corresponds to the JSON property `properties`
# @return [Array<Google::Apis::CloudsearchV1::DisplayedProperty>]
@ -2533,21 +2535,21 @@ module Google
class ObjectDisplayOptions
include Google::Apis::Core::Hashable
# Defines the properties that will be displayed in the metalines of the
# search results. The property values will be displayed in the order given
# here. If a property holds multiple values, all of the values will be
# diplayed before the next properties. For this reason, it is a good practice
# to specify singular properties before repeated properties in this list. All
# of the properties must set
# Defines the properties that are displayed in the metalines of the
# search results. The property values are displayed in the order given
# here. If a property holds multiple values, all of the values are
# displayed before the next properties. For this reason, it is a good
# practice to specify singular properties before repeated properties in this
# list. All of the properties must set
# is_returnable
# to true. The maximum number of metalines is 3.
# Corresponds to the JSON property `metalines`
# @return [Array<Google::Apis::CloudsearchV1::Metaline>]
attr_accessor :metalines
# The user friendly label to display in the search result to inidicate the
# type of the item. This is OPTIONAL; if not given, an object label will not
# be displayed on the context line of the search results. The maximum length
# The user friendly label to display in the search result to indicate the
# type of the item. This is OPTIONAL; if not provided, an object label isn't
# displayed on the context line of the search results. The maximum length
# is 32 characters.
# Corresponds to the JSON property `objectDisplayLabel`
# @return [String]
@ -2983,7 +2985,7 @@ module Google
# Indicates that multiple values are allowed for the property. For example, a
# document only has one description but can have multiple comments. Cannot be
# true for properties whose type is a boolean.
# If set to false, properties that contain more than one value will cause the
# If set to false, properties that contain more than one value cause the
# indexing request for that item to be rejected.
# Corresponds to the JSON property `isRepeatable`
# @return [Boolean]
@ -3087,14 +3089,14 @@ module Google
class PropertyDisplayOptions
include Google::Apis::Core::Hashable
# The user friendly label for the property that will be used if the property
# is specified to be displayed in ObjectDisplayOptions. If given, the display
# label will be shown in front of the property values when the property is
# The user friendly label for the property that is used if the property
# is specified to be displayed in ObjectDisplayOptions. If provided, the
# display label is shown in front of the property values when the property is
# part of the object display options. For example, if the property value is
# '1', the value by itself may not be useful context for the user. If the
# display name given was 'priority', then the user will see 'priority : 1' in
# the search results which provides clear conext to search users. This is
# OPTIONAL; if not given, only the property values will be displayed.
# display name given was 'priority', then the user sees 'priority : 1' in
# the search results which provides clear context to search users. This is
# OPTIONAL; if not given, only the property values are displayed.
# The maximum length is 32 characters.
# Corresponds to the JSON property `displayLabel`
# @return [String]
@ -4720,15 +4722,15 @@ module Google
class TextOperatorOptions
include Google::Apis::Core::Hashable
# If true, the text value will be tokenized as one atomic value in
# If true, the text value is tokenized as one atomic value in
# operator searches and facet matches. For example, if the operator name is
# "genre" and the value is "science-fiction" the query restrictions
# "genre:science" and "genre:fiction" will not match the item;
# "genre:science-fiction" will. Value matching is case-sensitive
# "genre:science" and "genre:fiction" doesn't match the item;
# "genre:science-fiction" does. Value matching is case-sensitive
# and does not remove special characters.
# If false, the text will be tokenized. For example, if the value is
# "science-fiction" the queries "genre:science" and "genre:fiction" will
# match the item.
# If false, the text is tokenized. For example, if the value is
# "science-fiction" the queries "genre:science" and "genre:fiction"
# matches the item.
# Corresponds to the JSON property `exactMatchWithOperator`
# @return [Boolean]
attr_accessor :exact_match_with_operator
@ -4737,9 +4739,9 @@ module Google
# Indicates the operator name required in the query in order to isolate the
# text property. For example, if operatorName is *subject* and the
# property's name is *subjectLine*, then queries like
# *subject:&lt;value&gt;* will show results only where the value of the
# *subject:&lt;value&gt;* show results only where the value of the
# property named *subjectLine* matches *&lt;value&gt;*. By contrast, a
# search that uses the same *&lt;value&gt;* without an operator will return
# search that uses the same *&lt;value&gt;* without an operator returns
# all items where *&lt;value&gt;* matches the value of any
# text properties or text within the content field for the item.
# The operator name can only contain lowercase letters (a-z).
@ -4815,7 +4817,7 @@ module Google
# Indicates the operator name required in the query in order to isolate the
# timestamp property using the greater-than operator. For example, if
# greaterThanOperatorName is *closedafter* and the property's name is
# *closeDate*, then queries like *closedafter:&lt;value&gt;* will
# *closeDate*, then queries like *closedafter:&lt;value&gt;*
# show results only where the value of the property named *closeDate* is
# later than *&lt;value&gt;*.
# The operator name can only contain lowercase letters (a-z).
@ -4827,7 +4829,7 @@ module Google
# Indicates the operator name required in the query in order to isolate the
# timestamp property using the less-than operator. For example, if
# lessThanOperatorName is *closedbefore* and the property's name is
# *closeDate*, then queries like *closedbefore:&lt;value&gt;* will
# *closeDate*, then queries like *closedbefore:&lt;value&gt;*
# show results only where the value of the property named *closeDate* is
# earlier than *&lt;value&gt;*.
# The operator name can only contain lowercase letters (a-z).
@ -4839,9 +4841,9 @@ module Google
# Indicates the operator name required in the query in order to isolate the
# timestamp property. For example, if operatorName is *closedon* and the
# property's name is *closeDate*, then queries like
# *closedon:&lt;value&gt;* will show results only where the value of the
# *closedon:&lt;value&gt;* show results only where the value of the
# property named *closeDate* matches *&lt;value&gt;*. By contrast, a
# search that uses the same *&lt;value&gt;* without an operator will return
# search that uses the same *&lt;value&gt;* without an operator returns
# all items where *&lt;value&gt;* matches the value of any String
# properties or text within the content field for the item. The operator
# name can only contain lowercase letters (a-z). The maximum length is 32

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/shell/docs/
module CloudshellV1
VERSION = 'V1'
REVISION = '20200224'
REVISION = '20200405'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/shell/docs/
module CloudshellV1alpha1
VERSION = 'V1alpha1'
REVISION = '20200224'
REVISION = '20200405'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/tasks/
module CloudtasksV2beta2
VERSION = 'V2beta2'
REVISION = '20200210'
REVISION = '20200324'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

Some files were not shown because too many files have changed in this diff Show More